RTL8811AU Driver Not Installing

Latest build of DietPi 9.1.1

I have an EDUP EP-DB1607. From what I can find it uses the rtl8811au drivers.
When I plug the USB WIFI adapter into the RPI4 I can see it;

Bus 001 Device 003: ID 0bda:0811 Realtek Semiconductor Corp. Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz]

I have read everything I can find on how to install drivers to make it work…
But same results I get an error #2 that the build is missing or just fails.

Is there a simpler way to get this working?

If it is hopeless is there a list of known USB wifi adapters that will work without going through all this? I’m just trying to find something that can extend the hotspot range a little better.

Thanks

For testing I have a tp-link TL-WN823N (RTL8192EU) which is working ootb

Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: Vendor: Realtek
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: Product: 802.11n NIC
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: Serial not available.
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: RTL8192EU MAC: 5c:62:8b:67:1e:3a
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
Mar 07 20:49:37 DietPi4 kernel: usb 1-1.1: Firmware revision 35.7 (signature 0x92e1)
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 5c:62:8b:67:1e:3a brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.134/24 brd 192.168.0.255 scope global dynamic wlan0
       valid_lft 86227sec preferred_lft 86227sec
1 Like

Might work for the 8192EU but there is no driver for OPs stick.
You would need to install it manually like shown here
https://docs.alfa.com.tw/Support/Linux/RTL8812AU/

@Jappe OP was asking for alternative sticks that are working without additional drivers. That’s why I shared it :wink:

1 Like

Oopsie :slight_smile:

I’m willing to try again, I hate throwing something away that I know works. I appreciate the information. Thanks. I’ll report back once I try it again :wink:

OK, I’m following the instructions and here are the results…


# apt-get install dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dkms is already the newest version (3.0.10-8+deb12u1).
dkms set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

# git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
Cloning into 'rtl8812au'...
remote: Enumerating objects: 11222, done.
remote: Counting objects: 100% (2234/2234), done.
remote: Compressing objects: 100% (186/186), done.
remote: Total 11222 (delta 2095), reused 2048 (delta 2048), pack-reused 8988
Receiving objects: 100% (11222/11222), 70.35 MiB | 10.33 MiB/s, done.
Resolving deltas: 100% (7803/7803), done.

cd rtl8812au

# make dkms_install
mkdir: created directory '/usr/src/8812au-5.6.4.2_35491.20191025'
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source -> /usr/src/8812au-5.6.4.2_35491.20191025
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Sign command: /lib/modules/6.1.21-v8+/build/scripts/sign-file
Binary /lib/modules/6.1.21-v8+/build/scripts/sign-file not found, modules won't be signed
Error! Your kernel headers for kernel 6.1.21-v8+ cannot be found at /lib/modules/6.1.21-v8+/build or /lib/modules/6.1.21-v8+/source. <-- NO "build or source" directories
Please install the linux-headers-6.1.21-v8+ package or use the --kernelsourcedir option to tell DKMS where it's located.
make: *** [Makefile:1788: dkms_install] Error 1

Did you install the kernel headers?

sudo apt install raspberrypi-kernel-headers

Yes and I ran… Same results

apt show raspberrypi-kernel-headers

Package: raspberrypi-kernel-headers
Version: 1:1.20230405-1
Priority: optional
Section: kernel
Source: raspberrypi-firmware
Maintainer: Serge Schneider <serge@raspberrypi.org>
Installed-Size: 64.8 MB
Provides: linux-headers
Depends: libc6 (>= 2.17)
Homepage: https://github.com/raspberrypi/firmware
Download-Size: 10.2 MB
APT-Manual-Installed: yes
APT-Sources: https://archive.raspberrypi.com/debian bookworm/main arm64 Packages
Description: Header files for the Raspberry Pi Linux kernel
 This package provides the architecture-specific kernel header files for
 the Raspberry Pi Linux kernel, generally used for building out-of-tree
 kernel modules.

OK, I have the card working… BUT can it be used as the hotspot? OR do I just need to reinstall the hotspot package? I can connect to the hotspot but it says no internet when I connect.

For those interested this is what I used to get the RTL8811AU/RTL8812AU drivers working.

STEP 1 : Open Terminal

STEP 2 : Run commands

sudo apt update
sudo apt upgrade
sudo apt install raspberrypi-kernel-headers

Reboot after commands above finish to have new updates applied.

STEP 3 : Download driver source

git clone https://github.com/aircrack-ng/rtl8812au.git

STEP 4 : Compile and install

cd rtl8812au
make
sudo make install

do you have 2 WiFi adapter running now? onboard as well as your USB stick? Our hotspot configuration will target wlan0, independent wich adapter it is. Best to disable onboard WiFi if not used.

1 Like

Yes i disabled the onboard. I had it connected for about 10 minutes and was doing a speed test and for some reason it just stopped. I cleaned up everything and will try again tomorrow. But at least I can get the driver’s to work…now to figure out the hotspot issue.

I have gotten the drivers to work for the EP-DB1607 using the RTL8821AU drivers but when I setup the Hotspot I can connect but my phone give me and connect but No Internet Connection.

Maybe it’s the drivers… BUT if I can’t use it as the WIFI Hotspot then this whole process is just a learning exercise cause it isn’t doing what I want :wink:

If I re-enable the onboard wifi the USB adapter goes to wlan1, onboard to wlan0 and everything works as it should.

Next option is getting a USB WIFI adapter that works out of the box… :confused:

probably best to remove hotspot and ensure onboard WiFi has been disabled. Once USB stick has become wlan0, run hotspot install again.

1 Like

I can disable the lan and onboard wifi and only using the rtl8821AU USB adapter I can connect to everything in the house and browse the web.

Now to enable the lan and reinstall the hotspot software.

Same Result, Hotspot is Active, and I can connect But all devices say the same NO Internet.

Is there some residual software that I need to delete manually that could be creating the issue?

This is about the 5th time I have tried different options and get the same result. But if I turn on the onboard WIFI everything works as it should.

This is how my “ip a” looks when it’s NOT working…

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d8:3a:dd:6b:c6:a8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.56/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2312 qdisc mq state UP group default qlen 1000
    link/ether e8:4e:06:67:6e:97 brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.1/24 brd 192.168.42.255 scope global wlan0
       valid_lft forever preferred_lft forever

This is the “ip a” when it is working;

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d8:3a:dd:6b:c6:a8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.56/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether d8:3a:dd:6b:c6:a9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.1/24 brd 192.168.42.255 scope global wlan0
       valid_lft forever preferred_lft forever
4: wlan1: <BROADCAST,MULTICAST> mtu 2312 qdisc noop state DOWN group default qlen 1000
    link/ether e8:4e:06:67:6e:97 brd ff:ff:ff:ff:ff:ff

What DNS server your hotspot clients use?

So the USB adapters MAC address is d8:3a:dd:6b:c6:a9.
When you now look into the output of the “not working” config, the wifi interface has now another MAC address, so it is not the USB adapter anymore.
Maybe it’s even the other way around, the working config uses the internal Wifi and not the adapter?

What about enabling only Wifi and leaving onboard wifi off (in dietpi-config), so only the USB adaper could be listed.

a9 is the onboard wifi, that config works when it is wlan0
97 is the USB and it does not route to the internet when active as wlan0

The Lan is using 192.168.1.1 (router) which my isp uses 8.8.8.8 or 1.1.1.1

Question was about hotspot client DNS.

On a hotspot client, are you able to reach https://1.1.1.1

Yes, no problem.