Bug 2452

Summary: qemu Unable to find pseudo binary in /usr/bin/
Product: [Build System, Metadata & Runtime] OE-Core Reporter: yilong, sun <yilongx.y.sun>
Component: coreAssignee: Scott Garman <scott.a.garman>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: hongnax.xu, jiajun.xu, liang.li2, meta.mr.watcher, meta.watcher, ningx.ma, richard.purdie, song.liu
Version: unspecified   
Target Milestone: 1.2.1   
Hardware: x86   
OS: x86   
Whiteboard: (P2)(Scheduled)(No QA needed)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description yilong, sun 2012-05-14 03:41:04 UTC
when i close qemu(using unfs style) with command "poweroff", There will be the following error.

reproduce steps:
1, download kernel and rootfs tar ball
2, unpack tar ball
3, start qemu: runqemu kernel rootfs(directory)
4, shutdown system with command poweroff

"bitbake meta-ide-support" build info:
poky/branch: poky-contrib / stage/master_under_test
commit id: 0ad72a18b5077c3c73ee9ee76ffcd700b14772cf

images location :
http://autobuilder.pokylinux.org/pub/nightly/20120510-2/machines/qemu/qemux86/bzImage-qemux86.bin 
http://autobuilder.pokylinux.org/pub/nightly/20120510-2/machines/qemu/qemux86/core-image-sato-qemux86.tar.bz2

detailed error info:
build-sunyl@buildsunyl:~/work-dir/poky-contrib/test$ runqemu /home/build-sunyl/Downloads/bzImage-qemux86.bin qemux86/Assuming qemux86/ is an nfs rootfs
Set MACHINE to [qemux86] based on kernel [/home/build-sunyl/Downloads/bzImage-qemux86.bin]

Continuing with the following parameters:
KERNEL: [/home/build-sunyl/Downloads/bzImage-qemux86.bin]
ROOTFS: [qemux86/]
FSTYPE: [nfs]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
runqemu-export-rootfs restart qemux86/
Stopping rpc.mountd
Stopping rpc.nfsd
Removing exports file
Creating exports file...
Starting User Mode rpc.mountd
  /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr/bin/pseudo -P /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr/sbin/rpc.mountd --allow-non-root --mount-pid /home/build-sunyl/.runqemu-sdk/mount0.pid -f /home/build-sunyl/.runqemu-sdk/exports0 --rmtab /home/build-sunyl/.runqemu-sdk/rmtab0 --prog 21111 -r -P 3048
Starting User Mode nfsd
  /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr/bin/pseudo -P /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr /home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr/sbin/rpc.nfsd --allow-non-root --nfs-pid /home/build-sunyl/.runqemu-sdk/nfs0.pid -f /home/build-sunyl/.runqemu-sdk/exports0 --prog 11111 -P 3049 -r
 
On your target please remember to add the following options for NFS
nfsroot=IP_ADDRESS:/home/build-sunyl/work-dir/poky-contrib/test/qemux86,nfsvers=2,mountprog=21111,nfsprog=11111,udp
Starting distccd...
WARNING: nVidia proprietary OpenGL libraries detected.
nVidia's OpenGL libraries are known to have compatibility issues with qemu,
resulting in a segfault. Please uninstall these drivers or ensure the mesa libGL
libraries precede nvidia's via LD_PRELOAD(Already do it on Ubuntu 10).
Running qemu...
/home/build-sunyl/work-dir/poky-contrib/test/tmp/sysroots/x86_64-linux/usr/bin/qemu -kernel /home/build-sunyl/Downloads/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot -m 128 --append "root=/dev/nfs nfsroot=192.168.7.1:qemux86/,nfsvers=2,mountprog=21111,nfsprog=11111,udp,port=3049,mountport=3048 rw ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M oprofile.timer=1 "
Enabling opengl
vmsvga_value_write: guest runs Linux.
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'
Shutting down the userspace NFS server...
runqemu-export-rootfs stop qemux86/
Error: Unable to find pseudo binary in /usr/bin/
Have you run 'bitbake meta-ide-support'?
Comment 1 MaNing 2012-05-25 02:35:50 UTC
This issue still exist in Yocto1.2.1 20120523-2 build

Commit information:

Tree/Branch: Poky/Master
Poky Commit id: 094742bed2fc01d55f572da946fcfa7a48521401

Image location:
http://autobuilder.yoctoproject.org/pub/nightly/20120523-2
Comment 2 liang li 2012-06-04 04:19:18 UTC
The issue not happend in 20120530-2 nightly build:
autobuilder.pokylinux.org/nightly/20120530-2

git info :348da93e283b2b8454fd9cde80d4b17378e2a168
git branch: poky/master
Comment 3 Scott Garman 2012-06-13 04:25:30 UTC
Hi Sun,

The only way I could see this occurring is if the runqemu scripts (specifically oe-find-native-sysroot) is unable to run bitbake. The directory you invoked this in when you ran into the problem, ~/work-dir/poky-contrib/test, was this your build directory?
Comment 4 Richard Purdie 2012-06-18 22:07:35 UTC
Please provide more information and reopen if this hasn't been fixed...