Page 1 of 1

Ubuntu 20.04 driver not compile

PostPosted: Mon Apr 20, 2020 7:03 am
by walopower
I am installed driver before many times to earlier ubuntus.
I have linux headers and sources installed.
Error is:

Kernel build directory is /lib/modules/5.4.0-24-generic/build
make -C /lib/modules/5.4.0-24-generic/build SUBDIRS=/home/i/DVB-drivers/close/linux-tbs-drivers/v4l modules
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-24-generic'
make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'. Seis.
make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-24-generic'
make[1]: *** [Makefile:52: default] Virhe 2
make[1]: Poistutaan hakemistosta ā€/home/i/DVB-drivers/close/linux-tbs-drivers/v4lā€
make: *** [Makefile:26: all] Virhe 2

Open source driver is same error.

Re: Ubuntu 20.04 driver not compile

PostPosted: Mon Apr 20, 2020 9:15 am
by zhangchao
hi ,
please write email to jack@tbsdtv.com .
please add skype jack_2431 .
best regards!

Re: Ubuntu 20.04 driver not compile

PostPosted: Wed May 06, 2020 6:51 pm
by andreril
Hi , I was able to get mine loaded using the opensource drivers. The v17 TBS ones didn't work wiht the same error as walopower listed.

using a TurboSight TBS 6285 DVB-T/T2/C and Ubuntu 20.04

Linux dockerbox2 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x8>

63 sudo apt install linux-headers-$(uname-r)
65 sudo make && make install
66 sudo apt install build-essential

git clone https://github.com/tbsdtv/media_build.git

94 ls
95 cd media_build/
96 ls
97 ./build il
98 sudo install lsdiff
99 sudo apt install lsdiff
100 sudo apt install patchutils libproc-processtable-perl
102 ./build
103 sudo make install
104 sudo make rmmod
105 sudo modprobe saa716x_tbs-dvb
106 lspci

01:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02)


107 sudo shutdown now -r
108 lspci

01:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02)

110 dmesg | grep frontend

serveradmin@dockerbox2:~/tvheadend$ dmesg | grep frontend
[ 4.246029] SAA716x Budget 0000:01:00.0: DVB: registering adapter 0 frontend 0 (TurboSight >
[ 4.262033] SAA716x Budget 0000:01:00.0: DVB: registering adapter 1 frontend 0 (TurboSight >
[ 4.270868] SAA716x Budget 0000:01:00.0: DVB: registering adapter 2 frontend 0 (TurboSight >
[ 4.280521] SAA716x Budget 0000:01:00.0: DVB: registering adapter 3 frontend 0 (TurboSight >
serveradmin@dockerbox2:~/tvheadend$

111 ls /dev/dvb/

serveradmin@dockerbox2:~/tvheadend$ ls /dev/dvb/
adapter0 adapter1 adapter2 adapter3

Re: Ubuntu 20.04 driver not compile

PostPosted: Thu May 07, 2020 9:35 am
by steven
good thanks for your update

Re: Ubuntu 20.04 driver not compile

PostPosted: Sun Oct 25, 2020 5:53 pm
by andreril
Seems my previous recommendations has failed again with the Kernel upgrade and not loading the module

uname -r
5.4.0-52-generic

lspci | grep "SAA"
01:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02)

sudo modprobe saa716x_tbs-dvb
modprobe: FATAL: Module saa716x_tbs-dvb not found in directory /lib/modules/5.4.0-52-generic

Anyone solved this recently?

Re: Ubuntu 20.04 driver not compile

PostPosted: Mon Oct 26, 2020 6:17 am
by andreril
Updated my script and it's working

#!/bin/bash

#install compile essentials
sudo apt --yes install linux-headers-$(uname -r)
sudo apt --yes install build-essential
sudo apt --yes install patchutils libproc-processtable-perl
sudo apt --yes install dvb-apps
# add --allow-unauthenticated if failing gpg signature check

#download firmware
wget http://www.tbsdtv.com/download/document ... .0.tar.bz2
sudo tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/

#new build
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
make dir DIR=../media
make allyesconfig
make -j4
sudo make install

#build and make tbs opensource drivers
sudo make rmmod
sudo modprobe saa716x_tbs-dvb
lspci
dmesg | grep frontend

#load "saa716x_tbs-dvb" modules
echo saa716x_tbs-dvb | sudo tee /etc/modules-load.d/tbs.conf

#install dvb-apps
sudo apt --yes install dvb-apps
sudo lsdvb

sudo reboot

Re: Ubuntu 20.04 driver not compile

PostPosted: Sun Jan 30, 2022 11:40 pm
by vrm42z
Hi,

I was able to install my 6281SE card using the above script, it works almost fine.
The only issue is the second tuner doesn't work. It worked fine under Windows before.
Do I have to do anything else to enable the second tuner?

lsdvb output is:
TBSECP3 driver (544:6178 6281:2) on PCI Domain:0 Bus:1 Device:0 Function:0
DEVICE:0 ADAPTER:0 ERROR: Open frontend0 failed

dotnet /opt/nextpvr/system/NScriptHelper.dll -status:
<Status>
<Device oid="24" identifier="adapter0/frontend0 (TurboSight TBS 6281SE DVB-T/T2/C )">
</Device>
<Device oid="22" identifier="adapter1/frontend0 (TurboSight TBS 6281SE DVB-T/T2/C )">
</Device>
</Status>

Any idea?
Thanks!

Re: Ubuntu 20.04 driver not compile

PostPosted: Tue Feb 08, 2022 2:46 pm
by steven
Hi Sir

Can you check again in windows check whether is ok

Thanks

Kind Regards

steven

Re: Ubuntu 20.04 driver not compile

PostPosted: Fri Feb 25, 2022 6:48 am
by mrg83