Moderator Control Panel ]

Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby andrewj720 » Sun Apr 15, 2018 4:45 am

I'm tying to install Linux drivers for TBS 6285.

I've tried the open source drivers and TBS's own proprietary ones, obtained from TBS website.

When I try and 'make' I get the following output:

Code: Select All Code
root@lounge-server:~/tbs/linux-tbs-drivers# make -j5
make -C /root/tbs/linux-tbs-drivers/v4l
make[1]: Entering directory '/root/tbs/linux-tbs-drivers/v4l'
make -C firmware prep
creating symbolic links...
make[2]: Entering directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make[2]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make -C firmware
make[2]: Entering directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
Kernel build directory is /lib/modules/4.15.0-15-generic/build
make -C /lib/modules/4.15.0-15-generic/build SUBDIRS=/root/tbs/linux-tbs-drivers/v4l  modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-15-generic'
  LD [M]  /root/tbs/linux-tbs-drivers/v4l/tda18271.o
  LD [M]  /root/tbs/linux-tbs-drivers/v4l/saa7146.o
  CC [M]  /root/tbs/linux-tbs-drivers/v4l/saa7146_video.o
  CC [M]  /root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o
  CC [M]  /root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o
  CC [M]  /root/tbs/linux-tbs-drivers/v4l/saa716x_i2c.o
  CC [M]  /root/tbs/linux-tbs-drivers/v4l/saa716x_cgu.o
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c: In function 'video_init':
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1307:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
  init_timer(&vv->video_q.timeout);
  ^~~~~~~~~~
  init_timers
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1308:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  vv->video_q.timeout.function = saa7146_buffer_timeout;
                               ^
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1309:21: error: 'struct timer_list' has no member named 'data'
  vv->video_q.timeout.data     = (unsigned long)(&vv->video_q);
                     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa7146_video.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa7146_video.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_workaround':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:117:6: error: implicit declaration of function 'signal_pending'; did you mean 'timer_pending'? [-Werror=implicit-function-declaration]
   if(signal_pending(current)) {
      ^~~~~~~~~~~~~~
      timer_pending
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_init':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:368:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
  init_timer(&vv->vbi_q.timeout);
  ^~~~~~~~~~
  init_timers
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:369:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  vv->vbi_q.timeout.function = saa7146_buffer_timeout;
                             ^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:370:19: error: 'struct timer_list' has no member named 'data'
  vv->vbi_q.timeout.data     = (unsigned long)(&vv->vbi_q);
                   ^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_open':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:418:32: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  fh->vbi_read_timeout.function = vbi_read_timeout;
                                ^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:419:22: error: 'struct timer_list' has no member named 'data'
  fh->vbi_read_timeout.data = (unsigned long)file;
                      ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o] Error 1
/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.c: In function 'saa716x_enable_msix':
/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.c:49:8: error: implicit declaration of function 'pci_enable_msix'; did you mean 'pci_enable_msi'? [-Werror=implicit-function-declaration]
  ret = pci_enable_msix(pdev, saa716x->msix_entries, SAA716x_MSI_MAX_VECTORS);
        ^~~~~~~~~~~~~~~
        pci_enable_msi
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o] Error 1
Makefile:1552: recipe for target '_module_/root/tbs/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/root/tbs/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-15-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
root@lounge-server:~/tbs/l

Any ideas how to get past this?
andrewj720
 
Posts: 4
Joined: Fri May 30, 2014 10:39 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby steven » Mon Apr 16, 2018 9:42 am

Hi

Please have a try with older kernel first for kernle 4.15 we will add support soon

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby andreril » Tue Jun 12, 2018 6:05 pm

steven Wrote:Hi

Please have a try with older kernel first for kernle 4.15 we will add support soon

Thanks

Kind Regards

steven



also keen to understand when support for later kernels will be available?

Do you have a matrix of what driver versions are supported with what kernels?
andreril
 
Posts: 6
Joined: Tue Oct 03, 2017 7:41 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby steven » Wed Jun 13, 2018 9:13 am

Hi

Please have a try with this package :

#wget http://www.tbsdtv.com/download/document/linux/media_build-2018-05-25.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2018-05-25.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby andrewj720 » Sun Aug 05, 2018 9:02 pm

steven Wrote:Hi

Please have a try with this package :

#wget http://www.tbsdtv.com/download/document/linux/media_build-2018-05-25.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2018-05-25.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven


Thanks Steven, I will try this today.
andrewj720
 
Posts: 4
Joined: Fri May 30, 2014 10:39 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby kosacik » Mon Aug 27, 2018 2:28 pm

I tried them on Ubuntu 18.04 for TBS6982SE. Did not work with standard kernel 4.15 something, even when intstallation worked fine, drivers
does not work. (lsdvb gives nothing). Can You provide me drivers for my card too? I do not want to use old kernel. Thank you.

steven Wrote:Hi

Please have a try with this package :

#wget http://www.tbsdtv.com/download/document/linux/media_build-2018-05-25.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2018-05-25.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven
kosacik
 
Posts: 2
Joined: Sun Aug 26, 2018 4:33 am

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby rubenscg » Thu Oct 18, 2018 10:52 pm

hello,

the solucion for you,
try install drivers on ubuntu server 18.04 1 LTS with this commands:

apt-get install git
apt-get install build-essential patchutils libproc-processtable-perl linux-headers-`uname –r` git linux-source
apt-get install cmake
cd /usr/src
git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
cd media_build
uname -a
rm -rf /lib/modules/$(uname -r)/extra
rm -rf /lib/modules/$(uname -r)/kernel/drivers/media
rm -rf /lib/modules/$(uname -r)/kernel/drivers/staging/media
rm -Rf /lib/modules/4.15.0-29-generic/kernel/drivers/media
make dir DIR=../media
make remove
make clean
make dir DIR=../media
make allyesconfig
make -j4
make install
cd
reboot
dmesg | grep frontend
wget http://www.tbsdtv.com/download/document ... .0.tar.bz2
tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/

Regards
rubenscg
 
Posts: 1
Joined: Tue Oct 04, 2016 7:48 am

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby genesis74 » Fri Dec 07, 2018 2:52 pm

Hi there,

I was very happy to find this thread while having problems installing the drivers for my TBS 6281. I followed the instructions in the last post on my Ubuntu 18.04.1 system successfully, now my TBS6281 is working perfectly with tvheadend.

But: After every update of the Linux kernel the driver is gone and I have to go through the whole installation again. Is there any way to automate this?

Phil
genesis74
 
Posts: 1
Joined: Fri Dec 07, 2018 2:23 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby smf » Sat Dec 29, 2018 6:05 pm

Hi,
I am experiencing the same problems trying to make the drivers for a TBS6280 and Ubuntu 18.04. I can see the problem is due to the change in the kernel timer spec but don't have enough experience to fix it. Can anyone help please?
smf
 
Posts: 4
Joined: Fri Dec 28, 2018 10:47 pm

Re: Ubuntu 18.04 TBS 6285 driver install fails at 'make'

Postby AdamJacobs » Wed Jan 02, 2019 1:05 am

I am having a very similar problem with a TBS 6284.

I tried the link in Steven's post of 13 June, and that seems to have worked for me. However, I noticed when installing it there were all sorts of warnings about it being an experimental package and not for production use.

Should I be worried by those?

I would also love to know the answer to Phil's question of 7 December: am I going to have to reinstall them every time I update my Linux kernel? Because to be honest, that's a bit of a pain, and if there is some way round that, it would be really appreciated.

Thanks
Adam
AdamJacobs
 
Posts: 3
Joined: Sun Dec 23, 2018 6:54 pm

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests