Step 1 : Install lib packages
sudo eopkg it -c system.devel
sudo eopkg it linux-headers elfutils libelf libelf-devel
Step 2 : download the drivers from
https://github.com/zebulon2/rtl8812au
unzip the file to the folder and open the terminal from the folder and issue these commands one by one
1 ) sudo make clean
2 ) sudo make
This step will throw error on rtw_android.c file
open rtw_android.c file (in /os_dep/linux/rtw_android.c) and update this line.
Line no : 629
#replace from this line (line no 629)
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
#to
if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
else
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
endif
If you are not going back to old kernel then just remove VERIFY_READ param in line no 629.
There are some warnings just ignore those.
3 ) sudo make install
4 ) sudo modprobe -a rtl8812au
==== Hopefully wifi adapter LED will blink 🙂 Check the ifconfig ====
ifconfig
Note : Dont delete this driver folder you need it for every kernel update.
after every update issue this command to install wifi driver.
sudo make install
sudo modprobe -a rtl8812au
🙂