Moderator Control Panel ]

Cannot build drivers for Linux 5.10

It's important to keep your driver and software updated.

Cannot build drivers for Linux 5.10

Postby Chaslington » Tue Aug 10, 2021 9:55 pm

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.
Chaslington
 
Posts: 2
Joined: Fri May 07, 2021 4:25 am

Re: Cannot build drivers for Linux 5.10

Postby steven » Thu Aug 19, 2021 9:56 am

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
steven
 
Posts: 2244
Joined: Fri Aug 06, 2010 3:23 pm

Re: Cannot build drivers for Linux 5.10

Postby crazycat » Thu Aug 19, 2021 7:46 pm

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
crazycat
 
Posts: 565
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Cannot build drivers for Linux 5.10

Postby enes67 » Sun Oct 31, 2021 8:40 pm

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
enes67
 
Posts: 4
Joined: Sat Oct 23, 2021 8:17 pm

Re: Cannot build drivers for Linux 5.10

Postby crazycat » Sun Oct 31, 2021 9:43 pm

./build --check-only
crazycat
 
Posts: 565
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Cannot build drivers for Linux 5.10

Postby enes67 » Sun Oct 31, 2021 10:07 pm

@crazycat

Thank you first for your answer, but unfortunately I did not understand what to do. I'm totally newbie
enes67
 
Posts: 4
Joined: Sat Oct 23, 2021 8:17 pm

Re: Cannot build drivers for Linux 5.10

Postby crazycat » Mon Nov 01, 2021 2:00 am

this script check required packages for building and give hint what need install
crazycat
 
Posts: 565
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Cannot build drivers for Linux 5.10

Postby enes67 » Wed Nov 03, 2021 10:16 pm

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.
enes67
 
Posts: 4
Joined: Sat Oct 23, 2021 8:17 pm

Re: Cannot build drivers for Linux 5.10

Postby crazycat » Thu Nov 04, 2021 7:52 am

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,
crazycat
 
Posts: 565
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Cannot build drivers for Linux 5.10

Postby Chaslington » Fri Jun 10, 2022 9:01 am

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.
Chaslington
 
Posts: 2
Joined: Fri May 07, 2021 4:25 am

Next

Return to Driver & Software Update

Who is online

Users browsing this forum: No registered users and 4 guests