Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors on Debian with backported Kernel 5.10/5.9 on x64 #239

Open
bistory opened this issue Apr 8, 2021 · 7 comments
Open

Comments

@bistory
Copy link

bistory commented Apr 8, 2021

Hi !

I'm using Debian for a while and compiling TBS drivers was usually fine but since 5.9 is released, I'm not able to compile it successfully...
Here are the errors I get :

ERROR: modpost: "__devm_regmap_init_sccb" [/usr/src/media_build/v4l/ov772x.ko] undefined!
make[4]: *** [/usr/src/linux-headers-5.10.0-0.bpo.4-common/scripts/Makefile.modpost:111: /usr/src/media_build/v4l/Module.symvers] Error 1
make[4]: *** Deleting file '/usr/src/media_build/v4l/Module.symvers'
make[3]: *** [/usr/src/linux-headers-5.10.0-0.bpo.4-common/Makefile:1717: modules] Error 2
make[2]: *** [/usr/src/linux-headers-5.10.0-0.bpo.4-common/Makefile:185: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-0.bpo.4-amd64'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/usr/src/media_build/v4l'
make: *** [Makefile:26: all] Error 2

Kernel versions : 5.10.0-0.bpo.4-amd64 and 5.9.0-0.bpo.5-amd64
Debian 10 (Buster) with backports enabled

Thanks for your help !

@bistory bistory changed the title Compilation errors on Debian with backported Kernel 5.10 Compilation errors on Debian with backported Kernel 5.10/5.9 Apr 13, 2021
@bistory bistory changed the title Compilation errors on Debian with backported Kernel 5.10/5.9 Compilation errors on Debian with backported Kernel 5.10/5.9 on x64 Apr 13, 2021
@bistory
Copy link
Author

bistory commented Apr 26, 2021

Tested with latest commits but it still fails with the same error...

@bistory
Copy link
Author

bistory commented May 3, 2021

Ok I found a solution, in your media_build folder, after doing make allyesconfig, edit the file "v4l/.config"

Find these lines and disable the modules (by putting =n instead of =m)

CONFIG_VIDEO_RDACM20=m
CONFIG_VIDEO_OV9650=m
CONFIG_VIDEO_OV772X=m

@crazycat69
Copy link

you can use menu-based console setup make menuconfig

@bistory
Copy link
Author

bistory commented May 3, 2021

@crazycat69 unfortunately, I tried menuconfig but it doesn't work, ncurses is installed so I don't know why

@crazycat69
Copy link

some errors while parsing Kconfigs ?

@bistory
Copy link
Author

bistory commented May 5, 2021

@crazycat69 here is the error I get

# make menuconfig
make -C /usr/src/media_build/v4l menuconfig
make[1]: Entering directory '/usr/src/media_build/v4l'
make -C /lib/modules/5.10.0-0.bpo.5-amd64/build -f /usr/src/media_build/v4l/Makefile.kernel config-targets=1 mixed-targets=0 dot-config=0 SRCDIR=/lib/modules/5.10.0-0.bpo.5-amd64/source v4l-mconf
make[2]: Entering directory '/usr/src/linux-headers-5.10.0-0.bpo.5-amd64'
/usr/src/media_build/v4l/Makefile.kernel:39: warning: overriding recipe for target 'v4l-mconf'
/lib/modules/5.10.0-0.bpo.5-amd64/source/Makefile:181: warning: ignoring old recipe for target 'v4l-mconf'
make[2]: *** No rule to make target 'scripts_basic', needed by 'v4l-mconf'.  Stop.
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-0.bpo.5-amd64'
make[1]: *** [Makefile:387: /lib/modules/5.10.0-0.bpo.5-amd64/build/scripts/kconfig/mconf] Error 2
make[1]: Leaving directory '/usr/src/media_build/v4l'
make: *** [Makefile:26: menuconfig] Error 2

@crazycat69
Copy link

Look like some Debian specific issue. Ubuntu work ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants