Skip to content

Commit

Permalink
[mellanox] fix DPU fpga update (sonic-net#350)
Browse files Browse the repository at this point in the history
* update cpldupdate command line
  • Loading branch information
Yakiv-Huryk authored and vivekrnv committed Jun 7, 2024
1 parent 7e975c5 commit 64b97e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,10 @@ class ComponenetFPGADPU(ComponentCPLD):
CPLD_VERSION_FILE = '/var/run/hw-management/dpu{}/system/fpga1_version'
CPLD_VERSION_MINOR_FILE = '/var/run/hw-management/dpu{}/system/fpga1_version_min'

CPLD_FIRMWARE_UPDATE_COMMAND = ['cpldupdate', '--cpld_chain 2', '--gpio', '--print-progress', '']
CPLD_FIRMWARE_UPDATE_COMMAND = ['cpldupdate', '--cpld_chain', '2', '--gpio', '--print-progress', '']

def _install_firmware(self, image_path):
self.CPLD_FIRMWARE_UPDATE_COMMAND[4] = image_path
self.CPLD_FIRMWARE_UPDATE_COMMAND[5] = image_path

try:
print("INFO: Installing {} firmware update: path={}".format(self.name, image_path))
Expand Down

0 comments on commit 64b97e9

Please sign in to comment.