Moderator Control Panel ]

Impossible to compile drivers in Ubuntu

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

Re: Impossible to compile drivers in Ubuntu

Postby BlueSky » Wed Feb 26, 2025 4:01 am

crazycat Wrote:You have already cloned media_build and media. You can update this cloned repos, compile and install:

Code: Select All Code
~ $ cd media
~/media $ git remote update
~/media $ git pull
~/media $ cd ../media_build
~/media_build $ git remote update
~/media_build $ git pull
~/media_build $ ./install.sh


Huh? Now I am REALLY confused. Those are completely different instructions from what SPiKeGoD gave above. Is there no longer a need to "comment the line #add v6.8-ccs.patch" in backports/backports.txt, or run those two sed commands? Those were the instructions that worked for me.

Of course I am assuming that when you do

Code: Select All Code
~/media $ git remote update
~/media $ git pull


(shown twice in what you posted) that is going out to the internet to update the cloned repos, and that is exactly what I am trying to avoid. Whenever there is a kernel update, I just want to be able to run a script that will rebuild the drivers without depending on the availability of git, so that if the Internet goes down between the time the kernel finishes updating and the time I attempt to rebuild the drivers I'm not left with non-functional tuner cards. I am NOT a Linux expert at all, so it is really confusing to me when I see different instructions for doing something and one shows you have to do modifications or patches and another seems to take a different approach.

Just so you know, my /usr/src/media_build/install.sh file contains this:

Code: Select All Code
#!/bin/bash

# Enable some staging drivers
make stagingconfig

# Disable RC/IR support
sed -i -r 's/(^CONFIG.*_RC.*=)./\1n/g' v4l/.config
sed -i -r 's/(^CONFIG.*_IR.*=)./\1n/g' v4l/.config

echo "V4L drivers building..."
make -j$(nproc)

echo "V4L drivers installing..."
sudo rm -r -f /lib/modules/$(uname -r)/updates/extra

sudo make install

echo "V4L drivers installation done"
echo "You need to reboot..."
BlueSky
 
Posts: 33
Joined: Sat Nov 08, 2014 12:46 pm

Re: Impossible to compile drivers in Ubuntu

Postby SPiKeGoD » Thu Feb 27, 2025 2:43 am

I have to recompile the drivers (ubuntu)

Before this time it was well, but now I get an error always in that line:

CC [M] /root/tbsdrivers/media_build/v4l/solo6x10-v4l2-enc.o

gcc-13: fatal error: Killed signal terminated program cc1
compilation terminated.
make[4]: *** [scripts/Makefile.build:243: /root/tbsdrivers/media_build/v4l/solo6x10-core.o] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc-13: fatal error: Killed signal terminated program cc1
compilation terminated.
make[4]: *** [scripts/Makefile.build:243: /root/tbsdrivers/media_build/v4l/solo6x10-v4l2-enc.o] Error 1

Any idea to solve it?

I tried to comment on v4l/.config the line "CONFIG_VIDEO_SOLO6X10=m" with # and then launch the "make -j" but the same error :(

Please, help me. Thanks you very much in advance
SPiKeGoD
 
Posts: 26
Joined: Wed Mar 29, 2017 2:44 am

Re: Impossible to compile drivers in Ubuntu

Postby crazycat » Thu Feb 27, 2025 11:54 pm

4Gb RAM and no swap ?
crazycat
 
Posts: 586
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Impossible to compile drivers in Ubuntu

Postby SPiKeGoD » Fri Feb 28, 2025 12:00 am

crazycat Wrote:4Gb RAM and no swap ?


It's a TBS2951:

Code: Select All Code
root@tbs2951:~# df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              338M  1.7M  336M   1% /run
efivarfs                           128K   94K   30K  77% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv   26G   16G  9.7G  62% /
tmpfs                              1.7G     0  1.7G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
/dev/sda1                          916G   72G  798G   9% /mnt/hdd
/dev/sdb2                          2.0G  186M  1.7G  11% /boot
/dev/sdb1                          1.1G  6.2M  1.1G   1% /boot/efi
tmpfs                              338M   16K  338M   1% /run/user/1000



Code: Select All Code
root@tbs2951:~# free
               total        used        free      shared  buff/cache   available
Mem:         3455280     1213572     1191088        1680     1303216     2241708
Swap:        2662396           0     2662396



