RHEL/CentOS/Oracle Linux7/8版本安裝Openonload驅動問題處理

Davis_itpub發表於2024-02-21

場景:

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 


來自 “ ITPUB部落格 ” ,連結:https://blog.itpub.net/31520497/viewspace-3004820/,如需轉載,請註明出處,否則將追究法律責任。

相關文章