<?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>11193</bug_id>
          
          <creation_ts>2017-03-21 00:18:33 +0000</creation_ts>
          <short_desc>runqemu can not launch image if enable &quot;rm_work&quot;</short_desc>
          <delta_ts>2017-04-10 21:08:09 +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>Scripts and Tools</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11266</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>eduard.bartosh</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>71495</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-03-21 00:18:33 +0000</bug_when>
    <thetext>Git rev: master/6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8

Steps:
1. Download the poky source and set environment. 
2. Add INHERIT += &quot;rm_work&quot; to conf/local.conf
3. bitbake core-image-minimal
4. runqemu qemuarm

Error message:
####################################
$ runqemu qemuarm
runqemu - INFO - Assuming MACHINE = qemuarm
runqemu - INFO - Running MACHINE=qemuarm bitbake -e...
runqemu - INFO - MACHINE: qemuarm
runqemu - INFO - DEPLOY_DIR_IMAGE: /buildarea/poky/build-test/tmp/deploy/images/qemuarm
runqemu - INFO - Running ls -t /buildarea/poky/build-test/tmp/deploy/images/qemuarm/*.qemuboot.conf...
runqemu - INFO - CONFFILE: /buildarea/poky/build-test/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-20170320051519.qemuboot.conf
runqemu - INFO - Overriding conf file setting of STAGING_DIR_NATIVE to /buildarea/poky/build-test/tmp/work/armv5e-poky-linux-gnueabi/defaultpkgname/1.0-r0/recipe-sysroot-native from Bitbake environment
runqemu - INFO - Overriding conf file setting of STAGING_BINDIR_NATIVE to /buildarea/poky/build-test/tmp/work/armv5e-poky-linux-gnueabi/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin from Bitbake environment
runqemu - INFO - Continuing with the following parameters:

KERNEL: [/buildarea/poky/build-test/tmp/deploy/images/qemuarm/zImage--4.10.2+git0+69bfa87234_ad30e5e8b9-r0-qemuarm-20170320051519.bin]
DTB: [/buildarea/poky/build-test/tmp/deploy/images/qemuarm/zImage-versatile-pb.dtb]
MACHINE: [qemuarm]
FSTYPE: [ext4]
ROOTFS: [/buildarea/poky/build-test/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-20170320051519.rootfs.ext4]
CONFFILE: [/buildarea/poky/build-test/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-20170320051519.qemuboot.conf]

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap1.lock...
runqemu - INFO - Using preconfigured tap device tap1
runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap1.skip to make runqemu skip tap1.
runqemu - INFO - QEMU binary not found in /buildarea/poky/build-test/tmp/work/armv5e-poky-linux-gnueabi/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin/qemu-system-arm, trying host&apos;s QEMU
runqemu - INFO - Trying: /buildarea/poky/scripts/qemu-system-arm
runqemu - INFO - Trying: /buildarea/poky/bitbake/bin/qemu-system-arm
runqemu - INFO - Trying: /home/zhaoyi/bin/qemu-system-arm
runqemu - INFO - Trying: /usr/local/sbin/qemu-system-arm
runqemu - INFO - Trying: /usr/local/bin/qemu-system-arm
runqemu - INFO - Trying: /usr/sbin/qemu-system-arm
runqemu - INFO - Trying: /usr/bin/qemu-system-arm
runqemu - INFO - Trying: /sbin/qemu-system-arm
runqemu - INFO - Trying: /bin/qemu-system-arm
runqemu - INFO - Trying: /usr/games/qemu-system-arm
runqemu - INFO - Trying: /usr/local/games/qemu-system-arm
runqemu - INFO - Trying: /snap/bin/qemu-system-arm
runqemu - INFO - Releasing lockfile for tap device &apos;tap1&apos;
runqemu - ERROR - In order for this script to dynamically infer paths
 kernels or filesystem images, you either need bitbake in your PATH
 or to source oe-init-build-env before running this script.

 Dynamic path inference can be avoided by passing a *.qemuboot.conf to
 runqemu, i.e. `runqemu /path/to/my-image-name.qemuboot.conf`

 No QEMU binary &apos;/buildarea/poky/build-test/tmp/work/armv5e-poky-linux-gnueabi/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin/qemu-system-arm&apos; could be found
########################################

The runqemu try to fine the qemu-system-arm in &quot;defaultpkgname&quot; directory, but there is no such directory.

This issue only happens when enable rm_work feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72254</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-04-10 21:08:09 +0000</bug_when>
    <thetext>this is duplicate for bug 11266

*** This bug has been marked as a duplicate of bug 11266 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>