|
大佬你好,PVE 7.3-3 版内核是5.18.15-pve。安装8125B驱动出错请问要怎么操作啊?谢谢
root@PVE:~# dpkg -i --force-overwrite realtek-r8125-dkms_9.009.00-1_amd64.deb
Selecting previously unselected package realtek-r8125-dkms.
(Reading database ... 77457 files and directories currently installed.)
Preparing to unpack realtek-r8125-dkms_9.009.00-1_amd64.deb ...
Unpacking realtek-r8125-dkms (9.009.00-1) ...
Setting up realtek-r8125-dkms (9.009.00-1) ...
Loading new realtek-r8125-9.009.00 DKMS files...
Building for 5.18.15-pve
Building for architecture amd64
Building initial module for 5.18.15-pve
Error! Bad return status for module build on kernel: 5.18.15-pve (amd64)
Consult /var/lib/dkms/realtek-r8125/9.009.00/build/make.log for more information.
dpkg: error processing package realtek-r8125-dkms (--install):
installed realtek-r8125-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
以下是make.log
- DKMS make.log for realtek-r8125-9.009.00 for kernel 5.18.15-pve (amd64)
- Thu 15 Dec 2022 02:08:49 PM CST
- /bin/sh: 1: VER: not found
- make -C src/ KVER=5.18.15-pve BASEDIR=/lib/modules/5.18.15-pve modules
- make[1]: Entering directory '/var/lib/dkms/realtek-r8125/9.009.00/build/src'
- make -C /lib/modules/5.18.15-pve/build M=/var/lib/dkms/realtek-r8125/9.009.00/build/src modules
- make[2]: Entering directory '/usr/src/linux-headers-5.18.15-pve'
- warning: the compiler differs from the one used to build the kernel
- The kernel was built by: cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
- You are using: gcc (Debian 8.3.0-6) 8.3.0
- CC [M] /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.o
- CC [M] /var/lib/dkms/realtek-r8125/9.009.00/build/src/rtl_eeprom.o
- CC [M] /var/lib/dkms/realtek-r8125/9.009.00/build/src/rtltool.o
- CC [M] /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.o
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c: In function ‘rtl8125_get_rss_hash_opts’:
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:59:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
- cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:61:9: note: here
- case UDP_V4_FLOW:
- ^~~~
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:62:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV4)
- ^
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:65:9: note: here
- case IPV4_FLOW:
- ^~~~
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:69:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
- cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:71:9: note: here
- case UDP_V6_FLOW:
- ^~~~
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:72:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV6)
- ^
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c:75:9: note: here
- case IPV6_FLOW:
- ^~~~
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_rss.c: At top level:
- cc1: warning: unrecognized command line option ‘-Wno-alloc-size-larger-than’
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.c: In function ‘rtl8125_init_board’:
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.c:11955:14: error: implicit declaration of function ‘pci_set_dma_mask’; did you mean ‘pci_set_drvdata’? [-Werror=implicit-function-declaration]
- !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) &&
- ^~~~~~~~~~~~~~~~
- pci_set_drvdata
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.c:11956:14: error: implicit declaration of function ‘pci_set_consistent_dma_mask’; did you mean ‘dma_set_coherent_mask’? [-Werror=implicit-function-declaration]
- !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- dma_set_coherent_mask
- /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.c: At top level:
- cc1: warning: unrecognized command line option ‘-Wno-alloc-size-larger-than’
- cc1: some warnings being treated as errors
- make[3]: *** [scripts/Makefile.build:289: /var/lib/dkms/realtek-r8125/9.009.00/build/src/r8125_n.o] Error 1
- make[2]: *** [Makefile:1844: /var/lib/dkms/realtek-r8125/9.009.00/build/src] Error 2
- make[2]: Leaving directory '/usr/src/linux-headers-5.18.15-pve'
- make[1]: *** [Makefile:176: modules] Error 2
- make[1]: Leaving directory '/var/lib/dkms/realtek-r8125/9.009.00/build/src'
- make: *** [Makefile:42: modules] Error 2
复制代码
|
|