Package Details: rtl8821au-dkms-git 5.12.5.2.r148.g0bfe654-1

Git Clone URL: https://aur.archlinux.org/rtl8821au-dkms-git.git (read-only, click to copy)
Package Base: rtl8821au-dkms-git
Description: rtl8821AU and rtl8811AU chipset driver with firmware v5.12.5.2
Upstream URL: https://github.com/morrownr/8821au-20210708
Licenses: GPL2
Conflicts: 8821au
Submitter: zebulon
Maintainer: zebulon
Last Packager: zebulon
Votes: 48
Popularity: 0.85
First Submitted: 2017-09-12 06:28 (UTC)
Last Updated: 2022-09-02 13:23 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Pinned Comments

zebulon commented on 2019-10-01 06:18 (UTC) (edited on 2025-02-12 07:26 (UTC) by zebulon)

To all having an issue with this driver: please try these alternate packages: https://aur.archlinux.org/packages/rtw88-dkms-git or https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git.

solsticedhiver commented on 2019-03-17 10:59 (UTC) (edited on 2019-03-17 21:10 (UTC) by solsticedhiver)

a patch to make it work for rpi and may be other ARM device:

--- PKGBUILD.old    2019-03-15 20:08:05.345042676 +0100
+++ PKGBUILD    2019-03-15 20:04:24.390294977 +0100
@@ -32,4 +32,10 @@
         sed -e "s/@_PKGBASE@/${_pkgbase}-dkms/" \
                         -e "s/@PKGVER@/${pkgver}/" \
                         -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+
+   # patch Makefile for RPI
+   sed -i '/^CONFIG_PLATFORM_I386_PC/s/y/n/' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/Makefile
+   sed -i '/^CONFIG_PLATFORM_ARM_RPI/s/n/y/' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/Makefile
+   # disable debug code with __DATE__ macro (TODO: proper fix ?)
+   sed -i '/__DATE__/s/^/\/\//' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/core/rtw_debug.c
 }

Note: I am seeing the interface of the usb wifi key marketed as DEEPOW dongle (from amazon) changing MAC address at every boot even though I have not set up anything like that in netctl, here.

I don't know if it's a hardware problem or driver problem. However, it's the same with rtl88xxau-aircrack-dkms-git driver

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 15 Next › Last »

zebulon commented on 2021-05-26 15:51 (UTC)

@Casper: see also https://askubuntu.com/questions/1162974/wireless-usb-adapter-0bdac811-realtek-semiconductor-corp for a discussion about 8821cu. By the way, there is a PKGBUILD on AUR for the brektrou driver: https://aur.archlinux.org/packages/rtl8821cu-dkms-git/

zebulon commented on 2021-05-26 15:49 (UTC)

@Casper: I see your Device ID in the Github Issue report: 0bda:c811. Seems that from reading https://github.com/aircrack-ng/rtl8812au/issues/721 you may have an RTL8821CU. Can you look if: https://github.com/ulli-kroll/rtl8821cu or https://github.com/brektrou/rtl8821CU compile and work for you?

zebulon commented on 2021-05-26 15:39 (UTC)

@Casper: it looks like the API has changed with 5.12 version of the kernel and therefore does not compile. Very strange the aircrack driver does not work either - this would have simplified the problem. Maybe you could raise a ticket in aircrack Github repo while I try to fix this? Maybe this is just an ID missing in aircrack code? Do you know your device ID ? In addition I do not own a 8821au adapter, making fixing quite difficult.

Casper commented on 2021-05-24 09:05 (UTC)

Unable to compile. Also created an issues in github: https://github.com/zebulon2/rtl8812au/issues/36.

Unfortunately my usb wi-fi adapter works only with this driver, it doesn't appear with rtl88xxau-aircrack.

