场景:
Solarfare网卡安装
onload-8.1.1.17驱动是报错(见红色部分),导致驱动安装失败
解决方法:
#kernel问题——
需要通过yum安装:
yum install -y kernel-devel
后再进行驱动安装
[root@localhost scripts]#
./onload_install
onload_install: Building Onload.
mmakebuildtree: No kernel build at '/lib/modules/4.18.0-372.9.1.el8.x86_64/build'
onload_build: FAILED: mmakebuildtree --driver -d x86_64_linux-4.18.0-372.9.1.el8.x86_64
onload_install: ERROR: Build failed. Not installing.
[root@localhost scripts]#
#autocompat.sh Error问题——
需要通过yum安装:
yum install -y elfutils-devel
后再进行驱动安装
[root@localhost scripts]#
./onload_install
onload_install: Building Onload.
Build tree made for linux as x86_64_linux-4.18.0-372.9.1.el8.x86_64
make: Entering directory '/soft/onload-8.1.1.17/build/x86_64_linux-4.18.0-372.9.1.el8.x86_64'
/soft/onload-8.1.1.17/src/driver/linux_resource/kernel_compat.sh -k /lib/modules/4.18.0-372.9.1.el8.x86_64/build -q > driver/linux_resource/autocompat.h
kernel_compat.sh: Kernel build tree is unable to build modules
make: *** [/soft/onload-8.1.1.17/src/mmake.mk:34: driver/linux_resource/autocompat.h] Error 1
make: Leaving directory '/soft/onload-8.1.1.17/build/x86_64_linux-4.18.0-372.9.1.el8.x86_64'
onload_build: ERROR: Failed to build driver components.
onload_install: ERROR: Build failed. Not installing.
[root@localhost scripts]#
#capability.h: No such file or directory问题——
需要通过yum安装:
yum install -y libcap*
后再进行驱动安装
make[1]: Entering directory '/soft/onload-8.1.1.17/build/gnu_x86_64/tools'
make[2]: Entering directory '/soft/onload-8.1.1.17/build/gnu_x86_64/tools/cplane'
nice cc -I. -I./../../include -I/soft/onload-8.1.1.17/src/include -I/soft/onload-8.1.1.17/src/tools/cplane -DNDEBUG -D_GNU_SOURCE -m64 -Wall -Wundef -Wpointer-arith -Wstrict-prototypes -Wnested-externs -Wno-stringop-truncation -Wno-format-truncation -Wimplicit-fallthrough=5 -fomit-frame-pointer -DTRANSPORT_CONFIG_OPT_HDR='<ci/internal/transport_config_opt_extra.h>' -fno-strict-aliasing -include /soft/onload-8.1.1.17/build/gnu_x86_64/cp_intf_ver.h -O2 -g $cflags $cppflags -c /soft/onload-8.1.1.17/src/tools/cplane/server.c -o server.o
/soft/onload-8.1.1.17/src/tools/cplane/server.c:13:10: fatal error: sys/capability.h: No such file or directory
#include <sys/capability.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/soft/onload-8.1.1.17/mk/after.mk:151: server.o] Error 1
make[2]: Leaving directory '/soft/onload-8.1.1.17/build/gnu_x86_64/tools/cplane'
make[1]: *** [/soft/onload-8.1.1.17/src/tools/mmake.mk:20: all] Error 2
make[1]: Leaving directory '/soft/onload-8.1.1.17/build/gnu_x86_64/tools'
make: *** [/soft/onload-8.1.1.17/src/mmake.mk:25: all] Error 2
make: Leaving directory '/soft/onload-8.1.1.17/build/gnu_x86_64'
onload_build: ERROR: Failed to build 64-bit user-level components.
onload_install: ERROR: Build failed. Not installing.
[root@localhost scripts]#
#libc_compat.h error
问题——
需要通过yum安装以下glibc库
yum install -y glibc.i686
yum install -y glibc-devel.i686
#libsfcaffinity.so error
问题——
需要通过yum安装以下libgcc库
yum install -y libgcc
yum install -y libgcc.i686