radxa / manifests

100 stars 39 forks source link

rtl8852be does not work with Rock5B Android12 rkr12 20230315 #38

Open abrilevskiy opened 1 year ago

abrilevskiy commented 1 year ago

rtl8852be wifi card is not working with Rock5B Android12 rkr12 20230315. It required to load kernel module manually and do stop/start

Under Ubuntu the module is recognized as:

0002:21:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
    Flags: bus master, fast devsel, latency 0, IRQ 186
    I/O ports at 1000 [size=256]
    Memory at f2200000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: rtl8852be
    Kernel modules: 8852be

Under Android: 21:00.0 Class 0280: 10ec:b852

insmod /vendor/lib/modules/8852be.ko
[ 1819.153839][ T2054] 
[ 1819.153861][ T2054] =======================================================
[ 1819.153867][ T2054] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[ 1819.153870][ T2054] =======================================================
[ 1819.153875][ T2054] Realtek 8852BU USB WiFi driver (Powered by Rockchip) init.
[ 1819.153880][ T2054] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 1819.153885][ T2054] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 1819.260366][ T2054] [WLAN_RFKILL]: wifi turn on power [GPIO20-1]
[ 1819.260686][ T2054] rtl8852be 0002:21:00.0: enabling device (0000 -> 0003)
[ 1819.577413][ T2054] eric-tx CALL alloc_txring !!!!
[ 1819.577691][ T2054] eric-tx CALL alloc_txring !!!!
[ 1819.577950][ T2054] eric-tx CALL alloc_txring !!!!

and then stop/start is required

The situation is discussed at: https://forum.radxa.com/t/who-can-provide-a8-wifi-module-vid-did/13506/10

abrilevskiy commented 1 year ago

Got the issue fixed by adding: {"RTL8852BE", "10ec:b852"}, to rk_wifi_ctrl.cpp