我正在尝试安装 Realtek-rtl8812au 驱动程序 (Archer T4U V3),但我无法执行任何操作,因为我在编译时陷入困境。无论我从 git 克隆什么包或者我使用什么驱动程序包,我都无法正确编译。我尝试了不同的方法,但结果相同,编译错误。我尝试编译而不将警告视为错误,但它没有执行任何操作。
这是我制作文件后的内容:
> /home/ascii/Desktop/rtl88x2BU/include/osdep_service_linux.h:282:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
282 | ptimer->data = (unsigned long)cntx;
| ^~
/home/ascii/Desktop/rtl88x2BU/include/osdep_service_linux.h:283:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
283 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
In file included from /home/ascii/Desktop/rtl88x2BU/include/drv_types.h:30,
from /home/ascii/Desktop/rtl88x2BU/core/rtw_cmd.c:17:
/home/ascii/Desktop/rtl88x2BU/include/wifi.h: At top level:
/home/ascii/Desktop/rtl88x2BU/include/wifi.h:1014: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1014 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/ascii/Desktop/rtl88x2BU/include/osdep_service_linux.h:83,
from /home/ascii/Desktop/rtl88x2BU/include/osdep_service.h:42,
from /home/ascii/Desktop/rtl88x2BU/include/drv_types.h:27,
from /home/ascii/Desktop/rtl88x2BU/core/rtw_cmd.c:17:
./include/linux/ieee80211.h:1657: note: this is the location of the previous definition
1657 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/ascii/Desktop/rtl88x2BU/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1849: /home/ascii/Desktop/rtl88x2BU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-37-generic'
make: *** [Makefile:1794: modules] Error 2
我成功安装了驱动程序,在使用 Ubuntu 多次失败后,我得到了一台带有 Parrot Security (Debian 5 64bit) 的虚拟机。我发现这个网站对我有帮助: 安装 TP-Link Archer T4U Plus AC1300 的步骤