Out of tree rtl8812au and rtl8821cu driver integration for OpenWrt, tested on 19.07.8. Contains Makefiles (based on ImmortalWrt) that pull drivers from https://github.com/morrownr with patches to make them compile on OpenWrt, also includes a patch that fixes a bug in rtl8821cu where connecting to 5GHz network is giving out config_phydm_switch_bandwidth_8821c fail
error.
To compile the kernel modules for your specific device, following the steps below:
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git checkout v19.07.8
./scripts/feeds update -a
./scripts/feeds install -a
wget https://downloads.openwrt.org/releases/19.07.8/targets/ar71xx/generic/config.buildinfo -o .config #This is to get the exact kernel config so the kernel module built is compatible with the device
- Extract the content of this repo to the openwrt directory, so folder structure is
package/kernel/rtl8812au/
andpackage/kernel/rtl8821cu/
make defconfig
make -j $(nproc) download
make -j $(nproc)