Error Unable To Find Tunctl Binary In
[OE-core] [PATCH] site: add more alignment values for at-spi2-core Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] If runqemu is used without actually building any qemu images (i.e. you downloaded the images) it's likely that qemu-helper-native hasn't been built. Instead of just saying what command can't be found, tell the user how to solve their problem. Signed-off-by: Ross Burton
image you can get here: http://downloads.yoctoproject.org/releases/yocto/yocto-1.1/machines/qemu/ and what should have been a simple procedure got a bit messy. to be clear, i want to document the absolute *least* you need to do to run a yocto-built qemu image without having to build anything since, technically, you shouldn't have to. i'm aware of the writeup in the quick start guide, but that seems like overkill based on what i'm trying to do. so here's what i just went through. first, starting with a fresh terminal window totally unconfigured http://lists.openembedded.org/pipermail/openembedded-core/2013-June/079847.html for yocto, download a matching kernel image and rootfs; in my case, just for fun, i downloaded for arm: * zImage-qemuarm.bin * core-image-minimal-qemuarm.ext3 now that i have that, the obvious next step is to use the convenient "runqemu" wrapper in my yocto directory, so i'll extend my search path: $ PATH=~/yocto/git/scripts:$PATH and i'll turn on shell debugging in that "runqemu" script and test it out: https://www.mail-archive.com/yocto@yoctoproject.org/msg04724.html $ runqemu qemuarm \ zImage-2.6.37-qemuarm-1.0.bin \ core-image-minimal-qemuarm.ext3 ... snip ... /home/rpjday/yocto/git/scripts/bitbake: line 106: -e: command not found + TMPDIR= + '[' -z '' ']' + echo 'Error: this script needs to be run from your build directory,' Error: this script needs to be run from your build directory, + echo 'or you need to explicitly set TMPDIR in your environment' or you need to explicitly set TMPDIR in your environment + exit 1 $ ok, not sure why simply running a qemu image requires invoking bitbake, but the error message looks pretty straightforward, so i'll fix that and try again: $ TMPDIR=/tmp runqemu qemuarm \ zImage-2.6.37-qemuarm-1.0.bin \ core-image-minimal-qemuarm.ext3 ... snip ... /home/rpjday/yocto/git/scripts/bitbake: line 106: -e: command not found + TMPDIR= + '[' -z '' ']' + echo 'Error: this script needs to be run from your build directory,' Error: this script needs to be run from your build directory, + echo 'or you need to explicitly set TMPDIR in your environment' or you need to explicitly set TMPDIR in your environment + exit 1 $ well, that appeared to solve nothing despite the fact that i did *exactly* what the earlier diagnostic
Bourne Again Shell Lines 116 MD5 Hash e879486f4984af905ee3ea8cd80d450e Estimated Cost $1,482 (why?) Repository https://bitbucket.org/devonit/oe-core.git View Raw File Find Similar Files View File Tree 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 https://searchcode.com/codesearch/view/49755583/ 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115#!/bin/bash # # QEMU network interface configuration script. error unable This utility needs to # be run as root, and will use the tunctl binary from a native sysroot. # Note: many Linux distros these days still use an older version of # tunctl which does not support the group permissions option, hence # the need to use build system's version. # # If you find yourself calling this script a lot, you can add the # the following to your /etc/sudoers file to be able to run this # command without entering your password each time: # error unable to #