Here are steps to compile wifi driver:
- Make a clone of the following repository: git clone https://github.com/jwrdegoede/rtl8189ES_linux.git
Compilation
Navigate to the git repository of the driver.
cd rtl8189ES_linux/
make -j4 ARCH=arm64 KSRC=/usr/lib/modules/`uname -r`/build
sudo cp 8189es.ko /usr/lib/modules/`uname -r`/kernel/drivers/net/wireless/realtek/
sudo depmod -a
sudo modprobe 8189es
Check with dmesg if the driver is successfully loaded
Check with iwconfig/ifconfig if your WLAN interface appears
To connect to the access point:
nmcli d wifi connect YOUR_ACCESS_POINT password YOUR_PASSWORD
Reference: https://github.com/kdrapel/x96mini_linux