| Summary: | "runqemu qemux86-64" failed due to tap setting | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Dexuan Cui <dexuan.cui> |
| Component: | meta-yocto | Assignee: | Scott Garman <scott.a.garman> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw |
| Version: | 0.9 | ||
| Target Milestone: | 0.9 M4 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Program Management | Documentation change: | --- |
This has been fixed in the refactoring leading up to commit 0f973ed66551cdd1112ee9df42df5603835b8384. poky-qemu has replaced runqemu as the Poky QEMU control script. Now poky-qemu works fine for me. Let me VERIFY the bug. |
Based on today's poky.git's master (commit 7f7c185c) plus Kevin's fix to gcc (commit 843d9daf), I met with the failure: $ runqemu qemux86-64 lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap0" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap1" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap2" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap3" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap4" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap5" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap6" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap7" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap8" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap9" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap10" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap11" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap12" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap13" lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap14" Setting up tap interface under sudo lockfile: Try praying, giving up on "/tmp/qemu-tap-locks/tap15" /opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 98: ( * 2) + 1 : syntax error: operand expected (error token is "* 2) + 1 ") /opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 99: ( * 2) + 2 : syntax error: operand expected (error token is "* 2) + 2 ") cat: /proc/sys/vm/mmap_min_addr: Operation not permitted /opt/dcui/p/scripts/..//scripts/poky-qemu-internal: line 154: [: !=: unary operator expected Warning: distccd not present, no distcc support loaded. Running qemu-system-x86_64... /opt/dcui/p/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-x86_64 -kernel /opt/dcui/p/build/tmp/deploy/images/bzImage-qemux86-64.bin -net nic,vlan=0 -net tap,vlan=0,ifname=,script=no,downscript=no -hda /opt/dcui/p/build/tmp/deploy/images/poky-image-sdk-qemux86-64.ext3 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl --append "vga=0 root=/dev/hda mem=128M ip=192.168.7.::192.168.7.:255.255.255.0" Enabling opengl warning: could not configure /dev/net/tun: no virtual network emulation Releasing lockfile of preconfigured tap device '' Not sure the "Try praying, giving up" is normal. Here looks $TAP is emtpy -- will look into this. BTW: commit 0be92981b32a introduced a bug: if [ "$TAP" = "" ]; then + if lockfile $LOCKFILE; then + TAP=$tap + break; ==========> it's incorrect to use "break" in "if" statement... + fi else echo "Using preconfigured tap device '$TAP'" fi