Wind River Support Network

HomeDefectsLIN5-4810
Fixed

LIN5-4810 : wrlinux 5.0.1. - initramfs image build when using --enable-rm-work=yes or kernel image bundling

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

Description

The following types of errors are encountered when building the initramfs image with external kernels bundled in and the --enable-rm-works=yes flag is specified.
Also, the resulted initramfs image has a kernel image bundled within

...
NOTE: Toolchain binaries pattern: /home/workspace/rm_work/layers/wr-toolchain/4.6a-107/bin/i686-wrs-linux-gnu*

OE Build Configuration:
BB_VERSION        = "1.17.1"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "wrlinux"
DISTRO_VERSION    = "5.0.1.7"
TUNE_FEATURES     = "m32 i686"
TARGET_FPU        = ""
wrlinux           = "LB34_5.0.1_RCPL0007:1abf057910a7b469097360b4764a66975bf577e7"
wrlcompat         = "LB34_5.0.1_RCPL0007:4433a4be3c782c63aad6e4db3de432ef76f85bdf"
wr-toolchain      = "LB34_5.0.1_RCPL0007:d7f54d5be5e8b5800a4a99cfd77ef2a36af81283"
meta              = "LB34_5.0.1_RCPL0007:1b6fea0e041cec4355e9591c2d4236fb59af8508"
oe-core-dl       
meta-downloads    = "<unknown>:<unknown>"
wr-kernel         = "LB34_5.0.1_RCPL0007:884223692b2bcc1c4e77ab04bd814b6951ac7c1e"
qemux86           = "LB34_5.0.1_RCPL0007:e3da7363647f180bea32ac2fca4569d32468223b"
wr-base           = "LB34_5.0.1_RCPL0007:1d7a2cab9e10f36be8a7cf1d4dbeccb6523523ad"
wr-features       = "LB34_5.0.1_RCPL0007:28d2e2465cafa14464a405138b4cae718eb2f35c"
wr-tools-profile  = "LB34_5.0.1_RCPL0007:8d3c3f0f95b2a548d78c6190f6bd49175ab1c998"
wr-tools-debug    = "LB34_5.0.1_RCPL0007:1d613783031781cbf2e538b2e0d16eaa0c8c7ccf"
meta-networking   = "LB34_5.0.1_RCPL0007:05022c9a060f1cdad4a60a401ff106487176324d"
meta-webserver    = "LB34_5.0.1_RCPL0007:a67bb87dadf51e9c3d6373ee0c0f6421dd4df68d"
wr-prebuilts     
local             = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel configuration
NOTE: [kconfig] clean configuration. No Warnings or Errors found.
ERROR: Function failed: do_bundle_initramfs (see /home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/temp/do_bundle_initramfs/log.do_bundle_initramfs.31864 for further information)
ERROR: Logfile of failure stored in: /home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/temp/do_bundle_initramfs/log.do_bundle_initramfs.31864
Log data follows:
| DEBUG: Executing shell function do_bundle_initramfs
| Creating a kernel image with a bundled initramfs...
| Copying initramfs into ./usr ...
| cp: cannot create regular file `/home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/linux-qemux86-standard-build/usr/.': No such file or directory
| WARNING: /home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/temp/do_bundle_initramfs/run.do_bundle_initramfs.31864:101 exit 1 from
|   cp /home/workspace/rm_work/bitbake_build/tmp/deploy/images/wrlinux-image-initramfs-qemux86.$img /home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/linux-qemux86-standard-build/usr/.
| ERROR: Function failed: do_bundle_initramfs (see /home/workspace/rm_work/bitbake_build/tmp/work/qemux86-wrs-linux/linux-windriver-3.4-r0/temp/do_bundle_initramfs/log.do_bundle_initramfs.31864 for further information)
ERROR: Task 302 (/home/workspace/rm_work/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.4.bb, do_bundle_initramfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1551 tasks of which 269 didn't need to be rerun and 1 failed.
No currently running tasks (1551 of 1558)

Summary: 1 task failed:
  /home/workspace/rm_work/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.4.bb, do_bundle_initramfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [export/qemux86-glibc-small-standard-dist.tar.bz2] Error 1

Workaround

The attached patch(initramfs.tar.gz) could resolve this problem.

Steps to Reproduce

--enable-board=qemux86 --enable-kernel=standard --with-template=feature/initramfs-integrated --enable-rootfs=glibc_small --enable-jobs=9 --enable-parallel-pkgbuilds=9 --enable-rm-work=yes --with-rcpl-version=0007
+ the initramfs patches

make fs

Other Downloads


Live chat
Online