双频 USB 适配器 2.4/5GHz 1200(866+300)Mbps 无线速度与 802.11ac
所以最近我购买了带有 CD 上驱动程序的双频 USB 适配器,以安装在 Windows、Mac 和 Linux 上。
我正在使用Ubuntu 18.04.4 LTS - 64 位
1.
将适配器连接到USB端口后,我检查了输入终端的端口lsusb
,我得到以下信息:
Bus 001 Device 007: ID 0bda:b812 Realtek Semiconductor Corp.
2.
sudo dkms status
然后我什么也没得到。
3.
然后我在 CD 中名为 ( RTL81888192EUS_linux_v4.3.0.4_11485.20140519chmod +x install.sh
) 的文件夹中安装 Wi-Fi 2.4GHz,在终端中输入,然后sudo ./install.sh
我得到以下结果:
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8188EUS_linux_v4.3.0.4_11485.20140519.tar.gz
rtl8188EUS_linux_v4.3.0.4_11485.20140519/ (all files)
Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-101-generic/build M=/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-101-generic'
CC [M] /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/core/rtw_cmd.o
In file included from /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h:41:0,
from /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/drv_types.h:32,
from /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/core/rtw_cmd.c:22:
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service_linux.h:253:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^~
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service_linux.h:254:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
In file included from /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/drv_types.h:32:0,
from /home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/core/rtw_cmd.c:22:
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h: In function ‘thread_enter’:
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h:342:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
do_signal
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h:352:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending (current))
^~~~~~~~~~~~~~
timer_pending
/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/include/osdep_service.h:354:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/core/rtw_cmd.o' failed
make[2]: *** [/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519/core/rtw_cmd.o] Error 1
Makefile:1577: recipe for target '_module_/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519' failed
make[1]: *** [_module_/home/luisito/Documents/RTL81888192EUS_linux_v4.3.0.4_11485.20140519/driver/rtl8188EUS_linux_v4.3.0.4_11485.20140519] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-101-generic'
Makefile:1318: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
似乎该文件夹中不存在文件rtw_cmd.o,因此它已失败。
4.最后,我在 CD 中名为 ( RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407 )
的文件夹中安装了 Wi-Fi 5GHz,在终端中输入chmod +x install.sh
,然后sudo ./install.sh
我得到以下结果:
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760.tar.gz
rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/ (all files)
Authentication requested [root] for make clean:
#make -C /lib/modules/4.15.0-101-generic/build M=/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760 clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-101-generic/build M=/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-101-generic'
CC [M] /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/core/rtw_cmd.o
In file included from /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h:47:0,
from /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/drv_types.h:32,
from /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/core/rtw_cmd.c:22:
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service_linux.h:288:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^~
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service_linux.h:289:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
In file included from /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/drv_types.h:32:0,
from /home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/core/rtw_cmd.c:22:
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h: In function ‘thread_enter’:
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h:375:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
do_signal
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h:385:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending(current))
^~~~~~~~~~~~~~
timer_pending
/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/include/osdep_service.h:386:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/core/rtw_cmd.o' failed
make[2]: *** [/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760/core/rtw_cmd.o] Error 1
Makefile:1577: recipe for target '_module_/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760' failed
make[1]: *** [_module_/home/luisito/Documents/RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407/driver/rtl8821AU_WiFi_linux_v5.2.6_21981.20170407_COEX20170206-6760] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-101-generic'
Makefile:1877: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
似乎该文件夹中不存在文件rtw_cmd.o,因此它也失败了。
- 那么任何人都可以修复Wi-Fi 2.4GHz 和 5GHz 两个文件夹中的文件rtw_cmd.o吗?
文件夹位于以下链接中:Linux 的双频 USB 适配器 Wifi
首先,确保安装了必要的先决条件:
您的无线现在应该可以工作了。