Moderator Control Panel ]

Make step fails using Open Source Linux Driver process

Make step fails using Open Source Linux Driver process

Postby BlueSkyThinking » Fri Nov 29, 2024 3:21 am

Hi team

Can somebody advise me please
TBS card 6590

environment:
Ubuntu: 5.15.0-126-generic
Nvidia graphics card

I use the below established compile process:
Open Source Linux Driver

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
sed -i -r 's/(^CONFIG.*_RC.*=)./\1n/g' v4l/.config
sed -i -r 's/(^CONFIG.*_IR.*=)./\1n/g' v4l/.config
make -j4
sudo make install
reboot

problem:
Make process does not end as expected. It ends by closing the desktop window and then logging the user off.
This takes some considerable time which shows a intensified disk activity.

This is the case for 5.15.0-126-generic and 5.15.0-125-generic
Last one that compiled successfully is: 5.15.0-124-generic
The step where it fails is around these CC statements:
CC [M] /home/rpq/TbsDriverPost1804/20241124/media_build/v4l/solo6x10-gpio.o
CC [M] /home/rpq/TbsDriverPost1804/20241124/media_build/v4l/solo6x10-disp.o
CC [M] /home/rpq/TbsDriverPost1804/20241124/media_build/v4l/solo6x10-enc.o
CC [M] /home/rpq/TbsDriverPost1804/20241124/media_build/v4l/solo6x10-v4l2-enc.o

There are no preceding errors or warning - it all looks very similar to the times I had a successful make process.

In the searches to find a solution I stumbled across this link: https://github.com/tbsdtv/linux_media/issues/353
It relates to raspberry but the module where it fails is the same. Grasping at any possible hint I followed the suggestion made.
Disable CONFIG_VIDEO_SOLO6X10 in v4l/.config
In the posts that follow I understand that you put a "#" in front of that line in the .config file.
This file is in the .../media_build/v4l folder.
However my make process still fails in the same way.

I would not want to retry to make the drivers under the 5.15.0-124-generic kernel, since upon failure
that would throw my working set of drivers away.

Can somebody advise that indeed the solo6x10 is the element that causes this failure and then advise how to disable it
in the .config file, and at what step in the compile process.

Thanks for your help in advance.
BlueSkyThinking
 
Posts: 9
Joined: Sun Nov 11, 2018 8:59 pm

Re: Make step fails using Open Source Linux Driver process

Postby smile » Fri Nov 29, 2024 10:03 am

hello
please try the offline package.

wget https://www.tbsiptv.com/download/common ... 240829.zip
unzip tbs-open-linux-drivers_v20240829.zip

and then follow the readme.txt to install the drivers.
smile
 
Posts: 181
Joined: Sun Oct 09, 2011 9:51 am

Re: Make step fails using Open Source Linux Driver process

Postby BlueSkyThinking » Sun Dec 01, 2024 9:07 pm

Reporting back on the suggestion.

please try the offline package.

I started with literally following what is in the readme.txt file
kicked of the install.sh file and I piped the terminal output to a file as well.
I did notice that the first few lines seemed to indicate some issues with permissions.
The file that I took registering the terminal output mentioned this.

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
The text leading up to this was:

The rest of the process in the main followed as I would expect but unfortunately it stopped in the same way at the solo6x10.

Lines below are the last before it stopped:
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.o
/home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.c: In function 'tbsci_i2c_write':
/home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.c:51:9: warning: ISO C90 forbids variable length array 'buf' [-Wvla]
51 | unsigned char buf[len + 1];
| ^~~~~~~~
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/saa716x_hybrid.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-core.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-i2c.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-p2m.o

Again same as before intense disk activity and closing all open terminal windows.
Given the permission issues I also ran the install.sh with sudo.
Indeed the permission items at the top disappeared but the result unfortunately remained the same.
last lines of the script before it stopped with the same symptoms heavy disk activity and closing windows.

CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.o
/home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.c: In function 'tbsci_i2c_write':
/home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/tbs-ci.c:51:9: warning: ISO C90 forbids variable length array 'buf' [-Wvla]
51 | unsigned char buf[len + 1];
| ^~~~~~~~
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/saa716x_hybrid.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-core.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-i2c.o
CC [M] /home/rpq/TbsDriverPost1804/20241130/tbs-open-linux-drivers_v20240829/media_build/v4l/solo6x10-p2m.o

I did however relook at disabling the solo6x10 in the .config file in the .../media_build/v4l folder.
Examining what the two sed statements do with RC and IR I worked out that these modules are not commented out but set from =m to =n.

Tried this on the only solo entry I could find and that worked.

I reverted back on using the Open Source Linux Driver, where the steps of the sed happen I also moved solo from =m to =n.
All further steps worked as I would expect and the compile and make install generated a set of working drivers for my 6590 using ubuntu 5.15.0-126-generic.
Not sure why the solo driver causes this issue and whether that can be fixed so that I can use the unaltered process for building the Open Source Linux Driver.

Hoping this helps a few other users....
BlueSkyThinking
 
Posts: 9
Joined: Sun Nov 11, 2018 8:59 pm


Return to TBS6590 Multi Standard Dual Tuner Dual CI PCI-e Card

Who is online

Users browsing this forum: No registered users and 2 guests