I can't install drivers on Ubuntu
- Code: Select All Code
uname -a
Linux ubuntec 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
I always get this error when i run "make -j4":
- Code: Select All Code
make[2]: Entering directory '/usr/src/linux-headers-6.8.0-51-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] /home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.o
LD [M] /home/user/Downloads/tbsdrivers/media_build/v4l/cx25840.o
CC [M] /home/user/Downloads/tbsdrivers/media_build/v4l/dw9714.o
CC [M] /home/user/Downloads/tbsdrivers/media_build/v4l/dw9768.o
CC [M] /home/user/Downloads/tbsdrivers/media_build/v4l/dw9807-vcm.o
/home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.c: In function 'ccs_set_ctrl':
/home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.c:668:21: error: too many arguments to function 'pm_runtime_get_if_active'
668 | pm_status = pm_runtime_get_if_active(&client->dev, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.c:22:
./include/linux/pm_runtime.h:75:12: note: declared here
75 | extern int pm_runtime_get_if_active(struct device *dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [scripts/Makefile.build:243: /home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.o] Error 1
make[4]: *** Se espera a que terminen otras tareas....
make[3]: *** [/usr/src/linux-headers-6.8.0-51-generic/Makefile:1925: /home/user/Downloads/tbsdrivers/media_build/v4l] Error 2
make[2]: *** [Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.8.0-51-generic'
make[1]: *** [Makefile:53: default] Error 2
make[1]: se sale del directorio '/home/user/Downloads/tbsdrivers/media_build/v4l'
make: *** [Makefile:26: all] Error 2
I have to try to edit the file "/home/user/Downloads/tbsdrivers/media_build/v4l/ccs-core.c" and change the call of the function "pm_runtime_get_if_active(&client->dev, true);" by "pm_runtime_get_if_active(&client->dev);"
But when i run the command "make -j4" the "pm_runtime_get_if_active(&client->dev, true);" is coming back and get the same error again...
I am desesperate... Please, help me, i can't run my tbs moi pro amd

Thanks you very much in advance