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.53
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)

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

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 .. 15 Next › Last »

zebulon commented on 2021-06-01 04:23 (UTC)

I have updated the package to 5.8.2.3 as recommended. Please let me know if this works - and if there is any advantage over the aircrack version.

zebulon commented on 2021-06-01 04:06 (UTC)

Just received an Orphan request from leo95: as requested I can update the source to using https://github.com/morrownr/8821au as recommended, but this is different from an Orphan. Please let me know if you would like to maintain this.

Casper commented on 2021-05-28 08:45 (UTC)

@zebulon rtl8821au was the first module that I have tried for my usb wifi adapter. It stopped working after latest system upgrade. Unfortunately don't remember where and how I found that rtl8821au is compatible with my device.

zebulon commented on 2021-05-28 07:46 (UTC)

@Casper: thanks for reporting. This makes me think that this package should probably be now deprecated and users of rtl8821au should use now the aircrack version. I will add a note on the Wiki about rtl8821cu devices. Can you confirm that your device is mislabelled rtl8821au? In other words, what made you think you needed 8821au driver?

Casper commented on 2021-05-27 08:43 (UTC)

@zebulon, thank you very much. With the patch works perfectly.

zebulon commented on 2021-05-27 08:10 (UTC)

@Casper: for the brektrou driver, there is a patch bringing compatibility with 5.12: https://github.com/brektrou/rtl8821CU/pull/134/commits/d4a3d37441a3a17064eeebada09c30c264b44b23. Until it is approved and merged, you need to patch those sources yourself.

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