lwfinger / rtl8852au

320 stars 77 forks source link

Trouble getting ASUS USB-AX55 Nano to work on Arch Linux #74

Open MrDrMcCoy opened 11 months ago

MrDrMcCoy commented 11 months ago

I have not had any luck getting the ASUS USB-AX55 Nano to work on my Arch Linux desktop.

The kernel module compiled and installed without issue, I regenerated initramfs for good measure, rebooted, and verified that the module is loaded:

$ sudo lsmod | grep 8852
8852au              14585856  0
cfg80211             1380352  1 8852au
16.5ms 05:24pm 01/06 w00t@archlinux:~ 
$ sudo dmesg -HTkux | grep 8852
kern  :warn  : [Sat Jan  6 17:08:59 2024] 8852au: loading out-of-tree module taints kernel.
kern  :notice: [Sat Jan  6 17:08:59 2024] 8852au: module verification failed: signature and/or required key missing - tainting kernel
kern  :info  : [Sat Jan  6 17:08:59 2024] usbcore: registered new interface driver rtl8852au

However, It neither shows up as a WiFi device nor a Bluetooth device (my primary use case).

Disconnecting it and reconnecting it shows this:

kern  :info  : [Sat Jan  6 17:25:26 2024] usb 7-2.1.2.1: USB disconnect, device number 8
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: new high-speed USB device number 14 using xhci_hcd
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: New USB device found, idVendor=0b05, idProduct=1a62, bcdDevice= 0.00
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: Product: 802.11ax WLAN Adapter
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: Manufacturer: Realtek
kern  :info  : [Sat Jan  6 17:30:25 2024] usb 7-2.1.2.1: SerialNumber: 00e04c000001

It also shows up under lsusb:

$ lsusb | grep -i asus
Bus 007 Device 014: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter

However, bluetoothctl list shows nothing. What am I missing to get this working?

reubenfarrelly commented 11 months ago

Following - as I have the exact same Asus USB Nano Wifi adaptor, on a Raspberry Pi 4 with Raspberry Pi OS and seeing the exact same thing. So it's likely not just an issue with Arch linux. The kernel is 6.1.63 . I also noticed that the Makefile needed 'bc' to be installed, so this is something that could be updated in the documentation (separate issue to the module not working) - apt-get install bc .

Curiously the firmware files for this module do seem to be shipped in the OS: /usr/lib/firmware/rtl_bt/rtl8852au_config.bin /usr/lib/firmware/rtl_bt/rtl8852au_fw.bin /usr/lib/firmware/rtl_bt/rtl8852bu_config.bin /usr/lib/firmware/rtl_bt/rtl8852bu_fw.bin /usr/lib/firmware/rtl_bt/rtl8852cu_config.bin /usr/lib/firmware/rtl_bt/rtl8852cu_fw.bin

But no kernel module - hence why I'm compiling the out of tree version.

parkerlreed commented 7 months ago

Same here.

[parker@rogally ~]$ sudo dmesg | grep 8852
[sudo] password for parker: 
[    7.689582] usbcore: registered new interface driver rtl8852au
[parker@rogally ~]$ lsmod | grep 8852
8852au              14483456  0
cfg80211             1351680  5 mt76,8852au,mac80211,mt7921_common,mt76_connac_lib
[parker@rogally ~]$ lsusb | grep ASUS
Bus 005 Device 005: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter

I tried manually attaching but no output there either

[root@rogally parker]# echo 0b05 1a62 > /sys/bus/usb/drivers/rtl8852au/new_id 

Dmesg tail
[  118.945645] usb 5-1.3.1: USB disconnect, device number 5
[  138.351813] usb 5-1.3.1: new high-speed USB device number 11 using xhci_hcd
[  138.454559] usb 5-1.3.1: New USB device found, idVendor=0b05, idProduct=1a62, bcdDevice= 0.00
[  138.454570] usb 5-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  138.454572] usb 5-1.3.1: Product: 802.11ax WLAN Adapter
[  138.454574] usb 5-1.3.1: Manufacturer: Realtek
[  138.454576] usb 5-1.3.1: SerialNumber: 00e04c000001
parkerlreed commented 7 months ago

Oh guys https://github.com/lwfinger/rtl8852bu

AX-55 shares the same USB ID with AX-56... We need bu for 55

parkerlreed commented 7 months ago

Yep works with bu

3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 96:60:55:f5:36:6e brd ff:ff:ff:ff:ff:ff permaddr 74:97:79:56:b4:6f
4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether e8:9c:25:5c:56:b9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.65/24 brd 192.168.100.255 scope global dynamic noprefixroute wlan1
       valid_lft 86388sec preferred_lft 86388sec
    inet6 fe80::292:ce40:9d01:f508/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever