How do I install driver for a RTL8812AU wifi USB adapter?

I’m running Rocky Linux 8.10 (primarily for use with Davinci Resolve Studio, which is working great.) There’s no other OS on this i7-5820K CPU, 32GB RAM NVIDIA 980Ti 6GB VRAM GPU system.

The WiFi adapter is new and includes a CD containing the driver, but as I’m a Linux newbie, I don’t know how to install the driver. Looking at the CD’s contents, I see it contains 2 directories, one directory named “RTL8812BU_WiFi_linux” (containing “RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044.zip”) and another directory named “RTL8811CU_WiFi_linux” (containing “RTL8811CU_8821CU_WiFi_linux_v5.2.5.3.zip”).

I’d greatly appreciate step-by-step instructions on how to use the above info to get my wifi working. I searched thru posts in this forum but didn’t find a solution. Thank you in advance.

The vendor emailed a link which downloaded a file named …

RTL8812BU-AC1200M.rar

… but without instructions explaining what to do with this file.

Meanwhile, I read info on this page …

… and tried following some of the instructions there, but a driver for the rtl8812au WiFi adapter doesn’t seem to be available via the links there – but I could be mistaken, because I don’t know what I’m doing.

Any help will be greatly appreciated!

Hi,

Please provide the out of lsusb

If the command fails please issue sudo dnf install usbutils

Then re-run the lsusb

Regards Tom.

Bus 002 Device 002: ID 8087:8002 Intel Corp. 8 channel internal hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 045b:0210 Hitachi, Ltd 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 045b:0209 Hitachi, Ltd 
Bus 003 Device 004: ID 096e:0201 Feitian Technologies, Inc. USB DONGLE
Bus 003 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 003 Device 005: ID 062a:0000 MosArt Semiconductor Corp. Optical mouse
Bus 003 Device 003: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The wifi adapter is …

Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

… correct?

When I unzip the file …
RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044.zip

… I get the following (apologies for posting so much text) …

Archive:  RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044.zip
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_JB_4.2/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_JB_4.2/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_JB_4.2/Realtek_Wi-Fi_SDK_for_Android_JB_4.pdf  
 extracting: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_JB_4.2/realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_KK_4.4/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_KK_4.4/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_KK_4.4/Realtek_Wi-Fi_SDK_for_Android_KK_4.4.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_KK_4.4/realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.gz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_L_5.x/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_L_5.x/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_L_5.x/Realtek_Wi-Fi_SDK_for_Android_L_5.pdf  
 extracting: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_L_5.x/realtek_wifi_SDK_for_android_L_5.x_20150811.tgz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_M_6.x/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_M_6.x/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_M_6.x/Realtek_Wi-Fi_SDK_for_Android_M_6.pdf  
 extracting: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_M_6.x/realtek_wifi_SDK_for_android_L_6.x_20151116.tgz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_N_7.0/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_N_7.0/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_N_7.0/Realtek_Wi-Fi_SDK_for_Android_N_7.0.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_N_7.0/realtek_wifi_SDK_for_android_N_7.0_20161024.zip  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_O_8.0/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_O_8.0/linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_O_8.0/Realtek_Wi-Fi_SDK_for_Android_O_8.0.pdf  
 extracting: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/android_ref_codes_O_8.0/realtek_wifi_SDK_for_android_O_8.0_20170925.tar.gz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/HowTo_debug_BT_coexistence.pdf  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/script/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/script/btcoex_lnx.sh  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/script/btcoex_win.bat  
 extracting: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/btcoex/script/Coex_Dbg.log  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Driver_Configuration_for_RF_Regulatory_Certification.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/HowTo_enable_and_verify_TDLS_function_in_Wi-Fi_driver.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/HowTo_enable_driver_to_support_80211d.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/HowTo_enable_the_power_saving_functionality.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/HowTo_support_more_VidPids.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/HowTo_support_WIFI_certification_test.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/How_to_append_vendor_specific_ie_to_driver_management_frames.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/How_to_set_driver_debug_log_level.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/linux_dhcp_server_notes.txt  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Miracast_for_Realtek_WiFi.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_Adaptivity_and_Carrier_Sensing_Test.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_Bridge.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_SoftAP.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_Station_Mode.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Quick_Start_Guide_for_WOW.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Realtek_WiFi_concurrent_mode_Introduction.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/RTK_P2P_WFD_Programming_guide.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/SoftAP_Mode_features.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/Wireless_tools_porting_guide.pdf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/document/wpa_cli_with_wpa_supplicant.pdf  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/driver/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/driver/rtl88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/install.sh  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/readme.txt  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/ReleaseNotes.pdf  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/Android.mk  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/install.sh  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/p2p_api_test_linux.c  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/p2p_test.h  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/p2p_ui_test_linux.c  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/WiFi_Direct_User_Interface/Start_Guide_P2P_User_Interface_Linux.pdf  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wireless_tools/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wireless_tools/wireless_tools.30.rtl.tar.gz  
   creating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/p2p_hostapd.conf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/rtl_hostapd_2G.conf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/rtl_hostapd_5G.conf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_0_8.conf  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_jb_4.2_rtw_r25670.20171213.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_kk_4.4_rtw_r25669.20171213.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_L_5.x_rtw_r24600.20171025.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_M_6.x_rtw_r24570.20171025.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_N_7.x_rtw_r24577.20171025.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_8_O_8.x_rtw_r24597.20171025.tar.gz  
  inflating: RTL88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r24647.20171025.tar.gz

