Bug 1278 - runqemu error can't find tunctl
Summary: runqemu error can't find tunctl
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High major
Target Milestone: 1.1
Assignee: Scott Garman
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-07-22 16:16 UTC by Jessica
Modified: 2011-07-25 10:24 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jessica 2011-07-22 16:16:47 UTC
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 '/sysroots/i686-linux/usr/bin'

And the issue seems due to TMPDIR is not setup correct, which shows empty
Comment 1 Scott Garman 2011-07-22 18:13:33 UTC
I'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'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'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.
Comment 2 Scott Garman 2011-07-22 18:37:26 UTC
I'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.