我使用的是 Ubuntu 20.04,我按照此处的所有说明进行操作,但执行时一直出错
sudo make clean
和
sudo make
它给了我错误2:
$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-26-generic/build
M=/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-26-generic'
CC [M] /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.o
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service.h:46,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:32,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:288:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
288 | ptimer->data = (unsigned long)cntx;
| ^~
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:289:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
289 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:35,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/wifi.h: At top level:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/wifi.h:1012: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1012 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:86,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service.h:46,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:32,
from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1719: /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:1911: modules] Error 2
谢谢大家宝贵的时间!
PS:输出lsusb
命令:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 011: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy
series, misc. (MTP mode)
Bus 001 Device 003: ID 09da:2403 A4Tech Co., Ltd. 2.4G Device
Bus 001 Device 002: ID 0cf3:9271 Qualcomm Atheros Communications
AR9271 802.11n
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
这
由 5.4 Linux 内核原生支持,不需要任何驱动程序。
见https://kernel.ubuntu.com/git/ubuntu/ubuntu-focal.git/tree/drivers/net/wireless/ath/ath9k/hif_usb.c
您试图为完全不同的
RTL8188EUS
设备安装驱动程序。正如您在手册顶部看到的那样,该驱动程序无论如何都已过时。它适用于带有 4.13 内核的 Ubuntu 16.04。无论哪种方式,它都不会安装到 20.04。
我在 HP 笔记本电脑型号 15-dy2050la 上有 ubuntu 20.04
我将 TP-LINK TLWN722N 连接到笔记本电脑,ubuntu 识别它,但无法连接到互联网。我的路由器运行良好,我有其他设备连接没有问题执行命令时;lsusb Ubuntu 识别了 TP-LINK TLWN722N:总线 001 设备 009:ID 2357:010c TP-Link TL-WN722N v2 Ubuntu 无需安装或编译任何东西即可识别该设备。但它没有连接到互联网
我的wifi被设置为隐藏。我禁用了隐藏我的 wifi 的选项:广播网络名称 (SSID) 连接到 wifi 的 TP-LINK TLWN722N 神奇地识别了该设备,而无需安装或编译任何东西。
现在我可以选择使用内置调制解调器或 TP-LINK TLWN722N 惠普笔记本电脑型号 15-dy2050la 非常便宜……它附带的调制解调器没有那么强大或稳定,这就是我使用 TP-LINK TLWN722N 的原因
使用 HP 笔记本电脑型号 15-dy2050la 的内置调制解调器,我在流媒体、在线游戏和视频会议方面遇到了困难,但多亏了过去的 TP-LINK TLWN722N