Raspberry PI 400 No wireless file in /etc/config directory and no wifi

Hi, I am new to networking and trying to configure my PI 400 as a router. I want to set up my PI wireless to home wifi and then connect it with ethernet to my PC for internet access. I've tried flashing the latest OpenWRT version but there is no wireless config file there. I can create it manually using VI and add a wifi-device and wifi-iface with the options I need but LUCI shows my radio0 device is not active.

Is it something wrong with my software that it is not detecting my NIC hence no wireless config file is generated when I install openwrt? I tried older version of OpenWRT and there is a wireless config file but it is blank inside. How can I get wifi working on my PI? Any help is greatly appreciated, thank you.

Attaching my wireless settings and Luci screenshot:


if you scan do you see other wireless networks around you?

/etc/config/wireless not being created usually hints at a deeper problem, start from the beginning - check if the necessary kernel modules and firmware are installed, what dmesg has to say, iw list, etc.

1 Like


no, nothing

Thank you guys for the response.
How do I check all modules and firmware is installed? I tried iw list but it does not return anything.

Going through the kernal log I find this:

[    7.631697] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.bin failed with error -2
[    7.641437] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43456-sdio.bin

Everything in the kernal looks like rocket science to me :rofl:

Full kernal log here if this will help. Thank you guys in advance for your help :grinning:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.4.143 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16279-5cc0535800)) #0 SMP Tue Aug 31 22:20:08 2021
[    0.000000] Machine model: Raspberry Pi 400 Rev 1.0
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 1012736
[    0.000000]   DMA zone: 3792 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 242688 pages, LIFO batch:63
[    0.000000]   DMA32 zone: 12032 pages used for memmap
[    0.000000]   DMA32 zone: 770048 pages, LIFO batch:63
[    0.000000] percpu: Embedded 21 pages/cpu s45336 r8192 d32488 u86016
[    0.000000] pcpu-alloc: s45336 r8192 d32488 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 996912
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:EE:49:8C vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x37400000-0x3b400000] (64MB)
[    0.000000] Memory: 3829424K/4050944K available (7102K kernel code, 432K rwdata, 1140K rodata, 512K init, 541K bss, 155984K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from 0xffffffc0108a0b90 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000162] Console: colour dummy device 80x25
[    0.000390] printk: console [tty1] enabled
[    0.000424] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000446] pid_max: default: 32768 minimum: 301
[    0.000640] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000724] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001319] cgroup: Disabling memory control group subsystem
[    0.002092] ASID allocator initialised with 32768 entries
[    0.002183] rcu: Hierarchical SRCU implementation.
[    0.002810] smp: Bringing up secondary CPUs ...
[    0.003208] Detected PIPT I-cache on CPU1
[    0.003259] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.003706] Detected PIPT I-cache on CPU2
[    0.003740] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.004242] Detected PIPT I-cache on CPU3
[    0.004274] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.004344] smp: Brought up 1 node, 4 CPUs
[    0.004370] SMP: Total of 4 processors activated.
[    0.004383] CPU features: detected: 32-bit EL0 Support
[    0.004395] CPU features: detected: CRC32 instructions
[    0.004451] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.004467] CPU: All CPU(s) started at EL2
[    0.004495] alternatives: patching kernel code
[    0.012288] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.012326] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.014038] pinctrl core: initialized pinctrl subsystem
[    0.014881] NET: Registered protocol family 16
[    0.016303] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.016850] cpuidle: using governor ladder
[    0.016879] cpuidle: using governor menu
[    0.017130] Serial: AMBA PL011 UART driver
[    0.018607] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.028036] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-02-16 14:17, variant start
[    0.032043] raspberrypi-firmware soc:firmware: Firmware hash is d6d82cf99bcb3e9a166a34cfde53130957a36bd3
[    0.056642] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.058434] SCSI subsystem initialized
[    0.058578] usbcore: registered new interface driver usbfs
[    0.058618] usbcore: registered new interface driver hub
[    0.058660] usbcore: registered new device driver usb
[    0.058781] usb_phy_generic phy: phy supply vcc not found, using dummy regulator
[    0.059057] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.059883] clocksource: Switched to clocksource arch_sys_counter
[    0.063028] thermal_sys: Registered thermal governor 'step_wise'
[    0.063257] NET: Registered protocol family 2
[    0.063816] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.066538] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.066595] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.066817] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.067341] TCP: Hash tables configured (established 32768 bind 32768)
[    0.067552] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.067622] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.067838] NET: Registered protocol family 1
[    0.067929] PCI: CLS 0 bytes, default 64
[    0.069096] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.073560] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.097679] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.099644] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.099672] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.099708] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.099742] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
[    0.165948] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.166103] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.166122] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.166139] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.166184] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.166273] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.169603] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.169777] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.169865] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.170045] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.173320] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.173356] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.173377] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.173436] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.173451] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.173601] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.173716] pcieport 0000:00:00.0: PME: Signaling with IRQ 38
[    0.173940] pcieport 0000:00:00.0: AER: enabled with IRQ 38
[    0.174109] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    0.220655] pci 0000:01:00.0: 0xffffffc0104f48d0 took 45481 usecs
[    0.223296] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    0.223324] bcm2708_fb: probe of soc:fb failed with error -2
[    0.225112] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.225909] iproc-rng200 fe104000.rng: hwrng registered
[    0.226045] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.226412] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.226569] random: fast init done
[    0.226621] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.226879] random: crng init done
[    0.232908] brd: module loaded
[    0.236029] loop: module loaded
[    0.236684] Loading iSCSI transport class v2.0-870.
[    0.237803] libphy: Fixed MDIO Bus: probed
[    0.238045] bcmgenet fd580000.ethernet: failed to get enet clock
[    0.238065] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.238082] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    0.238099] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    0.238122] bcmgenet: Skipping UMAC reset
[    0.247886] libphy: bcmgenet MII bus: probed
[    0.295921] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.296774] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.296806] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.297325] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000009000000890
[    0.297978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.297998] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.298015] usb usb1: Product: xHCI Host Controller
[    0.298028] usb usb1: Manufacturer: Linux 5.4.143 xhci-hcd
[    0.298040] usb usb1: SerialNumber: 0000:01:00.0
[    0.298338] hub 1-0:1.0: USB hub found
[    0.298409] hub 1-0:1.0: 1 port detected
[    0.298809] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.298830] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.298854] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.299086] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.299104] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.299119] usb usb2: Product: xHCI Host Controller
[    0.299132] usb usb2: Manufacturer: Linux 5.4.143 xhci-hcd
[    0.299144] usb usb2: SerialNumber: 0000:01:00.0
[    0.299420] hub 2-0:1.0: USB hub found
[    0.299460] hub 2-0:1.0: 4 ports detected
[    0.300149] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.300240] dwc_otg: FIQ enabled
[    0.300244] dwc_otg: NAK holdoff enabled
[    0.300247] dwc_otg: FIQ split-transaction FSM enabled
[    0.300253] Module dwc_common_port init
[    0.300492] usbcore: registered new interface driver uas
[    0.300562] usbcore: registered new interface driver usb-storage
[    0.300632] mousedev: PS/2 mouse device common for all mice
[    0.301047] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.302680] sdhci: Secure Digital Host Controller Interface driver
[    0.302695] sdhci: Copyright(c) Pierre Ossman
[    0.302975] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.303192] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
[    0.303206] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.309312] vchiq: vchiq_init_state: slot_zero = 00000000f892026b
[    0.310810] NET: Registered protocol family 10
[    0.311187] Segment Routing with IPv6
[    0.311218] NET: Registered protocol family 17
[    0.311234] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.311241] 8021q: 802.1Q VLAN Support v1.8
[    0.311385] Key type ._fscrypt registered
[    0.311389] Key type .fscrypt registered
[    0.313483] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.313540] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 14, base_baud = 0) is a PL011 rev2
[    1.360504] printk: console [ttyAMA0] enabled
[    1.369889] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.377363] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.383369] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.432562] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.439532] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.446507] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.452017] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.460171] of_cfs_init
[    1.462667] of_cfs_init: OK
[    1.466209] Waiting for root device /dev/mmcblk0p2...
[    1.473682] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.480635] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.491877] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.586351] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.593300] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.598911] mmc1: new high speed SDIO card at address 0001
[    1.604578]  mmcblk0: p1 p2
[    1.615565] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.623106] Freeing unused kernel memory: 512K
[    1.646442] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.647969] Run /sbin/init as init process
[    1.654682] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.665908] usb 1-1: Product: USB2.0 Hub
[    1.671131] hub 1-1:1.0: USB hub found
[    1.675141] hub 1-1:1.0: 4 ports detected
[    1.803379] init: Console is alive
[    1.806918] init: - watchdog -
[    1.979898] usb 1-1.4: new low-speed USB device number 3 using xhci_hcd
[    2.002862] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.016578] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.031958] init: - preinit -
[    2.171101] usb 1-1.4: New USB device found, idVendor=04d9, idProduct=0007, bcdDevice= 1.61
[    2.179476] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.186781] usb 1-1.4: Product: Raspberry Pi Internal Keyboard
[    2.192607] usb 1-1.4: Manufacturer:  
[    2.311318] bcmgenet: Skipping UMAC reset
[    2.316562] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    2.324013] bcmgenet fd580000.ethernet eth0: Link is Down
[    6.455508] EXT4-fs (loop0): recovery complete
[    6.461800] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[    6.473186] mount_root: switching to ext4 overlay
[    6.479401] overlayfs: "xino" feature enabled using 32 upper inode bits.
[    6.510149] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    6.520888] urandom-seed: Seeding with /etc/urandom.seed
[    6.590141] procd: - early -
[    6.593142] procd: - watchdog -
[    7.126001] procd: - watchdog -
[    7.132023] procd: - ubus -
[    7.189766] procd: - init -
[    7.206583] uart-pl011 fe201000.serial: no DMA platform data
[    7.303166] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.324564] hidraw: raw HID events driver (C) Jiri Kosina
[    7.330306] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    7.341298] Loading modules backported from Linux version v5.10.42-0-g65859eca4dff
[    7.348881] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[    7.378289] input:   Raspberry Pi Internal Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:04D9:0007.0001/input/input0
[    7.451949] hid-generic 0003:04D9:0007.0001: input,hidraw0: USB HID v1.11 Keyboard [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input0
[    7.483909] input:   Raspberry Pi Internal Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:04D9:0007.0002/input/input1
[    7.560068] hid-generic 0003:04D9:0007.0002: input,hidraw1: USB HID v1.11 Device [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input1
[    7.573327] usbcore: registered new interface driver usbhid
[    7.578912] usbhid: USB HID core driver
[    7.586357] xt_time: kernel timezone is -0000
[    7.604702] PPP generic driver version 2.4.2
[    7.609404] NET: Registered protocol family 24
[    7.623004] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    7.631697] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.bin failed with error -2
[    7.641437] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43456-sdio.bin
[   12.772233] usbcore: registered new interface driver brcmfmac
[   12.781104] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.791924] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[   13.925373] bcmgenet: Skipping UMAC reset
[   13.930669] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[   13.938222] br-lan: port 1(eth0) entered blocking state
[   13.938230] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.943531] br-lan: port 1(eth0) entered disabled state
[   13.957040] device eth0 entered promiscuous mode
[   13.962485] br-lan: port 1(eth0) entered blocking state
[   13.967729] br-lan: port 1(eth0) entered forwarding state
[   14.947949] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 2042.499976] bcmgenet fd580000.ethernet eth0: Link is Down
[ 2042.505941] br-lan: port 1(eth0) entered disabled state
[ 3378.819998] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 3378.828246] br-lan: port 1(eth0) entered blocking state
[ 3378.833495] br-lan: port 1(eth0) entered forwarding state
[ 4587.139955] bcmgenet fd580000.ethernet eth0: Link is Down
[ 4587.145797] br-lan: port 1(eth0) entered disabled state
[19037.827933] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[19037.836215] br-lan: port 1(eth0) entered blocking state
[19037.841465] br-lan: port 1(eth0) entered forwarding state
[19065.475896] bcmgenet fd580000.ethernet eth0: Link is Down
[19065.481716] br-lan: port 1(eth0) entered disabled state
[19096.195931] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[19096.204172] br-lan: port 1(eth0) entered blocking state
[19096.209415] br-lan: port 1(eth0) entered forwarding state

