<?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>8315</bug_id>
          
          <creation_ts>2015-09-17 06:45:41 +0000</creation_ts>
          <short_desc>Fail to run qemu via nfs with toolchain sdk</short_desc>
          <delta_ts>2015-11-09 07:13:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54186</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-09-17 06:45:41 +0000</bug_when>
    <thetext>Toolchain location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.8_M3.rc1/toolchain

Git rev: master/ea562de57590c966cd5a75fda8defecd397e6436

Steps:
1. Download the toolchain sdk and install it
2. $ . /opt/poky/1.8+snapshot/environment-setup-core2-64-poky-linux
3. $ runqemu-extract-sdk core-image-sato-sdk-qemuarm-20150915110945.rootfs.tar.bz2 rootfs
4. $ runqemu nfs zImage-qemuarm.bin rootfs

Error message:
#########################
Assuming rootfs is an nfs rootfs
Set MACHINE to [qemuarm] based on kernel [zImage-qemuarm.bin]

Continuing with the following parameters:
KERNEL: [zImage-qemuarm.bin]
ROOTFS: [/home/zhaoyi/qemuarm/rootfs]
FSTYPE: [nfs]
Acquiring lockfile for tap0...
Setting up tap interface under sudo
Acquiring lockfile for tap1...
runqemu-export-rootfs restart /home/zhaoyi/qemuarm/rootfs
Error: Unable to find unfsd binary in /opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin/
This shouldn&apos;t happen - something is missing from your toolchain installation
#########################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54606</commentid>
    <comment_count>1</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-09-24 11:36:49 +0000</bug_when>
    <thetext>Recreated the error in Fedora 22 machine:

$ runqemu nfs zImage-qemuarm.bin rootfs
Assuming rootfs is an nfs rootfs
Set MACHINE to [qemuarm] based on kernel [zImage-qemuarm.bin]

Continuing with the following parameters:
KERNEL: [zImage-qemuarm.bin]
ROOTFS: [/home/maxin/rootfs]
FSTYPE: [nfs]
Acquiring lockfile for tap0...
Using preconfigured tap device &apos;tap0&apos;
If this is not intended, touch /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
runqemu-export-rootfs restart /home/maxin/rootfs
Error: Unable to find unfsd binary in /opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/sbin/
This shouldn&apos;t happen - something is missing from your toolchain installation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54607</commentid>
    <comment_count>2</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-09-24 11:42:43 +0000</bug_when>
    <thetext>In the latest toolchain, &quot;unfsd&quot; binary is located under &quot;$OECORE_NATIVE_SYSROOT/usr/bin/&quot;  

So, updating the location of &quot;unfsd&quot; from &quot;/usr/sbin&quot; to &quot;/usr/bin&quot; in &quot;/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-export-rootfs&quot; resolves this error for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54635</commentid>
    <comment_count>3</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-09-24 16:18:12 +0000</bug_when>
    <thetext>patch sent to oe-core:

http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110937.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54766</commentid>
    <comment_count>4</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-09-29 07:34:03 +0000</bug_when>
    <thetext>Fix accepted upstream:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=452237b3f58d8839fbd80d7b557cf72f846a7002</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55154</commentid>
    <comment_count>5</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2015-10-12 07:27:32 +0000</bug_when>
    <thetext>verified with build yocto2.0 rc1
poky:eac61f37e36099f74485dab398b57f3812826d17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55754</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-26 15:17:10 +0000</bug_when>
    <thetext>So the fix for this breaks nfs on non-SDK usage.

If I build unfs3-native and it ends up in sysroot/usr/sbin.  If I build nativesdk-unfs3 it ends up in .../usr/bin.

Because nativesdk.bbclass does this:

  sbindir = &quot;${bindir}&quot;

(oe-core 24b80d211f3808a0ffebee426932f11b8d4d46e0)

So we either fiddle the configure arguments to unfs3-native to set --sbindir=${bindir}, or teach runqemu how to search paths for binaries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55850</commentid>
    <comment_count>7</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-27 15:56:59 +0000</bug_when>
    <thetext>Patch submitted to the list:
http://lists.openembedded.org/pipermail/openembedded-core/2015-October/112056.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56012</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-10-29 15:21:31 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=24cfcc4ac06e7768fd9ce19930bfabd321af472c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56310</commentid>
    <comment_count>9</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-11-09 07:13:05 +0000</bug_when>
    <thetext>Verified with 2.0 rc3 (jethro/fc45deac89ef63ca1c44e763c38ced7dfd72cbe1)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>