]> code.ossystems Code Review - openembedded-core.git/commitdiff
core-image-tiny-initramfs: Enable running poky-tiny on qemux86-64
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>
Wed, 20 Sep 2017 17:17:13 +0000 (10:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2017 16:14:43 +0000 (17:14 +0100)
Building poky-tiny for x86-64 seems fine, but when executing qemu
it complains during boot time about not being able to execute init:

[    5.409730] Failed to execute /init (error -8)

And then it drops to a login prompt (which it should't do on tiny)

This is supposed to be complaining about init's format, it only happens
on x86-64 architectures so perhaps is a 32/64 bit issue, but since
core-image-tiny-initramfs does not actually provide a traditional init,
the script is simply meant to drop to shell, we can workaround the issue
by specifying the kernel to run the init script via busybox's sh,
dropping to shell correctly on x86-64 leaving x86 unaffected.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/images/core-image-tiny-initramfs.bb

index a8893d1e53e403c92aedfa7c3e6d3a21232d7abe..16995e6580acaca919c0dd19ca875fbea513bb5e 100644 (file)
@@ -39,3 +39,5 @@ python tinyinitrd () {
 }
 
 IMAGE_PREPROCESS_COMMAND += "tinyinitrd;"
+
+QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init"