[oe-commits] [openembedded-core] 24/50: core-image-tiny-initramfs: Enable running poky-tiny on qemux86-64

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 22:37:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3ec654547206b735a87029d591706cacab65053a
Author: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
AuthorDate: Wed Sep 20 10:17:13 2017 -0700

    core-image-tiny-initramfs: Enable running poky-tiny on qemux86-64
    
    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 at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index a8893d1..16995e6 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -39,3 +39,5 @@ python tinyinitrd () {
 }
 
 IMAGE_PREPROCESS_COMMAND += "tinyinitrd;"
+
+QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list