How can I add the modules of kernel in the core-image-minimal filesystem ?
We tried with :
CORE_IMAGE_EXTRA_INSTALL += " kernel-modules" in the local.conf
and
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" in the machine.conf
But in both cases we didn't find the modules.
We had to install by rpm.
Thanks in advanced
kernel-modules is just a package, so you can include it in IMAGE_INSTALL just
like any other package name (although this may not be the most appropriate
solution), alternatively, add them to MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS.
IMAGE_INSTALL_append = " kernel-modules"
or
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_append = " kernel-modules"
Hi, Antonio Belussi
We are able to get kernel modules in lib directory from yocto core-image-minimal based file system by adding only below the line in conf/local.conf file.
CORE_IMAGE_EXTRA_INSTALL += " kernel-modules"
There is no need to add MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" in the machine configuration file.
After that, we did bitbake core-image-minimal and we are able to see modules in the lib directory. We have also checked in yocto krogoth, morty and sumo as well.
Let us know if you are still facing an error with this solution.
Regards,
I fixed it in another way. In the image recipe I added the kernel module as follow:
IMAGE_INSTALL_append += "\
kernel-module-<the-module> \
.. all other packages ..
"
Why this does not work, beats me, it should do the same:
IMAGE_INSTALL += "kernel-module-<the-module>"
I think adding it to the "image recipe" is more clean iso using the local.conf (which I dislike to put anything in, except the bare minimum).
Hi Antonio,
please see following posts:
how to cross-compile a external module based on imx yocto files?
imx6ul: Yocto toolchain can't build kernel modules
How ever I prefer to Create Meta-toolchain and rebuild zImage outside of Yocto and just replace zImage.
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
This does not answer the question, it another subject (cross compilation from a SDK)?
The real question is (as I expect) is how to get a kernel module, which is marked with 'm' in the kernel config, in the /lib directory from the regular yocto build in the rootfs /lib/... directory.
In the yocto morty release I could add this in the image recipe (.bb):
IMAGE_INSTALL += "kernel-module-<the-module>"
But in the sumo release this does not work any more.
(Based on core-image-minimal)