<?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>617</bug_id>
          
          <creation_ts>2010-12-27 02:03:23 +0000</creation_ts>
          <short_desc>[routerstation]kernel uses incorrect cmdline</short_desc>
          <delta_ts>2011-03-07 21:16:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</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.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</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>11317</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2010-12-27 02:03:23 +0000</bug_when>
    <thetext>Testing Env:

Host: Routerstationpro
Kernel: Linux version 2.6.34.7-yocto-standard-00017-g2ec2eda
Image location:
http://autobuilder.pokylinux.org/milestone/20101218-1/qemu/qemurouterstationpro/vmlinux-2.6.34+git0+50ccd2b3213b6a1bacb3f898c035119802dac420_0+2ec2edaf256dd8500ee3d4763fee6ca3ecd6da4b-r0-routerstationpro-20101219134731.bin


I set a kernel cmdline in redboot, in order to get a static ip 

#############
RedBoot&gt; 
RedBoot&gt; fconfig -l
Network hardware address [MAC]: 0x00:0x15:0x6D:0xC5:0xC3:0xAB
Run script at boot: true
Boot script: 
.. load -v vlm-boards/19256/kernel -h 128.224.178.20
.. exec -c &quot;console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19256/rootfs ip=128.224.178.128:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off&quot;

Boot script timeout (1000ms resolution): 5
Use BOOTP for network configuration: false
Gateway IP address: 128.224.178.1
Local IP address: 128.224.178.128
Local IP address mask: 255.255.254.0
Default server IP address: 128.224.178.20
Console baud rate: 115200
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
RedBoot&gt; 
#############

but it is not available when boot up routerstation hardware with this kernel 

#############
root@routerstationpro:~# uname -a
Linux routerstationpro 2.6.34.7-yocto-standard-00017-g2ec2eda #1 Sun Dec 19 05:46:34 PST 2010 mips GNU/Linux
root@routerstationpro:~# 
root@routerstationpro:~# cat /proc/cmdline 
console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19255/rootfs ip=dhcp board=UBNT-RSPRO
#############

more info:
#############
readelf -x .init.data vmlinux-2.6.34+git0+50ccd2b3213b6a1bacb3f898c035119802dac420_0+2ec2edaf256dd8500ee3d4763fee6ca3ecd6da4b-r0-routerstationpro-20101219134731.bin |grep &quot;vlm&quot;

  0x80466888 00000000 00000000 00000000 00000000 ................
  0x80466898 00000000 636f6e73 6f6c653d 74747953 ....console=ttyS
  0x804668a8 302c3131 35323030 20726f6f 743d2f64 0,115200 root=/d
  0x804668b8 65762f6e 66732072 77206e66 73726f6f ev/nfs rw nfsroo
  0x804668c8 743d3132 382e3232 342e3137 382e3230 t=128.224.178.20
  0x804668d8 3a2f6578 706f7274 2f707865 626f6f74 :/export/pxeboot
  0x804668e8 2f766c6d 2d626f61 7264732f 31393235 /vlm-boards/1925
  0x804668f8 352f726f 6f746673 2069703d 64686370 5/rootfs ip=dhcp
  0x80466908 20626f61 72643d55 424e542d 52535052  board=UBNT-RSPR
  0x80466918 4f000000 00000000 00000000 00000000 O...............

################

The kernel uses incorrect cmdline.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11324</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2010-12-27 17:32:30 +0000</bug_when>
    <thetext>Same issue in nightly build 20101225:

http://autobuilder.pokylinux.org/nightly/20101225-1/qemu/qemurouterstationpro/vmlinux-2.6.34+git0+50ccd2b3213b6a1bacb3f898c035119802dac420_0+2ec2edaf256dd8500ee3d4763fee6ca3ecd6da4b-r1-routerstationpro-20101226172534.bin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11372</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-01-04 11:13:29 +0000</bug_when>
    <thetext>kernel config update to fix this. working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11503</commentid>
    <comment_count>3</comment_count>
    <who name="Liang Wang">liangliang.wang</who>
    <bug_when>2011-01-17 22:54:11 +0000</bug_when>
    <thetext>This defect is fixed on http://autobuilder.pokylinux.org/nightly/20110114-1/machines/routerstationpro/mips/, gitinfo: commit d38ad3271829b2d282c973e69edd265ef52174c8

routerstationpro login: root
login[253]: root login  on `ttyS0&apos;

root@routerstationpro:~# uname -a
Linux routerstationpro 2.6.37-yocto-standard-00332-g2ebf057 #1 Sat Jan 15 16:39:58 PST 2011 mips GNU/Linux
root@routerstationpro:~# 
root@routerstationpro:~# cat /proc/cmdline 
  console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19256/rootfs ip=128.224.178.128:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off board=UBNT-RSPRO board=RouterStation PRO ethaddr=00.15.6d.c5.c3.ab</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12343</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-03-07 21:16:54 +0000</bug_when>
    <thetext>VERIFIED it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>