These instructions are based on an open source driver from GitHub.  There are other open source drivers available.  You don't have to use the one showed here.  The following instructions work for EW-7811 AC600 Series adapters and EW-7822UAC AC 1200 USB 3.0 adapter only.


As of December 2017, we use the 2017-09-07 Raspbian Operating System(OS) image running kernel v4.9.41-v7+ on Raspberry Pi(RPi) 2 Model B for testing and verification.  Commands used to compile and install the driver are in green below.  You should input them one at a time.  The '$' is just the prompt to indicate you're not the root user.  Please do not include it with the command you typed.



[1.]  Make sure your RPi is able to access the Internet.


[2.]  Open a Terminal program from your Raspbian OS.


[3.]  Make sure your system is up-to-date and reboot if necessary after updated/upgraded.  This step is optional and you don't have to do it.

$ sudo apt update

$ sudo apt upgrade

$ sudo apt dist-upgrade

$ sudo reboot


[4.]  Install the necessary files to compile and install the driver if they haven't been installed yet.

$ sudo apt install build-essential dkms git bc


[5.]  Install the kernel headers, which is needed to compile the driver.  You can use the command 'sudo apt install raspberrypi-kernel-headers' without the quotes to get the headers from the official repository.  However, it has two(2) potential issues, (i) the build/ folder may not be included, and (ii) the installed headers version may not match with the running kernel version.  Alternatively, you can pull the headers directly from Raspberry Pi's GitHub repository.  There is a script created by notro(https://github.com/notro/rpi-source/) at GitHub to make the process effortlessly with one(1) criteria — you have to run the version of kernel upgraded by using the rpi-update command.

$ sudo rpi-update

$ sudo reboot
[ Note:  Reboot is needed after upgrading the kernel.  After that, simply reopen the Terminal program and continue with the rest of the commands. ]

$ git clone https://github.com/notro/rpi-source.git

$ cd rpi-source

$ chmod +x rpi-source

$ sudo apt install libncurses5-dev

$ sudo ./rpi-source

$ cd ..

$ ls /lib/modules/$(uname -r)/

[ Note:  The last command is to check whether the build/ folder has been created.  If you don't see the build/ folder from the output.  Something is wrong and you need to fix it before continuing with the rest Steps.  Otherwise, you won't be able to compile and install the driver. ]


[6.]  Clone the open source driver from Diederik De Haas's GitHub repository.

$ git clone https://github.com/diederikdehaas/rtl8812AU.git

$ cd rtl8812AU

[ Note:  Right after 'rt' is a letter 'l' (like lemon), not a number 1 (like 1990).  And right after '88' is a number 1 (like 1990), not a letter 'l' (like lemon).  Typing them wrong will cause GitHub to prompt you inputting a Username and a Password or saying repository not found. ]


[7.]  Modify the hardware platform in Makefile.  The default setting is for Intel/AMD-based (I386-PC) platform.  We have to change it to ARM-based RPi (ARM-RPI) platform.

$ nano Makefile
[ Note:  nano is my Text Editor of choice.  You can use any one you preferred like vi. ]

-- Change the following lines:

Line #88 — CONFIG_PLATFORM_I386_PC from y to n
Linu #89 — CONFIG_PLATFORM_ARM_RPI from n to y

-- Save the file


[8.]  Compile and install the driver.

$ sudo make

$ sudo make install


[9.]  Restart your RPi for the installed driver to take effect.

$ sudo reboot



That's it!  Once finished booting up, you should be able to make a Wi-Fi connection using our adapter using the Network Manager.


You may need to recompile and reinstall the existing driver whenever there is a kernel update.  Otherwise, the adapter may not be working.  First, you have to uninstall/remove the installed driver.  Here are the commands.


[A.]  Uninstall/remove the installed driver.

$ cd rtl8812AU

$ sudo make uninstall

$ sudo make clean

$ cd ..

$ rm -rf rtl8812AU

[ Note:  Be careful with the last command.  It will delete the folder and its subfolders along with all the files without prompting you any warnings!  Make sure you have the correct folder name. ]


When finished, simply repeat Steps 1~9 again to recompile and reinstall the driver.



Enjoy!



Technical Support Team

Edimax USA

Santa Clara, CA




/*** EOF ***/

Created:  2016-06-08  10:44 AM

Modified:  2017-12-01  12:33 PM