File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ declare -rA FW_FILE_MAP=( \
3636 [$SPC3_ASIC ]=" /etc/mlnx/fw-SPC3.mfa" \
3737)
3838
39- declare -rA MST_DEVICE_MAP=( \
40- [$SPC1_ASIC ]=" /dev/mst/mt52100_pci_cr0" \
41- [$SPC2_ASIC ]=" /dev/mst/mt53100_pci_cr0" \
42- [$SPC3_ASIC ]=" /dev/mst/mt53104_pci_cr0" \
43- )
44-
4539IMAGE_UPGRADE=" ${NO_PARAM} "
4640VERBOSE_LEVEL=" ${VERBOSE_MIN} "
4741
@@ -181,11 +175,6 @@ function UpgradeFW() {
181175 ExitFailure " failed to detect ASIC type"
182176 fi
183177
184- local -r _MST_DEVICE=" ${MST_DEVICE_MAP[$_ASIC_TYPE]} "
185- if [ ! -c " ${_MST_DEVICE} " ]; then
186- ExitFailure " no such device: ${_MST_DEVICE} "
187- fi
188-
189178 if [ ! -z " ${_FS_MOUNTPOINT} " ]; then
190179 local -r _FW_FILE=" ${_FS_MOUNTPOINT} /${FW_FILE_MAP[$_ASIC_TYPE]} "
191180 else
@@ -218,7 +207,7 @@ function UpgradeFW() {
218207 ExitSuccess " firmware is up to date"
219208 else
220209 LogNotice " firmware upgrade is required. Installing compatible version..."
221- RunCmd " ${BURN_CMD} -d ${_MST_DEVICE} - i ${_FW_FILE} "
210+ RunCmd " ${BURN_CMD} -i ${_FW_FILE} "
222211 fi
223212}
224213
You can’t perform that action at this time.
0 commit comments