Jump to content

Test new xradio firmware


Werner
 Share

Go to solution Solved by Werner,

Recommended Posts

If somebody has a chance to test new firmware blob for XR819 feedback would be appreciated :love:

Simply grab the fw_xr819.bin from the PR below, replace your current one and reboot. Check if Wi-Fi still works as expected or ideally even better.

The file is located here: /usr/lib/firmware/xr819/

 

https://github.com/armbian/firmware/commit/aff348fa9eef0fcc97d4f2bb7304f0862baffc20

 

If in doubt create a backup of your current firmware bin.

Link to comment
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

As far as I can tell nothing much changed - nothing negative and nothing positive (still 200ms ping).

 

Did I actually install the new version or am I just an idiot?

 

[   10.021886] xradio: XR819 device discovered
[   10.181980] cfg80211: failed to load regulatory.db
[   10.257067] xradio: hardware vers. 7.9
[   10.257082] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003
[   10.257086] xradio: Config USE_EXTENSIONS

Link to comment
Share on other sites

The power management still acts up on my board.

Ping is arround 200ms even though Power Management:off

If I let the orange Pi ping the router or something else every 50ms ( ping -i 0,05 ) the orange pi responds < 5ms. I assume the ping command forces it out of the power safe mode.

Can you confirm this?

Link to comment
Share on other sites

After 24h running the new firmware on Armbian 21.02.0-trunk Buster with Linux 5.9.11-sunxi I got the following:

 

[7789.126960] xradio WRN: BH: missed 9 consecutive interrupts!
[ 7798.343147] xradio WRN: BH: missed 10 consecutive interrupts!
[ 8168.424968] xradio WRN: BH: missed 11 consecutive interrupts!
[ 8317.727378] xradio WRN: BH: missed 12 consecutive interrupts!
[ 8458.633587] xradio WRN: BH: missed 13 consecutive interrupts!
[ 8875.000177] xradio WRN: BH: missed 14 consecutive interrupts!
[ 9703.025621] xradio WRN: BH: missed 15 consecutive interrupts!
[11029.338694] xradio WRN: BH: missed 16 consecutive interrupts!
[11698.845312] xradio WRN: BH: missed 17 consecutive interrupts!
[11830.943440] xradio WRN: BH: missed 18 consecutive interrupts!

[...]

 

and:

[14108.446345] wlan0: XXX tries to chanswitch to same channel, ignore
[14108.446708] wlan0: cannot understand ECSA IE operating class, 11, ignoring

 

Edit: and:

[ 5248.939102] xradio STA-WRN: [CQM] BSS lost, Beacon miss=20, event=24.
[ 5249.043167] xradio STA-WRN: [CQM] Beacon loss.
[ 5251.051198] xradio STA-ERR: [CQM] if0 Reporting connection loss.

 

Link to comment
Share on other sites

2 minutes ago, Hammy said:

After 24h running the new firmware on Armbian 21.02.0-trunk Buster with Linux 5.9.11-sunxi I got the following:

 

[7789.126960] xradio WRN: BH: missed 9 consecutive interrupts!
[ 7798.343147] xradio WRN: BH: missed 10 consecutive interrupts!
[ 8168.424968] xradio WRN: BH: missed 11 consecutive interrupts!
[ 8317.727378] xradio WRN: BH: missed 12 consecutive interrupts!
[ 8458.633587] xradio WRN: BH: missed 13 consecutive interrupts!
[ 8875.000177] xradio WRN: BH: missed 14 consecutive interrupts!
[ 9703.025621] xradio WRN: BH: missed 15 consecutive interrupts!
[11029.338694] xradio WRN: BH: missed 16 consecutive interrupts!
[11698.845312] xradio WRN: BH: missed 17 consecutive interrupts!
[11830.943440] xradio WRN: BH: missed 18 consecutive interrupts!

[...]

 

and:

[14108.446345] wlan0: XXX tries to chanswitch to same channel, ignore
[14108.446708] wlan0: cannot understand ECSA IE operating class, 11, ignoring

 

This did not happen with the old version?

Link to comment
Share on other sites

vor 19 Minuten schrieb Werner:

This did not happen with the old version?

Thats my problem, I never checked on the old one, just wrote it off as buggy.

I’ll monitor a few more days, roll back to standard Armbian on Friday and report back the differences

Link to comment
Share on other sites

