tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
169 stars 79 forks source link

kernel build failed in ubuntu 20.04 with kernel 5.10.4 #227

Closed ahmhoseini closed 3 years ago

ahmhoseini commented 3 years ago

Hello,

I've pulled latest code from repository. I've disabled ov9650 in menuconfig and I can not find anything remotely similar to via-camera in 5.10.4 .config file. any suggestions?

my kernel build fails with following errors:

MODPOST /home/ali/utv-scripts/build/media_build/v4l/Module.symvers ERROR: modpost: "viafb_release_dma" [/home/ali/utv-scripts/build/media_build/v4l/via-camera.ko] undefined! ERROR: modpost: "viafb_request_dma" [/home/ali/utv-scripts/build/media_build/v4l/via-camera.ko] undefined! ERROR: modpost: "viafb_dma_copy_out_sg" [/home/ali/utv-scripts/build/media_build/v4l/via-camera.ko] undefined! ERROR: modpost: "devm_regmap_init_sccb" [/home/ali/utv-scripts/build/media_build/v4l/ov9650.ko] undefined! make[3]: [scripts/Makefile.modpost:111: /home/ali/utv-scripts/build/media_build/v4l/Module.symvers] Error 1 make[3]: Deleting file '/home/ali/utv-scripts/build/media_build/v4l/Module.symvers' make[3]: Target 'modpost' not remade because of errors. make[2]: [Makefile:1709: modules] Error 2 make[2]: Leaving directory '/home/ali/utv-scripts/build/linux-5.10.4' make[1]: [Makefile:53: default] Error 2 make[1]: Leaving directory '/home/ali/utv-scripts/build/media_build/v4l' make: *** [Makefile:26: all] Error 2

ahmhoseini commented 3 years ago

I'm documenting the result I've found. If (Device Drivers > Multimedia support > Media drivers > V4L platform devices) and under it (VIAFB camera controller support) is not selected, then CONFIG_VIDEO_VIA_CAMERA is not even exist in kernel config file and could not be searched in make menuconfig. That was the reason I was unable to find anything about via-camera module. After enabling said options and recompiling kernel modules, via-camera module built, and then TBS drivers compiled successfully.