Moderator Control Panel ]

Issue while building driver on latest Ubuntu

Issue while building driver on latest Ubuntu

Postby gferry » Wed Jan 25, 2012 12:34 am

Hi everyone,

We've recently bought 2 TBS cards : a TBS 6984 (which works perfectly), and of course, a TBS 6284, which causes me some troubles.
I've been downloading the very last version of TBS drivers, and the compilation process stops, according to the following trace :

*********** MESSAGE **************
CC [M] /root/dev/linux-tbs-drivers/v4l/cx25840-vbi.o
CC [M] /root/dev/linux-tbs-drivers/v4l/cx25840-ir.o
CC [M] /root/dev/linux-tbs-drivers/v4l/cx88-dvb.o
make[3]: *** Pas de règle pour fabriquer la cible « /root/dev/linux-tbs-drivers/v4l/tbs8921ctrl.o », nécessaire pour « /root/dev/linux-tbs-drivers/v4l/media.o ». Arrêt.
make[2]: *** [_module_/root/dev/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.0.0-15-generic-pae'
make[1]: *** [default] Erreur 2
make[1]: quittant le répertoire « /root/dev/linux-tbs-drivers/v4l »

************ /MESSAGE *************

Here's my kernel version : Linux 3.0.0-15-generic-pae
I have latest headers & full kernel source installed.
Could it be too recent, or maybe the PAE is messing the things up here ?

Thanks in advance for your insights,
Best regards.

Guillaume.
gferry
 
Posts: 3
Joined: Wed Jan 25, 2012 12:28 am

Re: Issue while building driver on latest Ubuntu

Postby gferry » Wed Jan 25, 2012 3:28 pm

Ok, I found out how to overcome this issue.
In latest Ubuntu (11.10), and latest Linux kernel, for some reason, many source files are being compiled into multiple binary targets (.o files), and suffixed with specific architecture tag (x86, x86_r3, x86_64, ...).

The trick is simply to remove these suffixes (be sure to pick the version that matches your current architecture).
With some little shell scripting, it can be done quickly.
After this (many files need to be renamed), make runs smoothly, attempting some reboot & test with MythTV now :)

Regards,
Guillaume.
gferry
 
Posts: 3
Joined: Wed Jan 25, 2012 12:28 am

Re: Issue while building driver on latest Ubuntu

Postby SergioDanielG » Sun Jan 29, 2012 12:19 am

gferry Wrote:Ok, I found out how to overcome this issue.
In latest Ubuntu (11.10), and latest Linux kernel, for some reason, many source files are being compiled into multiple binary targets (.o files), and suffixed with specific architecture tag (x86, x86_r3, x86_64, ...).

The trick is simply to remove these suffixes (be sure to pick the version that matches your current architecture).
With some little shell scripting, it can be done quickly.
After this (many files need to be renamed), make runs smoothly, attempting some reboot & test with MythTV now :)

Regards,
Guillaume.


But there are a script with the driver to do that
v4l/tbs-x86_64.sh for 64 bits machines
v4l/tbs-x86_r3.sh for 32 bits machines with kernel >= 3.0.0
v4l/tbs-x86.sh for for 32 bits machines with kernel 2.6.*

Best regards
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest