I tried to install MLNX_OFED on two machines, one with ubuntu 20.04.01 and Kernel 5.4.0-66-generic x86_64, the other with ubuntu 20.04.01 and Kernel 5.4.0-70-generic x86_64. I succeeded on the first one but failed the second.
Details:
$ sudo ./mlnxofedinstall --without-dkms --add-kernel-support --with-nvmf --force --without-fw-update
Note: This program will create MLNX_OFED_LINUX TGZ for ubuntu20.04 under /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic directory.
See log file /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.55884_logs/mlnx_ofed_iso.55884.log
Checking if all needed packages are installed…
Building MLNX_OFED_LINUX DEBS . Please wait…
ERROR: Failed executing “MLNX_OFED_SRC-5.3-1.0.0.1/install.pl --tmpdir /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.55884_logs --kernel-only --kernel 5.4.0-70-generic --kernel-sources /lib/modules/5.4.0-70-generic/build --builddir /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.55884 --without-dkms --force --without-debug-symbols --build-only --distro ubuntu20.04”
ERROR: See /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.55884_logs/mlnx_ofed_iso.55884.log
Failed to build MLNX_OFED_LINUX for 5.4.0-70-generic
And the log:
Logs dir: /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.51899_logs/OFED.52096.logs
General log file: /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.51899_logs/OFED.52096.logs/general.log
Below is the list of OFED packages that you have chosen
(some may have been added by the installer due to package dependencies):
ofed-scripts
mlnx-ofed-kernel-utils
mlnx-ofed-kernel-modules
iser-modules
isert-modules
srp-modules
mlnx-nfsrdma-modules
mlnx-nvme-modules
kernel-mft-modules
knem-modules
Checking SW Requirements…
One or more required packages for installing OFED-internal are missing.
Attempting to install the following missing packages:
build-essential python3-distutils make pkg-config debhelper dh-autoreconf bzip2 quilt gcc
This program will install the OFED package on your machine.
Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed.
Those packages are removed due to conflicts with OFED, do not reinstall them.
Installing new packages
Building DEB for ofed-scripts-5.3 (ofed-scripts)…
Running /usr/bin/dpkg-buildpackage -us -uc
Building DEB for mlnx-ofed-kernel-utils-5.3 (mlnx-ofed-kernel)…
-W- --with-mlx5-ipsec is enabled
Running /usr/bin/dpkg-buildpackage -us -uc
Failed to build mlnx-ofed-kernel DEB
Collecting debug info…
See /tmp/MLNX_OFED_LINUX-5.3-1.0.0.1-5.4.0-70-generic/mlnx_iso.51899_logs/OFED.52096.logs/mlnx-ofed-kernel.debbuild.log
Is there any possibility that MLNX_OFED_LINUX-5.3-1.0.0.1 is not compatible with kernel 5.4.0-70-generic?
Please help!