Bug 6113 - [edgerouter] Can not boot from USB root
Summary: [edgerouter] Can not boot from USB root
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 1.6
Hardware: Other other
: Medium normal
Target Milestone: 1.6 M5
Assignee: Wei Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-04 08:01 UTC by Yi Zhao
Modified: 2014-04-14 09:08 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-04-04 08:01:49 UTC
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:
   => ext2load usb 0:2 $loadaddr boot/vmlinux

It can not load the kernel. Error message:
** Unable to read "boot/vmlinux" from usb 0:2 **
Comment 1 Bruce Ashfield 2014-04-04 12:42:44 UTC
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.
Comment 2 Bruce Ashfield 2014-04-09 19:00:55 UTC
the uboot on the edgerouter can't read the 256 byte inode's on the partition. You need
to recreate the fs and then copy your image:

i.e.: mkfs.ext3 -I 128 /dev/<your device>

Then copy. 

I'll update the readme with this info.
Comment 3 Bruce Ashfield 2014-04-09 19:42:11 UTC
patch sent to list.
Comment 4 Paul Eggleton 2014-04-10 14:39:25 UTC
Patch merged to master for 1.6:

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

Thanks.
Comment 5 Yi Zhao 2014-04-14 09:08:04 UTC
Verified with 1.6 rc4. 
git rev: daisy/a0958261265049904fd78a2ba0198d46e5e65ea9