Could be relevant Wifi on ROCK Pi 4 - #7 by mj82

Well you can also just copy the necessary files to /lib/firmware/brcm/ on the running system (and reboot).

Was the wifi working under Raspbian/Raspbios and with which country code and firmware? You might check dmesg as wel under raspbian to see if it uses other firmware brcm/brcmfmac43456-sdio.bin failed or maybe a other wifi module/driver?

1 Like

Yes, wifi in Pi was working when I had the rasbian OS on the SD card. I used rasbian buster and bullseye that both worked. Country code I had was US. Thanks for all the suggestions guys I will give it a try.

In addition to copy the firmware files, the NVRAM file needs to sync with the raspberry pi 400 DTS , to something like brcmfmac43456-sdio.txt --> brcmfmac43456-sdio.raspberrypi,400.txt

cd /lib/firmware/brcm
wget https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43456-sdio.bin
wget https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43456-sdio.clm_blob
wget -c https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/bullseye/debian/config/brcm80211/brcm/brcmfmac43456-sdio.txt -O brcmfmac43456-sdio.raspberrypi,400.txt
ls

Is the lib folder you mentioned supposed to be on my sd card? I do not see it when I insert it to my computer.

Are you using squashfs?

No, I don't have linux to install that

Here is what I have in this folder /lib/firmware/brcm. Is this all I need?

brcmfmac43143.bin
brcmfmac43236b.bin
brcmfmac43455-sdio.bin
brcmfmac43455-sdio.clm_blob
brcmfmac43455-sdio.raspberrypi,4-compute-module.txt
brcmfmac43455-sdio.raspberrypi,4-model-b.txt

I went in detail with all steps to do it directly from the raspberry 400 before, now it seems that you don't have internet on the rpi, so download the 3 firmwares files from
https://github.com/RPi-Distro/firmware-nonfree/tree/bullseye/debian/config/brcm80211/brcm ,
and rename the brcmfmac43456-sdio.txt to brcmfmac43456-sdio.raspberrypi,400.txt

1 Like

Thank you. I've downloaded the files you mentioned and trying to copy them to /lib/firmware/brcm but the directory is showing it is a read-only directory and I can't add/remove files here. Any idea what may be the problem?

You need to copy the files when the rpi is running openwrt, if you are using windows install WinSCP from there you can easily copy the files.

Thank you so much for your patience and help! Finally got the wifi to work!

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.