Help Center/ Huawei Cloud EulerOS/ FAQs/ How Do I Install the MLNX Driver?
Updated on 2025-05-29 GMT+08:00

How Do I Install the MLNX Driver?

Install the MLNX driver in HCE (x86 and Arm).

Constraints

  • The kernel of HCE is Linux 5.10 or later.
  • The CX6 NIC driver version is 23.10-1.1.9.0-LTS or later.

Prerequisites

HCE with kernel 5.10 or later has been installed.

Installing the MLNX Driver for the x86 Architecture

  1. Download the CX6 NIC driver installation package MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-x86_64.tgz.
  2. Decompress the package and go to the working directory.

    tar -xf MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-x86_64.tgz

    cd MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-x86_64

  3. Install the CX6 NIC driver.

    ./mlnxofedinstall --basic --without-depcheck --distro OPENEULER22.03 --force --kernel 5.10.0-60.18.0.50.oe2203.x86_64 --kernel-sources /lib/modules/$(uname -r)/build

    5.10.0-60.18.0.50.oe2203.x86_64 is the kernel version when the official MLNX_OFED package is compiled.

  4. Create a link.

    ln -s /lib/modules/5.10.0-60.18.0.50.oe2203.x86_64/extra/mlnx-ofa_kernel /lib/modules/$(uname -r)/weak-updates/

    ln -s /lib/modules/5.10.0-60.18.0.50.oe2203.x86_64/extra/kernel-mft /lib/modules/$(uname -r)/weak-updates/

    depmod -a

  5. Run reboot to restart the OS.
  6. Run the /etc/init.d/openibd status command to check the driver installation result.

    If the following information is displayed, the driver is installed:

    Figure 1 Successful driver installation

Installing the MLNX Driver for the Arm Architecture

  1. Download the CX6 NIC driver installation package MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-aarch64.tgz.
  2. Decompress the package and go to the working directory.

    tar -xf MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-aarch64.tgz

    cd MLNX_OFED_LINUX-23.10-1.1.9.0-openeuler22.03-aarch64

  3. Install the CX6 NIC driver.

    ./mlnxofedinstall --basic --without-depcheck --distro OPENEULER22.03 --force --kernel 5.10.0-60.18.0.50.oe2203.aarch64 --kernel-sources /lib/modules/$(uname -r)/build

    5.10.0-60.18.0.50.oe2203.aarch64 is the kernel version when the official MLNX_OFED package is compiled.

  4. Create a link.

    ln -s /lib/modules/5.10.0-60.18.0.50.oe2203.aarch64/extra/mlnx-ofa_kernel /lib/modules/$(uname -r)/weak-updates/

    ln -s /lib/modules/5.10.0-60.18.0.50.oe2203.aarch64/extra/kernel-mft /lib/modules/$(uname -r)/weak-updates/

    depmod -a

  5. Run reboot to restart the OS.
  6. Run the /etc/init.d/openibd status command to check the driver installation result.

    If the following information is displayed, the driver is installed successfully.

    Figure 2 Successful driver installation