On 11/30/2020 at 10:36 AM, Werner said:

This did not happen with the old version?

I've checked on my second OPi0 where I didn't upgrade firmware, so still previous version, and the issue is also present :

[   14.824376] xradio: XR819 device discovered
[   15.056442] xradio: hardware vers. 7.9
[   15.056457] xradio: firmware vers. 8 (WSM), build 43, api 1060, cap 0x0003
[   15.056460] xradio: Config USE_EXTENSIONS
[   40.809788] xradio TXRX-WRN: received frame has no key status
[   40.809802] xradio TXRX-WRN: dropped received frame
[ 3653.654011] xradio WRN: BH: missed 4 consecutive interrupts!
[ 5423.670767] xradio WRN: BH: missed 5 consecutive interrupts!
[ 7584.760350] xradio WRN: BH: missed 6 consecutive interrupts!
[ 9724.478792] xradio WRN: BH: missed 7 consecutive interrupts!
[10080.291066] xradio WRN: BH: missed 8 consecutive interrupts!
[10777.751448] xradio WRN: BH: missed 9 consecutive interrupts!
[13480.647858] xradio WRN: BH: missed 10 consecutive interrupts!
[18367.827745] xradio WRN: BH: missed 11 consecutive interrupts!
[19237.530227] xradio WRN: BH: missed 12 consecutive interrupts!
[20461.024844] xradio WRN: BH: missed 13 consecutive interrupts!

 

Link to comment
Share on other sites

I have observed kernel panics using xradio driver before. Check Opizero wifi kernel hang

I decided to test it with this driver.
Summary: No improvements

image.thumb.png.b9971ffd44a15520caae9cb8b2a2766b.png

 

Ap mode

No kernel panics were observed during 1 day when running only on AP mode.

 

However, when Orange Pi is rebooted in AP mode, kernel panic was observed.

After running 5 Orange Pi devices, after 60 average reboots, Kernel panic occurred for all devices.

[   25.238909] xradio WSM-ERR: CMD timeout!>>> 0x0006 (16), buf_use=1, bh_state=0
[   25.247990] xradio WSM-ERR: bh error!>>> 0x0006 (12)
[   25.254591] xradio WSM-ERR: bh error!>>> 0x0006 (12)
[   25.261367] xradio WSM-ERR: bh error!>>> 0x0012 (16)
[   25.266375] xradio STA-ERR: wsm_set_tx_queue_params failed!
[   25.271979] xradio WSM-ERR: bh error!>>> 0x0012 (16)
[   25.276963] xradio STA-ERR: wsm_set_tx_queue_params failed!
[   25.282555] xradio WSM-ERR: bh error!>>> 0x0012 (16)
[   25.287536] xradio STA-ERR: wsm_set_tx_queue_params failed!
[   25.293128] xradio WSM-ERR: bh error!>>> 0x0012 (16)
[   25.298109] xradio STA-ERR: wsm_set_tx_queue_params failed!
[   42.299138] rcu: INFO: rcu_sched self-detected stall on CPU
[   42.304730] rcu:     1-....: (1 GPs behind) idle=21e/1/0x40000002 softirq=3544/3545 fqs=2623
[   74.743671] rcu: INFO: rcu_sched detected expedited stalls on CPUs/tasks: { 1-... } 5569 jiffies s: 129 root: 0x2/.
[   74.754140] rcu: blocking rcu_node structures:

Same error was observed in old firmware.

 

Client mode

No kernel panics were observed during 1 day when connected to an AP with a non-changing channel.

 

Running in Client mode and changing AP’s channel result in similar kernel panic.

But this occurred rarely. Running 5 Orange pi zero devices and changing channel continuously 72 times, lead to a Kernel panic only on 1 device.

 

Running in Client mode, and rebooting also result in Kernel panic.

It took an average of 200 reboots for the Kernel panic for 5 Orange Pi Zero Devices.

Same error occurred on all situations.

 

Hope this helps.

This is how I tested.

image.thumb.png.f7c839258323262f225eb3fc5164fe54.png

Link to comment
Share on other sites

Tested with the standard Armbian 20.11 Buster with Linux 5.8.16-sunxi

 

[7789.126960] xradio WRN: BH: missed 9 consecutive interrupts!
[ 7798.343147] xradio WRN: BH: missed 10 consecutive interrupts!
[ 8168.424968] xradio WRN: BH: missed 11 consecutive interrupts!

