搞了一两天,才搞定这个驱动,官方原版弄过来,还是有几个函数调用有问题,根pve的内部版本不相同,编译不通过。话不多说,看效果:
root@pve:ax88179_v3.5.0# dpkg -l | grep -E 'pve-kernel|proxmox-kernel'
看当前运行内核
uname -a
ii proxmox-kernel-6.8 6.8.12-10 all Latest Proxmox Kernel Image
ii proxmox-kernel-6.8.12-10-pve-signed 6.8.12-10 amd64 Proxmox Kernel Image (signed)
ii proxmox-kernel-6.8.12-4-pve-signed 6.8.12-4 amd64 Proxmox Kernel Image (signed)
rc proxmox-kernel-6.8.12-8-pve-signed 6.8.12-8 amd64 Proxmox Kernel Image (signed)
ii proxmox-kernel-6.8.12-9-pve-signed 6.8.12-9 amd64 Proxmox Kernel Image (signed)
ii proxmox-kernel-helper 8.1.1 all Function for various kernel maintenance tasks.
ii pve-firmware 3.15-3 all Binary firmware code for the pve-kernel
root@pve:ax88179_v3.5.0#
root@pve:ax88179_v3.5.0# # 查看当前运行内核
root@pve:ax88179_v3.5.0# uname -a
Linux pve 6.8.12-10-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-10 (2025-04-18T07:39Z) x86_64 GNU/Linux
root@pve:ax88179_v3.5.0#
root@pve:ax88179_v3.5.0# ls -l ax_usb_nic.ko
-rw-r--r-- 1 root root 1943272 Apr 26 22:58 ax_usb_nic.ko
root@pve:ax88179_v3.5.0# dmesg | tail -20 | grep ax_usb
_nic
[52640.241125] module ax_usb_nic: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[52640.241680] module ax_usb_nic: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[52640.242215] module ax_usb_nic: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[52640.242733] module ax_usb_nic: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[52763.811177] module ax_usb_nic: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[54038.017349] ax_usb_nic 1-1.2:1.0: ASIX AX88179_178A USB Ethernet Controller 3.5.0 (0.0.0.0_4.0)
[54038.018834] usbcore: registered new interface driver ax_usb_nic
[54038.054089] ax_usb_nic 1-1.2:1.0 enx000ec67e98a6: renamed from eth0
root@pve:ax88179_v3.5.0# lsmod | grep ax_usb_nic
ax_usb_nic 86016 0
mii 20480 1 ax_usb_nic
root@pve:ax88179_v3.5.0# ip link show | grep enx000ec67e98a6 -B1
link/ether 7e:f2:32:63:f4:ae brd ff:ff:ff:ff:ff:ff
15: enx000ec67e98a6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
root@pve:ax88179_v3.5.0# sudo ip link set enx000ec67e98a6 up
root@pve:ax88179_v3.5.0# ip addr show enx000ec67e98a6
15: enx000ec67e98a6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:0e:c6:7e:98:a6 brd ff:ff:ff:ff:ff:ff
root@pve:ax88179_v3.5.0#
下载链接(ax_usb_nic.ko):https://download.csdn.net/download/G90980/90699239x