NVIDIA BlueField BSP v4.8.0
NVIDIA BlueField BSP v4.8.0 Download PDF

Updating BlueField Software Packages Using Standard Linux Tools

This upgrade procedure enables upgrading DOCA components using standard Linux tools (e.g., apt update and yum update). This process utilizes native package manager repositories to upgrade BlueField networking platforms (DPUs or SuperNICs) without the need for a full installation.

This process has the following benefits :

  • Only updates components that include modifications

    • Configurable – user can select specific components (e.g., UEFI-ATF, NIC-FW)

  • Includes upgrade of:

    • DOCA drivers and libraries

    • DOCA reference applications

    • BSP (UEFI/ATF) upgrade while maintaining the configuration

    • NIC firmware upgrade while maintaining the configuration

  • Does not:

    • Impact user binaries

    • Upgrade non-Ubuntu OS kernels

    • Upgrade BlueField BMC firmware

  • After completion of BlueField upgrade:

    • If NIC firmware was not updated, perform BlueField Arm reset (software reset/reboot BlueField )

    • If NIC firmware was updated, perform firmware reset (mlxfwreset) or perform a graceful shutdown and power cycle

OS

Action

Instructions

Ubuntu/

Debian

Remove mlxbf-bootimages package

Copy
Copied!
            

<bf> $ apt remove --purge mlxbf-bootimages* -y

Install the the GPG key

Copy
Copied!
            

<bf> $ apt update <bf> $ apt install gnupg2

Export the desired distribution

Export DOCA_REPO with the relevant URL. The following is an example for Ubuntu 22.04:

Copy
Copied!
            

<bf> $ export DOCA_REPO="https://linux.mellanox.com/public/repo/doca/2.8.0/ubuntu22.04/dpu-arm64"

  • Ubuntu 22.04 – https://linux.mellanox.com/public/repo/doca/2.8.0/ubuntu22.04/dpu-arm64

  • Ubuntu 20.04 – https://linux.mellanox.com/public/repo/doca/2.8.0/ubuntu20.04/dpu-arm64

  • Debian 12 – https://linux.mellanox.com/public/repo/doca/2.8.0/debian12/dpu-arm64

Add GPG key to APT trusted keyring

Copy
Copied!
            

<bf> $ curl $DOCA_REPO/GPG-KEY-Mellanox.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/GPG-KEY-Mellanox.pub

Add DOCA online repository

Copy
Copied!
            

<bf> $ echo "deb [signed-by=/etc/apt/trusted.gpg.d/GPG-KEY-Mellanox.pub] $DOCA_REPO ./" > /etc/apt/sources.list.d/doca.list

Update index

Copy
Copied!
            

<bf> $ apt update

Upgrade UEFI/ATF firmware

Run:

Copy
Copied!
            

<bf> $ apt install mlxbf-bootimages-signed

Then i nitiate upgrade for UEFI/ATF firmware:

Copy
Copied!
            

<bf> $ apt install mlxbf-scripts <bf> $ bfrec

Upgrade BlueField NIC firmware

The following commands update the firmware package and flash the firmware to the NIC:

Copy
Copied!
            

<bf> $ apt install mlnx-fw-updater-signed <bf> $ sudo /opt/mellanox/mlnx-fw-updater/mlnx_fw_updater.pl --force-fw-update

Remove old metapackages

Copy
Copied!
            

<bf> $ apt-get remove doca* mlnx-ofed* kernel-mft* -y

Install new metapackages

Copy
Copied!
            

<bf> $ apt-get install doca-runtime doca-devel -y

Upgrade system

Copy
Copied!
            

<bf> $ apt upgrade

Apply the new changes,

NIC firmware, and UEFI/ATF

For the upgrade to take effect, perform BlueField system reboot.

Note

This step triggers immediate reboot of the BlueField Arm cores.

CentOS/RHEL/

Anolis/Rocky

Remove mlxbf-bootimages package

Copy
Copied!
            

<bf> $ yum -y remove mlxbf-bootimages* <bf> $ yum makecache

Export the desired distribution

Export DOCA_REPO with the relevant URL. The following is an example for Rocky Linux 8.6:

Copy
Copied!
            

<bf> $ export DOCA_REPO="https://linux.mellanox.com/public/repo/doca/2.8.0/rhel8.6/dpu-arm64/"

  • AnolisOS 8.6 – https://linux.mellanox.com/public/repo/doca/2.8.0/anolis8.6/dpu-arm64/

  • OpenEuler 20.03 sp1 – https://linux.mellanox.com/public/repo/doca/2.8.0/openeuler20.03sp1/dpu-arm64/

  • CentOS 7.6 with 4.19 kernel – https://linux.mellanox.com/public/repo/doca/2.8.0/rhel7.6-4.19/dpu-arm64/

  • CentOS 7.6 with 5.10 kernel – https://linux.mellanox.com/public/repo/doca/2.8.0/rhel7.6-5.10/dpu-arm64/

  • CentOS 7.6 with 5.4 kernel – https://linux.mellanox.com/public/repo/doca/2.8.0/rhel7.6/dpu-arm64/

  • Rocky Linux 8.6 – https://linux.mellanox.com/public/repo/doca/2.8.0/rhel8.6/dpu-arm64/

Add DOCA online repository

Copy
Copied!
            

echo "[doca] name=DOCA Online Repo baseurl=$DOCA_REPO enabled=1 gpgcheck=0 priority=10 cost=10" > /etc/yum.repos.d/doca.repo

A file is created under /etc/yum.repos.d/doca.repo .

Update index

Copy
Copied!
            

<bf> $ yum makecache

Upgrade UEFI/ATF firmware

Run:

Copy
Copied!
            

<bf> $ yum install mlxbf-bootimages-signed mlxbf-bfscripts

Then i nitiate the upgrade for UEFI/ATF firmware:

Copy
Copied!
            

<bf> $ bfrec

Upgrade BlueField NIC firmware

The following commands update the firmware package and flash the firmware to the NIC:

Copy
Copied!
            

<bf> $ yum install mlnx-fw-updater-signed <bf> $ sudo /opt/mellanox/mlnx-fw-updater/mlnx_fw_updater.pl --force-fw-update

Remove old metapackages

Copy
Copied!
            

<bf> $ yum remove doca* mlnx-ofed* kernel-mft* -y

Install new metapackages

Note

Before installing the metapackages, please remove strongSwan and libreSwan packages to avoid any conflicts:

Copy
Copied!
            

<bf> $ yum remove strongswan-bf strongswan-swanctl <bf> $ yum remove strongswan-bf strongswan-swanctl libreswan

Copy
Copied!
            

<bf> $ yum -y install doca-runtime doca-devel

Upgrade system

Copy
Copied!
            

<bf> $ yum upgrade --nobest

Apply the new changes,

NIC firmware, and UEFI/ATF

For the upgrade to take effect, perform BlueField system reboot.

Note

This step triggers immediate reboot of the BlueField Arm cores.

© Copyright 2024, NVIDIA. Last updated on Aug 20, 2024.