On 14-03-20 01:57 AM, wei.y...@windriver.com wrote:
From: Yang Wei <wei.y...@windriver.com>

Signed-off-by: Yang Wei <wei.y...@windriver.com>
---
Hi Bruce,

    I update README.hardware to add edgerouter support. Please take a look at 
it.

This looks good, but it brings up a question for me. Is it possible to
write the image to the USB storage and boot from there as well ?

Bruce


Thanks
Wei
  README.hardware |   45 +++++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 45 insertions(+)

diff --git a/README.hardware b/README.hardware
index 607062b..b0bd735 100644
--- a/README.hardware
+++ b/README.hardware
@@ -492,3 +492,48 @@ manually, you can automate the boot process with a boot 
script.
    ... Program from 0x87ff0000-0x88000000 at 0xbfff0000: .
  4) Power cycle the board.

+EdgeRouter Lite(edgerouter)
+=====================================
+
+The EdgeRouter Lite is part of the EdgeMax series. It is an MIPS64 
router(Cavium Octeon)
+with 512MB of RAM, which uses a USB pendrive for storage.
+
+Setup instructions
+------------------
+
+You will need the following:
+* NFS root setup on your workstation
+* TFTP server installed on your workstation
+* Straight-thru 9-conductor serial cable (DB9, M/F) connected from your
+  PC to UART1
+* Ethernet connected to the first ethernet port on the board
+
+--- Preparation ---
+
+Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE
+
+--- Booting from NFS root ---
+
+Load the kernel, and boot the system as follows:
+
+ 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter
+    directory, and make them available on your TFTP server.
+
+ 2. Connect the board's first serial port to your workstation and then start up
+    your favourite serial terminal so that you will be able to interact with
+    the serial console. If you don't have a favourite, picocom is suggested:
+
+  $ picocom /dev/ttyS0 -b 115200
+
+ 3. Power up or reset the board and press a key on the terminal when prompted
+    to get to the U-Boot command line
+
+ 4. Set up the environment in U-Boot:
+
+ => setenv ipaddr <board ip>
+ => setenv serverip <tftp server ip>
+
+ 5. Download the kernel and boot:
+
+ => tftp tftp $loadaddr vmlinux
+ => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs rw rw nfsroot=<nfsroot ip>:<rootfs path> 
ip=<board ip>:<server ip>:<gateway ip>:<netmask>:edgerouter:eth0:off 
mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)


--
_______________________________________________
yocto-bsp mailing list
yocto-bsp@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto-bsp

Reply via email to