Skip to content

Instantly share code, notes, and snippets.

@zenxedo
Created January 6, 2025 20:27
Show Gist options
  • Save zenxedo/3b07c133aa249e3ac8e4f97522ac24f6 to your computer and use it in GitHub Desktop.
Save zenxedo/3b07c133aa249e3ac8e4f97522ac24f6 to your computer and use it in GitHub Desktop.

Force-Flash Procedure for MT4117 (ConnectX-4)

1. Prerequisites

  1. Install Mellanox Firmware Tools (MFT)

    • Download from NVIDIA Networking: Firmware Tools.
    • Install the appropriate package for your operating system.
  2. Identify the Card and Current Configuration

    mst start
    mst status
    flint -d mt4117_pciconf0 query
    • Note the following details:
      • PSID: LNVxxxxx (Lenovo branded).
      • Firmware Version: Current version.
      • Card Identifier: mt4117_pciconf0.

2. Back Up Current Firmware

To create a backup of the existing firmware:

flint -d mt4117_pciconf0 ri backup_firmware.bin
  • This saves the current firmware as backup_firmware.bin.

3. Download Generic Mellanox Firmware

  1. Visit Mellanox Firmware Downloads.
  2. Search for MT4117 and download the latest firmware .bin file matching the PSID for the non-Lenovo card (MTxxxxxx).

4. Force-Flash the Firmware

Use the following command to force flash the generic firmware:

flint -d mt4117_pciconf0 -i firmware_file.bin --allow_psid_change burn
  • Replace firmware_file.bin with the name of the downloaded firmware file.
  • Confirm the override when prompted.

5. Verify the Flash

After the flash completes, verify the new firmware:

flint -d mt4117_pciconf0 query
  • Confirm the new PSID (MTxxxxxx) and firmware version match the downloaded firmware.

6. Optional: Restore Original Firmware

If you encounter issues, restore the original firmware:

flint -d mt4117_pciconf0 -i backup_firmware.bin burn
  • Reboot the system after restoration.

Summary of Actions

  • Device: MT4117 (ConnectX-4)
  • Original PSID: LNVxxxxx (Lenovo branded)
  • Backup Created: Yes (backup_firmware.bin)
  • New Firmware PSID: MTxxxxxx (Generic Mellanox)
  • Commands Used:
    • Backup: flint -d mt4117_pciconf0 ri backup_firmware.bin
    • Flash: flint -d mt4117_pciconf0 -i firmware_file.bin --allow_psid_change burn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment