Page 1 of 1

fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Fri May 05, 2017 4:05 am
by dishsto
Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-32-generic x86_64)

root@6909:~# uname -a
Linux 6909 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

tbs-linux-drivers_v170330.zip

I follow Closed Driver install steps:
viewtopic.php?f=86&t=9875

i delete media folder #sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/

6. when i try compile driver source.
# make && make install

show this fail

CC [M] /root/tbs/linux-tbs-drivers/v4l/sn9c102_pas202bcb.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/sn9c102_tas5110c1b.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/sn9c102_tas5110d.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/sn9c102_tas5130d1b.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/bt87x.o
/root/tbs/linux-tbs-drivers/v4l/bt87x.c: In function 'snd_bt87x_pcm_open':
/root/tbs/linux-tbs-drivers/v4l/bt87x.c:446:2: error: implicit declaration of function 'smp_mb__after_atomic' [-Werror=implicit-function-declaration]
smp_mb__after_atomic();
^
/root/tbs/linux-tbs-drivers/v4l/bt87x.c: In function 'snd_bt87x_probe':
/root/tbs/linux-tbs-drivers/v4l/bt87x.c:898:2: error: implicit declaration of function 'snd_card_new' [-Werror=implicit-function-declaration]
err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
^
cc1: some warnings being treated as errors
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/bt87x.o] Error 1
make[2]: *** [_module_/root/tbs/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-32-generic'
make[1]: *** [default] Error 2
make[1]: se sale del directorio «/root/tbs/linux-tbs-drivers/v4l»
make: *** [all] Error 2


Can somebody guide me to solve it please

Re: fail install linux drivers TBS6909 DVB-S2 8 Tuner PCIe

PostPosted: Fri May 05, 2017 11:46 pm
by dishsto
Please close this post

I solved installing open source linux drivers

thanks

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Thu Jul 20, 2017 4:33 pm
by dpdpkpcom
I think a reply to this from TBS would still be worthwhile - I'm having the same issue and having to revert to Open Source drivers

Thx

dp

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Wed Jul 26, 2017 4:31 pm
by steven
dpdpkpcom Wrote:I think a reply to this from TBS would still be worthwhile - I'm having the same issue and having to revert to Open Source drivers

Thx

dp

Hi which kernel you are using ?

Thanks

Kind Regards

steven

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Mon Aug 21, 2017 8:28 pm
by mossy
Attached is a patch to allow the code to compile with kernel versions before 3.18.

Tested with -
Card: TBS6981
Kernel Version: 3.13
TBS code: tbs-linux-drivers_v170330.zip

Compiles and apparently works (meaning it works for me, but I've no idea if the affected code is normally executed or not on my system).

This problem is caused by two bugs relating to a failure to check for kernel versions, both introduced in v161031. One is caused by a kernel version check that was in the code, but was removed, and another by a change that made that code compatible with 3.16 or later only, without a kernel version check.


Instructions
Unzip the attachment, note the folder where you unzipped the patch (tbs_pre_3.18.patch). That folder is called /path/to below. Replace with the correct path to your copy of tbs_pre_3.18.patch.

When following the Closed Driver install steps, after this:
Code: Select All Code
cd linux-tbs-drivers

... do this:
Code: Select All Code
patch -p1 < /path/to/tbs_pre_3.18.patch

... and then continue as normal.

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Mon Aug 21, 2017 9:11 pm
by mossy
steven Wrote:Hi which kernel you are using ?


Hi Steven,

Can we get patch into the code at some point?

It looks like the open source drivers also need this patch.

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Mon Sep 04, 2017 9:54 am
by steven
mossy Wrote:
steven Wrote:Hi which kernel you are using ?


Hi Steven,

Can we get patch into the code at some point?

It looks like the open source drivers also need this patch.

Hi

you want to use kernel 3.xx ?

Thanks

Kind Regards

steven

Re: fail install linux drivers TBS6909 DVB-S2 8 (solved)

PostPosted: Thu Nov 23, 2017 8:54 pm
by nrm
I ran into the same issue. Kernel 3.0.0. The patch on this thread fixed it.