Wind River Support Network


LIN5-1557 : Not possible to include kernel modules in initramfs

Created: Apr 15, 2013    Updated: Dec 19, 2017
Resolved Date: Sep 29, 2013
Found In Version: 5.0.1
Fix Version:
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Build & Config


Trying to add a kernel module to the package list for an initramfs introduces a circular dependency: the kernel depends on the initramfs, the initramfs requires the module and the module requires the kernel.

For standard kernel modules it may be possible to statically link the module with the kernel to avoid this issue, but for custom modules built outside of the main kernel this is not possible.

There are several reasons why a module may not be buildable within the kernel source, one is that the module may contain proprietary code and licensing concerns could forbid static linking, but there are others.

Steps to Reproduce

Configure a platform project with the initramfs template.

$ configure --enable-board=qemux86 --enable-rootfs=glibc_small --enable-kernel=standard --with-template=feature/initramfs-integrated --with-rcpl-version=0002

Add any kernel module to the initramfs package list.

Attempt to built - BB will complain about the circular dependency.

We have tried several methods to work around this issue but so far not been successful.

Other Downloads

Live chat