Bug 10265 - nativesdk-qemu-helper: runqemu in sdk should check OECORE_NATIVE_SYSROOT and OECORE_TARGET_SYSROOT
Summary: nativesdk-qemu-helper: runqemu in sdk should check OECORE_NATIVE_SYSROOT and ...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M4
Assignee: Robert Yang
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-13 08:43 UTC by Robert Yang
Modified: 2016-09-21 08:44 UTC (History)
3 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 Robert Yang 2016-09-13 08:43:53 UTC
It should check OECORE_NATIVE_SYSROOT and OECORE_TARGET_SYSROOT in env vars, otherwise it can't work after extracted from SDK. For example:

$ mv tmp/sysroots tmp/sysroots.bak

Extract sdk and source sdk/environment-setup-core2-32-poky-linux

$ runqemu test_gen/tmp/deploy/images/genericx86/ nographic
runqemu - INFO - DEPLOY_DIR_IMAGE: /buildarea/lyang1/test_gen/tmp/deploy/images/genericx86
runqemu - INFO - Running ls -t /buildarea/lyang1/test_gen/tmp/deploy/images/genericx86/*.qemuboot.conf...
runqemu - INFO - CONFFILE: /buildarea/lyang1/test_gen/tmp/deploy/images/genericx86/core-image-minimal-genericx86.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:

KERNEL: [/buildarea/lyang1/test_gen/tmp/deploy/images/genericx86/bzImage]
MACHINE: [genericx86]
FSTYPE: [ext4]
ROOTFS: [/buildarea/lyang1/test_gen/tmp/deploy/images/genericx86/core-image-minimal-genericx86-20160913030002.rootfs.ext4]
CONFFILE: [/buildarea/lyang1/test_gen/tmp/deploy/images/genericx86/core-image-minimal-genericx86.qemuboot.conf]

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Using preconfigured tap device tap0
runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
runqemu - INFO - Releasing lockfile for tap device 'tap0'
Traceback (most recent call last):
  File "/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu", line 920, in <module>
    ret = main()
  File "/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu", line 912, in main
    config.setup_final()
  File "/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu", line 806, in setup_final
    raise Exception("No QEMU binary '%s' could be found" % qemu_bin)
Exception: No QEMU binary '/buildarea/lyang1/test_gen/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-i386' could be found