Moderator Control Panel ]

Installing the driver breaks DVB-T adapter.

Re: Installing the driver breaks DVB-T adapter.

Postby lawrence » Fri Aug 19, 2011 2:43 am

I'm assuming that you using a current media_build tree from http://git.linuxtv.org/media_build.git? If so then follow the README therein and
Code: Select All Code
./build --main-git

That should checkout the current linux tree into media/
lawrence
 
Posts: 9
Joined: Wed Aug 17, 2011 7:54 pm

Re: Installing the driver breaks DVB-T adapter.

Postby JeroenM » Fri Aug 19, 2011 4:42 am

I think i am ready to give up. I tried it two times now.
running ./build --main-git did indeed create the media directory under media_build and your excellent guide makes much more sense.
I removed the whole media_build directory both times and ending up with the same result below.


This is the exact procedure i did both times:

Code: Select All Code
git clone git://linuxtv.org/media_build.git
cd media_build
./build --main-git

wget http://www.softsystem.co.uk/download/tbs/tbs698x-2.6.38.patch
cd media
patch -p1 < ../tbs698x-2.6.38.patch

DRVR="linux-tbs-drivers_110806.rar"
wget http://www.tbsdtv.com/download/common/$DRVR
mkdir tbs && cd tbs
unrar x ../$DRVR
tar -axf linux-tbs-drivers.tar.bz2
cd ..
SRC="tbs/linux-tbs-drivers/v4l"
DST="v4l"
ARCH="x86"
cp $SRC/tbs6921fe_driver.o.$ARCH $DST/tbs6921fe_driver.o
cp $SRC/tbs6980fe_driver.o.$ARCH $DST/tbs6980fe_driver.o
cp $SRC/tbs6981fe_driver.o.$ARCH $DST/tbs6981fe_driver.o
make



This is what happens when running the patch above:

Code: Select All Code
root@spv-tv02:/var/downloads/media_build# cd media
root@spv-tv02:/var/downloads/media_build/media# patch -p1 < ../tbs698x-2.6.38.patch
patching file drivers/media/dvb/frontends/Kconfig
Hunk #1 succeeded at 214 (offset 21 lines).
patching file drivers/media/dvb/frontends/Makefile
Hunk #2 succeeded at 74 (offset 4 lines).
patching file drivers/media/dvb/frontends/kmem_wrap.c
patching file drivers/media/dvb/frontends/tbs6921fe.h
patching file drivers/media/dvb/frontends/tbs6980fe.h
patching file drivers/media/dvb/frontends/tbs6981fe.h
patching file drivers/media/dvb/frontends/tbsfe.c
patching file drivers/media/dvb/frontends/tbsfe.h
patching file drivers/media/video/cx23885/Kconfig
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/video/cx23885/Kconfig.rej
patching file drivers/media/video/cx23885/Makefile
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/video/cx23885/Makefile.rej
patching file drivers/media/video/cx23885/cx23885-cards.c
Hunk #1 succeeded at 217 (offset 39 lines).
Hunk #2 succeeded at 493 (offset 62 lines).
Hunk #3 succeeded at 991 (offset 71 lines).
Hunk #4 succeeded at 1200 (offset 105 lines).
Hunk #5 succeeded at 1245 (offset 106 lines).
Hunk #6 succeeded at 1292 (offset 132 lines).
Hunk #7 succeeded at 1374 (offset 132 lines).
Hunk #8 succeeded at 1466 (offset 137 lines).
patching file drivers/media/video/cx23885/cx23885-core.c
Hunk #1 succeeded at 924 (offset 1 line).
Hunk #2 FAILED at 2060.
Hunk #3 FAILED at 2111.
2 out of 3 hunks FAILED -- saving rejects to file drivers/media/video/cx23885/cx23885-core.c.rej
patching file drivers/media/video/cx23885/cx23885-dvb.c
Hunk #1 FAILED at 58.
Hunk #2 succeeded at 452 (offset 19 lines).
Hunk #3 succeeded at 973 (offset 117 lines).
Hunk #4 succeeded at 1265 (offset 172 lines).
1 out of 4 hunks FAILED -- saving rejects to file drivers/media/video/cx23885/cx23885-dvb.c.rej
patching file drivers/media/video/cx23885/cx23885-i2c.c
patching file drivers/media/video/cx23885/cx23885-input.c
Hunk #1 succeeded at 87 (offset 1 line).
Hunk #2 succeeded at 167 (offset 2 lines).
Hunk #3 succeeded at 287 (offset 6 lines).
patching file drivers/media/video/cx23885/cx23885.h
Hunk #2 FAILED at 88.
Hunk #3 succeeded at 548 (offset 5 lines).
Hunk #4 succeeded at 585 (offset 5 lines).
1 out of 4 hunks FAILED -- saving rejects to file drivers/media/video/cx23885/cx23885.h.rej
patching file drivers/media/video/cx23885/tbs6921ctrl.c
patching file drivers/media/video/cx23885/tbs6921ctrl.h
patching file drivers/media/video/cx23885/tbs6980ctrl.c
patching file drivers/media/video/cx23885/tbs6980ctrl.h
patching file drivers/media/video/cx23885/tbs6981ctrl.c
patching file drivers/media/video/cx23885/tbs6981ctrl.h
root@spv-tv02:/var/downloads/media_build/media#



