diff options
| -rw-r--r-- | README.hardware | 81 |
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: . |
| 493 | 4) Power cycle the board. | 493 | 4) Power cycle the board. |
| 494 | 494 | ||
| 495 | EdgeRouter Lite(edgerouter) | ||
| 496 | ===================================== | ||
| 497 | |||
| 498 | The EdgeRouter Lite is part of the EdgeMax series. It is an MIPS64 router(Cavium Octeon) | ||
| 499 | with 512MB of RAM, which uses a USB pendrive for storage. | ||
| 500 | |||
| 501 | Setup instructions | ||
| 502 | ------------------ | ||
| 503 | |||
| 504 | You 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 | |||
| 513 | Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE. | ||
| 514 | In the following instruction it is based on core-image-minimal. Another target | ||
| 515 | may be similiar with it. | ||
| 516 | |||
| 517 | --- Booting from NFS root --- | ||
| 518 | |||
| 519 | Load 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 | |||
| 545 | NOTE: 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 | |||
| 551 | Load 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) | ||
