Building the Driver for Ubuntu Natty 64-bit

Firstly, thanks to the patches from AndyBurns that got me some of the way.
https://shop.tbsdtv.com/forum/viewtopic.php?f=22&t=110
I thought I'd just document in a slightly cleaner manner the process I used to get the driver to make, install and work for Kubuntu Natty AMD64
I see no reason why this wouldn't work for a 32-bit version either, I just don't have a 32-bit machine to test with - happy if someone else could.
1) Download driver package from TBS :
Version used for me is linux-s2api-tbs6980-1_20101024.rar
2) Unrar download, then untar as per README linux-s2api-tbs6980_1.tar.bz2
3) cd ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is)
4) Download AndyBurns Patch (See https://shop.tbsdtv.com/forum/viewtopic.php?f=22&t=110 for further Info)
wget http://adslpipe.co.uk/misc/tbs6981-2.6.38.2-v4.patch
5) patch -p0 <tbs6981-2.6.38.2-v4.patch
6) cd v4l
7) sh ./tbs-x86_64.sh
8) edit the file hdpvr-i2c.c and comment out the ANALOG line as below...
/* i2c_adap->class = I2C_CLASS_TV_ANALOG;*/
9) cd .. (back to ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is))
10 mkdir linux-src;cd linux-src
11) apt-get source linux-image-$(uname -r) (Download the current Linux Kernel Source)
12) cp linux-2.6.38/drivers/media/video/v4l2-compat-ioctl32.c ../linux/drivers/media/video
(Copy the file from the standard kernel source to the one provided from tbs)
13) cd .. (back to ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is))
14) make
(it shouldn't stop with an error anymore)
15) sudo make install (back to the README instructions...)
Once rebooted - should be able to verify with as scan. FYI, this is the line I put in dvb-s/Astra-28.2E to make it work for me
(I'm in the UK and have just ripped out my Sky+ box to go FreeSat with MythTV)
S 10714000 H 22000000 5/6 35 QPSK
then run
sudo scan-s2 -v -k 3 -a 0 dvb-s/Astra-28.2E
So - This has worked for me - I now have the card working under Kubuntu Natty AMD64.
I actually wonder if I could move/rename the TBS provided linux headers and use the standard ones instead? - or perhaps just the media/video section. Could anyone comment if that is likely or not? (or even try it for me..)
Cheers!
https://shop.tbsdtv.com/forum/viewtopic.php?f=22&t=110
I thought I'd just document in a slightly cleaner manner the process I used to get the driver to make, install and work for Kubuntu Natty AMD64
I see no reason why this wouldn't work for a 32-bit version either, I just don't have a 32-bit machine to test with - happy if someone else could.
1) Download driver package from TBS :
Version used for me is linux-s2api-tbs6980-1_20101024.rar
2) Unrar download, then untar as per README linux-s2api-tbs6980_1.tar.bz2
3) cd ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is)
4) Download AndyBurns Patch (See https://shop.tbsdtv.com/forum/viewtopic.php?f=22&t=110 for further Info)
wget http://adslpipe.co.uk/misc/tbs6981-2.6.38.2-v4.patch
5) patch -p0 <tbs6981-2.6.38.2-v4.patch
6) cd v4l
7) sh ./tbs-x86_64.sh
8) edit the file hdpvr-i2c.c and comment out the ANALOG line as below...
/* i2c_adap->class = I2C_CLASS_TV_ANALOG;*/
9) cd .. (back to ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is))
10 mkdir linux-src;cd linux-src
11) apt-get source linux-image-$(uname -r) (Download the current Linux Kernel Source)
12) cp linux-2.6.38/drivers/media/video/v4l2-compat-ioctl32.c ../linux/drivers/media/video
(Copy the file from the standard kernel source to the one provided from tbs)
13) cd .. (back to ~/TBS/linux-s2api-tbs6980_1 (or whatever your build folder is))
14) make
(it shouldn't stop with an error anymore)
15) sudo make install (back to the README instructions...)
Once rebooted - should be able to verify with as scan. FYI, this is the line I put in dvb-s/Astra-28.2E to make it work for me
(I'm in the UK and have just ripped out my Sky+ box to go FreeSat with MythTV)
S 10714000 H 22000000 5/6 35 QPSK
then run
sudo scan-s2 -v -k 3 -a 0 dvb-s/Astra-28.2E
So - This has worked for me - I now have the card working under Kubuntu Natty AMD64.
I actually wonder if I could move/rename the TBS provided linux headers and use the standard ones instead? - or perhaps just the media/video section. Could anyone comment if that is likely or not? (or even try it for me..)
Cheers!