<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10265</bug_id>
          
          <creation_ts>2016-09-13 08:43:53 +0000</creation_ts>
          <short_desc>nativesdk-qemu-helper: runqemu in sdk should check OECORE_NATIVE_SYSROOT and  OECORE_TARGET_SYSROOT</short_desc>
          <delta_ts>2016-09-21 08:44:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66074</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-09-13 08:43:53 +0000</bug_when>
    <thetext>It should check OECORE_NATIVE_SYSROOT and OECORE_TARGET_SYSROOT in env vars, otherwise it can&apos;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 &apos;tap0&apos;
Traceback (most recent call last):
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu&quot;, line 920, in &lt;module&gt;
    ret = main()
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu&quot;, line 912, in main
    config.setup_final()
  File &quot;/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu&quot;, line 806, in setup_final
    raise Exception(&quot;No QEMU binary &apos;%s&apos; could be found&quot; % qemu_bin)
Exception: No QEMU binary &apos;/buildarea/lyang1/test_gen/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-i386&apos; could be found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66406</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-09-21 08:44:54 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5637f8605f824fe69bf4b9af037388b99d9c9e6e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>