Upgrading NPU Firmware and Driver

Upgrade Procedure

When upgrading the NPU firmware and driver, follow the firmware > driver upgrade sequence. The procedure is as follows:

  1. Log in to the server as the root user.
  2. Upload the driver and firmware packages to any directory on the server, for example, /home.
  3. Add the execute permission on the driver and firmware packages.
    chmod +x Ascend-hdk-<chip_type>-npu-driver_<version>_linux-<arch>.run
    chmod +x Ascend-hdk-<chip_type>-npu-firmware_<version>.run
  4. Upgrade the driver and firmware. The default upgrade path of the software package is /usr/local/Ascend.
    1. Upgrade the firmware.

      Run the following command to complete the firmware upgrade:

      ./Ascend-hdk-<chip_type>-npu-firmware_<version>.run --upgrade

      If the following information is displayed, the firmware is successfully upgraded:

      1
      Firmware package upgraded successfully! Reboot now or after driver installation for the installation/upgrade to take effect.
      
    2. Upgrade the driver.

      Run the following command to upgrade the driver:

      ./Ascend-hdk-<chip_type>-npu-driver_<version>_linux-<arch>.run --upgrade
      If the following information is displayed, the driver is successfully upgraded:
      1
      Driver package upgraded successfully!Reboot needed for installation/upgrade to take effect!
      
  5. Run the reboot command to restart the system.
  6. Run the npu-smi info command to check whether the driver is upgraded successfully.

    If the driver information is displayed, the driver is successfully loaded. Otherwise, the loading fails. Visit the Support website to seek help in the forum or submit a technical service ticket.