knulli-cfw / distribution

Main KNULLI distribution
https://knulli.org
Other
217 stars 13 forks source link

[RG35XX Plus] Wifi not working #32

Open steilerDev opened 1 month ago

steilerDev commented 1 month ago

Knulli build version

40-dev-d8b86623f3 2024/05/30 01:50

Your architecture

RG35XX Plus

Issue description

When trying to find nearby Access Points, the "Scanning..." modal only briefly appears and no APs can be found.

Manually inserting SSID and PSK did not work either.

Detailed reproduction steps

  1. Fresh install
  2. Go to Network Settings
  3. Search for nearby AP
  4. No AP shows up - manual connection to SSID is not working either

Details of any attempts to fix this yourself

Details of any modifications you have made to Knulli.

Fresh install.

Logs and data

Since I had no success accessing the terminal locally on the device, I was only able to run very simple scripts to get data off the device. Attached is dmesg output, but let me know what else would be useful. log.txt

elkinjosetm commented 1 month ago

I'm having the same issue here on my new RG35XX Plus, I've been doing all kind of stuff as this is my first time with the device

steilerDev commented 1 month ago

I was able to establish shell access to the device (through an ethernet to USB-C adapter).

A couple of findings:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/ipip 0.0.0.0 brd 0.0.0.0
3: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN group default qlen 1
    link/gre 0.0.0.0 brd 0.0.0.0
4: gretap0@NONE: <BROADCAST,MULTICAST,DYNAMIC> mtu 1462 qdisc noop state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
5: ip_vti0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/ipip 0.0.0.0 brd 0.0.0.0
6: ip6_vti0@NONE: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/tunnel6 :: brd ::
7: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/sit 0.0.0.0 brd 0.0.0.0
8: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1
    link/tunnel6 :: brd ::
9: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:e0:4c:68:02:4f brd ff:ff:ff:ff:ff:ff
    inet 10.13.0.233/24 brd 10.13.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 2003:ee:372b:7c03:2e0:4cff:fe68:24f/64 scope global dynamic mngtmpaddr 
       valid_lft 86364sec preferred_lft 14364sec
    inet6 fe80::2e0:4cff:fe68:24f/64 scope link 
       valid_lft forever preferred_lft forever

Not sure where to go from here - let me know how I can debug this further

Edit: cat /sys/firmware/devicetree/base/model gives me sun50iw9 - not sure if this is maybe different to other RG85XX+?

acmeplus commented 3 weeks ago

Try to run lsmod to see if the wireless drivers are being loaded. You can also run dmesg and upload the output here.

steilerDev commented 3 weeks ago
[root@KNULLI /userdata/system]# lsmod
Module                  Size  Used by
rtl_btlpm              16384  0
8821cs               2691072  0
mali_kbase            503808  7
squashfs               65536  1

dmesg log attached. dmesg-2024-06-10.log

btw - I noticed Bluetooth does not seem to work either (from /var/log/bluetooth-agent.log:

2024-06-10 10:13:00,991 agent registered
2024-06-10 10:13:06,006 agent fails
2024-06-10 10:13:06,007 Bluetooth adapter not found
Traceback (most recent call last):
  File "/usr/bin/batocera-bluetooth-agent", line 435, in do_main_loop
    adapter = bluezutils.find_adapter(dev_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/bluezutils.py", line 14, in find_adapter
    return find_adapter_in_objects(get_managed_objects(), pattern)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/bluezutils.py", line 26, in find_adapter_in_objects
    raise Exception("Bluetooth adapter not found")
Exception: Bluetooth adapter not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/batocera-bluetooth-agent", line 501, in <module>
    do_main_loop(options.dev_id)
  File "/usr/bin/batocera-bluetooth-agent", line 438, in do_main_loop
    adapter = bluezutils.find_adapter(None)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/bluezutils.py", line 14, in find_adapter
    return find_adapter_in_objects(get_managed_objects(), pattern)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/bluezutils.py", line 26, in find_adapter_in_objects
    raise Exception("Bluetooth adapter not found")
Exception: Bluetooth adapter not found

Thanks for looking into this!

diegombeltran commented 3 weeks ago

Disabling 802.11w Management Frame Protection works for me.

This is my OpenWrt AP configuration: imagen

steilerDev commented 3 weeks ago

All of this is already disabled :/

jajadannn commented 3 weeks ago

Having the same problem here, has someone found something?

jajadannn commented 3 weeks ago

I found that when I make an Hotspot over my PC with the 2.4Ghz Band it works just fine. In 5Ghz mode it works too. Could someone try to use an Router without an Mesh connection?

steilerDev commented 3 weeks ago

I'm 99% confident that the issue I am facing is on the Anbernic and not my network - there are a few networks around me, including very badly secured 2.4ghz ones from my neighbours, the device is not able to see any of them (I'm not even trying to connect to them)

jajadannn commented 3 weeks ago

I know, but why does it work with WPA3 and 5Ghz on my PC Hotspot and not on my local Network

steilerDev commented 3 weeks ago

Maybe @diegombeltran's input could help you @jajadannn - but I think your issue is distinct from mine and should be handled in a separate issue.

Dreadlocke12 commented 3 weeks ago

Have the same issue. Connecting to hotspot works but not when connecting to my home wifi unless i remove the wpa2 authentication and have an unprotected wifi.

Dreadlocke12 commented 3 weeks ago

I tested a few custom os and this seems to be the same issue in the previous battocera build i think it was 40 as well and on the stock os. In Muos i can connect to the same wifi though if that helps.