Since there is no image for the NEO4 I installed the NanoPi M4.
On my first tests everything except of wifi is working fine.
Looking at dmesg I found that brcm_fw crashes
Code
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.146 (docker@aa67774fe54c) (aarch64-none-linux-gnu-gcc.real (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103, GNU ld (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 2.35.1.20201028) #1 SMP Fri Oct 14 22:52:47 UTC 2022
[ 0.000000] Machine model: FriendlyElec NanoPi M4
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000003fffffff]
...
[ 0.000000] Kernel command line: boot=UUID=1410-4845 disk=UUID=b23dbb35-61c5-4dea-bff1-7647e34cca99 quiet console=uart8250,mmio32,0xff1a0000 console=tty0 coherent_pool=2M cec.debounce_ms=5000
...
[ 0.700780] rockchip-usb2phy ff770000.syscon:usb2-phy@e450: failed to create phy
[ 0.702981] rockchip-usb2phy ff770000.syscon:usb2-phy@e460: failed to create phy
[ 0.712669] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.712775] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.715445] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.715483] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
...
[ 4.909771] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.friendlyarm,nanopi-m4.txt failed with error -2
[ 4.927318] Bluetooth: Core ver 2.22
[ 4.927438] NET: Registered protocol family 31
[ 4.927443] Bluetooth: HCI device and connection manager initialized
[ 4.927464] Bluetooth: HCI socket layer initialized
[ 4.927473] Bluetooth: L2CAP socket layer initialized
[ 4.927493] Bluetooth: SCO socket layer initialized
[ 4.959103] rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.959575] hantro_vpu: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.961561] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[ 4.961776] rkvdec ff660000.video-codec: Adding to iommu group 1
[ 4.963276] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video0
[ 4.963373] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2
[ 4.971605] rockchip-rga ff680000.rga: HW Version: 0x03.02
[ 4.973508] rockchip-iep ff670000.iep: Adding to iommu group 2
[ 4.975112] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video3
[ 4.977529] rockchip-iep ff670000.iep: Device rockchip-iep registered as /dev/video4
[ 5.022029] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 5.024322] Bluetooth: HCI UART driver ver 2.3
[ 5.024336] Bluetooth: HCI UART protocol H4 registered
[ 5.024408] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 5.024725] Bluetooth: HCI UART protocol Broadcom registered
[ 5.024769] Bluetooth: HCI UART protocol QCA registered
[ 5.024772] Bluetooth: HCI UART protocol AG6XX registered
[ 5.024802] Bluetooth: HCI UART protocol Marvell registered
[ 5.048584] ieee80211 phy0: brcmf_fw_crashed: Firmware has halted or crashed
[ 5.048601] ------------[ cut here ]------------
[ 5.048616] WARNING: CPU: 5 PID: 177 at kernel/workqueue.c:1486 __queue_work+0x40c/0x4f0
[ 5.048619] Modules linked in: hci_uart btqca btrtl btbcm rockchip_iep rockchip_rga btintel hantro_vpu(C) rockchip_vdec(C) videobuf2_dma_sg videobuf2_vmalloc videobuf2_dma_contig bluetooth phy_rockchip_pcie videobuf2_memops v4l2_h264 v4l2_mem2mem brcmfmac brcmutil fusb302 tcpm videobuf2_v4l2 videobuf2_common ecdh_generic ecc cfg80211 pcie_rockchip_host fuse
[ 5.048675] CPU: 5 PID: 177 Comm: kworker/u12:3 Tainted: G C 5.10.146 #1
[ 5.048679] Hardware name: FriendlyElec NanoPi M4 (DT)
[ 5.048716] Workqueue: brcmf_wq/mmc0:0001:1 brcmf_sdio_dataworker [brcmfmac]
[ 5.048722] pstate: a0000085 (NzCv daIf -PAN -UAO -TCO BTYPE=--)
[ 5.048725] pc : __queue_work+0x40c/0x4f0
[ 5.048728] lr : __queue_work+0xa4/0x4f0
[ 5.048730] sp : ffff800012dc3bf0
[ 5.048732] x29: ffff800012dc3bf0 x28: 0000000000000006
[ 5.048738] x27: ffff8000113ee008 x26: ffff8000115b8bf0
[ 5.048742] x25: ffff8000113ee008 x24: 0000000000000005
[ 5.048746] x23: 000000000000000a x22: ffff000000406000
[ 5.048751] x21: ffff00003fd24b80 x20: ffff00003fd96800
[ 5.048757] x19: ffff00000a9376c8 x18: ffff8000115d0b20
[ 5.048761] x17: 0000000000000000 x16: 0000000000000000
[ 5.048766] x15: 0000000000000048 x14: 6465687361726320
[ 5.048770] x13: ffff8000115d0b48 x12: 0000000000000040
[ 5.048774] x11: ffff000000800000 x10: ffff000000800002
[ 5.048778] x9 : ffff8000115ce8c8 x8 : ffff000000800028
[ 5.048783] x7 : 0000000000000000 x6 : ffff000000800020
[ 5.048788] x5 : ffff000000800000 x4 : 0000000000000000
[ 5.048792] x3 : ffff00000a9376d0 x2 : 0000000000000001
[ 5.048796] x1 : 0000000000000000 x0 : 0000000000000000
[ 5.048801] Call trace:
[ 5.048805] __queue_work+0x40c/0x4f0
[ 5.048808] queue_work_on+0x5c/0x7c
[ 5.048821] brcmf_fw_crashed+0x38/0x70 [brcmfmac]
[ 5.048833] brcmf_sdio_dataworker+0xb1c/0x2060 [brcmfmac]
[ 5.048837] process_one_work+0x1d4/0x3b0
[ 5.048839] worker_thread+0x164/0x51c
[ 5.048845] kthread+0x120/0x12c
[ 5.048848] ret_from_fork+0x10/0x38
[ 5.048851] ---[ end trace 75f6b50c2fb4fa1a ]---
[ 5.144490] dw-apb-uart ff180000.serial: failed to request DMA
[ 5.274978] Bluetooth: hci0: BCM: failed to write clock (-56)
[ 5.274996] Bluetooth: hci0: Failed to set baudrate
[ 5.328403] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=89)
[ 5.340404] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
[ 5.340419] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
[ 5.358542] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
[ 5.405280] Bluetooth: hci0: BCM: chip id 94
[ 5.409398] Bluetooth: hci0: BCM: features 0x2e
[ 5.410967] rockchip-pcie f8000000.pcie: PCIe link train ing gen1 timeout!
[ 5.411685] rockchip-pcie: probe of f8000000.pcie failed with error -110
[ 5.432612] Bluetooth: hci0: BCM43430A1
[ 5.432634] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[ 5.460599] Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch
[ 7.740491] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[ 7.740513] ieee80211 phy0: brcmf_c_process_clm_blob: clmload (4733 byte file) failed (-110)
[ 8.785578] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.785627] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.300376] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[ 10.300391] ieee80211 phy0: brcmf_c_process_clm_blob: get clmload_status failed (-110)
[ 10.300411] ieee80211 phy0: brcmf_c_preinit_dcmds: download CLM blob file failed, -5
[ 10.300415] ieee80211 phy0: brcmf_bus_started: failed: -5
[ 10.300432] ieee80211 phy0: brcmf_attach: dongle is not responding: err=-5
[ 10.328856] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
[ 11.583695] Bluetooth: hci0: command 0xfc45 tx timeout
[ 19.687196] Bluetooth: hci0: BCM: failed to write clock (-110)
[ 19.826495] Bluetooth: hci0: BCM43430A1
[ 19.826513] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[ 32.060615] vcca0v9_s3: disabling
Display More
To verify that wifi on my NEO4 is working, I installed DietPi 8.11.2 instead of LibreElec.
Of course the brcmf_* files are different. But with DietPi Wifi works as expected.
How to make wifi work with LibereElec?