summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Wei <Wei.Yang@windriver.com>2014-03-31 14:01:59 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-31 23:04:36 +0100
commitbd072d84da325820dcff333fdcf169834f62d833 (patch)
tree6bb19eab8e87498eb24336685b2cde69f4cb5be2
parent4226f9c6a19fbdac6c334860751c0ea6a0d1df13 (diff)
downloadpoky-bd072d84da325820dcff333fdcf169834f62d833.tar.gz
poky: add edgerouter information to README.hardware
Adding the summary, preparation and boot information for the newly introduced edgerouter BSP. (From meta-yocto rev: cc8c7a3c94d2cafe899adc7f8199237d4a72f205) Signed-off-by: Yang Wei <Wei.Yang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--README.hardware81
1 files changed, 81 insertions, 0 deletions
diff --git a/README.hardware b/README.hardware
index 607062b59a..eccc7d3e6e 100644
--- a/README.hardware
+++ b/README.hardware
@@ -492,3 +492,84 @@ manually, you can automate the boot process with a boot script.
492 ... Program from 0x87ff0000-0x88000000 at 0xbfff0000: . 492 ... Program from 0x87ff0000-0x88000000 at 0xbfff0000: .
4934) Power cycle the board. 4934) Power cycle the board.
494 494
495EdgeRouter Lite(edgerouter)
496=====================================
497
498The EdgeRouter Lite is part of the EdgeMax series. It is an MIPS64 router(Cavium Octeon)
499with 512MB of RAM, which uses a USB pendrive for storage.
500
501Setup instructions
502------------------
503
504You will need the following:
505* NFS root setup on your workstation
506* TFTP server installed on your workstation
507* Straight-thru 9-conductor serial cable (DB9, M/F) connected from your
508 PC to UART1
509* Ethernet connected to the first ethernet port on the board
510
511--- Preparation ---
512
513Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE.
514In the following instruction it is based on core-image-minimal. Another target
515may be similiar with it.
516
517--- Booting from NFS root ---
518
519Load the kernel, and boot the system as follows:
520
521 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter
522 directory, and make them available on your TFTP server.
523
524 2. Connect the board's first serial port to your workstation and then start up
525 your favourite serial terminal so that you will be able to interact with
526 the serial console. If you don't have a favourite, picocom is suggested:
527
528 $ picocom /dev/ttyS0 -b 115200
529
530 3. Power up or reset the board and press a key on the terminal when prompted
531 to get to the U-Boot command line
532
533 4. Set up the environment in U-Boot:
534
535 => setenv ipaddr <board ip>
536 => setenv serverip <tftp server ip>
537
538 5. Download the kernel and boot:
539
540 => tftp tftp $loadaddr vmlinux
541 => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs 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)
542
543--- Booting from USB root ---
544
545NOTE: Since the USB disk is inside the edgerouter box, its inconvenient for us to
546 plug and unplug the USB disk. So in the following instructions I assume that
547 you already boot the box from NFS. Additionally, since vmlinux is not installed
548 to core-minal-image-xxx by default, so its neccessary for us to copy it to USB
549 disk.
550
551Load the kernel, and boot the system as follows:
552 1. Booting from NFS root
553
554 2. Mount usb disk partition 2 and then extract the contens of
555 tmp/deploy/core-image-XXXX.tar.bz2 into it.
556
557 Before starting, copy core-image-minimal-xxx.tar.bz2 and vmlinux into
558 rootfs path on your workstation.
559
560 and then,
561
562 # mount /dev/sda2 /media/sda2
563 # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2
564 # cp vmlinux /media/sda2/boot/vmlinux
565 # umount /media/sda2
566 # reboot
567
568 3. Reboot the board and press a key on the terminal when prompted to get to the U-Boot
569 command line
570 # reboot
571
572 4. Load the kernel and boot:
573
574 => ext2load usb 0:2 $loadaddr boot/vmlinux
575 => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)