<?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>6113</bug_id>
          
          <creation_ts>2014-04-04 08:01:49 +0000</creation_ts>
          <short_desc>[edgerouter] Can not boot from USB root</short_desc>
          <delta_ts>2014-04-14 09:08:04 +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-meta-yocto</component>
          <version>1.6</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</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 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Wei Yang">wei.yang</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>ke.zou</cc>
    
    <cc>wei.yang</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>42268</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-04-04 08:01:49 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.6_M5.rc2/machines/edgerouter/

Git rev: master/3e528d3e4bc542ca2f654c54363c56af0fb9f61b

Following the README.hardware to boot from USB root.
Steps:
1. Extract the rootfs to usb:
   # mount /dev/sda2 /media/sda2
   # tar -xvjpf core-image-minimal-rootfs.tar.bz2 -C /media/sda2
   # cp vmlinux /media/sda2/boot/vmlinux
   # umount /media/sda2
   # reboot

2. Reboot the board and press any key on the terminal when prompted to get to the U-Boot

3. Load the kernel and boot:
   =&gt; ext2load usb 0:2 $loadaddr boot/vmlinux

It can not load the kernel. Error message:
** Unable to read &quot;boot/vmlinux&quot; from usb 0:2 **</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42285</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-04-04 12:42:44 +0000</bug_when>
    <thetext>Can you work with Wei.Yang to find out how he tested the USB boot. I explicitly
asked for this to be done, so it is known to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42469</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-04-09 19:00:55 +0000</bug_when>
    <thetext>the uboot on the edgerouter can&apos;t read the 256 byte inode&apos;s on the partition. You need
to recreate the fs and then copy your image:

i.e.: mkfs.ext3 -I 128 /dev/&lt;your device&gt;

Then copy. 

I&apos;ll update the readme with this info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42470</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-04-09 19:42:11 +0000</bug_when>
    <thetext>patch sent to list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42534</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-10 14:39:25 +0000</bug_when>
    <thetext>Patch merged to master for 1.6:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1f42d829feb62271211e3d9afd5b21f9c1e2307d

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42636</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-04-14 09:08:04 +0000</bug_when>
    <thetext>Verified with 1.6 rc4. 
git rev: daisy/a0958261265049904fd78a2ba0198d46e5e65ea9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>