Building #kernelmodule s, move from #kirkstone to #scarthgap but no RPMs created.
Hi,
I'm looking now already for a couple of weeks for a solution for this problem.
In our system we have a recipe which loads from an GIT server our driver packet which contains some HW specific drivers which shall be used as kernel modules. For this purpose we have our own do_configure(), do_compile(), do_install().
Building to *.ko files still works fine, and I can see them in the image/ and package/ folder
kirkstone:
- image/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
- package/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
scarthgap:
- image/lib/modules/6.6.35-rt31-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
- package/lib/modules/6.6.35-rt31-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
But in kirkstone also something is created in packes-split/ and deploy-rpms/ folders (and also in some others like pkgdata* and target/OBJ ):
- packages-split/kernel-module-men-bb-chameleon-pcitbl-5.15.150-rt72-yocto-preempt-rt/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pci
- deploy-rpms/f75p/kernel-module-men-bb-chameleon-pcitbl-5.15.150-rt72-yocto-preempt-rt-1.0-r0.f75p.rpm
This is not the case for the scarthgap build.
So I guess something is missing in my recipe to get the build in scarthgap successful and to get a *.rpm file for every of my driver kernel-modules.
Happy for every hint :-)
Thx,
Markus
Markus via lists.yoctoproject.org schrieb am Di 13. Aug, 23:58 (GMT):
Quoted 9 lines
Building to *.ko files still works fine, and I can see them in the image/ and package/ folder
kirkstone:
-
image/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
-package/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.koscarthgap:
Quoted 7 lines
-
image/lib/modules/6.6.35-rt31-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.ko
-package/lib/modules/6.6.35-rt31-yocto-preempt-rt/misc/men_bb_chameleon_pcitbl.koBut in kirkstone also something is created in packes-split/ and deploy-rpms/ folders (and also in some others like pkgdata* and target/OBJ ):
- packages-split/kernel-module-men-bb-chameleon-pcitbl-5.15.150-rt72-yocto-preempt-rt/lib/modules/5.15.150-rt72-yocto-preempt-rt/misc/men_bb_chameleon_pci
- deploy-rpms/f75p/kernel-module-men-bb-chameleon-pcitbl-5.15.150-rt72-yocto-preempt-rt-1.0-r0.f75p.rpm
Only a wild guess: Can you check if your recipe inherits *kernel-module-split*?
https://docs.yoctoproject.org/dev/ref-manual/classes.html#kernel-module-split
Regards Jörg
Signature · 6 lines
Navimatix GmbH T: 03641 - 327 99 0 Tatzendpromenade 2 F: 03641 - 526 306 07745 Jena www.navimatix.de Geschäftsführer: Steffen Späthe, Jan Rommeley Registergericht: Amtsgericht Jena, HRB 501480
Hello Jörg,
I have already an inherit moduleon top of my recipe. I also tried to extend this like inherit module kernel-module-split and also inherit module-base kernel-module-split but from documentation I can see that module-base and kernel-module-split are already added by inherit module.
My suspicion is, that something has changed in regard to the directory paths because I heard that in the Linux world there was something like a clean-up to get the same directory structures over all Linux distributions.
Nevertheless, thanks for the hint.
Cheers,
Markus
It seems that *.ko files in lib/modules/... are ignored.
If instead usr/lib/modules/... is used then the kernel-modules are created.
But apparently the auto-load of kernel modules has also changed.
Another strange observation I made ...
Yocto creates the *.conf files for my kernel-modules in /usr/lib/modules-load.d and in /usr/lib/modprobe.d.
But I think they should be in /etc/modules-load.d and in /etc/modprobe.d instead.
I think in /usr/lib/... they will be ignored.
Ok, from Linux documentation, I've found that all 3 places are ok.
/etc/modules-load.d/*.conf
/run/modules-load.d/*.conf
/usr/lib/modules-load.d/*.conf