rtw88 icon indicating copy to clipboard operation
rtw88 copied to clipboard

Doesn't /quite/ seem to work on "riscv64" platform.

Open netlore opened this issue 2 years ago • 4 comments

When connecting I get:-

[  107.041110] usb 1-1.1: new high-speed USB device number 4 using xhci_hcd
[  107.190810] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[  107.193460] rtw_8821cu 1-1.1:1.2: Firmware version 24.11.0, H2C version 12
[  107.206810] Bluetooth: hci0: RTL: rom_version status=0 version=1
[  107.213041] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[  107.219635] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[  107.226791] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[  107.457438] rtw_8821cu 1-1.1:1.2 wlx4401bb48120d: renamed from wlan0
[  107.695776] Bluetooth: hci0: RTL: fw version 0x75b8f098
[  125.283537] rtw_8821cu 1-1.1:1.2: failed to download firmware
[  125.292820] rtw_8821cu 1-1.1:1.2: leave idle state failed
[  125.303270] rtw_8821cu 1-1.1:1.2: failed to leave ips state
[  125.308843] rtw_8821cu 1-1.1:1.2: failed to leave idle state

I can see some networks (notably not all of them)...

root@vector:~# nmcli radio wifi
enabled
root@vector:~# nmcli dev wifi list
IN-USE  BSSID              SSID             MODE   CHAN  RATE        SIGNAL  BARS  SECURITY  
        4C:ED:FB:37:3C:DA  trinity          Infra  13    130 Mbit/s  69      ▂▄▆_  WPA2 WPA3 
        48:D3:43:D4:0E:3F  VM7083208        Infra  44    405 Mbit/s  60      ▂▄▆_  WPA2      
        18:82:8C:74:07:7E  BTWholeHome-FHS  Infra  44    540 Mbit/s  39      ▂▄__  WPA2      
        1A:82:8C:64:07:7E  --               Infra  44    540 Mbit/s  39      ▂▄__  WPA2      
        1A:82:8C:67:ED:09  --               Infra  44    540 Mbit/s  24      ▂___  WPA2      
        18:82:8C:77:ED:09  BTWholeHome-FHS  Infra  44    540 Mbit/s  17      ▂___  WPA2      
root@vector:~# 

However connecting fails with these errors:-

root@vector:~# nmcli dev wifi connect trinity
Error: Connection activation failed: The Wi-Fi network could not be found.
root@vector:~# 

[  387.992897] wlx4401bb48120d: authenticate with 4c:ed:fb:37:3c:da
[  388.988080] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 1/3)
[  390.090883] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 2/3)
[  391.211421] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 3/3)
[  392.167589] wlx4401bb48120d: authentication with 4c:ed:fb:37:3c:da timed out
[  397.843367] wlx4401bb48120d: authenticate with 4c:ed:fb:37:3c:da
[  398.847842] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 1/3)
[  400.090735] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 2/3)
[  401.211735] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 3/3)
[  402.167488] wlx4401bb48120d: authentication with 4c:ed:fb:37:3c:da timed out
[  407.162998] rtw_8821cu 1-1.1:1.2: failed to get urb length:0
[  407.340032] rtw_8821cu 1-1.1:1.2: failed to download firmware
[  408.053238] rtw_8821cu 1-1.1:1.2: failed to download firmware
[  410.229177] rtw_8821cu 1-1.1:1.2: failed to download firmware
[  413.509621] rtw_8821cu 1-1.1:1.2: failed to download firmware
[  413.518718] rtw_8821cu 1-1.1:1.2: leave idle state failed
[  413.529180] rtw_8821cu 1-1.1:1.2: failed to leave ips state
[  413.534752] rtw_8821cu 1-1.1:1.2: failed to leave idle state
[  417.894237] wlx4401bb48120d: authenticate with 4c:ed:fb:37:3c:da
[  418.887589] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 1/3)
[  420.091105] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 2/3)
[  421.131675] wlx4401bb48120d: send auth to 4c:ed:fb:37:3c:da (try 3/3)
[  422.167169] wlx4401bb48120d: authentication with 4c:ed:fb:37:3c:da timed out

Firmware is present:-

root@vector:~# ls -asl /lib/firmware/rtw88/
total 772
  4 drwxr-xr-x  2 root root   4096 Feb 24 04:54 .
 40 drwxr-xr-x 87 root root  36864 Feb 24 03:49 ..
  4 -rw-r--r--  1 root root   1087 Feb 13 12:10 README
 60 -rw-r--r--  1 root root  59332 Feb 24 04:54 rtl8822cu_fw.bin
 32 -rw-r--r--  1 root root  28884 Feb 24 04:54 rtw8723d_fw.bin
140 -rw-r--r--  1 root root 139472 Feb 24 04:54 rtw8821c_fw.bin
148 -rw-r--r--  1 root root 150984 Feb 24 04:54 rtw8822b_fw.bin
200 -rw-r--r--  1 root root 202552 Feb 24 04:54 rtw8822c_fw.bin
144 -rw-r--r--  1 root root 145224 Feb 24 04:54 rtw8822c_wow_fw.bin
root@vector:~# 

I seem to have the right modules loaded:-

root@vector:~# lsmod | grep rt
xt_addrtype            16384  2
rtw88_8821cu           16384  0
rtw88_usb              24576  1 rtw88_8821cu
rtw_8821c              86016  1 rtw88_8821cu
rtw_core              212992  2 rtw_8821c,rtw88_usb
mac80211             1011712  2 rtw_core,rtw88_usb
cfg80211              536576  2 rtw_core,mac80211
btrtl                  24576  1 btusb
root@vector:~#

Not really sure why the platform should have much impact on USB, especially since it seems to be working to some degree, but I hope this is interesting in some way... the platform is a StarFive VF2 (VisionFive 2), using a jh7110 SoC.... mostly vanilla 5.15.94 kernel with patches for VF2 specific devices such as the ethernet controller etc....

netlore avatar Feb 24 '23 05:02 netlore

https://lkml.kernel.org/linux-wireless/[email protected]/T/

ValdikSS avatar Mar 31 '23 12:03 ValdikSS

commit be3497f and e6d63e1

ValdikSS avatar Apr 01 '23 00:04 ValdikSS

Those two patches were applied today.

lwfinger avatar Apr 01 '23 02:04 lwfinger

Those two patches were applied today.

Just tested it on RTL8811CU and can confirm that it works in 2.4 GHz mode now.

ValdikSS avatar Apr 01 '23 02:04 ValdikSS