This is the output when i run make:

Code: Select All Code
make -C /lib/modules/2.6.38-8-generic-pae/build SUBDIRS=/var/downloads/v4l_test/media_build/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic-pae'
  CC [M]  /var/downloads/v4l_test/media_build/v4l/cx23885-cards.o
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:220:3: error: 'CX23885_BOARD_TBS_6921' undeclared here (not in a function)
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:220:2: error: array index in initializer not of integer type
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:220:2: error: (near initialization for 'cx23885_boards')
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:224:3: error: 'CX23885_BOARD_TBS_6980' undeclared here (not in a function)
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:224:2: error: array index in initializer not of integer type
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:224:2: error: (near initialization for 'cx23885_boards')
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:229:3: error: 'CX23885_BOARD_TBS_6981' undeclared here (not in a function)
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:229:2: error: array index in initializer not of integer type
/var/downloads/v4l_test/media_build/v4l/cx23885-cards.c:229:2: error: (near initialization for 'cx23885_boards')
make[3]: *** [/var/downloads/v4l_test/media_build/v4l/cx23885-cards.o] Error 1
make[2]: *** [_module_/var/downloads/v4l_test/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic-pae'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/downloads/v4l_test/media_build/v4l'
make: *** [all] Error 2
root@spv-tv02:/var/downloads/v4l_test/media_build#


I can´t believe it has to be so incredible problematic to get the two differnt cards to work at once.
It is driving me nuts.
Thank you very much for helping me out, Lawrence.
JeroenM
 
Posts: 9
Joined: Wed Aug 17, 2011 9:26 pm

Re: Installing the driver breaks DVB-T adapter.

Postby lawrence » Fri Aug 19, 2011 3:08 pm

I would recommend giving up on the media_build tree - it looks too problematic. I've actually built a custom Linux kernel with the modified drivers:

Code: Select All Code
mkdir src && cd src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.38.8.bz2
wget http://www.softsystem.co.uk/download/tbs/tbs698x-2.6.38.patch
wget http://www.tbsdtv.com/download/common/linux-tbs-drivers_110806.rar

mkdir linux-tbs-drivers_110806 && cd linux-tbs-drivers_110806
unrar x ../linux-tbs-drivers_110806.rar
tar -axf linux-tbs-drivers.tar.bz2
cd ..

tar axf linux-2.6.38.tar.bz2
cp -al linux-2.6.38 linux-2.6.38.8-tbs
cd linux-2.6.38.8-tbs
bzip2 -dc "../patch-2.6.38.8.bz2" | patch -s -p1

patch -p1 < ../tbs698x-2.6.38.patch

SRC="../linux-tbs-drivers_110806/linux-tbs-drivers/v4l"
DST="drivers/media/dvb/frontends"
ARCH="x86" # "x86_64"
cp $SRC/tbs6921fe_driver.o.$ARCH $DST/tbs6921fe_driver.o
cp $SRC/tbs6980fe_driver.o.$ARCH $DST/tbs6980fe_driver.o
cp $SRC/tbs6981fe_driver.o.$ARCH $DST/tbs6981fe_driver.o

make xconfig # make sure to enable the cx23885 in multimedia devices
make -j4
sudo make install


I'm off for the next week so best of luck with this.
lawrence
 
Posts: 9
Joined: Wed Aug 17, 2011 7:54 pm

Previous

Return to Linux

Who is online

Users browsing this forum: No registered users and 12 guests