[ONIE] How to update ONIE on Edgecore x86 platform switch? Follow
Purpose:
This post shows the procedures to update ONIE on Edgecore x86 platform switch.
Model:
AS5712-54X
AS5812-54X, AS5812-54T
AS5912-54X
AS5916-54XKS, AS5916-54XL
AS6712-32X
AS6812-32X
AS7712-32X
Method:
A. USB drive
B. Cable transfer
- TFTP
- FTP
- HTTP
- SCP
Preparation:
A. Personal computer
B. Onie-updater
- Download the ONIE-updater image for your own device.
- Reference: How to download the current firmware?
C. Serial Console cable:
- A cable which attached in the original box.
D. Console terminal
- Putty,Teraterm,SecureCRT,etc...
E. Empty USB drive or transport protocol tools
- USB drive
- TFTP server
- FTP server
- Http file server
- OpenSSH
Procedure:
STEP1. Reboot the data center and enter the "ONIE: Rescue" mode.
STEP2. Check ONIE version by "onie-syseeprom" command. (e.g., 2015.11.00.05)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2015.11.00.05
CRC-32 0xFE 4 0x57A7CCB4
Checksum is valid.
ONIE:/ #
STEP3. Start the upgrade process (5 examples)
- USB
1. Put the onie-updater file to the USB drive. (e.g., onie-updater, AS6712-32x)
2. Insert the USB drive into the data center front panel.
3. The terminal will show the following message.
4. Input "fdisk -l" command to show the storage status (e.g., /dev/sdb)
ONIE:/ # fdisk -l
Disk /dev/sda: 8048 MB, 8048869376 bytes
255 heads, 63 sectors/track, 978 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 979 7860223+ ee EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(978, 140, 58)
Disk /dev/sdb: 4048 MB, 4048551936 bytes
125 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 7750 * 512 = 3968000 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 ? 251392 471002 850989111+ 6e Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(97, 115, 32) logical=(251391, 81, 14)
Partition 1 has different physical/logical endings:
phys=(107, 121, 32) logical=(471001, 92, 54)
Partition 1 does not end on cylinder boundary
/dev/sdb2 ? 1 1 0 74 Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(370, 116, 33) logical=(0, 0, 1)
Partition 2 has different physical/logical endings:
phys=(0, 13, 10) logical=(554189, 41, 4)
Partition 2 does not end on cylinder boundary
/dev/sdb4 3620 3620 220+ 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(3619, 34, 51)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(3619, 41, 57)
Partition 4 does not end on cylinder boundary
Partition table entries are not in disk order
Note: /dev/sda is original hard drive, eUSB, 8G
5. Mount the USB drive and check the mount status.
ONIE:/mnt # mkdir /mnt/usb
ONIE:/mnt # mount -v /dev/sdb /mnt/usb
ONIE:/mnt # mount | grep sdb
/dev/sdb on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
6. Copy the ONIE-updater to local storage. (e.g., /tmp)
ONIE:/mnt/usb # ls
System Volume Information
onie-updater-x86_64-accton_as6712_32x-r0
ONIE:/mnt/usb # cp onie-updater-x86_64-accton_as6712_32x-r0 /tmp
ONIE:/mnt/usb #
7. Update the ONIE by "onie-self-update [updater]" command.
ONIE:/ # cd /tmp
ONIE:/tmp # ls
onie-updater-x86_64-accton_as6712_32x-r0
ONIE:/tmp # onie-self-update onie-updater-x86_64-accton_as6712_32x-r0
8. ONIE will be upgraded immediately. After upgrading, the system will automatically reboot.
9. The same as STEP1, select "ONIE: Rescue" mode when the ONIE restart.
10. Check ONIE version by "onie-syseeprom" command again. (e.g., 2017.05.00.08)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2017.05.00.08
CRC-32 0xFE 4 0x016AFB4A
Checksum is valid.
ONIE:/ #
- TFTP
1. Please connect to the TFTP server with Mgmt port. (e.g., AS6712-32x)
Note: Please use 1G port.
2. Set the IP address in ONIE and try to ping the TFTP server. (Server IP: 192.168.0.200)
ONIE:/ # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ONIE:/ # ifconfig
eth0 Link encap:Ethernet HWaddr CC:37:AB:C4:B1:0C
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ce37:abff:fec4:b10c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7619 (7.4 KiB) TX bytes:7134 (6.9 KiB)
Memory:dff00000-dff1ffff
ONIE:/ # ping 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: seq=0 ttl=128 time=9.675 ms
64 bytes from 192.168.0.200: seq=1 ttl=128 time=0.517 ms
^C
--- 192.168.0.200 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.517/5.096/9.675 ms
3. Input "onie-self-update [TFTP location]" command and the upgrade will start.
ONIE:/ # onie-self-update tftp://192.168.0.200/onie-updater-x86_64-accton_as6712_32x-r0
4. The same as STEP1, select "ONIE: Rescue" mode when the ONIE restart.
5. Check ONIE version by "onie-syseeprom" command again. (e.g., 2017.05.00.08)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2017.05.00.08
CRC-32 0xFE 4 0x016AFB4A
Checksum is valid.
- FTP
1. Please connect to the FTP server with Mgmt port. (e.g., AS6712-32x)
Note: Please use 1G port.
2. Set the IP address in ONIE and try to ping the FTP server. (Server IP: 192.168.0.200)
ONIE:/ # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ONIE:/ # ifconfig
eth0 Link encap:Ethernet HWaddr CC:37:AB:C4:B1:0C
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ce37:abff:fec4:b10c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7619 (7.4 KiB) TX bytes:7134 (6.9 KiB)
Memory:dff00000-dff1ffff
ONIE:/ # ping 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: seq=0 ttl=128 time=9.675 ms
64 bytes from 192.168.0.200: seq=1 ttl=128 time=0.517 ms
^C
--- 192.168.0.200 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.517/5.096/9.675 ms
3. Input "onie-self-update [FTP account:password@location]" command and the upgrade will start.
ONIE:/ # onie-self-update ftp://edgecore:edgecore@192.168.0.200/onie-updater-x86_64-accton_as6712_32x-r0
4. The same as STEP1, select "ONIE: Rescue" mode when the ONIE restart.
5. Check ONIE version by "onie-syseeprom" command again. (e.g., 2017.05.00.08)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2017.05.00.08
CRC-32 0xFE 4 0x016AFB4A
Checksum is valid.
- HTTP
1. Please connect to the HTTP server with Mgmt port. (e.g., AS6712-32x)
Note: Please use 1G port.
2. Set the IP address in ONIE and try to ping the HTTP server. (Server IP: 192.168.0.200)
ONIE:/ # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ONIE:/ # ifconfig
eth0 Link encap:Ethernet HWaddr CC:37:AB:C4:B1:0C
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ce37:abff:fec4:b10c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7619 (7.4 KiB) TX bytes:7134 (6.9 KiB)
Memory:dff00000-dff1ffff
ONIE:/ # ping 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: seq=0 ttl=128 time=9.675 ms
64 bytes from 192.168.0.200: seq=1 ttl=128 time=0.517 ms
^C
--- 192.168.0.200 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.517/5.096/9.675 ms
3. Input "onie-self-update [HTTP location]" command and the upgrade will start.
ONIE:/ # onie-self-update http://192.168.0.200/onie-updater-x86_64-accton_as6712_32x-r0
4. The same as STEP1, select "ONIE: Rescue" mode when the ONIE restart.
5. Check ONIE version by "onie-syseeprom" command again. (e.g., 2017.05.00.08)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2017.05.00.08
CRC-32 0xFE 4 0x016AFB4A
Checksum is valid.
- SCP
1. Please connect to the OpenSSH server with Mgmt port. (e.g., AS6712-32x)
Note: Please use 1G port.
2. Set IP address in ONIE and try to ping the OpenSSH server. (Server IP: 192.168.0.100)
ONIE:/ # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ONIE:/ # ifconfig
eth0 Link encap:Ethernet HWaddr CC:37:AB:C4:B1:0C
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ce37:abff:fec4:b10c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7619 (7.4 KiB) TX bytes:7134 (6.9 KiB)
Memory:dff00000-dff1ffff
ONIE:/ # ping 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: seq=0 ttl=64 time=0.705 ms
64 bytes from 192.168.0.100: seq=1 ttl=64 time=0.433 ms
^C
--- 192.168.0.100 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.433/0.569/0.705 ms
3. Use the "SCP" command to copy the updater file from the openSSH server.
scp [account@server ip]:[upgrade_file_path] [local_path]
ONIE:/ # scp jeff_cheng@192.168.0.100:/Users/jeff_cheng/Desktop/ISO/6712-32x/eUSB/2017.05/onie-updater-x86_64-accton_as6712_32x-r0 /tmp
Host '192.168.0.100' is not in the trusted hosts file.
(ecdsa-sha2-nistp256 fingerprint md5 be:26:8f:8c:2f:26:69:f5:05:7e:30:d2:d2:01:e0:92)
Do you want to continue connecting? (y/n) y
jeff_cheng@192.168.0.100's password:
onie-updater-x86_64-accton_as6712_32x-r0 100% 9082KB 8.9MB/s 00:00
4. Update the ONIE by "onie-self-update [updater]" command.
ONIE:/ # cd /tmp
ONIE:/tmp # ls
onie-updater-x86_64-accton_as6712_32x-r0
ONIE:/tmp # onie-self-update onie-updater-x86_64-accton_as6712_32x-r0
5. Check ONIE version by "onie-syseeprom" command again. (e.g., 2017.05.00.08)
ONIE:/ # onie-syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 168
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 03/30/2016 13:59:55
Diag Version 0x2E 7 1.0.0.8
Label Revision 0x27 4 R01A
Manufacturer 0x2B 6 Accton
Country Code 0x2C 2 TW
Base MAC Address 0x24 6 CC:37:AB:C4:B1:0C
Serial Number 0x23 14 671232X1613031
Part Number 0x22 13 FP2ZZ6632000A
Product Name 0x21 15 6712-32X-O-AC-B
MAC Addresses 0x2A 2 130
Vendor Name 0x2D 8 Edgecore
Platform Name 0x28 27 x86_64-accton_as6712_32x-r0
ONIE Version 0x29 13 2017.05.00.08
CRC-32 0xFE 4 0x016AFB4A
Checksum is valid.
ONIE:/ #
Comments
0 comments
Please sign in to leave a comment.