Thanks for your help! What do I do next?

Hi,

From a quick google search, it looks likes on rocky linux 10, the dongle is supported by the kernel. For 8 and 9 you’ll need to compile from source. Looks like this should work:-

Regards Tom.

1 Like

Thanks for the link, Tom!

I downloaded the .ZIP file from the github page, and unzipped it. The github page instructions say …

In order to make direct use of the driver it should suffice to build the driver with make and to load it with insmod 88x2bu.ko

… but apparently I’m using the wrong syntax in the terminal, because I get ‘No such command: make’ errors, etc.

For example, I tried …

[pjd@localhost Downloads]$ sudo dnf make rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777
[sudo] password for pjd:
No such command: make. Please use /bin/dnf --help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(make)’”

Hi,

dnf is not involved, as you are trying to install from source not a pre-compiled package.

I’m not in a position test but I think this should work:-

sudo dnf install kernel-devel kernel-headers gcc make dkms`
make

If it fails here, which it may do as there probably dependencies missing; please post the full error message.

If the make succeeds then continue you with:-

sudo ./deploy.sh
sudo modprobe cfg80211

Regards Tom.

Cool. When I type the following in terminal and press enter …

sudo dnf install kernel-devel kernel-headers gcc make dkms`

… all I see is “>” and nothing else seems to happen. If I then type “make” and press return, again I just see “>”. No errors, nothing.

Hi,

Can you provide a screenshot of this, please?

Regards Tom.

Sorry typo. remove the ' after dkms.

Tom.

No worries about the typo. Some progress here, but then errors …

[pjd@localhost ~]$ cd Downloads
[pjd@localhost Downloads]$ cd rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777
[pjd@localhost rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777]$ sudo dnf install kernel-devel kernel-headers gcc make dkms
[sudo] password for pjd:
Last metadata expiration check: 4:08:26 ago on Sun 13 Jul 2025 10:35:36 AM PDT.
Package kernel-devel-4.18.0-372.9.1.el8.x86_64 is already installed.
Package kernel-devel-4.18.0-553.58.1.el8_10.x86_64 is already installed.
Package kernel-headers-4.18.0-553.58.1.el8_10.x86_64 is already installed.
Package gcc-8.5.0-26.el8_10.x86_64 is already installed.
Package make-1:4.2.1-11.el8.x86_64 is already installed.
Package dkms-3.2.1-1.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[pjd@localhost rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777]$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-553.58.1.el8_10.x86_64/build M=/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777 modules
make[1]: Entering directory ‘/usr/src/kernels/4.18.0-553.58.1.el8_10.x86_64’
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_cmd.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_security.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_debug.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_io.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_ioctl_query.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_ioctl_set.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_ieee80211.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_mlme.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_mlme_ext.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_mi.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_wlan_util.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_vht.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_pwrctrl.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_rf.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_chplan.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_recv.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_sta_mgt.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_ap.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/mesh/rtw_mesh.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_xmit.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_p2p.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_rson.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_tdls.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_br_ext.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_iol.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_sreset.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_btcoex_wifionly.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_btcoex.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_beamforming.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_odm.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_rm.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_rm_fsm.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/rtw_rm_util.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/core/efuse/rtw_efuse.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/osdep_service.o
CC [M] /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.o
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c:1719:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c:1719:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c:1910:13: error: macro “netif_napi_add” passed 4 arguments, but takes just 3
);
^
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c:1906:2: error: ‘netif_napi_add’ undeclared (first use in this function); did you mean ‘netif_napi_del’?
netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll
^~~~~~~~~~~~~~
netif_napi_del
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c:1906:2: note: each undeclared identifier is reported only once for each function it appears in
/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-stringop-overread’
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:318: /home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1619: module/home/pjd/Downloads/rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/4.18.0-553.58.1.el8_10.x86_64’
make: *** [Makefile:2395: modules] Error 2
[pjd@localhost rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777]$

