Thanks Etienne, it works now and I don’t know what changes where responsible for it.
My yocto dunnfell installation had the drivers compiled and copied to many places. I thought this would be normal and after many unsuccessfull builts I only looked fort he compiled files oft he drivers. Scarthgap seemed to be different and I found only one driver using find tmp/work -name my_driver.ko, the drivers are packed now and I should have used tmp/work -name my_driver.ko.* instead. Now I got a working built with the drivers included. Thanks for your help Von: Etienne Cordonnier <ecordonn...@snap.com> Gesendet: Dienstag, 16. Juli 2024 16:38 An: yocto@lists.yoctoproject.org; Gerd Kautzmann <g.kautzm...@primes.de> Betreff: Re: [yocto] kernel modules Hi Gerd, as far as I know, this should work exactly the same way in Dunfell and Scarthgap. You should perform the usual checks to debug the issue: - double-check that your image depends on the kernel modules using bitbake -g core-image-minimal (if not use bitbake -e to check if something is maybe modifying IMAGE_INSTALL, etc.) - try bitbake -c clean sstate hello && bitbake hello to see if this populates the sysroot - if everything else, keep the downloads directory and rm -rf the rest, then build core-image-minimal again Étienne On Tue, Jul 16, 2024 at 3:00 PM Gerd Kautzmann via lists.yoctoproject.org<http://lists.yoctoproject.org> <G.Kautzmann=primes...@lists.yoctoproject.org<mailto:primes...@lists.yoctoproject.org>> wrote: Hello ML members, I used to include some drivers for a camera chip for RaspberryPi4 in Yocto dunfell. Now I’m trying the same under Yicto Scarthgap but it doesn’t work. dunfell --------- find tmp/work -name my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/lib/modules/5.4.72-v7l/extra/my_driver/my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0-r0/my_driver/my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0-r0/sysroot-destdir/lib/modules/5.4.72-v7l/extra/my_driver/my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0-r0/image/lib/modules/5.4.72-v7l/extra/my_driver/my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0-r0/package/lib/modules/5.4.72-v7l/extra/my_driver/my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0-r0/packages-split/kernel-module-vc-mipi-common-5.4.72-v7l/lib/modules/5.4.72-v7l/extra/my_driver/my_driver.ko The kernel modules are compiled but they are never transferred or installed in the image scarthgap ------------ find tmp/work -name my_driver.ko tmp/work/raspberrypi4-poky-linux-gnueabi/hello-mod/1.0/my_driver/my_driver.ko Under dunfell I used an expanded core-image-minimal for my system: ------------ cat meta/recipes-core/images/core-image-minimal.bb<http://core-image-minimal.bb> SUMMARY = "Small image with own kernel module" IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}" IMAGE_INSTALL += "kernel-modules v4l-utils hello-mod hello autoconf" IMAGE_INSTALL += "libgpiod" KERNEL_MODULE_AUTOLOAD += "hello" … ------------ I tried different changes on my conf/local.conf without any changes. I built with: bitbake core-image-minimal -c cleanall bitbake core-image-minimal But nothing changed. PRIMES GmbH Max-Planck-Str. 2 64319 Pfungstadt Germany T +49 6157 9878 0 CEO: Dr.-Ing. Reinhard Kramer, Dr. rer. nat. Thomas Umschlag Local Court: Darmstadt HRB 5134 g.kautzm...@primes.de<mailto:g.kautzm...@primes.de> www.primes.de<http://www.primes.de>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63521): https://lists.yoctoproject.org/g/yocto/message/63521 Mute This Topic: https://lists.yoctoproject.org/mt/107251140/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-