[CPLD/FPGA] How to upgrade the CPLD/FPGA via ONIE? Follow
Purpose:
This post shows the procedures to upgrade CPLD/FPGA via ONIE on Edgecore switch.
Model:
AS4630-54PE
AS5712-54X
AS5812-54X, AS5812-54T
AS5835-54X, AS5835-54T
AS5912-54X
AS5916-54XKS, AS5916-54XL, AS5916-54XM
AS6712-32X
AS6812-32X
AS7712-32X
AS7326-56X
AS7726-32X
AS7816-64X
AS9716-32D
Preparation:
A. Personal computer
B. CPLD/FPGA_Updater
- Download the CPLD/FPGA-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 "Accton Diag" mode. (e.g., AS6712_32x)
STEP2. Check the current CPLD/FPGA version.
*Note: If your models are "AS5712 / AS5812 / AS6712 / AS6812", please refer to Section A.
Others, please refer to Section B.
- Section A.
1.Input "diag_main" command.
diag# diag_main
2. Please find "Test read CPLD version" then input the corresponding option number and you will see the CPLD version.
Please enter your choice(Enter 0 to quit): 29
CPLD-1 version : 4
CPLD-2 version : 2
CPLD-3 version : 2
Item (29) test result : SUCCESS
- Section B.
1. Input "cpldutil -ver" command.
root@(none):/# cpldutil -ver
CPLD#1 Version: 10 (0x0A)
CPLD#2 Version: 9 (0x09)
CPLD#3 Version: 9 (0x09)
FAN CPLD Version: 08 (0x08)
*Note: If this command is unable to get the firmware version, please execute "show_chip_ver.sh" or "chip_version".
STEP3. Reboot the switch and then press "ESC" to enter the BIOS setting.
*Note: This step is required if (1)your model is one of the following: AS5916/AS7326/AS7716/AS7726/AS7816/AS9716, and (2)the BIOS version is v36 or earlier. Otherwise you can skip this step.
*set Lock Chipset to: Disable
*set MSR Lock Control to: Disable
1. Check the version and then press "ESC".
2. Please follow the red marked.
3. Please disable the following red marked
4. Save changes and reset.
STEP4. Reboot the switch and enter the "ONIE: Rescue" mode.
STEP5. Start the upgrade process. Here introduce 5 ways (USB/TFTP/FTP/HTTP/SCP) to upgrade the CPLD/FPGA.
- USB drive
1. Put the CPLD/FPGA_Updater to the USB drive. (e.g., AS6712)
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: 4009 MB, 4009754624 bytes
255 heads, 63 sectors/track, 487 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 488 3911744 b Win95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 63) logical=(0, 128, 1)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(487, 125, 22)
Note: The "/dev/sda" is the original storage disk in the switch.
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,codepa
ge=437,iocharset=iso8859-1,shortname=mixed,errors=re
6. Copy the CPLD/FPGA_Updater to local storage. (e.g., /tmp)
ONIE:/mnt/usb # ls
32X_ES6632BT_V522_20180125.jbc.updater
System Volume Information
ONIE:/mnt/usb # cp 32X_ES6632BT_V522_20180125.jbc.updater /tmp
7. Upgrade the CPLD/FPGA by "install_url [CPLD/FPGA_Updater]" command. (*Note: Please use "onie-self-update" command instead of "install_url" in 2019/02 ONIE version or above.)
ONIE:/ # cd /tmp
ONIE:/tmp # ls
32X_ES6632BT_V522_20180125.jbc.updater
ONIE:/tmp # install_url 32X_ES6632BT_V522_20180125.jbc.updater
8. CPLD/FPGA will be upgraded immediately. After upgrade, the system will automatically reboot.
- 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 use the ping command to make sure that the TFTP server can communicate with switch. (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 "install_url [TFTP file location]" command and then switch will start to upgrade the CPLD/FPGA automatically.
ONIE:/ # install_url tftp://192.168.0.200/32X_ES6632BT_V522_20180125.jbc.updater
- 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 and use the ping command to make sure that the FTP server can communicate with switch. (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 "install_url [FTP account:password@location]" command and then switch will start to upgrade the CPLD/FPGA automatically. (*Note: Please use "onie-self-update" command instead of "install_url" in 2019/02 ONIE version or above.)
ONIE:/ # install_url ftp://edgecore:edgecore@192.168.0.200/32X_ES6632BT_V522_20180125.jbc.updater
- 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 and use the ping command to make sure that the HTTP server can communicate with switch.. (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 "install_url [HTTP URL]" command and and then switch will start to upgrade the CPLD/FPGA automatically. (*Note: Please use "onie-self-update" command instead of "install_url" in 2019/02 ONIE version or above.)
ONIE:/ # install_url http://192.168.0.200/32X_ES6632BT_V522_20180125.jbc.updater
- 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 and use the ping command to make sure that the openSSH server can communicate with switch. (Server IP: 192.168.0.100)
ONIE:/ # ifconfig eth0 192.168.0.11 netmask 255.255.255.0
ONIE:/ # ifconfig
eth0 Link encap:Ethernet HWaddr CC:37:AB:C4:B1:0C
inet addr:192.168.0.11 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 CPLD/FPGA_Updater from the openSSH server.
scp [account@server ip]:[installer_file_path] [local_path]
ONIE:/ # scp jeff_cheng@192.168.0.100:/Users/jeff_cheng/Desktop/ISO/6712 -32x/CPLD/CPLDv522/32X_ES6632BT_V522_20180125.jbc.updater /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:
32X_ES6632BT_V522_20180125.jbc.updater 100% 636KB 635.6KB/s 00:00
4. Upgrade the CPLD/FPGA by "install_url [CPLD/FPGA_Updater]" command. (*Note: Please use "onie-self-update" command instead of "install_url" in 2019/02 ONIE version or above.)
ONIE:/ # cd /tmp
ONIE:/tmp # ls
32X_ES6632BT_V522_20180125.jbc.updater
ONIE:/tmp # install_url 32X_ES6632BT_V522_20180125.jbc.updater
STEP6. After the upgrade processed, you *must* cold restart (Power cycle). Then, please follow STEP1 to check if it upgraded successfully.
1. Enter the "Accton Diag" mode.
2. Check the current CPLD/FPGA version.
- Section A.
diag# diag_main
Please enter your choice(Enter 0 to quit): 29
CPLD-1 version : 5
CPLD-2 version : 2
CPLD-3 version : 2
Item (29) test result : SUCCESS
- Section B.
root@(none):/# cpldutil -ver
root@(none):/# cpldutil -ver
CPLD#1 Version: 10 (0x0A)
CPLD#2 Version: 11 (0x0B)
CPLD#3 Version: 11 (0x0B)
FAN CPLD Version: 08 (0x08)
STEP7. After the upgrade, please return to STEP3 and then "enable" the setting back.
Comments
0 comments
Please sign in to leave a comment.