Sample Header Ad - 728x90

realtek RTL8811AU wifi adaptor working on XUbuntu

1 vote
1 answer
31327 views
I am setting up a pc running Xubuntu and so far it is going pretty well. I am having issues getting Wi-Fi working, though. Initially I tried with my existing Netgear A6200 but was told that basically drivers don't exist, and I would have to use Windows drivers - which I didn't fancy, so I bought [one of these](https://www.amazon.co.uk/gp/product/B06XZ1DBPZ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1) , which lists Linux as a supported OS. I haven't had much luck getting it to work. I was hoping that I would just plug it in and get the drivers magically but no such luck. The chipset is apparently realtek RTL8811AU (I got this by plugging it into my windows PC). I found [this post](https://ubuntuforums.org/showthread.php?t=2306417) , but make fails* - I also don't like the idea of having to re-do this every time Linux updates. I looked at the drivers that come with the dongle, and there is an install.sh to compile and install the drivers (I assume this is doing a similar thing to the GitHub repo referenced on the above post). This install script also fails. There is also a tar of source code included on the disc. I was really hoping for some apt-get command to do this that would track and update the drivers as new updates came out. If I get make to work am I really going to have to re-do that each time I get an update? * make failure output andy@Andy-Miner:~/git/rtl8811AU_rtl8821A-linux$ make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/andy/git/rtl8811AU_rtl8821A-linux modules make: Entering directory '/usr/src/linux-headers-4.10.0-33-generic' CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_cmd.o CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_security.o CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o In file included from /home/andy/git/rtl8811AU_rtl8821A-linux/include/drv_types.h:64:0, from /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:22: /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c: In function ‘dump_drv_version’: /home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be #define _seqdump seq_printf ^ /home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’ if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ ^ /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:65:2: note: in expansion of macro ‘DBG_871X_SEL_NL’ DBG_871X_SEL_NL(sel, "%s %s\n", DRV_NAME, DRIVERVERSION); ^ /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:66:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__); ^ //snip LOADS of errors /home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’ if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ ^ /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:1221:2: note: in expansion of macro ‘DBG_871X_SEL_NL’ DBG_871X_SEL_NL(m, "best_channel_24G = %d\n", best_channel_24G); ^ cc1: some warnings being treated as errors scripts/Makefile.build:294: recipe for target '/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o' failed make: *** [/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o] Error 1 Makefile:1524: recipe for target '_module_/home/andy/git/rtl8811AU_rtl8821A-linux' failed make: *** [_module_/home/andy/git/rtl8811AU_rtl8821A-linux] Error 2 make: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic' Makefile:1323: recipe for target 'modules' failed make: *** [modules] Error 2 andy@Andy-Miner:~/git/rtl8811AU_rtl8821A-linux$ ### Install script output from included drivers andy@Andy-Miner:~/Downloads/wifi dongle$ sudo ./install.sh ################################################## Realtek Wi-Fi driver Auto installation script Novembor, 21 2011 v1.1.0 ################################################## Decompress the driver source tar ball: rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51.tar.gz rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/ rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/ //snip - loads of files listed rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 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.10.0-33-generic/build M=/home/andy/Downloads/wifi dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules make: Entering directory '/usr/src/linux-headers-4.10.0-33-generic' arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support make: *** No rule to make target 'dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51'. Stop. make: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic' Makefile:1551: recipe for target 'modules' failed make: *** [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg ##################################################
Asked by Roaders (139 rep)
Sep 3, 2017, 08:08 AM
Last activity: Sep 26, 2024, 12:11 AM