Page 1 of 2

Cannot build drivers for Linux 5.10

PostPosted: Tue Aug 10, 2021 9:55 pm
by Chaslington
Hi,

I can successfully build the TBS drivers for kernel 5.3, but not 5.10.

My environment:

    Card: TBS6902
    Operating system: Debian 11 (Bullseye)
    Linux kernel: 5.10.0-8-amd64

When I try the following commands:

Code: Select All Code
mkdir /tmp/tbs
cd /tmp/tbs
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


I eventually get the following errors:

Code: Select All Code
ERROR: modpost: "__devm_regmap_init_sccb" [/tmp/tbs/media_build/v4l/ov9650.ko] undefined!
ERROR: modpost: "__devm_regmap_init_sccb" [/tmp/tbs/media_build/v4l/ov772x.ko] undefined!
make[4]: *** [/usr/src/linux-headers-5.10.0-8-common/scripts/Makefile.modpost:124: /tmp/tbs/media_build/v4l/Module.symvers] Error 1
make[4]: *** Deleting file '/tmp/tbs/media_build/v4l/Module.symvers'
make[3]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:1749: modules] Error 2
make[2]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:185: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-8-amd64'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/tmp/tbs/media_build/v4l'
make: *** [Makefile:26: all] Error 2


Any advice?

Thanks,
Chaslington.

Re: Cannot build drivers for Linux 5.10

PostPosted: Thu Aug 19, 2021 9:56 am
by steven
Hi Sir

Please have a try with this package :
# wget https://www.tbsdtv.com/download/document/linux/media_build-2022-04-24.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2022-04-24.tar.bz2
#cd media_build
#./install.sh
#reboot

thanks

Kind Regards

steven

Re: Cannot build drivers for Linux 5.10

PostPosted: Thu Aug 19, 2021 7:46 pm
by crazycat
Alternative media_build install in extra branch
    kernel media modules not removed, so GPU DRM modules loaded with cec and rc-core support (from initramfs)
    new media modules (CEC and RC core disabled) installed in /lib/modules/$(uname -r)/updates/extra - this priority dir for depmod

So DVB adapters work (including DVB USB), GPU DRM drivers also. Tested with Kubuntu 20.04 with 5.4, 5.8, 5.11 kernels and Debian 11 with 5.10 kernel.

P.S. Instal cmds sequence for noobs :) Most tricks in install.sh script (OV9650 and OV772X disabled)
Code: Select All Code
git clone https://github.com/tbsdtv/media_build.git -b extra
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media

cd media_build
make dir DIR=../media

./install.sh

Re: Cannot build drivers for Linux 5.10

PostPosted: Sun Oct 31, 2021 8:40 pm
by enes67
Unfortunately I have the same problem, I have Ubuntu as the operating system and wanted to install TBS 5930 firmware,
when making dir DIR = .. / media
comes this error, I think some packages are missing.


make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/tmp/tbs/media_build/v4l'
make: *** [Makefile:26: all] Error 2

Re: Cannot build drivers for Linux 5.10

PostPosted: Sun Oct 31, 2021 9:43 pm
by crazycat
./build --check-only

Re: Cannot build drivers for Linux 5.10

PostPosted: Sun Oct 31, 2021 10:07 pm
by enes67
@crazycat

Thank you first for your answer, but unfortunately I did not understand what to do. I'm totally newbie

Re: Cannot build drivers for Linux 5.10

PostPosted: Mon Nov 01, 2021 2:00 am
by crazycat
this script check required packages for building and give hint what need install

Re: Cannot build drivers for Linux 5.10

PostPosted: Wed Nov 03, 2021 10:16 pm
by enes67
Thank you for your help @crazycat
I made it with your instructions, I had to go according to these instructions beforehand.

https://github.com/tbsdtv/linux_media/w ... bianubuntu


I still have a terratec cinergy s2 0ccd: 0105 USB card, there is also loud
https://wiki.ubuntuusers.de/DVB-Karten/ no driver,
but some supposedly managed to get it going, can you help me please.

Kind regards.

Re: Cannot build drivers for Linux 5.10

PostPosted: Thu Nov 04, 2021 7:52 am
by crazycat
Cinergy S2 R4 (0ccd: 0105) supported in 5.x kernels, so you not need any media_build. See kernel log for more info - dmesg and etc,

Re: Cannot build drivers for Linux 5.10

PostPosted: Fri Jun 10, 2022 9:01 am
by Chaslington
This link doesn't work with kernel 5.16:
http://www.tbsdtv.com/download/document ... 07.tar.bz2

Do you have a download link that does? Better still, could you provide a link that lists all possible media_build-{DATE}.tar.bz2 files so I don't need to keep asking?

Thanks.