[ONIE] How to recover ONIE on ARM platform switch via TFTP?

Steven_zhangCreated at:Dec 10, 2019 14:53:23Updated at:Dec 11, 2019 09:52:53

Purpose:

This post shows the procedures to recover ONIE on ARM platform switch.

Model:

AS4610-30T,AS4610-30P

AS4610-52T,AS4610-52P

Preparation:

A. Personal computer:

B. Serial Console cable:

  • A cable which attached in the original box.

C. ISO Image:

  • Download the ONIE ISO image for your own device.

D. A console terminal

  • Putty,Teraterm,SecureCRT,etc..

E. TFTP Server

  • To download the iso image into the switch.

Procedure:

STEP1. Press "any key"  to enter the U-Boot mode after booting up the switch.

mceclip0.png

 

STEP2. Please follow the command below.

*Cautions: Please make sure that every step needs to be performed, or the switch will not boot up again with any accident.

  accton_as4610-30-> setenv ipaddr 188.188.184.100  -->switch IP
  accton_as4610-30-> setenv serverip 188.188.99.1   -->TFTP SERVER IP
  accton_as4610-30-> tftp 0x70000000 AS4610-30_ONIE_v2016_05_00_04.bin
   --> tftpboot file name

ETH LINK UP: 1000FD

Using eth-0 device

TFTP from server 188.188.99.1; our IP address is 188.188.184.100

Filename 'AS4610-30-r0_ONIE_v2016_05_00_04.bin'.

Load address: 0x70000000

Loading: T #######################################################

 #################################################################

 #################################################################

 #################################################################

 #################################################################

 #################################################################

 ####################

done

Bytes transferred=6013496 ( hex)-->This number will be use on step F

 accton_as4610-30-> sf probe 0
 accton_as4610-30-> sf erase 0 0x800000
 accton_as4610-30-> sf write 0x70000000 0 0 accton_as4610-30-> reset

STEP3. The system will be reset, please wait about 5 mins to restore the switch.

STEP4. Execute "run onie_rescue" to make sure the ONIE is recovered.

Loading Open Network Install Environment ...
Platform: arm-accton_as4610_30-r0
Version : 2016.05.00.04
## Booting kernel from FIT Image at 70000000 ...