Compile Realtek rtl8812AU/8821AU USB WiFi driver on Debian Jessie

Install the driver first from github:

sudo apt-get install git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux
cd rtl8812AU_8821AU_linux
sudo cp -R . /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms add -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms build -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0

Test and load the driver:

dkms status
modinfo rtl8812au | egrep 'filen|vers|0811'
sudo modprobe -rfv rtl8812au
sudo modprobe -v rtl8812au
iwconfig
iwlist chan
sudo iwlist scan | egrep -i 'cell|chan|essid|wpa|cipher|qual'

If you are going to compile this driver on Raspberry Pi the steps are a bit different. First in driver directory open Makefile and change:

CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ARM_RPI = n

to

CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = y

Then you can do following:

sudo make clean
sudo make
sudo make install
sudo modprobe -a rtl8812au

Leave a Reply

Your email address will not be published. Required fields are marked *