0
Aleks

solved Wifi not working on OPiPC+ with recent kernels >= 5.70 ?

Recommended Posts

Hellow,

 

I would like to report an issue with Orange Pi PC+


I tried to run the board with a manually built image (with kernel version 'next' and 5.71). While in the past I was able to create Wifi hotspots without any issues, with a new image I encountered weird issues where the hotspot was listed from Wifi clients, but trying to connect triggered some scarry traceback such as this one :

Spoiler

Jan 21 00:09:50 hostname kernel: [   99.828931] ------------[ cut here ]------------
Jan 21 00:09:50 hostname kernel: [   99.833571] kernel BUG at mm/slub.c:3901!
Jan 21 00:09:50 hostname kernel: [   99.837580] Internal error: Oops - BUG: 0 [#1] SMP THUMB2
Jan 21 00:09:50 hostname kernel: [   99.842976] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat tun ipt_REJECT nf_reject_ipv4 xt_multiport ip6table_filter ip6_tables xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter evdev zstd snd_soc_simple_card snd_soc_simple_card_utils sunxi_cir sun8i_codec_analog sun8i_adda_pr_regmap lima gpu_sched ttm sun4i_codec sun4i_i2s snd_soc_core snd_pcm_dmaengine sun4i_gpadc_iio snd_pcm snd_timer industrialio snd soundcore sun8i_ths zram gpio_keys cpufreq_dt thermal_sys uio_pdrv_genirq uio 8189fs cfg80211 rfkill ip_tables x_tables pwrseq_simple sy8106a_regulator uas
Jan 21 00:09:50 hostname kernel: [   99.896715] CPU: 1 PID: 3945 Comm: RTW_CMD_THREAD Not tainted 4.19.13-sunxi #5.70
Jan 21 00:09:50 hostname kernel: [   99.904193] Hardware name: Allwinner sun8i Family
Jan 21 00:09:50 hostname kernel: [   99.908903] PC is at kfree+0x138/0x154
Jan 21 00:09:50 hostname kernel: [   99.912796] LR is at nl80211_send_station+0x6ac/0x8e8 [cfg80211]
Jan 21 00:09:50 hostname kernel: [   99.918803] pc : [<c022ac68>]    lr : [<bf85007d>]    psr: 400e0033
Jan 21 00:09:50 hostname kernel: [   99.925065] sp : e44addb8  ip : 00000000  fp : e457a030
Jan 21 00:09:50 hostname kernel: [   99.930286] r10: e44ade68  r9 : 00000000  r8 : e457a014
Jan 21 00:09:50 hostname kernel: [   99.935508] r7 : 00000000  r6 : 00000000  r5 : bf85007d  r4 : bf8f2a31
Jan 21 00:09:50 hostname kernel: [   99.942032] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : f1ae8208
Jan 21 00:09:50 hostname kernel: [   99.948556] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
Jan 21 00:09:50 hostname kernel: [   99.955861] Control: 50c5387d  Table: 6deac06a  DAC: 00000051
Jan 21 00:09:50 hostname kernel: [   99.961608] Process RTW_CMD_THREAD (pid: 3945, stack limit = 0xc44d4e9e)
Jan 21 00:09:50 hostname kernel: [   99.968306] Stack: (0xe44addb8 to 0xe44ae000)
Jan 21 00:09:50 hostname kernel: [   99.972661] dda0:                                                       e457a014 e457a3a0
Jan 21 00:09:50 hostname kernel: [   99.980837] ddc0: c0d04d48 ed052900 00000580 e44addf8 e457a014 bf85007d 00000005 00000013
Jan 21 00:09:50 hostname kernel: [   99.989012] dde0: 00480020 e457a014 c0d04d48 e457a034 e457a030 00000000 b5d9a2f1 40f085fa
Jan 21 00:09:50 hostname kernel: [   99.997188] de00: 00001000 8e26a681 004ade40 eda53800 00480020 eca2060a e44ade68 eda549a0
Jan 21 00:09:50 hostname kernel: [  100.005363] de20: 00000000 ed052900 bf8df07f bf8504bb 00000000 eda54800 eda53800 eca2060a
Jan 21 00:09:50 hostname kernel: [  100.013539] de40: e44ade68 8e26a681 00000004 f1506184 00000000 00000000 ffff3c7c e44ac000
Jan 21 00:09:50 hostname kernel: [  100.021714] de60: f14a9130 bf9012b3 00000000 00000000 00000003 00030040 000fffff 8e26a681
Jan 21 00:09:50 hostname kernel: [  100.029890] de80: e44ade7c 00000000 f14bbc00 00000000 00000003 c022abf1 00000000 f14a9130
Jan 21 00:09:50 hostname kernel: [  100.038066] dea0: bf8df07f bf91b52d 00210d00 000300cf c0d04d48 edba8840 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.046242] dec0: f14a8000 bf91b9a1 00000000 80150013 eca2061c 00000087 00000000 8e26a681
Jan 21 00:09:50 hostname kernel: [  100.054417] dee0: 00000000 edba8840 bf8f2a31 ef001c00 e44adf08 ffff3c7c e44ac000 f14a9130
Jan 21 00:09:50 hostname kernel: [  100.062593] df00: bf8df07f c022abf1 00000001 bf8f2a31 f14a8000 f1506184 000000a3 8e26a681
Jan 21 00:09:50 hostname kernel: [  100.070768] df20: f14a8000 000000a3 eca20600 bf8d5cb7 bf8d5bab f14a8000 ef2ed200 bf948058
Jan 21 00:09:50 hostname kernel: [  100.078944] df40: f14a9120 bf8df0d5 f14a8000 e4486ac0 f14a9140 bf8c7745 f14a916c ef2ed200
Jan 21 00:09:50 hostname kernel: [  100.087119] df60: e44adf78 ede8cb00 e4498040 00000000 e44ac000 f14a8000 bf8c7599 e44b5b84
Jan 21 00:09:50 hostname kernel: [  100.095295] df80: ede8cb1c c0132c19 00000224 e4498040 c0132b1d 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.103469] dfa0: 00000000 00000000 00000000 c01010f9 00000000 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.111673] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.119885] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.128198] [<c022ac68>] (kfree) from [<bf85007d>] (nl80211_send_station+0x6ac/0x8e8 [cfg80211])
Jan 21 00:09:50 hostname kernel: [  100.137100] [<bf85007d>] (nl80211_send_station [cfg80211]) from [<bf8504bb>] (cfg80211_new_sta+0x56/0x110 [cfg80211])
Jan 21 00:09:50 hostname kernel: [  100.148079] [<bf8504bb>] (cfg80211_new_sta [cfg80211]) from [<bf9012b3>] (rtw_cfg80211_indicate_sta_assoc+0x4e/0x66 [8189fs])
Jan 21 00:09:50 hostname kernel: [  100.159601] [<bf9012b3>] (rtw_cfg80211_indicate_sta_assoc [8189fs]) from [<bf8d5cb7>] (rtw_stassoc_event_callback+0x10c/0x156 [8189fs])
Jan 21 00:09:50 hostname kernel: [  100.171978] [<bf8d5cb7>] (rtw_stassoc_event_callback [8189fs]) from [<bf8df0d5>] (mlme_evt_hdl+0x56/0x64 [8189fs])
Jan 21 00:09:50 hostname kernel: [  100.182518] [<bf8df0d5>] (mlme_evt_hdl [8189fs]) from [<bf8c7745>] (rtw_cmd_thread+0x1ac/0x220 [8189fs])
Jan 21 00:09:50 hostname kernel: [  100.192140] [<bf8c7745>] (rtw_cmd_thread [8189fs]) from [<c0132c19>] (kthread+0xfd/0x104)
Jan 21 00:09:50 hostname kernel: [  100.200324] [<c0132c19>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38)
Jan 21 00:09:50 hostname kernel: [  100.207544] Exception stack(0xe44adfb0 to 0xe44adff8)
Jan 21 00:09:50 hostname kernel: [  100.212594] dfa0:                                     00000000 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.220770] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jan 21 00:09:50 hostname kernel: [  100.228944] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
Jan 21 00:09:50 hostname kernel: [  100.235560] Code: d403 6843 07db d400 (de02) 6801
Jan 21 00:09:50 hostname kernel: [  100.240353] ---[ end trace 6304cd0f3d9fb049 ]---

 

Having no idea what I was doing, after trying a few other things, I tried downgrading the kernel to 5.70 (using apt.armbian.org) - this did not solve the issue - and then to 5.67 for which it was working as expected !

 

I don't know if this is something that can be solved upstream somehow ... Naively it sounds related to the 8189fs module (driver for the Wifi chip ?) but not really sure as I don't understand so much all the driver and kernel stuffs :P

Share this post


Link to post
Share on other sites
5 hours ago, Aleks said:

Naively it sounds related to the 8189fs module


Yes, it looks like all those wifi drivers needs some patching on 4.19.y Your workaround is correct one - staying on kernel 4.14.y until this issue is not resolved.

Share this post


Link to post
Share on other sites

Thank you very much for the quick feedback ! That solves this topic I think.

Share this post


Link to post
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...
0