As already mentioned happens also on the old version

 

[14108.446345] wlan0: XXX tries to chanswitch to same channel, ignore
[14108.446708] wlan0: cannot understand ECSA IE operating class, 11, ignoring

Happened only once with the new version in 6 days, never with the old version. I have however something similar on the OPiZ+ with roughly the same time stamp and hence doubt that the firmware is to blame.

 

[ 5248.939102] xradio STA-WRN: [CQM] BSS lost, Beacon miss=20, event=24.
[ 5249.043167] xradio STA-WRN: [CQM] Beacon loss.
[ 5251.051198] xradio STA-ERR: [CQM] if0 Reporting connection loss.

Only happened once with the new firmware, never with the old. Don’t know what to think of it.

 

-> The firmware seems to be just as crappy as before. Is there a changelog available?

Link to comment
Share on other sites

Hi everyone, I get an error when I work in AP mode, does anyone have anything new what can be done to overcome this?
Thank you!

 

 

 

Quote

Aug 15 10:30:55 orangepizero kernel: [<c087c2f5>] (netlink_rcv_skb) from [<c087c831>] (genl_rcv+0x21/0x30)
Aug 15 10:30:55 orangepizero kernel: [<c087c831>] (genl_rcv) from [<c087bca1>] (netlink_unicast+0x121/0x19c)
Aug 15 10:30:55 orangepizero kernel: [<c087bca1>] (netlink_unicast) from [<c087bea9>] (netlink_sendmsg+0x18d/0x31c)
Aug 15 10:30:55 orangepizero kernel: [<c087bea9>] (netlink_sendmsg) from [<c080fc33>] (sock_sendmsg+0x23/0x2c)
Aug 15 10:30:55 orangepizero kernel: [<c080fc33>] (sock_sendmsg) from [<c0810131>] (____sys_sendmsg+0x191/0x1a4)
Aug 15 10:30:55 orangepizero kernel: [<c0810131>] (____sys_sendmsg) from [<c08112f5>] (___sys_sendmsg+0x49/0x64)
Aug 15 10:30:55 orangepizero kernel: [<c08112f5>] (___sys_sendmsg) from [<c08115c3>] (__sys_sendmsg+0x37/0x58)
Aug 15 10:30:55 orangepizero kernel: [<c08115c3>] (__sys_sendmsg) from [<c0100061>] (ret_fast_syscall+0x1/0x62)
Aug 15 10:30:55 orangepizero kernel: Exception stack(0xc9d17fa8 to 0xc9d17ff0)
Aug 15 10:30:55 orangepizero kernel: 7fa0:                   00000074 01932120 00000006 bef5c7b8 00000000 00000000
Aug 15 10:30:55 orangepizero kernel: 7fc0: 00000074 01932120 01916378 00000128 b6f8d000 00000000 00000001 00000004
Aug 15 10:30:55 orangepizero kernel: 7fe0: 00000128 bef5c768 b6b9851f b6b14746
Aug 15 10:30:55 orangepizero kernel: ---[ end trace fb013619993976f1 ]---
Aug 15 10:30:55 orangepizero kernel: xradio WSM-ERR: bh error!>>~<▒▒▒-▒▒▒▒▒3▒▒▒▒▒▒▒7▒0▒▒2▒4▒ero kernel: ------------[ cut here ]------------
Aug 15 10:30:55 orangepizero kernel: WARNING: CPU: 1 PID: 1080 at drivers/net/wireless/xradio/ap.c:693 xradio_bss_info_changed+0x78b/0xb84 [xradio_wlan]
Aug 15 10:30:55 orangepizero kernel: Modules linked in: nft_counter xt_state xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_tcpudp nft_compat nf_tables nfnetlink xradio_wlan sun4i_gpadc_iio fb_ili9341(C) mac80211 fbtft(C) industrialio cfg80211 sun8i_thermal rfkill libarc4 zram uio_pdrv_genirq uio cpufreq_dt usb_f_acm u_serial g_serial libcomposite sunrpc ip_tables x_tables autofs4 pwrseq_simple sunxi phy_generic
Aug 15 10:30:55 orangepizero kernel: CPU: 1 PID: 1080 Comm: wpa_supplicant Tainted: G        WC        5.10.43-sunxi #21.05.6
Aug 15 10:30:55 orangepizero kernel: Hardware name: Allwinner sun8i Family
Aug 15 10:30:55 orangepizero kernel: [<c010ca1d>] (unwind_backtrace) from [<c010952d>] (show_stack+0x11/0x14)
Aug 15 10:30:55 orangepizero kernel: [<c010952d>] (show_stack) from [<c0972dbb>] (dump_stack+0x77/0x84)
Aug 15 10:30:55 orangepizero kernel: [<c0972dbb>] (dump_stack) from [<c011af05>] (__warn+0xad/0xc0)
Aug 15 10:30:55 orangepizero kernel: [<c011af05>] (__warn) from [<c096cd0b>] (warn_slowpath_fmt+0x43/0x7c)
Aug 15 10:30:55 orangepizero kernel: [<c096cd0b>] (warn_slowpath_fmt) from [<bf96bffb>] (xradio_bss_info_changed+0x78b/0xb84 [xradio_wlan])
Aug 15 10:30:55 orangepizero kernel: [<bf96bffb>] (xradio_bss_info_changed [xradio_wlan]) from [<bf992b85>] (ieee80211_bss_info_change_notify+0x7d/0x1ac [mac80211])
Aug 15 10:30:55 orangepizero kernel: [<bf992b85>] (ieee80211_bss_info_change_notify [mac80211]) from [<bf9a4fa3>] (ieee80211_do_open+0x113/0x7cc [mac80211])
Aug 15 10:30:55 orangepizero kernel: [<bf9a4fa3>] (ieee80211_do_open [mac80211]) from [<bf9a57d1>] (ieee80211_if_change_type+0x135/0x24c [mac80211])
Aug 15 10:30:55 orangepizero kernel: [<bf9a57d1>] (ieee80211_if_change_type [mac80211]) from [<bf9a97d1>] (ieee80211_change_iface+0x1d/0x60 [mac80211])
Aug 15 10:30:55 orangepizero kernel: [<bf9a97d1>] (ieee80211_change_iface [mac80211]) from [<bf8dd0c3>] (cfg80211_change_iface+0x7f/0x380 [cfg80211])
Aug 15 10:30:55 orangepizero kernel: [<bf8dd0c3>] (cfg80211_change_iface [cfg80211]) from [<bf8fc3f5>] (nl80211_set_interface+0xc9/0x164 [cfg80211])
Aug 15 10:30:55 orangepizero kernel: [<bf8fc3f5>] (nl80211_set_interface [cfg80211]) from [<c087dd09>] (genl_rcv_msg+0x125/0x27c)
Aug 15 10:30:55 orangepizero kernel: [<c087dd09>] (genl_rcv_msg) from [<c087c2f5>] (netlink_rcv_skb+0x81/0xb4)
Aug 15 10:30:55 orangepizero kernel: [<c087c2f5>] (netlink_rcv_skb) from [<c087c831>] (genl_rcv+0x21/0x30)
Aug 15 10:30:55 orangepizero kernel: [<c087c831>] (genl_rcv) from [<c087bca1>] (netlink_unicast+0x121/0x19c)
Aug 15 10:30:55 orangepizero kernel: [<c087bca1>] (netlink_unicast) from [<c087bea9>] (netlink_sendmsg+0x18d/0x31c)
Aug 15 10:30:55 orangepizero kernel: [<c087bea9>] (netlink_sendmsg) from [<c080fc33>] (sock_sendmsg+0x23/0x2c)
Aug 15 10:30:55 orangepizero kernel: [<c080fc33>] (sock_sendmsg) from [<c0810131>] (____sys_sendmsg+0x191/0x1a4)
Aug 15 10:30:55 orangepizero kernel: [<c0810131>] (____sys_sendmsg) from [<c08112f5>] (___sys_sendmsg+0x49/0x64)
Aug 15 10:30:55 orangepizero kernel: [<c08112f5>] (___sys_sendmsg) from [<c08115c3>] (__sys_sendmsg+0x37/0x58)
Aug 15 10:30:55 orangepizero kernel: [<c08115c3>] (__sys_sendmsg) from [<c0100061>] (ret_fast_syscall+0x1/0x62)
Aug 15 10:30:55 orangepizero kernel: Exception stack(0xc9d17fa8 to 0xc9d17ff0)
Aug 15 10:30:55 orangepizero kernel: 7fa0:                   00000074 01932120 00000006 bef5c7b8 00000000 00000000
Aug 15 10:30:55 orangepizero kernel: 7fc0: 00000074 01932120 01916378 00000128 b6f8d000 00000000 00000001 00000004
Aug 15 10:30:55 orangepizero kernel: 7fe0: 00000128 bef5c768 b6b9851f b6b14746
Aug 15 10:30:55 orangepizero kernel: ---[ end trace fb013619993976f2 ]---
Aug 15 10:30:55 orangepizero kernel: xradio WSM-ERR: bh error!>>> 0x0012 (16)
Aug 15 10:30:55 orangepizero kernel: xradio STA-ERR: wsm_set_tx_queue_params failed!
Aug 15 10:30:55 orangepizero kernel: xradio WSM-ERR: bh error!>>> 0x0012 (16)
Aug 15 10:30:55 orangepizero kernel: xradio STA-ERR: wsm_set_tx_queue_params failed!
Aug 15 10:30:55 orangepizero kernel: xradio WSM-ERR: bh error!>>> 0x0012 (16)
Aug 15 10:30:55 orangepizero kernel: xradio STA-ERR: wsm_set_tx_queue_params failed!
Aug 15 10:30:55 orangepizero kernel: xradio WSM-ERR: bh error!>>> 0x0012 (16)
Aug 15 10:30:55 orangepizero kernel: xradio STA-ERR: wsm_set_tx_queue_params failed!

