<?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>5636</bug_id>
          
          <creation_ts>2013-12-06 07:55:38 +0000</creation_ts>
          <short_desc>No IP address for eth0 on qemu at the first boot</short_desc>
          <delta_ts>2013-12-23 10:40:08 +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>BSPs</product>
          <component>bsps-tools</component>
          <version>1.6</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>normal</bug_severity>
          <target_milestone>1.6 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>ionutx.chisanovici</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>ke.zou</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <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>39263</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-12-06 07:55:38 +0000</bug_when>
    <thetext>Git rev: master/c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c

Steps:
1. Set the poky environment:
   source oe-init-build-env build-test
2. Use yocto-bsp to create a x86 qemu layer by using all default value:
   yocto-bsp create myqemux86 qemu
3. Modify conf/bblayers.conf and conf/local.conf. Build the image:
   bitbake core-image-sato
4. Boot up the qemu image:
   runqemu qemux86 tmp/deploy/images/myqemux86/bzImage-myqemux86.bin tmp/deploy/images/myqemux86/core-image-sato-myqemux86.ext3 nographic

At the *first* boot, no ip address for the eth0 network interface:
###########################
root@myqemux86:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1563 (1.5 KiB)  TX bytes:2651 (2.5 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@myqemux86:~#  
#############################

But when after rebooting the system, the eth0 ip address is set:
############################
root@myqemux86:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56  
          inet addr:192.168.7.2  Bcast:192.168.7.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2003 (1.9 KiB)  TX bytes:6330 (6.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
#############################
   
This is a regression bug since it works correctly in Yocto 1.5 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39275</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-06 14:18:44 +0000</bug_when>
    <thetext>I&apos;ll take this but it will probably be covered by Bug 5495 - yocto-bsp 1.6 upgrade and automation enhancements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39409</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-16 03:48:07 +0000</bug_when>
    <thetext>This is caused by the fix for bug 5513:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5513

Reverting the below commit causes the problem to disappear:

commit dc80eea725906f394469b867edc1a8c72be87ad8
Author: Chen Qi &lt;qi.chen@windriver.com&gt;
Date:   Mon Nov 11 17:26:09 2013 +0800

    sysvinit: fix problem in switching runlevels</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39528</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-20 15:37:12 +0000</bug_when>
    <thetext>Patch sent to poky list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39538</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-20 19:31:18 +0000</bug_when>
    <thetext>Fixed in poky/master: 08a8c90e95841764b8b14a3b6ef0f671b4fa4154</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39551</commentid>
    <comment_count>5</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-12-23 10:40:08 +0000</bug_when>
    <thetext>Hi,

This was verified with master:005af45191ded6185c618c708181b31281e43092 and the issue is fixed.

Cheers,
Ionut</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>