Code: Select All Code
root@tbs2951:~# vmstat -s
      3455280 K total memory
      1229872 K used memory
      1071080 K active memory
       853364 K inactive memory
      1174380 K free memory
       112128 K buffer memory
      1191508 K swap cache
      2662396 K total swap
            0 K used swap
      2662396 K free swap
       349374 non-nice user cpu ticks
         1079 nice user cpu ticks
        75603 system cpu ticks
     21840412 idle cpu ticks
        52011 IO-wait cpu ticks
            0 IRQ cpu ticks
         8609 softirq cpu ticks
            0 stolen cpu ticks
            0 non-nice guest cpu ticks
            0 nice guest cpu ticks
       911262 K paged in
       845097 K paged out
            0 pages swapped in
            0 pages swapped out
     43127415 interrupts
     40225115 CPU context switches
   1740616047 boot time
        11494 forks
SPiKeGoD
 
Posts: 26
Joined: Wed Mar 29, 2017 2:44 am

Re: Impossible to compile drivers in Ubuntu

Postby crazycat » Fri Feb 28, 2025 5:00 am

Some internal gcc compiler bugs in ubuntu 24.xx. Maybe related to 6.x non-LTS kernel. Try run make on single CPU core (without -j option)

P.S. I recomend use Ubuntu 20.04 or 22.04 with stable LTS kernels (5.4, 5.15).
crazycat
 
Posts: 586
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Impossible to compile drivers in Ubuntu

Postby SPiKeGoD » Fri Feb 28, 2025 5:15 am

crazycat Wrote:Some internal gcc compiler bugs in ubuntu 24.xx. Maybe related to 6.x non-LTS kernel. Try run make on single CPU core (without -j option)

P.S. I recomend use Ubuntu 20.04 or 22.04 with stable LTS kernels (5.4, 5.15).


This is my ubuntu version:

root@tbs2951:~$ uname -a
Linux tbs2951 6.8.0-54-generic #56-Ubuntu SMP PREEMPT_DYNAMIC Sat Feb 8 00:37:57 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux


I don't know if i understand well your solution. Do you say that i have to change the step "make -j4" by only "make" ?
SPiKeGoD
 
Posts: 26
Joined: Wed Mar 29, 2017 2:44 am

Re: Impossible to compile drivers in Ubuntu

Postby crazycat » Sat Mar 01, 2025 12:58 am

yes
crazycat
 
Posts: 586
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkiv

Re: Impossible to compile drivers in Ubuntu

Postby SPiKeGoD » Sat Mar 01, 2025 1:01 am

crazycat Wrote:yes


Ok, thanks you very much
SPiKeGoD
 
Posts: 26
Joined: Wed Mar 29, 2017 2:44 am

Re: Impossible to compile drivers in Ubuntu

Postby Drifting » Thu Mar 13, 2025 2:27 am

I have had a long standing issue even trying to install the driver.

First attempt the drivers were installed, but nothing would tune. I have since moved the card over to a Windows machine, and the 6281SE is working fine.

So clean install of the latest Ubuntu, and followed the instructions for installing from the TBS drivers documentation. Please bear with me as I am partially sighted and takes me three times longer to do anything.
However I got to this part, and I am at a complete loss? :-

make dir DIR=../media
make -C linux/ dir DIR="../../media"
make[1]: Entering directory '/home/paul/tbsdriver/media_build/linux'
rm -rf drivers include sound mm .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
/bin/sh: 1: lsdiff: not found
make[1]: *** [Makefile:124: dir] Error 127
make[1]: Leaving directory '/home/paul/tbsdriver/media_build/linux'
make: *** [Makefile:32: dir] Error 2

Any help welcome, I am totally confused as to what instructions to follow. Is there a difinitive version somewhere?

Kindest regards

Paul.
Drifting
 
Posts: 16
Joined: Fri Jul 15, 2011 9:07 pm

Re: Impossible to compile drivers in Ubuntu

Postby DVB » Thu Mar 13, 2025 2:50 am

Drifting Wrote:/bin/sh: 1: lsdiff: not found

Run command:
Code: Select All Code
sudo apt-get install patchutils

Then try again.
And now you're watching 8K:
KKKKKKKK
:)
DVB
 
Posts: 181
Joined: Sun Apr 17, 2011 8:02 am

Previous

Return to Driver & Software Update

Who is online

Users browsing this forum: No registered users and 4 guests