Installation

This chapter describes how to install and test FreeBSD package on a single host machine with NVIDIA adapter hardware installed.

  • To install the driver software, kernel sources must be installed on the machine.

  • To load mlx5, linuxkpi must be loaded as well.

    • Compile and install linuxkpi module under /sys/modules/linuxkpi.

Installing MLNX_EN Driver for FreeBSD

FreeBSD driver is no longer provided as a tarball. The EN driver can be obtained as part of the Kernel used. In order to load it, please run the following command:

Copy
Copied!
            

#kldload mlx5en

The dependent mlx5 and linuxkpi modules will be loaded automatically.

Installing InfiniBand/RDMA Driver for FreeBSD

To load the IB/RDMA driver:

Get into the FreeBSD SRC tree (/usr/src).

Copy
Copied!
            

# make buildworld WITH_OFED=YES # make kernel WITH_OFED=YES # make installworld WITH_OFED=YES

  • Driver-related code located in:

    Copy
    Copied!
                

    sys/compat/linuxkpi/ sys/dev/mlx5/

  • Userspace related code located in

    Copy
    Copied!
                

    contrib/ofed/ usr.sbin/mlx5tool/

© Copyright 2023, NVIDIA. Last updated on May 24, 2023.