Installing ivtv driver for PVR-350 card

Platform: Ubuntu Hoary Preview Release AMD64 Hauppauge PVR-350

if you don’t already have it, get the basic stuff for building a kernel module. Get basics for building a kernel module

Following the instructions at Ubuntu Linux FAQ $ sudo apt-get install build-essential linux-headers-uname -r

If you get an error like this, make: *** /lib/modules/2.6.10-2-386/build: No such file or directory. Stop. make: *** [all] Error 2 this is the bit you need to revisit.

Get ivtv module source

Get the latest stable tarball from Chris Kennedy’s site:

http://ivtv.no-ip.info/ivtv-0.2.0-rc3g.tgz (as of Feb 24th 2005)

Unpack it.

Build and install the module. $ cd driver $ make $ sudo mv /lib/modules/uname -r/kernel/drivers/media/video/msp3400.ko ~/msp3400.ko.orig # (or any other place; or just delete it) $ sudo make install

Create /etc/modutils/ivtv Create this file as follows: alias char-major-81 videodev alias char-major-81-0 ivtv options ivtv ivtv_debug=1 ivtv_std=2

Now, I think you ought to able to have this at the top of the ivtv file, and for it to automatically pick up this directory. keep path[ivtv]=/lib/modules/2.6.10/extra But that doesn’t work, so you’ll need to copy over the /lib/modules/2.6.10/extra directory into /lib/modules/uname -r/kernel/drivers.

Firmware Extract the firmware and put that in /lib/modules

Create /etc/init.d/ivtv Create this file as follows: modprobe ivtv modprobe ivtv-fb # if using PVR-350 and framebuffer

Make it executable $ sudo chmod +x /etc/init.d/ivtv

Set ivtv to load at boot $ sudo update-rc.d ivtv defaults 12 # need to run this before gdm if using card for X output

Gotchas

  1. If you're using the default kernel, then you'll find the ivtv modules end up in /lib/modules/2.6.10, rather than /lib/modules/2.6.10-5-386. (for example). Which means that modprobe will fail, because it won't be able to find the modules. Fix this by copying the directory across, and re-running depmod

`

cp -r /lib/modules/2.6.10/ivtv /lib/modules/2.6.10-5-386/kernel/drivers/video

depmod

`