Problems installing wireless drivers

December 27, 2022, 16:03

lupine3rd

Hello World, I'm trying to install a netis WF2190 wireless USB adapter to my Raspberry Pi 4b with the 64-bit Raspberry Pi OS installed and it's been a while since I've played with drivers in Linux and I'm having some problems. When I plug in the adapter and run 'lsusb', I see:
Bus 001 Device 006: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
When I run 'lsmod', I do not see the drivers for it, so I tried installing the vendor-supplied drivers for Ubuntu 16.04 for it, located at https://www.netis-systems.com/Suppory/downloads/dd/1/img/443 but I've run into some errors. When I install per their instructions, I get the following error:
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.15.76-v8+/build M=/home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.76-v8+'
Makefile:709: arch/aarch64/Makefile: No such file or directory
make[1]:  No rule to make target 'arch/aarch64/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.15.76-v8+'
make:  [Makefile:1656: modules] Error 2
I gather this is because of 'ARCH=aarch64', so I did some searching and manually edited the Makefile to indicate: 'ARCH=arm64' per someone else's recommendation for a similar problem (here: https://github.com/Mange/rtl8192eu-linux-driver/issues/228) but now I am receiving the following error:
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.76-v8+/build M=/home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.76-v8+'
  CC [M]  /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/core/rtw_cmd.o
In file included from /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/include/osdep_service.h:41,
                 from /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/include/drv_types.h:32,
                 from /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/core/rtw_cmd.c:22:
/home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/include/osdep_service_linux.h:273:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
  273 |  ptimer->data = (unsigned long)cntx;
      |        ^~
/home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/include/osdep_service_linux.h:274:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  274 |  init_timer(ptimer);
      |  ^~~~~~~~~~
      |  _init_timer
cc1: some warnings being treated as errors
make[2]:  [scripts/Makefile.build:289: /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108/core/rtw_cmd.o] Error 1
make[1]:  [Makefile:1900: /home/pi/RTL8812AU_WF2190_WF2561/RTL8812AU_linux_v4.3.20_16317_20160108/driver/rtl8812AU_linux_v4.3.20_16317.20160108] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.76-v8+'
make: * [Makefile:1658: modules] Error 2
Could someone perhaps recommend a different driver package for the 8812au wireless chipset for my OS, or otherwise help me figure out the issue with manually specifying 'ARCH=arm64' with the vendor-supplied drivers? Thank you so much! 🙂

lupine3rd

Meh...5 more minutes spent searching and I found a community-supplied driver which is now working perfectly... https://github.com/morrownr/8812au-20210629