Jul 24, 2023, 6:00 AM

@Jachyn said in CM5如何安装网卡驱动?:

@大法师 大师 内核已经编译了 编译之后进行安装 又报如下的错
2023-07-24_12-28.png

更新内核源码编译目录链接(假定源码目录在/home/coolpi/kernel)

sudo ln -sf /home/coolpi/kernel /lib/modules/5.10.110/build
sudo ln -sf /home/coolpi/kernel /lib/modules/5.10.110/source

MLNX_EN_SRC-debian-23.04-1.1.3.0.tgz

MLNX_EN_SRC-debian-5.8-3.0.7.0.tgz
解压网卡驱动源码,编译

coolpi@coolpi:~/MLNX_EN_SRC-23.04-1.1.3.0$ sudo ./install.pl 
Logs dir: /tmp/OFED.80654.logs
General log file: /tmp/OFED.80654.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-tools
mlnx-ofed-kernel-utils
mlnx-ofed-kernel-modules

Checking SW Requirements...
One or more required packages for installing OFED-internal are missing.
Attempting to install the following missing packages:
swig  make python3 chrpath gcc quilt debhelper dh-python python3-distutils
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.

Removing old packages
get_requires: libibverbs1 is required by qemu-system-arm, but qemu-system-arm won't be removed.
get_requires: librdmacm1 is required by qemu-system-arm, but qemu-system-arm won't be removed.
Building packages
Building DEB for ofed-scripts-23.04 (ofed-scripts)...
Running  /usr/bin/dpkg-buildpackage -us -uc 
Installing ofed-scripts-23.04...
Running /usr/bin/dpkg -i --force-confmiss '/home/coolpi/MLNX_EN_SRC-23.04-1.1.3.0/DEBS/ubuntu22.04/aarch64/ofed-scripts_23.04-OFED.23.04.1.1.3_arm64.deb'
Building DEB for mlnx-tools-23.04 (mlnx-tools)...
Running  /usr/bin/dpkg-buildpackage -us -uc 
Installing mlnx-tools-23.04...
Running /usr/bin/dpkg -i --force-confmiss '/home/coolpi/MLNX_EN_SRC-23.04-1.1.3.0/DEBS/ubuntu22.04/aarch64/mlnx-tools_23.04-0.2304053_arm64.deb'
Building DEB for mlnx-ofed-kernel-utils-23.04 (mlnx-ofed-kernel)...

-W- --with-mlx5-ipsec is enabled
Running  /usr/bin/dpkg-buildpackage -us -uc  -Pmodules
...