CC [M]  /home/casper/build/rtl8812au/core/efuse/rtw_efuse.o
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c: In function ‘rtw_read_efuse_from_file’:
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2565:14: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
 2565 |         fs = get_fs();
      |              ^~~~~~
      |              get_sa
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2565:14: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2566:9: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
 2566 |         set_fs(KERNEL_DS);
      |         ^~~~~~
      |         sget_fc
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2566:16: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2566 |         set_fs(KERNEL_DS);
      |                ^~~~~~~~~
      |                KERNFS_NS
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2566:16: note: each undeclared identifier is reported only once for each function it appears in
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c: In function ‘rtw_read_macaddr_from_file’:
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2646:14: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2646 |         fs = get_fs();
      |              ^~~~~~
/home/casper/build/rtl8812au/core/efuse/rtw_efuse.c:2647:16: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2647 |         set_fs(KERNEL_DS);
      |                ^~~~~~~~~
      |                KERNFS_NS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:271: /home/casper/build/rtl8812au/core/efuse/rtw_efuse.o] Error 1
make[1]: *** [Makefile:1851: /home/casper/build/rtl8812au] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.12.4-arch1-2/build'
make: *** [Makefile:1870: modules] Error 2

jonathon commented on 2020-11-18 23:18 (UTC)

@zebulon, you could always change the upstream to one that works rather than remove the package? And, so there's no conflict with rtl88xxau-aircrack-dkms-git this one could provide the v5.3.4 branch?

zebulon commented on 2020-08-24 11:18 (UTC)

Hello everybody, I think it is time to retire this package and direct users to the more recent rtl88xxau-aircrack-dkms-git package. Any suggestion against this?

longboardtard commented on 2020-04-05 06:06 (UTC)

Based on @solstice's pinned comment and as of today, this is a working patch for the RBPI. I'm simply adding 'armv7h' to the architecture list:

patch

--- PKGBUILD.orig       2020-04-05 00:37:13.005642118 -0500
+++ PKGBUILD    2020-04-05 00:38:58.003792205 -0500
@@ -6,7 +6,7 @@
 pkgver=5.1.5.r59.gaf07b27
 pkgrel=1
 pkgdesc="rtl8821AU, rtl8812AU and rtl8811AU chipset driver with firmware v5.1.5"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
 url="https://github.com/zebulon2/rtl8812au/tree/v5.1.5"
 license=('GPL2')
 depends=('dkms' 'bc')
@@ -32,4 +32,10 @@
         sed -e "s/@_PKGBASE@/${_pkgbase}-dkms/" \
                         -e "s/@PKGVER@/${pkgver}/" \
                         -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+
+   # patch Makefile for RPI
+   sed -i '/^CONFIG_PLATFORM_I386_PC/s/y/n/' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/Makefile
+   sed -i '/^CONFIG_PLATFORM_ARM_RPI/s/n/y/' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/Makefile
+   # disable debug code with __DATE__ macro (TODO: proper fix ?)
+   sed -i '/__DATE__/s/^/\/\//' ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/core/rtw_debug.c
 }

I used a RPI 4 model B rev 1.1, with archlinuxarm (Linux rpi4 4.19.108-1-ARCH #1 SMP PREEMPT Tue Mar 10 02:06:04 UTC 2020 armv7l GNU/Linux) and an Ourlink AC600 Wireless USB adapter:

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0bda:a811 Realtek Semiconductor Corp. RTL8811AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg

[ +25.852656] usb 1-1.4: new high-speed USB device number 7 using xhci_hcd
[  +0.140550] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=a811, bcdDevice= 2.00
[  +0.000042] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000030] usb 1-1.4: Product: 802.11ac WLAN Adapter 
[  +0.000024] usb 1-1.4: Manufacturer: Realtek 
[  +0.000022] usb 1-1.4: SerialNumber: 00e04c000001
[  +0.113350] usbcore: registered new interface driver 8812au

mrpanda commented on 2019-10-01 17:48 (UTC)

@zebulon Thanks already tried it same issue , for now I'm using different usb wifi module. If you can make the patch that will be awesome.

zebulon commented on 2019-10-01 06:18 (UTC) (edited on 2025-02-12 07:26 (UTC) by zebulon)

To all having an issue with this driver: please try these alternate packages: https://aur.archlinux.org/packages/rtw88-dkms-git or https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git.