Aug 15 10:31:14 orangepizero kernel: rcu: INFO: rcu_sched self-detected stall on CPU
Aug 15 10:31:14 orangepizero kernel: rcu:         3-....: (5249 ticks this GP) idle=b12/1/0x40000002 softirq=8452/8452 fqs=2390
Aug 15 10:31:14 orangepizero kernel:         (t=5250 jiffies g=11401 q=47470)
Aug 15 10:31:14 orangepizero kernel: NMI backtrace for cpu 3
Aug 15 10:31:14 orangepizero kernel: CPU: 3 PID: 436 Comm: xradio_bh Tainted: G        WC        5.10.43-sunxi #21.05.6
Aug 15 10:31:14 orangepizero kernel: Hardware name: Allwinner sun8i Family
Aug 15 10:31:14 orangepizero kernel: [<c010ca1d>] (unwind_backtrace) from [<c010952d>] (show_stack+0x11/0x14)
Aug 15 10:31:14 orangepizero kernel: [<c010952d>] (show_stack) from [<c0972dbb>] (dump_stack+0x77/0x84)
Aug 15 10:31:14 orangepizero kernel: [<c0972dbb>] (dump_stack) from [<c058a63b>] (nmi_cpu_backtrace+0x8f/0xb0)
Aug 15 10:31:14 orangepizero kernel: [<c058a63b>] (nmi_cpu_backtrace) from [<c058a729>] (nmi_trigger_cpumask_backtrace+0xcd/0xdc)
Aug 15 10:31:14 orangepizero kernel: [<c058a729>] (nmi_trigger_cpumask_backtrace) from [<c096da1b>] (rcu_dump_cpu_stacks+0xb1/0xce)
Aug 15 10:31:14 orangepizero kernel: [<c096da1b>] (rcu_dump_cpu_stacks) from [<c01728f7>] (rcu_sched_clock_irq+0x5d7/0x7ac)
Aug 15 10:31:14 orangepizero kernel: [<c01728f7>] (rcu_sched_clock_irq) from [<c0179c45>] (update_process_times+0x55/0x7c)
Aug 15 10:31:14 orangepizero kernel: [<c0179c45>] (update_process_times) from [<c018826b>] (tick_sched_timer+0x37/0x74)
Aug 15 10:31:14 orangepizero kernel: [<c018826b>] (tick_sched_timer) from [<c017a663>] (__hrtimer_run_queues+0x103/0x238)
Aug 15 10:31:14 orangepizero kernel: [<c017a663>] (__hrtimer_run_queues) from [<c017afd9>] (hrtimer_interrupt+0xd1/0x200)
Aug 15 10:31:14 orangepizero kernel: [<c017afd9>] (hrtimer_interrupt) from [<c07c1613>] (arch_timer_handler_phys+0x27/0x2c)

 

Edited by Netanel
bold the specific error
Link to comment
Share on other sites

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...
 Share

×
×
  • Create New...