Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wolkenarchitekt/2c43e4e1b6f6091bbff122c7378e8535 to your computer and use it in GitHub Desktop.
Save wolkenarchitekt/2c43e4e1b6f6091bbff122c7378e8535 to your computer and use it in GitHub Desktop.
Build 8812au drivers (e.g. Asus AC-56) for Raspberry Pi OS (e.g. Kernel 5.10.92-v8+)
#
# Install drivers for 8812au devices.
# Driver builds on http://downloads.fars-robotics.net/wifi-drivers/8812au-drivers/ are outdated and don't support
# Kernel 5.10.92-v8+ in current Raspberri Pi OS.
# This Gist will allow to build the drivers on ALL kernels.
#
# Install required packages
sudo apt-get install -y build-essential flex bison libssl-dev libelf-dev python2 bc git raspberrypi-kernel-headers dkms
# Get rpi-source
sudo wget https://raw.githubusercontent.com/RPi-Distro/rpi-source/master/rpi-source -O /usr/local/bin/rpi-source
sudo chmod +x /usr/local/bin/rpi-source
/usr/local/bin/rpi-source -q --tag-update
# Go to Kernel build
cd linux-650082a559a570d6c9d2739ecc62843d6f951059
make -j 4 modules
# Get rtl8812au driver
git clone https://github.com/gnab/rtl8812au
cd rtl8812au
make ARCH=arm64
insmod 8812au.ko
cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
depmod
# Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment