sonic-buildimage/platform/mellanox
Xincun Li f886328897
[sn2700]: Add CPLD update. (#17376)
Why I did it
Porting #12173 to master, this will ensure all above 201911 version will have CPLD update files.

Microsoft ADO 25846069:

How I did it
Added Mellanox CPLD burn/refresh vme bundle for SN2700 platforms

How to verify it
Using update_firmware script to install private image that contains CPLD VME files with UPDATE_MLNX_CPLD_FW parameter.

Before update, the CPLD version was 15
admin@str2-msn2700-spy-1:~$ sudo fwutil show status
Chassis    Module    Component    Version                Description
---------  --------  -----------  ---------------------  ----------------------------------------
MSN2700    N/A       ONIE         2016.11-5.1.0012-9600  ONIE - Open Network Install Environment
                     SSD          0115-000               SSD - Solid-State Drive
                     BIOS         0ABZS017_01.01.213     BIOS - Basic Input/Output System
                     CPLD1        CPLD000085_REV1501     CPLD - Complex Programmable Logic Device
                     CPLD2        CPLD000043_REV0400     CPLD - Complex Programmable Logic Device
                     CPLD3        CPLD000000_REV0100     CPLD - Complex Programmable Logic Device
Do Update
admin@str2-msn2700-spy-1:/tmp$ sudo ./update_firmware sonic-mellanox-xincun-cpld.bin UPDATE_MLNX_CPLD_FW=1
Available space: 8101 MB
Warning: 'sonic_installer' command is deprecated and will be removed in the future
Please use 'sonic-installer' instead
Current FW version: SONiC-OS-20201231.110
Target FW version number: add-cpld-2.83464431-a0237f7aef
Target FW version: SONiC-OS-add-cpld-2.83464431-a0237f7aef
expr: non-integer argument
NOTICE: Reset Drop caches to index 1
Warning: 'sonic_installer' command is deprecated and will be removed in the future
Please use 'sonic-installer' instead
Image SONiC-OS-add-cpld-2.83464431-a0237f7aef is already installed. Setting it as default...
Command: grub-set-default --boot-directory=/host 0

Command: sync;sync;sync

Command: sleep 3

Done
NOTICE: sonic_installer install successfully
Mellanox platform is detected: x86_64-mlnx_msn2700-r0
Mellanox ASIC maintenance...
Mellanox ASIC firmware is up to date
Mellanox CPLD maintenance...
NOTICE: Copy Mellanox firmware upgrade utility
'/tmp/image-add-cpld-2.83464431-a0237f7aef-fs//usr/bin/mlnx-fw-upgrade.sh' -> '/usr/bin/mlnx-fw-upgrade.sh'
NOTICE: Copy Mellanox cpldupdate utility
'/tmp/image-add-cpld-2.83464431-a0237f7aef-fs//usr/bin/cpldupdate' -> '/usr/bin/cpldupdate'
Mellanox CPLD firmware upgrade is required. Installing compatible version...
Current CPLD firmware version: 15
Target CPLD firmware version: 20
NOTICE: Upgrade MLNX CPLD FW from 15 to 20
CPLD burn firmware file: /tmp/tmp.42DXmW1pQS/FUI000193_Burn_Panther_CPLD000085_REV2000_CPLD000128_REV0600_CPLD000130_REV0300.vme
CPLD refresh firmware file: /tmp/tmp.42DXmW1pQS/FUI000193_Refresh_Panther_CPLD000085_REV2000_CPLD000128_REV0600_CPLD000130_REV0300.vme
[/] CPLD update...                 Lattice Semiconductor Corp.

             ispVME(tm) V12.2 Copyright 1998-2012.

               Customized for Mellanox products.

Processing virtual machine file (/tmp/tmp.42DXmW1pQS/FUI000193_Burn_Panther_CPLD000085_REV2000_CPLD000128_REV0600_CPLD000130_REV0300.vme)......

Diamond Deployment Tool 3.12
CREATION DATE: Tue Sep 20 09:41:49 2022


[|] CPLD update...+=======+
| PASS! |
+=======+
Power cycle the device, then check CPLD version, it has changed to 20.
admin@str2-msn2700-spy-1:~$ sudo fwutil show status
Chassis    Module    Component    Version                Description
---------  --------  -----------  ---------------------  ----------------------------------------
MSN2700    N/A       ONIE         2016.11-5.1.0012-9600  ONIE - Open Network Install Environment
                     SSD          0115-000               SSD - Solid-State Drive
                     BIOS         0ABZS017_01.01.213     BIOS - Basic Input/Output System
                     CPLD1        CPLD000085_REV2000     CPLD - Complex Programmable Logic Device
                     CPLD2        CPLD000128_REV0600     CPLD - Complex Programmable Logic Device
                     CPLD3        CPLD000000_REV0000     CPLD - Complex Programmable Logic Device
2024-03-06 07:39:00 -08:00
..
cpld [sn2700]: Add CPLD update. (#17376) 2024-03-06 07:39:00 -08:00
docker-saiserver-mlnx [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
docker-syncd-mlnx [Mellanox] Update Nvidia sai.profile SKU files to have common file (#18074) 2024-02-28 11:05:20 -08:00
docker-syncd-mlnx-rpc [Nvidia] Update syncd docker to use python version 3 (#17735) 2024-01-30 13:47:39 -08:00
hw-management [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
integration-scripts [mellanox] Update SAI to SAIBuild2311.25.0.36, SDK/FW to 4.6.2104/2012.2104 (#17131) 2023-11-21 18:53:15 -08:00
iproute2 [Mellanox] Remove iproute2 SDK patches from SONiC tree and consume them from SDK github (#15062) 2023-06-13 15:17:52 +03:00
issu-version Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
mft [Mellanox] Disable MFT bash autocompletion (#17442) 2023-12-10 10:28:32 +02:00
mft-fwtrace-cfg [Mellanox] Remove mlxtrace support for SPC4 (#16373) 2023-09-04 10:53:20 +03:00
mlnx-platform-api Check if PSU files exists when getting psu_voltage properties (#17042) 2024-03-04 19:35:06 +02:00
mlnx-sai [Mellanox] Remove unnecessary file manipulation in the SAI Make file (#15993) 2023-08-03 13:39:27 +03:00
non-upstream-patches [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
nv-syncd-shared [nvidia][syncd] fix incorrect permission of /tmp in syncd container (#17777) 2024-02-05 00:00:29 -08:00
sdk-src [Nvidia] Update syncd docker to use python version 3 (#17735) 2024-01-30 13:47:39 -08:00
.gitignore [Mellanox] Update SAI build procedure (#15728) 2023-07-15 01:03:33 +03:00
asic_table.j2 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
cpld.mk [sn2700]: Add CPLD update. (#17376) 2024-03-06 07:39:00 -08:00
docker-saiserver-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-saiserver-mlnx.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx-rpc.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-syncd-mlnx-rpc.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx.dep [build][asan] make dpkg cache asan-aware (#10750) 2022-05-31 11:15:44 +03:00
docker-syncd-mlnx.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
fw.dep [Mellanox] Update SDK/FW/SAI to 4.6.1020/2012.1020/SAIBuild2305.25.0.3 (#16096) 2023-08-15 15:32:52 +03:00
fw.mk [Mellanox] Update SIMX version to 23.10-1123 (#17958) 2024-01-31 19:41:23 +02:00
hw-management.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
hw-management.mk [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
install-pending-fw.dep [Mellanox] Modified Platform API to support all firmware updates in single boot (#9608) 2022-01-24 00:56:38 -08:00
install-pending-fw.mk [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
install-pending-fw.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
integration-scripts.mk [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
iproute2.dep [Mellanox] Replace iproute2 supplied by SDK to iproute2 downloaded from Debian repository (#14726) 2023-04-30 12:30:09 +03:00
iproute2.mk [Mellanox] Replace iproute2 supplied by SDK to iproute2 downloaded from Debian repository (#14726) 2023-04-30 12:30:09 +03:00
issu-version.dep Fix cache related mellanox bullseye build failures (#9234) 2021-11-16 14:49:47 -08:00
issu-version.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
libsaithrift-dev.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
libsaithrift-dev.mk [Mellanox] Add arm64 architecture support to mellanox platform (#11342) 2022-07-13 16:21:33 +03:00
mft-fwtrace-cfg.dep [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
mft-fwtrace-cfg.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
mft.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mft.mk [Nvidia] Fix mlnx-sai build failure (#14) 2023-11-21 18:53:15 -08:00
mlnx-ffb.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ffb.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-ffb.sh [mlnx-ffb.sh] Update issu-version location (#14925) 2023-06-15 15:14:52 -07:00
mlnx-fw-upgrade.j2 [mlnx-fw-upgrade] Add FW reactivation in case 2 FW upgrades were done without reboot (#17092) 2023-11-19 11:01:31 +02:00
mlnx-onie-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-onie-fw-update.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-onie-fw-update.sh [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
mlnx-platform-api.dep [Bug][Build]: Fix the mlnx-platform-api dpkg cache config error (#9705) 2022-01-09 09:21:59 +08:00
mlnx-platform-api.mk Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API (#13847) 2023-02-20 15:24:26 +02:00
mlnx-sai.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-sai.mk [Mellanox]Adding dependency of libnl-route-3 for Mellanox SAI library (#18197) 2024-03-04 19:58:31 +02:00
mlnx-ssd-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ssd-fw-update.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-ssd-fw-update.sh [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. (#10377) 2022-06-20 19:12:20 -07:00
one-image.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
one-image.mk [sn2700]: Add CPLD update. (#17376) 2024-03-06 07:39:00 -08:00
peripheral_table.j2 [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
rules.dep [Mellanox] Modified Platform API to support all firmware updates in single boot (#9608) 2022-01-24 00:56:38 -08:00
rules.mk [sn2700]: Add CPLD update. (#17376) 2024-03-06 07:39:00 -08:00
sdk.dep [Mellanox] Update SDK/FW/SAI to 4.6.1020/2012.1020/SAIBuild2305.25.0.3 (#16096) 2023-08-15 15:32:52 +03:00
sdk.mk [Mellanox]Update SDK/FW to 4.6.2202/2012.2202 (#17947) 2024-01-31 08:35:16 +02:00
zero_profiles.j2 [Mellanox] Add NVIDIA copyright header for NVIDIA added files (#12130) 2022-10-02 11:34:24 +03:00