Hi,

Not sure whats going on. A google search suggests the driver won’t compile for a kernel versions older than 6, but repo reports support for older versions. You could raise an issue with the developer but they have marked driver as deprecate, so I’m not sure what response you will get.

Alternatively I have found this driver:-

If its going to work the instructions under “Using DKMS” should suffice.

Regards Tom.

Thanks Tom. Much appreciated. I’ll try that other driver and report results.

  • Peter

No joy. I get the following results …

========================================

[pjd@localhost ~]$ sudo git clone “GitHub - RinCat/RTL88x2BU-Linux-Driver: Realtek RTL88x2BU WiFi USB Driver for Linux” /usr/src/rtl88x2bu-git
[sudo] password for pjd:
Cloning into ‘/usr/src/rtl88x2bu-git’…
remote: Enumerating objects: 2904, done.
remote: Counting objects: 100% (491/491), done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 2904 (delta 426), reused 367 (delta 364), pack-reused 2413 (from 3)
Receiving objects: 100% (2904/2904), 8.78 MiB | 34.18 MiB/s, done.
Resolving deltas: 100% (2059/2059), done.
[pjd@localhost ~]$ sudo sed -i ‘s/PACKAGE_VERSION=“@PKGVER@”/PACKAGE_VERSION=“git”/g’ /usr/src/rtl88x2bu-git/dkms.conf
[pjd@localhost ~]$ sudo dkms add -m rtl88x2bu -v git
Creating symlink /var/lib/dkms/rtl88x2bu/git/source → /usr/src/rtl88x2bu-git
[pjd@localhost ~]$ sudo dkms autoinstall
Sign command: /lib/modules/4.18.0-553.58.1.el8_10.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module rtl88x2bu/git for kernel 4.18.0-553.58.1.el8_10.x86_64 (x86_64)
Building module(s)…(bad exit status: 2)
Failed command:
‘make’ -j12 KVER=4.18.0-553.58.1.el8_10.x86_64 KSRC=/lib/modules/4.18.0-553.58.1.el8_10.x86_64/build

Error! Bad return status for module build on kernel: 4.18.0-553.58.1.el8_10.x86_64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.

Autoinstall on 4.18.0-553.58.1.el8_10.x86_64 succeeded for module(s) blackmagic nvidia.
Autoinstall on 4.18.0-553.58.1.el8_10.x86_64 failed for module(s) rtl88x2bu(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
[pjd@localhost ~]$

==========================================

Hi,

It looks to be failing in the same place as the other driver. I’ve tried applying the patch from the this issue:-

Which gets further but still fails. I’d raise an issue with the developer, they seem quite active.

I’d include the link to the previous issue and your os and the kernel (uname -r), lsusb and the error:-

 CC [M]  /home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/ioctl_linux.o
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c:1862:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, void *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, void *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c:1862:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c:2153:74: error: macro "netif_napi_add" passed 4 arguments, but takes just 3
  netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
                                                                          ^
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c:2153:2: error: ‘netif_napi_add’ undeclared (first use in this function); did you mean ‘netif_napi_del’?
  netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
  ^~~~~~~~~~~~~~
  netif_napi_del
/home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.c:2153:2: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:317: /home/rosmc/RTL88x2BU-Linux-Driver/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1619: _module_/home/rosmc/RTL88x2BU-Linux-Driver] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-553.58.1.el8_10.x86_64'
make: *** [Makefile:2470: modules] Error 2

good luck with getting this resolved. I’m sorry I couldn’t be of any further assistance.

Regards Tom.