[Wedge100BF-series] SPI Flash Firmware version checking and upgrade Follow
Purpose:
This is the article for the check and upgrade the SPI flash firmware version on Wedge100BF-series.
Model:
Wedge100BF-32X/65X/32QS
Procedure:
Step 1. Install Diag Utility on Wedge100BF-series and enter Barefoot SDE
Please follow the article to install Diag Utility and enter Barefoot SDE:
[Wedge100BF-series] Install and start up Accton Diag, Barefoot Shell and SDE
[Note] Users can also enter Barefoot SDE through their installed NOS if not convenient to use Diag.
Step 2. Check the SPI Flash version and chip
bf-sde> reg_rd 0 000400D8
0 [000400d8] : 20180416 : __device_select__misc_regs__spi_idcode
# Report the ID code read during firmware loading from the SPI EEPROM
[31: 0] 20180416 : spi_idcode
bf-sde> exit
bfshell> exit
root@bfn-switch:~/DIAG-V0.34# lspci |grep 1d1c
06:00.0 Unassigned class [ff00]: Device 1d1c:0010 (rev 10)
If the SPI flash firmware version is earlier than 20180416, please follow Step 3. to upgrade it.
Step 3. Upgrade SPI Flash
Check the IP address
root@bfn-switch:~# ifconfig enp2s0
enp2s0 Link encap:Ethernet HWaddr 00:90:fb:5f:9b:1c
inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::290:fbff:fe5f:9b1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:300 errors:0 dropped:0 overruns:0 frame:0
TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44691 (44.6 KB) TX bytes:22017 (22.0 KB)
Memory:fbe00000-fbe7ffff
root@bfn-switch:~#
User could configure IP address as they want.
Transmit new SPI image to DUT via SCP (username/password: admin12/bfn123)
Transmit new SPI image to /root
root@bfn-switch:~# cp /home/admin12/U7_spi_20180416_gen2_sbusclk5.bin /root
Enter bfshell and SDE
root@bfn-switch:~# bfshell
********************************************
* WARNING: Authorised Access Only *
********************************************
bfshell> ucli
Starting UCLI from bf-shell
Cannot read termcap database;
using dumb terminal settings.
bf-sde>
Install new SPI image
bf-sde> bf_pltfm
bf-sde.bf_pltfm> spi-wr 0 /root/U7_spi_20180416_gen2_sbusclk5.bin 0 22074
bf_pltfm_spi: spi-wr <dev=0> <file name=/root/U7_spi_20180416_gen2_sbusclk5.bin> <offset=0> <size=22074>
SPI eeprom write OK
bf-sde.bf_pltfm>
Reboot Diag to finish the installation
bf-sde.bf_pltfm> ..
bf-sde> exit
bfshell> exit
root@bfn-switch:~# reboot
Caution: Make sure "lspci | grep 1d1c" could check the chip before upgrade the SPI flash firmware, otherwise reboot the switch until it could check the chip.
Comments
0 comments
Please sign in to leave a comment.