Leon Posted November 24, 2019 Posted November 24, 2019 Armbianmonitor: http://ix.io/22JO Hi, I'm running the following kernel on my Orange Pi Lite: Linux lights 5.3.9-sunxi #19.11.3 SMP Mon Nov 18 18:49:43 CET 2019 armv7l GNU/Linux I'm getting the following crash in the WiFi driver (copy-pasted from dmesg) after some time (about 10 hours if I read the output correctly?). [36792.103947] ------------[ cut here ]------------ [36792.104326] WARNING: CPU: 3 PID: 1108 at drivers/net/wireless/realtek/rtl8189fs/core/rtw_mlme.c:2622 rtw_stadel_event_callback+0x41/0x1fa [8189fs] [36792.104331] Modules linked in: snd_soc_hdmi_codec snd_soc_simple_card snd_soc_simple_card_utils sun8i_codec_analog sun4i_i2s sunxi_cir sun8i_adda_pr_regmap snd_soc_core lima sun4i_gpadc_iio snd_pcm_dmaengine dw_hdmi_cec dw_hdmi_i2s_audio gpu_sched snd_pcm cdc_acm industrialio snd_timer input_leds snd sun8i_thermal soundcore zram evdev uio_pdrv_genirq uio cpufreq_dt g_serial libcomposite 8189fs cfg80211 rfkill ip_tables x_tables hid_lenovo gpio_keys [36792.104402] CPU: 3 PID: 1108 Comm: RTW_CMD_THREAD Not tainted 5.3.9-sunxi #19.11.3 [36792.104406] Hardware name: Allwinner sun8i Family [36792.104431] [<c010d6d9>] (unwind_backtrace) from [<c010a14d>] (show_stack+0x11/0x14) [36792.104444] [<c010a14d>] (show_stack) from [<c091a425>] (dump_stack+0x69/0x78) [36792.104458] [<c091a425>] (dump_stack) from [<c011b54b>] (__warn.part.3+0x83/0x9a) [36792.104468] [<c011b54b>] (__warn.part.3) from [<c011b665>] (warn_slowpath_null+0x33/0x36) [36792.104648] [<c011b665>] (warn_slowpath_null) from [<bf899749>] (rtw_stadel_event_callback+0x41/0x1fa [8189fs]) [36792.104920] [<bf899749>] (rtw_stadel_event_callback [8189fs]) from [<bf8a305d>] (mlme_evt_hdl+0x57/0x64 [8189fs]) [36792.105172] [<bf8a305d>] (mlme_evt_hdl [8189fs]) from [<bf88b6e3>] (rtw_cmd_thread+0x14b/0x218 [8189fs]) [36792.105309] [<bf88b6e3>] (rtw_cmd_thread [8189fs]) from [<c013339d>] (kthread+0xfd/0x104) [36792.105321] [<c013339d>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38) [36792.105325] Exception stack(0xcfd67fb0 to 0xcfd67ff8) [36792.105332] 7fa0: 00000000 00000000 00000000 00000000 [36792.105339] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [36792.105344] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [36792.105350] ---[ end trace 4f359df1c8c4b9f9 ]--- [41403.988509] ------------[ cut here ]------------ [41403.988704] WARNING: CPU: 3 PID: 8374 at net/wireless/sme.c:756 __cfg80211_connect_result+0x313/0x380 [cfg80211] [41403.988717] Modules linked in: snd_soc_hdmi_codec snd_soc_simple_card snd_soc_simple_card_utils sun8i_codec_analog sun4i_i2s sunxi_cir sun8i_adda_pr_regmap snd_soc_core lima sun4i_gpadc_iio snd_pcm_dmaengine dw_hdmi_cec dw_hdmi_i2s_audio gpu_sched snd_pcm cdc_acm industrialio snd_timer input_leds snd sun8i_thermal soundcore zram evdev uio_pdrv_genirq uio cpufreq_dt g_serial libcomposite 8189fs cfg80211 rfkill ip_tables x_tables hid_lenovo gpio_keys [41403.988811] CPU: 3 PID: 8374 Comm: kworker/u8:2 Tainted: G W 5.3.9-sunxi #19.11.3 [41403.988814] Hardware name: Allwinner sun8i Family [41403.988879] Workqueue: cfg80211 cfg80211_event_work [cfg80211] [41403.988903] [<c010d6d9>] (unwind_backtrace) from [<c010a14d>] (show_stack+0x11/0x14) [41403.988917] [<c010a14d>] (show_stack) from [<c091a425>] (dump_stack+0x69/0x78) [41403.988931] [<c091a425>] (dump_stack) from [<c011b54b>] (__warn.part.3+0x83/0x9a) [41403.988941] [<c011b54b>] (__warn.part.3) from [<c011b665>] (warn_slowpath_null+0x33/0x36) [41403.989004] [<c011b665>] (warn_slowpath_null) from [<bf849eaf>] (__cfg80211_connect_result+0x313/0x380 [cfg80211]) [41403.989123] [<bf849eaf>] (__cfg80211_connect_result [cfg80211]) from [<bf827bff>] (cfg80211_process_wdev_events+0xaf/0xec [cfg80211]) [41403.989233] [<bf827bff>] (cfg80211_process_wdev_events [cfg80211]) from [<bf827c65>] (cfg80211_process_rdev_events+0x29/0x68 [cfg80211]) [41403.989341] [<bf827c65>] (cfg80211_process_rdev_events [cfg80211]) from [<bf8231e3>] (cfg80211_event_work+0x17/0x1c [cfg80211]) [41403.989404] [<bf8231e3>] (cfg80211_event_work [cfg80211]) from [<c012ebf3>] (process_one_work+0x167/0x37c) [41403.989415] [<c012ebf3>] (process_one_work) from [<c012fb03>] (worker_thread+0xfb/0x3f4) [41403.989426] [<c012fb03>] (worker_thread) from [<c013339d>] (kthread+0xfd/0x104) [41403.989435] [<c013339d>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38) [41403.989439] Exception stack(0xc8b55fb0 to 0xc8b55ff8) [41403.989445] 5fa0: 00000000 00000000 00000000 00000000 [41403.989452] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [41403.989458] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [41403.989519] ---[ end trace 4f359df1c8c4b9fa ]--- I don't know enough to track this down further - does anybody know where to report this next to hopefully help somebody fix it? Thanks! Leon
ej0rge Posted December 25, 2019 Posted December 25, 2019 I have this exact issue. The strange thing is that it happens with the Google Wifi mesh network at my parents house, where i intended to install the device as a print and scan server, but not at home on my wifi. It will stay connected anywhere from a few seconds to 5 or 6 minutes.
ej0rge Posted December 26, 2019 Posted December 26, 2019 fwiw i tried an older debian stretch image with the 4.19.38 kernel and now the wifi is stable, so i think it can be argued that this is in fact a bug in the current kernel.
Tido Posted December 26, 2019 Posted December 26, 2019 what WiFi chip is on ur OPi? // sent from mobile phone //
ej0rge Posted December 27, 2019 Posted December 27, 2019 18 hours ago, Tido said: what WiFi chip is on ur OPi? // sent from mobile phone // According to sunxi wiki, opi lite has RTL8189FTV wifi.
Tido Posted December 27, 2019 Posted December 27, 2019 Backup your SDcard, and do testing with fresh install. 8 hours ago, ej0rge said: opi lite has RTL8189FTV wifi. Maybe worth giving it a try if it fixes it: https://forum.armbian.com/topic/12403-opi-zero-xr819-wifi-broken-in-new-builds/?do=findComment&comment=91259 If above doesn't help: Disable network manager (permanently) to avoid it restarting after a reboot: systemctl disable NetworkManager.service Configure your network "old school" /etc/network/interface and test again. Last but not least analyze your logs, here is the how to: Providing logs with armbianmonitor -u significantly raises chances that issue is getting addressed.
Igor Posted December 27, 2019 Posted December 27, 2019 Here the problem could be deeper. Driver is old and perhaps too old in certain functions for the kernel which causes crash. Impossible to know without deep investigation. Which can take awhile.Wrote on mobile
ej0rge Posted December 27, 2019 Posted December 27, 2019 10 hours ago, Tido said: Backup your SDcard, and do testing with fresh install. Maybe worth giving it a try if it fixes it: https://forum.armbian.com/topic/12403-opi-zero-xr819-wifi-broken-in-new-builds/?do=findComment&comment=91259 If above doesn't help: Disable network manager (permanently) to avoid it restarting after a reboot: systemctl disable NetworkManager.service Configure your network "old school" /etc/network/interface and test again. Last but not least analyze your logs, here is the how to: Providing logs with armbianmonitor -u significantly raises chances that issue is getting addressed. While I am certainly sympathetic to the cause, i found a solution that works (an old Stretch image) and my elderly parents are able to use their 11 year old photo printer and 15 year old scanner over the network instead of by booting up an old Vista machine. So I'm not going to break it. It's on a reasonably secure network and i don't care if it ever sees a single package update as long as it keeps working. I'll read that thread and see if it makes sense to me to give it a try, just to see and report back, on a completely different sd card. The Zero uses a different wifi part than the Lite, doesn't it? I guess I can personally verify that it's not the xr819 next time i am over there. While i was arguing with the current Buster and Bionic issues, I could sit and watch the nmtui-connect screen and it would lose connection anywhere from a couple seconds to a few minutes. And sometimes it would reject the wpa-psk key which i presume was a similar sort of failure. it would also randomly connect to any of the 4 google wifi points regardless of the fact that one of them was 5 feet away from it. Which may just be normal bad behavior.
Tido Posted December 27, 2019 Posted December 27, 2019 32 minutes ago, ej0rge said: that it's not the xr819 This is correct, but if it had solved your problem anyway - I think it would be worth giving it a try. I don't see the reason for NetworkManager if the device is not a laptop, so I deactivate NM.
beeve Posted January 26, 2020 Posted January 26, 2020 (edited) I also have this problem (exactly). Running a OPi Lite on Google Mesh Spoiler Jan 26 08:52:26 localhost NetworkManager[619]: <info> [1580028746.4034] manager: NetworkManager state is now CONNECTED_GLOBAL Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.6137] device (wlan0): supplicant interface state: completed -> associating Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.6285] device (wlan0): supplicant interface state: associating -> disconnected Jan 26 08:58:14 localhost kernel: [ 671.892527] ------------[ cut here ]------------ Jan 26 08:58:14 localhost kernel: [ 671.892704] WARNING: CPU: 0 PID: 225 at net/wireless/sme.c:756 __cfg80211_connect_result+0x315/0x390 [cfg80211] Jan 26 08:58:14 localhost kernel: [ 671.892708] Modules linked in: snd_soc_hdmi_codec 8189fs zram sun8i_codec_analog snd_soc_simple_card sun4i_i2s cfg80211 snd_soc_simple_card_utils sun8i_adda_pr_regmap snd_soc_core snd_pcm_dmaengine rfkill sun4i_gpadc_iio snd_pcm rc_cec snd_timer industrialio hid_multitouch lima dw_hdmi_cec dw_hdmi_i2s_audio snd sunxi_cir gpu_sched soundcore sun8i_thermal input_leds sunxi_cedrus(C) v4l2_mem2mem evdev cpufreq_dt uio_pdrv_genirq uio g_serial libcomposite ip_tables x_tables gpio_keys Jan 26 08:58:14 localhost kernel: [ 671.892770] CPU: 0 PID: 225 Comm: kworker/u8:2 Tainted: G WC 5.4.12-sunxi #rc0 Jan 26 08:58:14 localhost kernel: [ 671.892772] Hardware name: Allwinner sun8i Family Jan 26 08:58:14 localhost kernel: [ 671.892831] Workqueue: cfg80211 cfg80211_event_work [cfg80211] Jan 26 08:58:14 localhost kernel: [ 671.892855] [<c010da8d>] (unwind_backtrace) from [<c010a0ad>] (show_stack+0x11/0x14) Jan 26 08:58:14 localhost kernel: [ 671.892866] [<c010a0ad>] (show_stack) from [<c0936c6f>] (dump_stack+0x6f/0x7c) Jan 26 08:58:14 localhost kernel: [ 671.892878] [<c0936c6f>] (dump_stack) from [<c011b527>] (__warn+0xb7/0xb8) Jan 26 08:58:14 localhost kernel: [ 671.892887] [<c011b527>] (__warn) from [<c011b7b7>] (warn_slowpath_fmt+0x43/0x74) Jan 26 08:58:14 localhost kernel: [ 671.892945] [<c011b7b7>] (warn_slowpath_fmt) from [<bf96c9a5>] (__cfg80211_connect_result+0x315/0x390 [cfg80211]) Jan 26 08:58:14 localhost kernel: [ 671.893046] [<bf96c9a5>] (__cfg80211_connect_result [cfg80211]) from [<bf949db7>] (cfg80211_process_wdev_events+0xaf/0xec [cfg80211]) Jan 26 08:58:14 localhost kernel: [ 671.893147] [<bf949db7>] (cfg80211_process_wdev_events [cfg80211]) from [<bf949e1d>] (cfg80211_process_rdev_events+0x29/0x68 [cfg80211]) Jan 26 08:58:14 localhost kernel: [ 671.893243] [<bf949e1d>] (cfg80211_process_rdev_events [cfg80211]) from [<bf945127>] (cfg80211_event_work+0x17/0x1c [cfg80211]) Jan 26 08:58:14 localhost kernel: [ 671.893299] [<bf945127>] (cfg80211_event_work [cfg80211]) from [<c012f619>] (process_one_work+0x179/0x3cc) Jan 26 08:58:14 localhost kernel: [ 671.893306] [<c012f619>] (process_one_work) from [<c012f96f>] (worker_thread+0x103/0x410) Jan 26 08:58:14 localhost kernel: [ 671.893315] [<c012f96f>] (worker_thread) from [<c0133fe5>] (kthread+0x109/0x10c) Jan 26 08:58:14 localhost kernel: [ 671.893325] [<c0133fe5>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38) Jan 26 08:58:14 localhost kernel: [ 671.893328] Exception stack(0xd32d9fb0 to 0xd32d9ff8) Jan 26 08:58:14 localhost kernel: [ 671.893333] 9fa0: 00000000 00000000 00000000 00000000 Jan 26 08:58:14 localhost kernel: [ 671.893339] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Jan 26 08:58:14 localhost kernel: [ 671.893344] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 Jan 26 08:58:14 localhost kernel: [ 671.893349] ---[ end trace febffe6795afd922 ]--- Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.7463] device (wlan0): supplicant interface state: disconnected -> associated Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.7575] device (wlan0): supplicant interface state: associated -> 4-way handshake Jan 26 08:58:14 localhost NetworkManager[619]: <warn> [1580029094.7894] sup-iface[0xc19ab0,wlan0]: connection disconnected (reason -1) Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.7949] device (wlan0): supplicant interface state: 4-way handshake -> disconnected Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.7974] device (wlan0): Activation: (wifi) disconnected during association, asking for new key Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.7978] device (wlan0): state change: activated -> need-auth (reason 'supplicant-disconnect', sys-iface-state: 'managed') Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.8305] dhcp4 (wlan0): canceled DHCP transaction, DHCP client pid 1581 Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.8306] dhcp4 (wlan0): state changed bound -> done Jan 26 08:58:14 localhost NetworkManager[619]: <info> [1580029094.8345] manager: NetworkManager state is now CONNECTING Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.3554] device (wlan0): supplicant interface state: disconnected -> inactive Jan 26 08:58:15 localhost NetworkManager[619]: <warn> [1580029095.3586] device (wlan0): No agents were available for this request. Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.3587] device (wlan0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed') Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.3625] manager: NetworkManager state is now DISCONNECTED Jan 26 08:58:15 localhost NetworkManager[619]: <warn> [1580029095.3695] device (wlan0): Activation: failed for connection '#########' Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.3717] device (wlan0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.5891] device (wlan0): set-hw-addr: set MAC address to 5A:26:F2:A6:C3:92 (scanning) Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.6588] device (wlan0): supplicant interface state: inactive -> disconnected Jan 26 08:58:15 localhost NetworkManager[619]: <info> [1580029095.6647] device (wlan0): supplicant interface state: disconnected -> inactive Edited January 26, 2020 by TRS-80 put code in spoiler
Recommended Posts