<?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>5176</bug_id>
          
          <creation_ts>2013-09-13 06:00:11 +0000</creation_ts>
          <short_desc>All qemu and BSPs fail to boot via nfs with 1.5 M5 rc1 build</short_desc>
          <delta_ts>2013-10-17 11:09:27 +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>connectivity</component>
          <version>1.5</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>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Jukka Rissanen">jukka.rissanen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>chandrak</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36648</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-09-13 06:00:11 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/releases/1.5_M5.rc1/
Git rev: master/566ca1e4769b4ec7e3f6c6a98bb817db2221cf82

All qemu and BSPs can not boot up via nfs.
Steps:
1. For qemu:
   $ runqemu-extract-sdk core-image-sato-sdk-qemumips.rootfs.tar.bz2 rootfs
   $ runqemu nfs vmlinux.bin rootfs
2. For BSPs:
   Boot up the system with NFS.

The boot process hangs after the connection manager (connmand) start up:

###############
...
INIT: version 2.88 booting
Error, no support currently for 8 bpp frame buffers
Trying to change pixel format...
Error, failed to switch to a 32 bpp 8,8,8 frame buffer
Switched to a 16 bpp 5,6,5 frame buffer
Starting udev
udevd[65]: starting version 182
piix4_smbus 0000:00:0a.3: SMBus Host Controller at 0x1100, revision 0
Starting Bootlog daemon: bootlogd.
Populating dev cache
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1729: No soundcards found...
Configuring network interfaces... done.
Starting rpcbind daemon...done.
hwclock: can&apos;t open &apos;/dev/misc/rtc&apos;: No such file or directory
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Connection Manager
Starting OpenBSD Secure Shell server: sshd
  generating ssh RSA key...
Bad SWSTYLE=0x04
nfs: server 192.168.7.1 not responding, still trying

############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36649</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-09-13 06:24:40 +0000</bug_when>
    <thetext>This issue is introduced by the commit:c73487302270a7c2d3bbbb191ce1dd63ee2016dc

diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman
index 67ba7c8..2625ade 100644
--- a/meta/recipes-connectivity/connman/connman/connman
+++ b/meta/recipes-connectivity/connman/connman/connman
@@ -29,8 +29,18 @@ done
 do_start() {
        EXTRA_PARAM=&quot;&quot;
        if test $nfsroot -eq 1 ; then
-               ethn=`ifconfig | grep eth | sed -e &quot;s/\(eth[0-9]\)\(.*\)/\1/&quot;`
-               EXTRA_PARAM=&quot;-I $ethn&quot;
+           NET_DEVS=`cat /proc/net/dev | sed -ne &apos;s/^\([a-zA-Z0-9 ]*\):.*$/\1/p&apos;`
+           NET_ADDR=`cat /proc/cmdline | sed -ne &apos;s/^.*ip=\([^ ]*\):.*$/\1/p&apos;`
+
+           if [ x$NET_ADDR != x ]; then
+               for i in $NET_DEVS; do
+                   ADDR=`ifconfig $i | sed &apos;s/addr://g&apos; | sed -ne &apos;s/^.*inet \([0-9.]*\) .*$/\1/p&apos;`
+                   if [ &quot;$NET_ADDR&quot; = &quot;$ADDR&quot; ]; then
+                       EXTRA_PARAM=&quot;-I $i&quot;
+                       break
+                   fi
+               done
+           fi
        fi
        if [ -f @LIBDIR@/connman/wired-setup ] ; then
                . @LIBDIR@/connman/wired-setup


This patch can not get the correct NET_ADDR, so the connman doesn&apos;t ignore the interface which is used by NFS root.

Furthermore, this patch can not deal with NFS dhcp method like below:
# cat /proc/cmdline 
root=/dev/nfs rw nfsroot=128.224.159.157:/export/pxeboot/rootfs ip=dhcp console=ttyS0,115200 diufb=15M video=fslfb:800x600-24@60,monitor=1 tty0 debug cache-sram=0xfff00000,0x8000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36978</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-19 14:53:48 +0000</bug_when>
    <thetext>Fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=42ef04b3648f4e29ed130ff8e37800f5aac44b15, would appreciate QA verifying this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38001</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-10-17 11:09:27 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>