Bug 10285 - qemuboot.conf has the incorrect values for image_name and qb_default_kernel
Summary: qemuboot.conf has the incorrect values for image_name and qb_default_kernel
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: High normal
Target Milestone: 2.2 M4
Assignee: Joshua Lock
QA Contact: Juan Ramos
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-15 15:20 UTC by Jose Perez C
Modified: 2016-10-25 13:34 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Perez C 2016-09-15 15:20:20 UTC
STATUS: IDLE
BUILD: 2.2 M3: 2679a347c576f5411fbe802d2f6201c94036ecb2
ENVIRONMENT: qemu-x86
STEPS TO REPRODUCE: 

1.  Download: core-image-sato-sdk-qemux86.ext4
              core-image-sato-sdk-qemux86.manifest
              core-image-sato-sdk-qemux86.qemuboot.conf
              bzImage-qemux86.bin   
              from http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M3.rc1/machines/qemu/qemux86/

2. place those files under build/tmp/deploy/images/qemux86

3. runqemu qmeux86

EXPECTED OUTCOME:   qemu start runnig 

ACTUAL OUTCOME: 

Exception: KERNEL poky/build/tmp/deploy/images/qemux86/bzImage not found
Exception: Failed to find rootfs: poky/build/tmp/deploy/images/qemux86/core-image-sato-sdk-qemux86-20160909112148*.ext4


Note: 
In the conf file values are set as follows:

image_name = core-image-sato-qemux86-20160909135113
qb_default_kernel = bzImage
Comment 1 Joshua Lock 2016-09-15 15:48:08 UTC
Downloading the symlinked file names to test against, rather than those with the DATETIME stamp in, is undoubtedly part of the issue. However the qb_default_kernel value is incorrect as it's pointing to a symlink whereas it should be pointing at the full kernel filename.
Comment 2 Joshua Lock 2016-09-15 15:59:49 UTC
To be clear the bug here is in qemuboot.conf and the value it assigns to QB_DEFAULT_KERNEL:

QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}"
Comment 4 Joshua Lock 2016-09-20 15:01:42 UTC
Fix merged to OE-Core & Poky master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7352d35d739acef65cfddc1923d34aa62c6f0f4c
Comment 5 Juan Ramos 2016-10-11 18:43:30 UTC
Verified with commit 4a7eb4b92f32c17abd1111246b1acb9ad3daa355 and is working correctly.