VIM1's wifi doesn't work after update to Linux 6.1

Christian Hewitt christianshewitt at gmail.com
Mon Dec 12 05:41:04 PST 2022


> On 12 Dec 2022, at 4:57 pm, Zhang Ning <zhangn1985 at outlook.com> wrote:
> 
> On Fri, Dec 09, 2022 at 02:57:40PM +0400, Christian Hewitt wrote:
>> [snip]
>> 
>> Hello Zhang,
>> 
>> I’ve test-booted a VIM1 using my current amlogic-6.1.y branch (based on rc8) and I don’t see an issue with WiFi:
>> 
>> http://ix.io/4i7M
>> 
>> Here’s the kernel source and defconfig:
>> 
>> https://github.com/chewitt/linux/commits/amlogic-6.1.y
>> https://github.com/chewitt/LibreELEC.tv/blob/amlogic/projects/Amlogic/linux/linux.aarch64.conf
> 
> I native build kernel from debian's kernel repo: https://salsa.debian.org/kernel-team/linux/
> with some Amlogic patches: https://salsa.debian.org/zhangn1985/linux/-/tree/master/debian/patches/features/arm64/meson
> all follow debian's kernel config.
> 
>> 
>> In the LE image I have wlan0 and connman is listing services:
>> 
>> VIM1:~ # ifconfig
>> eth0      Link encap:Ethernet  HWaddr 16:A7:79:93:BE:EB  
>>         inet addr:192.168.20.12  Bcast:192.168.20.255  Mask:255.255.255.0
>>         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>         RX packets:1036 errors:0 dropped:0 overruns:0 frame:0
>>         TX packets:308 errors:0 dropped:0 overruns:0 carrier:0
>>         collisions:0 txqueuelen:1000 
>>         RX bytes:252473 (246.5 KiB)  TX bytes:134189 (131.0 KiB)
>>         Interrupt:32 
>> ...
>> 
>> wlan0     Link encap:Ethernet  HWaddr CC:B8:A8:B5:9F:86  
>>         UP BROADCAST MULTICAST  MTU:1500  Metric:1
>>         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>         collisions:0 txqueuelen:1000 
>>         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> 
> I'm happy to see WIFI works.
> 
> WIFI on my VIM1, it can connect to AP and get IP address.
> but after a while, 1sec~5min, ssh thru wifi is stucked, timeout logs
> print to uart console.
> 
> could you try to connect to AP and use wifi?

On the 6.1-rc8 image I was using it connected once, then on a reboot I had no wlan0
interface and this was logged:

[   13.789321] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout

I’ve since updated to an image using 6.1 final and got the interface back. I’m not
sure I can explain the disappearance but it’s been fine since and I’ve had a movie
playing now for ~20 mins. Normally if I’m going to see a WiFi issue things fail to
play or connect.

VIM1:~ # dmesg | grep brcmfmac
[   10.228356] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   10.257752] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   10.357510] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[   10.510738] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   10.511472] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct  8 2016 15:31:47 version 7.46.57.4.ap.r4 (A1 Station/P2P) FWID 01-3621395e es6.c5.n4.a3

I occasionally see this logged, but I assume this is normal/not-harmful:

[  201.574811] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0x5, action 0x4
[  204.223895] meson-gx-mmc d0070000.mmc: unaligned sg len 312 blksize 512, disabling descriptor DMA for transfer

Christian




More information about the linux-amlogic mailing list