<?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>1278</bug_id>
          
          <creation_ts>2011-07-22 16:16:47 +0000</creation_ts>
          <short_desc>runqemu error can&apos;t find tunctl</short_desc>
          <delta_ts>2011-07-25 10:24:14 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessica">jessica.zhang</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14937</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-07-22 16:16:47 +0000</bug_when>
    <thetext>with latest master, runqemu will report error:

runqemu bzImage-qemux86.bin myimage-qemux86.ext3 
Set MACHINE to [qemux86] based on kernel [bzImage-qemux86.bin]

Continuing with the following parameters:
KERNEL: [bzImage-qemux86.bin]
ROOTFS: [myimage-qemux86.ext3]
FSTYPE: [ext3]

/sysroots/i686-linux
Setting up tap interface under sudo
[sudo] password for jzhang: 
Error: Unable to find tunctl binary in &apos;/sysroots/i686-linux/usr/bin&apos;

And the issue seems due to TMPDIR is not setup correct, which shows empty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14939</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-07-22 18:13:33 +0000</bug_when>
    <thetext>I&apos;ve verified that this happens under the particular condition of when you run the runqemu script from a directory where bitbake -e does not work - Jessica&apos;s original case she sent me had her running runqemu from the tmp/deploy/images directory. 

The dependency of requiring the bitbake command to work to determine TMPDIR was introduced with this commit:

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=81d14f5629b4eeb2096ccb52812e5775fe0125e9

The commit message indicates that we can no longer infer TMPDIR from BUILDDIR, so I&apos;m not sure that we can allow runqemu to be run from arbitrary directories anymore for in-tree Poky configurations. 

I think the best I can do is add a test to make sure the bitbake -e command returned successfully, and notify this restriction to the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14940</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-07-22 18:37:26 +0000</bug_when>
    <thetext>I&apos;ve pushed a proposed fix to my branch:

http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=sgarman/runqemu-fix

and submitted a pull request to the oe-core ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14995</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-07-25 08:38:17 +0000</bug_when>
    <thetext>Fixed in oe-core and poky master:

http://cgit.openembedded.org/cgit.cgi/openembedded-core/commit/?id=ab5544ac801a976b56468ade0f5d2e95c11feb87

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=3fddac4ee959cc09d67a50d4623c29175bee26f0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>