Networking NVIDIA NVOS User Manual for InfiniBand Switches

Upgrading System Firmware

You can manually upgrade the firmware of system components with NVOS.

Upgrade ASIC Firmware

NVOS is bundled with a default ASIC firmware version. When you update the operating system software to a new version, NVOS attempts an automatic firmware update. You can choose to override the default version.

To have the OS automatically update to a different switch firmware version without changing the OS version, import and install the firmware package as described below. The OS sets it as the new default firmware and performs the firmware update automatically.

ASIC Firmware Change

  1. Display the ASIC firmware that is currently available.

  2. Import the firmware image (.mfa file) to the switch.

    admin@nvos:~$ nv action fetch platform firmware ASIC /path/to/fw-image.mfa
    

    Alternatively, you can upload the firmware file from the host to the switch:

    user@host:~$ scp <path-to-fw-file> <switch-admin-username>@<switch-ip-address>:/host/fw-images/asic/<desired-name>.mfa
    
    
  3. Set the default firmware source to custom:

    admin@nvos:~$ nv set platform firmware ASIC fw-source custom
    
  4. Display system firmware component information.

  5. Apply the configuration.

    admin@nvos:~$ nv config apply
    
  6. Save the configuration.

    admin@nvos:~$ nv config save
    
  7. Install the firmware image.

    admin@nvos:~$ nv action install platform firmware ASIC files fw-image.mfa
    The operation will initiate a component firmware update.
    Type [y] to install the firmware and reboot afterwards.
    Type [N] to install the firmware without reboot.
     
    Do you want to reboot? [y/N]
    
  8. Pressing 'Y' reboots the system to install and activate firmware.

  9. Press 'N' requires manual reboot from user later on.

    admin@nvos:~$ nv action reboot system
    

Upgrade Components Firmware

This section describes how to manually check and update the software and firmware on an InfiniBand switch so that the system has the latest software and firmware versions.

  • You do not need these updates in every release. For the versions to use, refer to the NVIDIA NVOS Release Notes.

  • The upgrade process requires a maintenance window.

  • If necessary, retrieve logs for customer support with the nv action generate system tech-support command.

Component Image Update Using NVOS CLI

You can update firmware with NVOS CLI commands. CLI commands are blocking: each command must finish before you can run the next one.

Upgrading each component has two stages:

  1. Fetch a file from the unpacked bundle:

    admin@nvos:~$ nv action fetch platform firmware <component-id> <remote-url>
    

    For more information, refer to nv action fetch platform firmware.

  2. Install the component:

    admin@nvos:~$ nv action install platform firmware <component-id> files <file-name>
    

    For more information, refer to nv action install platform firmware files.


  • <component-id> can be ASIC, BIOS, or CPLD1.

  • When you upgrade a specific CPLD, all other CPLDs are upgraded as well.

  • The CPLD firmware bundle should include two different files: burn and refresh.

  1. After installation, the switch reboots automatically unless you set the skip-reboot flag.


  2. To verify the firmware versions after the system boots, run the following command:

    admin@nvos:~$ nv show platform firmware
    

    For more information, refer to nv show platform firmware.

Transceiver Firmware Upgrade

This section is relevant only for systems that support external transceivers.

You can update firmware with NVOS CLI commands. CLI commands are blocking: each command must finish before you can run the next one.

Upgrading each component has two stages:

  1. Fetch a file from the unpacked bundle:

    admin@nvos:~$ nv action fetch platform firmware transceiver <file-path>
    

    For more information, refer to nv action fetch platform firmware.

  2. Install the transceiver firmware:

    admin@nvos:~$ nv action install platform transceiver <transceiver-id> firmware files <file-name>
    

    For more information, refer to nv action install platform transceiver firmware files.

To reduce the upgrade time when updating multiple cables, pass a range or list of modules to the install command instead of updating one module at a time.

admin@nvos:~$ nv action install platform transceiver sw1-72 firmware files <file-name>

To activate the transceiver firmware, NVOS resets the transceiver as part of the install action.

To verify the firmware version, run the following command:

admin@nvos:~$ nv show platform transceiver <transceiver-id> firmware

For more information, refer to nv show platform transceiver firmware.

Component Image Update Using RestAPI

You can use the REST API from a remote server to perform operations on the switch.

The REST API is not blocking: you can send a command before the previous one finishes. Each command returns a task ID. Use the task ID to query for the result between commands. A state of “action_success” means that the operation completed successfully.

An upgrade consists of fetch and install operations, with a power cycle at the end of the entire process.

REST API Commands

Run the following query command between commands:

admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request GET 'https://<switch-ip>/nvue_v1/action/<task-id>'
  • Fetch the component image file:

    admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request POST 'https://<switch-ip>/nvue_v1/platform/firmware/<component>' -H 'Content-Type: application/json' -d '{"@fetch": {"state": "start", "parameters": {"remote-url": "scp://<server-user>:<server-password>@<PATH_TO_FILE>"}}}'
    
  • Install the component file:

    admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request POST 'https://<switch-ip>/nvue_v1/platform/firmware/<component>/files/<file-name>' -H 'Content-Type: application/json' -d '{"@install": {"state": "start", "parameters": {"force": false}}}'
    
  • Fetch the single image file:

    admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request POST 'https://<switch-ip>/nvue_v1/platform/firmware' -H 'Content-Type: application/json' -d '{"@fetch": {"state": "start", "parameters": {"remote-url": "scp://<server-user>:<server-password>@<PATH_TO_FILE>"}}}'
    
  • Install the single image file:

    admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request POST 'https://<switch-ip>/nvue_v1/platform/firmware/files/<file-name>' -H 'Content-Type: application/json' -d '{"@install": {"state": "start", "parameters": {"force": false}}}'
    


  • After the system boots, check the firmware version:

    admin@nvos:~$ curl -k --user <nvos-user>:<nvos-password> --request GET 'https://<nvos-ip>/nvue_v1/platform/firmware'
    

Error Status Catalog

Use the following table to identify errors and their meanings.

Bundles List

BIOS

Scenario

Error

Selected file for installation does not exist

Failed to install BIOS firmware file: No such firmware

Bad or corrupted file

Invalid file: /host/fw-images/bios/bad_file.cab

Bad ONIE version

ERROR: ONIE {} or later is required

Failed to enable ONIE firmware update mode

ERROR: failed to enable ONIE firmware update mode

Failed to disable ONIE firmware update mode

ERROR: failed to disable ONIE firmware update mode

Installation script was interrupted by signal

WARNING: Interrupted by ${_sig}: disable ONIE firmware update mode

CPLD

Scenario

Error

Selected file for installation does not exist

Failed to install CPLD firmware file: No such firmware

Bad or corrupted file

Invalid file: /host/fw-images/cpld/bad_file.vme

MST service not started (never started or failed to start)

ERROR: mst driver is not loaded

MST device path doesn't exist or failed to it

ERROR: Failed to get mst device: pattern={}, devices={}

CPLD update command failed

ERROR: Failed to update {} firmware: {}

Last updated: