<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2533</bug_id>
          
          <creation_ts>2012-06-04 03:56:31 +0000</creation_ts>
          <short_desc>&quot;runqemu&quot; can&apos;t launch a qemu target image using toolchainSDK built by adt-installer on ubuntu x86_64 with with nightly build (20120530-2)</short_desc>
          <delta_ts>2012-06-04 09:08:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liang li">liang.li2</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>hongnax.xu</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21800</commentid>
    <comment_count>0</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-06-04 03:56:31 +0000</bug_when>
    <thetext>steps:

1. run &quot;bitbake meta-toolchain&quot;,follown parts of local.conf is set:
MACHINE ?= &quot;qemuarm&quot;  
PACKAGE_CLASSES ?= &quot;package_ipk&quot;
SDKMACHINE ?= &quot;x86_64&quot; 
2. copy tmp/deploy/ipk subdir of build dir to &quot;/var/www/1.2+snapshot/adt-ipk&quot; and related rootfs and kernel file to &quot;/var/www/1.2+snapshot/rootfs/qemuarm&quot; of the local adt repo machine.
3. extract &quot;adt_installer.tar.bz2&quot; , change &quot;adt_installer.conf&quot; file ,&quot;opkg/conf/opkg-sdk-i686.conf&quot; and &quot;opkg/conf/opkg-sdk-x86_64.conf&quot;: 
YOCTOADT_REPO=&quot;http://local_repo_ip/1.2+snapshot&quot;
src yp-i686-nativesdk http://local_repo_ip/1.2+snapshot/adt-ipk/i686-nativesdk
src yp-x86_64-nativesdk http://local_repo_ip/1.2+snapshot/adt-ipk/x86_64-nativesdk.
local_repo_ip is the ip address of the local adt repo machine.
adt_install.tar.bz2 is from:
http://autobuilder.pokylinux.org/nightly/20120530-2/adt_installer/
4. run &quot;./adt_installer&quot;,get successful result.
5. run &quot;/opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi&quot;.
6. In &quot;adt-install&quot; dir ,run &quot;runqemu nfs download_image/zImage-qemuarm.bin rootfsdir&quot;, following error met:
-----------------------
Assuming /home/liangli/test-yocto/arm_1.3 is an nfs rootfs
Set MACHINE to [qemuarm] based on kernel [download_image/zImage-qemuarm.bin]

Continuing with the following parameters:
KERNEL: [download_image/zImage-qemuarm.bin]
ROOTFS: [/home/liangli/test-yocto/arm_1.3]
FSTYPE: [nfs]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
runqemu-export-rootfs restart /home/liangli/test-yocto/arm_1.3
No PID file, not stopping rpc.mountd
No PID file, not stopping rpc.nfsd
Creating exports file...
Starting User Mode rpc.mountd
  /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/pseudo -P /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin/rpc.mountd --allow-non-root --mount-pid /home/liangli/.runqemu-sdk/mount0.pid -f /home/liangli/.runqemu-sdk/exports0 --rmtab /home/liangli/.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
  /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/pseudo -P /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin/rpc.nfsd --allow-non-root --nfs-pid /home/liangli/.runqemu-sdk/nfs0.pid -f /home/liangli/.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:/home/liangli/test-yocto/arm_1.3,nfsvers=2,mountprog=21111,nfsprog=11111,udp
WARNING: distccd not present, no distcc support loaded.
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-arm: /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1&apos; not found (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
Running qemu-system-arm...
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-arm -kernel download_image/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb --no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128 --append &quot;root=/dev/nfs nfsroot=192.168.7.1:/home/liangli/test-yocto/arm_1.3,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 &quot;
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-arm: /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1&apos; not found (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
Set &apos;tap0&apos; nonpersistent
Releasing lockfile of preconfigured tap device &apos;tap0&apos;
Shutting down the userspace NFS server...
runqemu-export-rootfs stop /home/liangli/test-yocto/arm_1.3
Stopping rpc.mountd
Stopping rpc.nfsd
Removing exports file
-----------------

qemu target can not boot up .

the similar error also happened to qemux86,qemux86_64,qemuppc and qemumips.
the error not happend on meta-toolchain from :
http://autobuilder.pokylinux.org/nightly/20120530-2/toolchain/x86-64/

test env:
host : ubuntu 12.04 x86_64
os kernel : 3.2.0-24-generic #39-Ubuntu SMP

git info :348da93e283b2b8454fd9cde80d4b17378e2a168
git branch: poky/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21804</commentid>
    <comment_count>1</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-06-04 06:11:08 +0000</bug_when>
    <thetext>liang:
   I can start qenu by &quot;runqemu&quot; using the ipks generated by autobuilder, I set the field src yp-x86_64-nativesdk http://autobuilder.yoctoproject.org/pub/nightly/20120530-2/ipk/x86_64-nativesdk/ in &quot;opkg/conf/opkg-sdk-x86_64.conf&quot;, download the images of qemu from autobuilder, and set YOCTOADT_REPO=&quot;http://localhost/1.2+snapshot&quot; in adt_installer.conf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21808</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-06-04 07:26:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; liang:
&gt;    I can start qenu by &quot;runqemu&quot; using the ipks generated by autobuilder, I
&gt; set the field src yp-x86_64-nativesdk
&gt; http://autobuilder.yoctoproject.org/pub/nightly/20120530-2/ipk/x86_64-
&gt; nativesdk/ in &quot;opkg/conf/opkg-sdk-x86_64.conf&quot;, download the images of qemu
&gt; from autobuilder, and set YOCTOADT_REPO=&quot;http://localhost/1.2+snapshot&quot; in
&gt; adt_installer.conf.

yes, it can work.

and machine info where I build meta-toolchain:
host :ubuntu 11.10 x86_64
kernel : 3.0.0-17-generic #30-Ubuntu SMP
and also found the &quot;x86_64-nativesdk&quot; dir in ipk directory.

something diffrent from local build and autobuilder build? 
something wrong with the steps I described?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21812</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-06-04 09:08:18 +0000</bug_when>
    <thetext>When generate meta-toolchain by &apos;bitbake meta-toolchain&apos;, libcurl.so.4 is missing in the tarball. &apos;bitbake meta-toolchain-gmae&apos; doesn&apos;t have this issue. I have opened a new bug 2536 to track it. Mark this as invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>