Jump to content

Banana Pi M2 Pro - WiFi does not works after reboot (rtl8821cu)


v-tal

Recommended Posts

This is what the network status looks like immediately after turning on the power:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 noprefixroute 
       valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d6:e3:db:f5:f2:24 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.124/24 metric 100 brd 192.168.100.255 scope global dynamic end0
       valid_lft 259179sec preferred_lft 259179sec
    inet6 fe80::d4e3:dbff:fef5:f224/64 scope link 
       valid_lft forever preferred_lft forever
4: wlx60fb005126f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 60:fb:00:51:26:f0 brd ff:ff:ff:ff:ff:ff

 

This is what the network status looks like after a reboot:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 noprefixroute 
       valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d6:e3:db:f5:f2:24 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.124/24 metric 100 brd 192.168.100.255 scope global dynamic end0
       valid_lft 258362sec preferred_lft 258362sec
    inet6 fe80::d4e3:dbff:fef5:f224/64 scope link 
       valid_lft forever preferred_lft forever

 

Nothing helps other than unplugging the power cable and plugging it back in.

 

Tried the following images:

 

Armbian_24.8.1_Bananapim2pro_bookworm_current_6.6.47_minimal.img.xz
Armbian_24.5.3_Bananapim2pro_bookworm_current_6.6.36_minimal.img.xz
Armbian_24.2.1_Bananapim2pro_bookworm_current_6.6.16.img.xz


Outputs of armbianmonitor -U are in attachment.

wifi_ok.txt wifi_no.txt

Link to comment
Share on other sites

Цитата

you need to configure WIFI with netplan

I did this using nmtui.

The problem is that when rebooting the kernel cannot manage power to the rtl8821cu.

After boot:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 noprefixroute 
       valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d6:e3:db:f5:f2:24 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.124/24 metric 100 brd 192.168.100.255 scope global dynamic end0
       valid_lft 259091sec preferred_lft 259091sec
    inet6 fe80::d4e3:dbff:fef5:f224/64 scope link 
       valid_lft forever preferred_lft forever
3: wlx60fb005126f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 60:fb:00:51:26:f0 brd ff:ff:ff:ff:ff:ff

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 4, If 0, Class=Wireless, Driver=btusb, 480M
        |__ Port 2: Dev 4, If 1, Class=Wireless, Driver=btusb, 480M
        |__ Port 2: Dev 4, If 2, Class=Vendor Specific Class, Driver=rtl8821cu, 480M

 

After reboot:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 noprefixroute 
       valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d6:e3:db:f5:f2:24 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.124/24 metric 100 brd 192.168.100.255 scope global dynamic end0
       valid_lft 259185sec preferred_lft 259185sec
    inet6 fe80::d4e3:dbff:fef5:f224/64 scope link 
       valid_lft forever preferred_lft forever

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 4, If 0, Class=Wireless, Driver=btusb, 480M
        |__ Port 2: Dev 4, If 1, Class=Wireless, Driver=btusb, 480M
        |__ Port 2: Dev 4, If 2, Class=Vendor Specific Class, Driver=, 480M

 

Part of dmesg output after reboot (details in attachments at first post):

[   10.228925] ------------[ cut here ]------------
[   10.228944] WARNING: CPU: 2 PID: 954 at drivers/net/wireless/rtl8811cu/hal/rtl8821c/rtl8821c_halinit.c:106 rtl8821c_power_on+0x50/0xa4 [8821cu]
[   10.229080] Modules linked in: lz4hc lz4 zram btusb binfmt_misc btrtl btintel btbcm 8821cu btmtk bluetooth ecdh_generic ecc meson_vdec(C) onboard_usb_hub snd_soc_hdmi_codec panfrost videobuf2_dma_contig v4l2_mem2mem gpu_sched polyval_ce videobuf2_memops videobuf2_v4l2 drm_shmem_
helper meson_gxbb_wdt polyval_generic videodev snd_soc_meson_g12a_tohdmitx snd_soc_meson_axg_tdmout snd_soc_meson_axg_sound_card snd_soc_meson_axg_frddr snd_soc_meson_codec_glue snd_soc_meson_card_utils meson_ir snd_soc_meson_axg_fifo meson_rng snd_soc_meson_axg_tdm_interface snd_s
oc_meson_axg_tdm_formatter videobuf2_common dw_hdmi_i2s_audio rc_core snd_soc_core mc snd_compress meson_saradc ac97_bus snd_pcm_dmaengine snd_pcm snd_timer snd nvmem_meson_efuse soundcore cfg80211 rfkill dm_mod efi_pstore ip_tables x_tables autofs4 meson_gxl smsc realtek axg_audio
 dwmac_generic sclk_div clk_phase reset_meson_audio_arb rtc_meson_vrtc dwmac_meson8b adc_keys
[   10.229231] CPU: 2 PID: 954 Comm: kworker/2:3 Tainted: G         C         6.6.47-current-meson64 #3
[   10.229238] Hardware name: Banana Pi BPI-M2-PRO (DT)
[   10.229245] Workqueue: usb_hub_wq hub_event
[   10.229258] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   10.229265] pc : rtl8821c_power_on+0x50/0xa4 [8821cu]
[   10.229361] lr : rtl8821c_power_on+0x4c/0xa4 [8821cu]
[   10.229453] sp : ffff800084e6b420
[   10.229457] x29: ffff800084e6b420 x28: 0000000000000002 x27: 00000000ffffffed
[   10.229467] x26: ffff800079fa30c8 x25: ffff000007bbb000 x24: 0000000000000001
[   10.229475] x23: 0000000000008129 x22: 0000000000000001 x21: ffff80008272d000
[   10.229484] x20: ffff000003fc8000 x19: ffff8000824d5000 x18: ffff00006f39afec
[   10.229492] x17: 0000000000003ed0 x16: 00000000000d9c00 x15: 0000000000000001
[   10.229500] x14: ffff00006f378480 x13: 0000000000000002 x12: 0000000000000000
[   10.229509] x11: 0000000000000001 x10: 0000000000000a80 x9 : ffff800084e6afe0
[   10.229517] x8 : ffff00006f370680 x7 : 0082008810000008 x6 : ffff00006f3706a8
[   10.229525] x5 : ffff800079f3c300 x4 : ffff800079f3c300 x3 : ffff80007a03a7d8
[   10.229533] x2 : 0000000000000001 x1 : 000000000000001e x0 : 00000000ffffffff
[   10.229542] Call trace:
[   10.229546]  rtl8821c_power_on+0x50/0xa4 [8821cu]
[   10.229639]  rtw_hal_power_on+0x24/0x60 [8821cu]
[   10.229731]  hal_read_mac_hidden_rpt+0x154/0x25c [8821cu]
[   10.229823]  rtl8821c_read_efuse+0x2d8/0x4d8 [8821cu]
...

 

Edited by v-tal
Link to comment
Share on other sites

  • v-tal changed the title to Banana Pi M2 Pro - WiFi does not works after reboot (rtl8821cu)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines