Wind River Support Network

HomeDefectsLIN6-9208
Fixed

LIN6-9208 : wr-intel-igb README does not document initramfs integration

Created: Jan 12, 2015    Updated: Dec 3, 2018
Resolved Date: Jan 18, 2015
Found In Version: 6.0.0.15
Fix Version: 6.0.0.17
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

In the wr-intel-igb layer, the IGB module is disabled (# CONFIG_IGB is not set) and built separately by a new recipe (igb_5.2.9.4.bb), thus creating a new package called igb that only contains igb.ko.
We are having issues integrating this module into initramfs, so the steps should be documented in the layer README: shall we add kernel-module-igb or igb to the initramfs image recipe? What else is needed?

Workaround

Add the dependency to IGB in local.conf:
IMAGE_INSTALL_INITRAMFS_append += "kernel-module-igb"
IMAGE_INSTALL_INITRAMFS_append += "igb"

Steps to Reproduce

The layer README does not mention how to integrate this new module into an initramfs:
$ grep -i initramfs layers/wr-intel-igb/README
# returns nothing...

So we have to guess how to do that, and my customer project fails to build:
$ cat <mylayer>/recipes-loader/images/wrlinux-image-initramfs.bbappend
IMAGE_INSTALL_append = "kernel-module-igb"
$ /lx6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_core --enable-bootimage=hdd,tar.bz2 --with-bootimage-space=BOOT_IMG_SPACE --enable-checkout-all-layers=yes --enable-reconfig --enable-rm-oldimgs=yes --with-layer=wr-intel-igb,<mylayer> --with-template=feature/initramfs,feature/kexec,feature/kdump --enable-parallel-pkgbuilds=8 --enable-jobs=16 --with-rcpl-version=0015
$ make
...
| Error: kernel-module-igb not found in the base feeds (intel_x86_64 x86_64 noarch any all).
| WARNING: /<prj>/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-initramfs/1.0-r0/temp/do_rootfs/run.do_rootfs.8932:1 exit 1 from
| exit 1
| ERROR: Function failed: do_rootfs (log file is located at /<prj>/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-initramfs/1.0-r0/temp/do_rootfs/log.do_rootfs.8932)
ERROR: Task 353 (/<prj>/layers/wr-kernel/recipes-core/images/wrlinux-image-initramfs.bb, do_rootfs) failed with exit code '1'

Other Downloads


Live chat
Online