Print This Page

As usual these are my own notes for my own purposes and they may well/are duplicates of information on the internet but i write them for myself in the hope that if i need to reinstall i can follow EXACTLY what i did, and i hope others find them useful

I am assuming that you are using debian sarge or newer with default Debian kernels and packages. I was using Sid's 2.6.11-1 kernel at the time of doing this. I also have a WinTV 250 card but this should work for others. The basis of this document was taken from http://ivtv.writeme.ch/tiki-index.php?page=debian267 and the host page for the development of the drivers can be found at http://ivtv.sourceforge.net/

Get your drivers

Go to http://www.ivtv.tv/releases/ and get the latest version, i used ivtv-0.3.5 which seemed to work very well. You also need various debian packages and as per the wiki instructions I installed gcc g++ libc6-dev sharutils and kernel-headers-2.6.11-1-386, with the command :-

apt-get install gcc g++ libc6-dev sharutils kernel-headers-`uname -r`

I placed the driver tarball in /usr/src and then as per the wiki did the following:-
cd /usr/src 
tar xvpzf ivtv-0.3.5.tar.gz
cd ivtv-0.3.5
cd driver
make

cd ../utils
make
make install

That is where I had trouble with the instructions, there are a load of modules with identical names in the 2.6.11 kernel/devian version of that kernel. They *might* be sutible but on my first pass i haven't checked them out as I have seen problems in the past with these "similar modules".
Go to your modules directly /lib/modules/2.6.11-1-386/kernel/drivers/media/video/ and rename these modules :-
msp3400.ko tda9887.ko tuner.ko tveeprom.ko to msp3400-old.ko tda9887-old.ko tuner-old.ko tveeprom-old.ko
Then go back to the driver directory and issue the following comamnds :-
make install
depmod -r

Configuration of modules

Create the file /etc/modprobe.d/ivtv :-

alias char-major-61 lirc_i2c 
alias char-major-81 videodev
alias char-major-81-0 ivtv

options ivtv ivtv_std=2 tda9887=0 ivtv_debug=0
options msp3400 once=1 simple=1
options tuner pal=1
install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115; \
/sbin/modprobe saa7127; /sbin/modprobe --ignore-install ivtv; \
/usr/local/bin/ivtvctl -j reg=0x6c,val=0xfa; /sbin/modprobe lirc_i2c; \
/sbin/modprobe ivtv-fb; \ /usr/local/bin/ivtvfbctl /dev/fb0 -noglobalalpha -localalpha ; /usr/local/bin/ptune.pl --freqtable=pal-europe-west 30

Note i have pre set the loading to set the channel to channel 30 using the pal-europe-west frequency table.

Frequency changing scripts

All that remains is to get the channel change scripts. This info can be found at http://ivtv.writeme.ch/tiki-index.php?page=ptune-ui

Download the modules :-
http://prdownloads.sourceforge.net/ivtv/Video-Frequencies-0.03.tar.gz?download
http://prdownloads.sourceforge.net/ivtv/Video-ivtv-0.13.tar.gz?download
Unzip each tarball and issue the following commands in EACH directory :-

perl Makefile.pl 
make
make test
make install

The ptune.pl script can be found in the utils folder of the driver to use it simply issue :-
ptune.pl --freqtable=pal-europe-west 30

That will change to channel 30 using the PAL europe west frequency table. I copied this file to /usr/local/bin (so the modprobe script would find it). That is it, a
modprobe ivtv
should bring up /dev/video0 that can be watched with
mplayer /dev/video0

Previous page: kismet-sql-google-maps
Next page: speedtouch