|
| 1 | +==================================== |
| 2 | +Installing ONIE on Accton AS9926_24D |
| 3 | +==================================== |
| 4 | + |
| 5 | +Cross-Compiling ONIE |
| 6 | +==================== |
| 7 | + |
| 8 | +Change directories to ``build-config`` to compile ONIE. |
| 9 | + |
| 10 | +To compile ONIE first change directories to ``build-config`` and then |
| 11 | +type ``"make MACHINEROOT=../machine/accton MACHINE=accton_as9926_24d all"``. |
| 12 | +For example:: |
| 13 | + |
| 14 | + $ cd build-config |
| 15 | + $ make -j4 MACHINEROOT=../machine/accton MACHINE=accton_as9926_24d all |
| 16 | + |
| 17 | +When complete, the ONIE binaries are located in |
| 18 | +``build/images``:: |
| 19 | + |
| 20 | +-rw-rw-r-- 1 8217496 Sep 17 14:24 accton_as9926_24d-r0.initrd |
| 21 | +-rw-rw-r-- 1 3445024 Sep 17 14:23 accton_as9926_24d-r0.vmlinuz |
| 22 | +-rw-rw-r-- 1 25952256 Sep 17 14:25 onie-recovery-x86_64-accton_as9926_24d-r0.iso |
| 23 | +-rw-rw-r-- 1 11695991 Sep 17 14:24 onie-updater-x86_64-accton_as9926_24d-r0 |
| 24 | + |
| 25 | +accton_as9926_24d-r0.vmlinuz -- This is the ONIE kernel image |
| 26 | + |
| 27 | +accton_as9926_24d-r0.initrd -- This is the ONIE initramfs (filesystem) |
| 28 | + |
| 29 | +onie-recovery-x86_64-accton_as9926_24d-r0.iso -- This is the ONIE recovery |
| 30 | +ISO image. This image can be used to create a bootable USB memory stick |
| 31 | +for installing/recovery ONIE. |
| 32 | + |
| 33 | +onie-updater-x86_64-accton_as9926_24d-r0 -- This is the ONIE self-update |
| 34 | +image. This image is a self-extracting archive used for installing ONIE. |
| 35 | + |
| 36 | +Installing ONIE on a Blank Machine |
| 37 | +================================== |
| 38 | + |
| 39 | +To install ONIE on a new machine, you can use the recovery ISO image to |
| 40 | +create a bootable USB memory stick. |
| 41 | + |
| 42 | +Creating bootable USB stick |
| 43 | +--------------------------- |
| 44 | + |
| 45 | +Use ``dd`` to copy the .iso image to a USB stick and boot from that:: |
| 46 | + |
| 47 | + dd if=<machine>.iso of=/dev/sdX bs=10M |
| 48 | + |
| 49 | +You can find the correct ``/dev/sdX`` by inspecing the ``dmesg`` |
| 50 | +output after inserting the USB stick into your work station. |
| 51 | + |
| 52 | +Booting from USB stick |
| 53 | +---------------------- |
| 54 | + |
| 55 | +To enable booting from USB in the BIOS: |
| 56 | + |
| 57 | +1. Insert the USB stick |
| 58 | + |
| 59 | +2. Power on the switch and enter the BIOS configuration |
| 60 | + |
| 61 | +3. Set the hard drive boot order: |
| 62 | + |
| 63 | + In "Boot Option #1" select the device that corresponds to your |
| 64 | + device:: |
| 65 | + |
| 66 | + Boot-->Boot Option Priorities-->Boot Option #1 |
| 67 | + |
| 68 | + If the device name is not listed in "Boot Option #1", please |
| 69 | + check the priorities in the hard drive boot order:: |
| 70 | + |
| 71 | + Boot-->Hard Drive BBS Priorities-->Boot Option #1 |
| 72 | + |
| 73 | + Taking ``JetFlashTranscend 8GB 8.07`` as an example, the boot |
| 74 | + order will look like following:: |
| 75 | + |
| 76 | + Boot Option Priorities |
| 77 | + Boot Option #1 [JetFlashTranscend 8...] |
| 78 | + Boot Option #2 [ATP ATP IG eUSB 1100] |
| 79 | + Boot Option #3 [IBA GE Slot 00A0 v1543] |
| 80 | + Boot Option #4 [UEFI: Built-in EFI ...] |
| 81 | + |
| 82 | +4. Save and Exit the BIOS configuration |
| 83 | + |
| 84 | +5. After several seconds, you should see: |
| 85 | + |
| 86 | + GNU GRUB version 2.02~beta2+e4a1fe391 |
| 87 | + |
| 88 | + +----------------------------------------------------------------------------+ |
| 89 | + |*ONIE: Rescue | |
| 90 | + | ONIE: Embed ONIE | |
| 91 | + | | |
| 92 | + | | |
| 93 | + | | |
| 94 | + | | |
| 95 | + | | |
| 96 | + | | |
| 97 | + | | |
| 98 | + | | |
| 99 | + | | |
| 100 | + | | |
| 101 | + +----------------------------------------------------------------------------+ |
| 102 | + |
| 103 | + Use the ^ and v keys to select which entry is highlighted. |
| 104 | + Press enter to boot the selected OS, `e' to edit the commands |
| 105 | + before booting or `c' for a command-line. |
| 106 | + |
| 107 | + - Choose ``ONIE: Embed ONIE`` for creating a fresh partition layout and |
| 108 | + installing ONIE automatically. All data on the mass storage will be |
| 109 | + erased. |
| 110 | + - Choose ``ONIE: Rescue`` for entering ONIE recovery command-line shell. |
0 commit comments