Bug 2612

Summary: runqemu can't launch a poky-tiny image
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Darren Hart <dvhart>
Component: meta-yoctoAssignee: Scott Garman <scott.a.garman>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: corneliux.stoicescu, david.c.stewart, poky.bs.watcher, poky.watcher, sgw, yi.zhao
Version: 1.2   
Target Milestone: 1.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: 2012-08-10: Patch out for review on ML
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Darren Hart 2012-06-14 21:55:00 UTC
poky-tiny builds systems without block support by default. The intended method for booting a poky-tiny core-image-minimal image is using the cpio.gz image with /dev/ram0 as the rootfs. For example:

$ qemu -kernel bzImage-qemux86.bin -initrd core-image-minimal-qemux86.cpio.gz -nographic -append "console=ttyS0 root=/dev/ram0"

runqemu doesn't have anyway to run in this mode that I could see. This impacts Hob's ability to run a poky-tiny image.
Comment 1 Scott Garman 2012-06-20 16:28:33 UTC
Looks like Kai has a full or partial fix for this in his work on bug #2579.
Comment 2 Scott Garman 2012-08-19 17:03:55 UTC
Fixed in oe-core and poky master as of:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5bffd94316d9e6d49afea001c6f0a1d09624379a
Comment 3 Scott Garman 2012-08-19 17:04:22 UTC
Marking bug as fixed.
Comment 4 Yi Zhao 2012-09-04 05:59:14 UTC
Verified with master branch: 37c8597e7600385367257e8a513e003947ebef5b

#############
$ bitbake core-image-minimal
$ runqemu qemux86 ramfs

Continuing with the following parameters:
KERNEL: [/buildarea2/yzhao-test/poky-build/build-tiny/tmp/deploy/images/bzImage-qemux86.bin]
ROOTFS: [/buildarea2/yzhao-test/poky-build/build-tiny/tmp/deploy/images/core-image-minimal-qemux86.cpio.gz]
FSTYPE: [cpio.gz]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
WARNING: distccd not present, no distcc support loaded.
Running qemu...
/buildarea2/yzhao-test/poky-build/build-tiny/tmp/sysroots/x86_64-linux/usr/bin/qemu -kernel /buildarea2/yzhao-test/poky-build/build-tiny/tmp/deploy/images/bzImage-qemux86.bin -initrd /buildarea2/yzhao-test/poky-build/build-tiny/tmp/deploy/images/core-image-minimal-qemux86.cpio.gz -nographic -no-reboot -m 128 --append "root=/dev/ram0 "
Could not open option rom 'sgabios.bin': No such file or directory
[    0.000000] Linux version 3.2.18-yocto-tiny (builder@pek-yocto-build1) (gcc version 4.7.2 20120706 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Sep 4 10:37:22 CST 2012
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
[    0.000000]  BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
...
...
#################
Comment 5 Darren Hart 2012-12-07 18:18:21 UTC
*** Bug 3311 has been marked as a duplicate of this bug. ***