I am trying to build OFED drivers from source for my ConnectX3 Pro cards so that I can make one port 40/56 Gb Inifiniband and the second port as 40 Gb Ethernet.
This configuration requires OFED drivers as far as I understand. mlx4_core and mlx4_en wont work simultaneously that I am aware of - -Mellanox website indicates OFED is necessary.
I am following the instructions from
When ready to install the deb file I am getting a couple errors:
This error appears multiple times:
It moves along until it hits these snags:
...
...
I tried running
and in
I also reinstalled linux-headers.
Anyone have some suggestions?
Thanks for reading!
This configuration requires OFED drivers as far as I understand. mlx4_core and mlx4_en wont work simultaneously that I am aware of - -Mellanox website indicates OFED is necessary.
I am following the instructions from
https://insujang.github.io/2020-01-25/building-mellanox-ofed-from-source/
to repackage the latest deb packagesWhen ready to install the deb file I am getting a couple errors:
Code:
root@node05:~# dpkg -i mlnx-ofed-kernel-dkms_4.9-OFED.4.9.5.1.0.1_all.deb
(Reading database ... 220872 files and directories currently installed.)
Preparing to unpack mlnx-ofed-kernel-dkms_4.9-OFED.4.9.5.1.0.1_all.deb ...
------------------------------
Deleting module version: 4.9
completely from the DKMS tree.
------------------------------
Done.
Cleaning up '/usr/src/ofa_kernel/' ...
Unpacking mlnx-ofed-kernel-dkms (4.9-OFED.4.9.5.1.0.1) over (4.9-OFED.4.9.5.1.0.1) ...
Setting up mlnx-ofed-kernel-dkms (4.9-OFED.4.9.5.1.0.1) ...
Loading new mlnx-ofed-kernel-4.9 DKMS files...
First Installation: checking all kernels...
Building only for 5.15.35-3-pve
Building for architecture x86_64
Building initial module for 5.15.35-3-pve
Error! Bad return status for module build on kernel: 5.15.35-3-pve (x86_64)
Consult /var/lib/dkms/mlnx-ofed-kernel/4.9/build/make.log for more information.
dpkg: error processing package mlnx-ofed-kernel-dkms (--install):
installed mlnx-ofed-kernel-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
mlnx-ofed-kernel-dkms
root@node05:~# cat /var/lib/dkms/mlnx-ofed-kernel/4.9/build/make.log
This error appears multiple times:
tac: failed to open '/lib/modules/5.15.35-3-pve/build/include/*/autoconf.h' for reading: No such file or directory
It moves along until it hits these snags:
Code:
configure: error: Run make config in /usr/src/linux-headers-5.15.35-3-pve.
Failed executing ./configure/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
tac: failed to open '/lib/modules/5.15.35-3-pve/build/include/*/autoconf.h' for reading: No such file or directory
tac: failed to open '/lib/modules/5.15.35-3-pve/build/include/*/autoconf.h' for reading: No such file or directory
tac: failed to open '/lib/modules/5.15.35-3-pve/build/include/*/autoconf.h' for reading: No such file or directory
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
...
Code:
make[1]: Entering directory '/usr/src/linux-headers-5.15.35-3-pve'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
...
Code:
Copying build sources from '/var/lib/dkms/mlnx-ofed-kernel/4.9/build/../build' to '/usr/src/ofa_kernel/5.15.35-3-pve' ...
/bin/cp: cannot stat 'Module*.symvers': No such file or directory
I tried running
make oldconfig && make prepare
in both /usr/src/ofa_kernel/5.15.35-3-pve
Code:
root@node05:/usr/src/ofa_kernel/5.15.35-3-pve# make oldconfig && make prepare
make: *** No rule to make target 'oldconfig'. Stop.
and in
/usr/src/linux-headers-5.15.35-3-pve
Code:
root@node05:/usr/src/linux-headers-5.15.35-3-pve# make oldconfig && make prepare
lib/Kconfig.debug:2641: can't open file "Documentation/Kconfig"
make[1]: *** [scripts/kconfig/Makefile:77: oldconfig] Error 1
make: *** [Makefile:622: oldconfig] Error 2
I also reinstalled linux-headers.
Anyone have some suggestions?
Thanks for reading!