[CPLD] How to Upgrade CPLD on Wedge100BF switch?

Steven_zhangCreated at:Jan 06, 2020 11:02:24Updated at:Jan 06, 2020 11:05:12

1.      Topology

 0015e12a1c0cfb751c662073d9e4443


 

2.      Login OpenBmc by username “root”, password “0penBmc”(number 0)

 0015e12a1cb3411ef80dfd2229371fd


3.      Either way, copy CPLD file to BMC default directories “/home/root/”

Type 1:Copy the CPLD image file by SCP, upper cpld only for 65X

  A:Config the management IP address by command “ifconfig eth0 192.168.200.22 netmask 255.255.255.0”

0015e12a1dfcfc41612aaac0caaf6e1



 B:Copy the CPLD file by software WinSCP, upper cpld only for 65X

0015e12a1ed323239300d8eee611c55 


Type 2:Copy the CPLD file by TFTP

A:Config the management IP address by command “ifconfig eth0 192.168.200.22 netmask 255.255.255.0”

0015e12a1f9efbe35ff469eec849cca



B:Copy the CPLD image file from PC, upper cpld only for 65X (Need TFTP service and put the CPLD file in the TFTP folder)

0015e12a206193ab1f1efd37e028cba


Download CPLD file:

tftp -g -r upper_cpld_v10p1.jbc 192.168.200.141

tftp -g -r lower_cpld_v10p1.jbc 192.168.200.141


 

4.      Check CPLD file

 0015e12a2491d26d5803d9b0d52dd3d


5.       Check Upper CPLD and Lower CPLD version

Check 65X Upper CPLD version command:

i2cget -y -f 12 0x30 0x1

i2cget -y -f 12 0x30 0x2

 0015e12a255d5aa2a645838b508513e


Check 65X Lower CPLD or 32X CPLD version command:

i2cget -f -y 12 0x31 0x1

i2cget -f -y 12 0x31 0x2

 0015e12a262c82c767b98451f260b15

 

 

6.      Upgrade 65X upper CPLD (If you selected wrong CPLD file, device will not be able to boot up)

command:

echo out > /tmp/gpionames/CPLD_UPPER_JTAG_SEL/direction

echo 1 > /tmp/gpionames/CPLD_UPPER_JTAG_SEL/value

jbi -r -aPROGRAM -gc57 -gi56 -go58 -gs147 upper_cpld_v10p1.jbc

0015e12a27c89358ecf05186da7b4eb 


7.      Upgrade 65X lower CPLD or 32X CPLD, OpenBMC will auto reboot after upgrade (If you selected wrong CPLD file, device will not be able to boot up)

 

command:

devmem 0x1e6e2080 32 0xE0CA0002

echo out > /tmp/gpionames/CPLD_JTAG_SEL/direction

echo 1 > /tmp/gpionames/CPLD_JTAG_SEL/value

jbi -r -aPROGRAM -gc102 -gi101 -go103 -gs100 lower_cpld_v10p1.jbc

0015e12a2883d1d2f1da802e167df7a


8.       After OpenBMC reboot, check the CPLD version

0015e12a2cb07019c0d21896ab3c8eb

0015e12a2b791943e640b4e20c3d4b6