Building the IVTV driver for the Hauppauge PVR-350

I followed the guide at //ivtvdriver.org/index.php/Howto:Ubuntu This guide is not complete and well organized, but should have most of the information for setting up the IVTV on the HP a1250n AMD64 X2 computer.

Running the following will give the operating system version.

	uname -r
I am running Ubuntu Breezy, so this returns the following.
	2.6.12-10-amd64-k8-smp
I downloaded and installed linux-source-2.6.12-10 using package manager. The package linux-headers-2.6.12-10-amd64-k8-smp was already loaded on my machine. Unpack the source using the following. The ln command makes a link.
	sudo bash
	tar xvjf /usr/src/linux-source-*.tar.bz2 -C /usr/src/
	ln -s /usr/src/linux-source-2.6.12 /usr/src/linux
	ln -s /usr/src/linux /lib/modules/`uname -r`/build
Edit the usr/src/linux/Makefile.
	EXTRAVERSION = -10-amd64-k8-smp
Configure the source.
	cp /boot/config-`uname -r` /usr/src/linux/.config
	make oldconfig
	make prepare0
	make scripts
Check for latest version of ivtv.
	cd /usr/src
	wget http://dl.ivtvdriver.org/ivtv/archive/0.4.x/ivtv-0.4.2.tar.gz
		tar xvfz ivtv-0.4.2.tar.gz
Compile and install.
		cd ivtv-0.4.2
		make
		make install
I got many errors during the make.
Module /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/msp3400.ko conflicts with the ivtv module of the same name -- please hide or delete it.
To hide:  mv /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/msp3400.ko /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/msp3400.ko.HIDE
You will then need to run depmod.
Module /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tda9887.ko conflicts with the ivtv module of the same name -- please hide or delete it.
To hide:  mv /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tda9887.ko /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tda9887.ko.HIDE
You will then need to run depmod.
Module /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tuner.ko conflicts with the ivtv module of the same name -- please hide or delete it.
To hide:  mv /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tuner.ko /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tuner.ko.HIDE
You will then need to run depmod.
Module /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tveeprom.ko conflicts with the ivtv module of the same name -- please hide or delete it.
To hide:  mv /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tveeprom.ko /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video/tveeprom.ko.HIDE
You will then need to run depmod.
They must be hidden as requested. Do something like the following.
	cd /lib/modules/2.6.12-10-amd64-k8-smp/kernel/drivers/media/video
	mv msp3400.ko msp3400.ko.HIDE
	mv tda9887.ko tda9887.ko.HIDE
	mv tuner.ko tuner.ko.HIDE
	mv tveeprom.ko tveeprom.ko.HIDE
Keep rerunning the make to make sure the errors are gone.
	cd /usr/src/ivtv-0.4.2
	make install
Copy the compiled drivers into the correct location.
	cp -r /lib/modules/2.6.12/ivtv /lib/modules/`uname -r`/
Get the hauppauge firmware.
	cd ./usr/src/ivtv-0.4.2/utils
	wget ftp://ftp.shspvr.com/download/wintv-pvr_150-500/inf/pvr_2.0.24.23035.zip
	wget ftp://ftp.shspvr.com/download/wintv-pvr_250-350/inf/pvr_1.18.21.22254_inf.zip
	unzip pvr_2.0.24.23035.zip
	./ivtvfwextract.pl pvr_1.18.21.22254_inf.zip
	cp HcwMakoA.ROM /usr/lib/hotplug/firmware/v4l-cx25840.fw
	cp HcwFalcn.rom /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw
	mv /lib/modules/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/
	mv /lib/modules/ivtv-fw-enc.bin /usr/lib/hotplug/firmware/
The compiler indicates to do the following.
	cp /usr/src/ivtv-0.4.2/v4l-cx2341x-init.mpg /usr/lib/hotplug/firmware
Doint the following.
	ls -ltra /usr/lib/hotplug/firmware/
This should list files such as the following.
	 drwxr-xr-x  3 root root   4096 2005-12-18 10:04 ..
	 -rw-r--r--  1 root root 262144 2005-12-23 20:05 ivtv-fw-enc.bin
	 -rw-r--r--  1 root root 262144 2005-12-23 20:05 ivtv-fw-dec.bin
	 -r--r--r--  1 root root  14264 2005-12-23 20:08 v4l-cx25840.fw
	 -r--r--r--  1 root root 376836 2005-12-23 20:08 v4l-cx2341x-enc.fw
	 lrwxrwxrwx  1 root root     41 2006-01-03 00:40 v4l-cx2341x-dec.fw ->
		/usr/lib/hotplug/firmware/ivtv-fw-dec.bin
	 -rw-r--r--  1 root root 155648 2005-12-24 13:33 v4l-cx2341x-init.mpg
	 drwxr-xr-x  2 root root   4096 2006-01-03 00:40 .


Hosted by www.Geocities.ws

1