Bug 2761

Summary: qemu target can not startup with "bitbake meta-ide-support"
Product: [Runtime] System Startup Reporter: liang li <liang.li2>
Component: system-startupAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongnax.xu, jessica.zhang, jiajun.xu, kevin.tian, laurentiu.serban, poky.adt.watcher, poky.watcher, sgw, yi.zhao
Version: 1.3   
Target Milestone: 1.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description liang li 2012-07-13 10:33:18 UTC
in 1.3M2 RC1 , when run "bitbake meta-ide-support" and using following steps:

1.Run command "runqemu-extract-sdk *rootfs.tar.bz2 <rootfs-dir>" in "bitbake meta-ide-support" build dir.

2.Run command "runqemu nfs <kernel> <rootfs-dir>" in "bitbake meta-ide-support" build dir.

error found below for example :
yocto@yocto-OptiPlex-990:/buildarea/tester/build_13> runqemu nfs /buildarea/tester/download_7_13/zImage-3.4.4+git3+a8cf77018b0faa0d29f1483ff4e5a2034dc8edd5_4+9aca8fec49787efbe44d0f137f31ee59edd94c49-r4.0-qemuarm-20120710201835.bin /buildarea/tester/arm_fs_test_1/
Assuming /buildarea/tester/arm_fs_test_1/ is an nfs rootfs
Set MACHINE to [qemuarm] based on kernel [/buildarea/tester/download_7_13/zImage-3.4.4+git3+a8cf77018b0faa0d29f1483ff4e5a2034dc8edd5_4+9aca8fec49787efbe44d0f137f31ee59edd94c49-r4.0-qemuarm-20120710201835.bin]

Continuing with the following parameters:
KERNEL: [/buildarea/tester/download_7_13/zImage-3.4.4+git3+a8cf77018b0faa0d29f1483ff4e5a2034dc8edd5_4+9aca8fec49787efbe44d0f137f31ee59edd94c49-r4.0-qemuarm-20120710201835.bin]
ROOTFS: [/buildarea/tester/arm_fs_test_1/]
FSTYPE: [nfs]
Setting up tap interface under sudo
root's password:
Acquiring lockfile for tap0...
runqemu-export-rootfs restart /buildarea/tester/arm_fs_test_1/
No PID file, not stopping rpc.mountd
No PID file, not stopping rpc.nfsd
Creating exports file...
Starting User Mode rpc.mountd
  /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr/bin/pseudo -P /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr/sbin/rpc.mountd --allow-non-root --mount-pid /home/yocto/.runqemu-sdk/mount0.pid -f /home/yocto/.runqemu-sdk/exports0 --rmtab /home/yocto/.runqemu-sdk/rmtab0 --prog 21111 -r -P 3048
Cannot register service: RPC: Unable to receive; errno = Connection refused
Cannot register service: RPC: Unable to receive; errno = Connection refused
Cannot register service: RPC: Unable to receive; errno = Connection refused
Cannot register service: RPC: Unable to receive; errno = Connection refused
Starting User Mode nfsd
  /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr/bin/pseudo -P /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr /buildarea/tester/build_13/tmp/sysroots/x86_64-linux/usr/sbin/rpc.nfsd --allow-non-root --nfs-pid /home/yocto/.runqemu-sdk/nfs0.pid -f /home/yocto/.runqemu-sdk/exports0 --prog 11111 -P 3049 -r
Cannot register service: RPC: Unable to receive; errno = Connection refused
Cannot register service: RPC: Unable to receive; errno = Connection refused
 
On your target please remember to add the following options for NFS
nfsroot=IP_ADDRESS:/buildarea/tester/arm_fs_test_1,nfsvers=2,mountprog=21111,nfsprog=11111,udp
Error: No QEMU binary 'qemu-system-arm' could be found.
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'
Shutting down the userspace NFS server...
runqemu-export-rootfs stop /buildarea/tester/arm_fs_test_1/
Stopping rpc.mountd
Stopping rpc.nfsd
Removing exports file

-------------------
qemu target can boot up (includ qemuppc,qemuarm,qemumips,qemux86,qemux86_64).

git info : eb0cb7e8234f5d2e5623406e9660be91cf52f65e
git branch: poky/master
Comment 1 liang li 2012-07-13 10:38:16 UTC
test env:
hosts:ubuntu 12.04 x86_64,fedora 17 i686,opensuse 12.1 x86_64
Comment 2 liang li 2012-07-13 10:43:37 UTC
(In reply to comment #0)

> qemu target can boot up (includ qemuppc,qemuarm,qemumips,qemux86,qemux86_64).
qemu target can *not* boot up (including qemuppc,qemuarm,qemumips,qemux86,qemux86_64).
> git info : eb0cb7e8234f5d2e5623406e9660be91cf52f65e
> git branch: poky/master
Comment 4 Jessica 2012-07-25 16:37:33 UTC
patch have been merged into master
Comment 5 liang li 2012-07-27 06:54:06 UTC
no such error on:
git info :  0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c
git branch :poky/master

all qemu target boot up normally (qemuppc,qemuarm,qemumips,qemux86,qemux86_64).

test env:
hosts: ubuntu 12.04 x86_64,fedora 17 i686,opensuse 12.1 x86_64