View Issue Details

IDProjectCategoryView StatusLast Update
0006998Kali LinuxKali Package Improvementpublic2021-03-26 19:45
Reporterpujandixit Assigned Tosteev  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2020.4 
Fixed in Version2021.1 
Summary0006998: Unable to connect wifi when kali boot in respberry pi 400
Description

HI Team,

can you please help , when i have connect into resspberry pi 400, unable to connect into wifi, wifi adapter not showing

Attached Files

Activities

steev

steev

2021-01-16 21:36

manager   ~0014116

Can you show the output of the various commands? I don't have a pi400 here, so I can't attempt to reproduce anything.

hoshi

hoshi

2021-01-19 22:27

reporter   ~0014119

If it helps, there are numerous random forum posts and even articles mentioning this (e.g. https://www.zdnet.com/index.php/category/2381/index.php/article/hands-on-kali-linux-on-the-raspberry-pi-4/).

ifconfig shows no wlan0 interface (just lo and eth0 which work fine).

Likewise iwconfig shows just lo and eth0 (no wireless extensions.)

kali@kali:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04d9:0007 Holtek Semiconductor, Inc. Raspberry Pi Internal Keyboard
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

kali@kali:~$ lspci
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2711 (rev 20)
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)

Note that I'm of course referring to the built-in wireless card. If I use a USB wifi adapter the wlan0 interface quickly appears.

Let me know if this helps or if you would like any additional information.

steev

steev

2021-01-19 22:28

manager   ~0014120

Last edited: 2021-01-19 22:28

Can you give me the output of dmesg? Need to see what the kernel sees.

hoshi

hoshi

2021-01-19 23:26

reporter   ~0014121

Pi 400 dmesg attached

pi400-dmesg.txt (27,607 bytes)   
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 4.19.118-Re4son-v8l+ (root@kali-pi-dev-v8) (gcc version 8.2.0 (Debian 8.2.0-12)) #1 SMP PREEMPT Thu May 7 02:54:03 UTC 2020
[    0.000000] Machine model: Raspberry Pi ? Rev 1.0
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 64 MiB at 0x0000000037400000
[    0.000000] On node 0 totalpages: 1012736
[    0.000000]   DMA32 zone: 3792 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 242688 pages, LIFO batch:63
[    0.000000]   Normal zone: 12032 pages used for memmap
[    0.000000]   Normal zone: 770048 pages, LIFO batch:63
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x464 with crng_init=0
[    0.000000] percpu: Embedded 24 pages/cpu s58840 r8192 d31272 u98304
[    0.000000] pcpu-alloc: s58840 r8192 d31272 u98304 alloc=24*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] CPU features: enabling workaround for EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 996912
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M bcm2708_fb.fbwidth=1680 bcm2708_fb.fbheight=1050 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:CE:94:BF vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.fiq_fix_enable=2 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] software IO TLB: mapped [mem 0x333ff000-0x373ff000] (64MB)
[    0.000000] Memory: 3832048K/4050944K available (8700K kernel code, 1098K rwdata, 2752K rodata, 1024K init, 1125K bss, 153360K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 30665 entries in 120 pages
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    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.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000219] Console: colour dummy device 80x25
[    0.000584] console [tty1] enabled
[    0.000634] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000666] pid_max: default: 32768 minimum: 301
[    0.000965] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.001029] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.002035] Disabling memory control group subsystem
[    0.024046] ASID allocator initialised with 32768 entries
[    0.032045] rcu: Hierarchical SRCU implementation.
[    0.040537] EFI services will not be available.
[    0.048101] smp: Bringing up secondary CPUs ...
[    0.080299] Detected PIPT I-cache on CPU1
[    0.080360] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.112392] Detected PIPT I-cache on CPU2
[    0.112435] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.144510] Detected PIPT I-cache on CPU3
[    0.144552] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.144680] smp: Brought up 1 node, 4 CPUs
[    0.144766] SMP: Total of 4 processors activated.
[    0.144788] CPU features: detected: 32-bit EL0 Support
[    0.145662] CPU: All CPU(s) started at EL2
[    0.145713] alternatives: patching kernel code
[    0.147095] devtmpfs: initialized
[    0.155356] Enabled cp15_barrier support
[    0.155406] Enabled setend support
[    0.155776] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.155819] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.157752] pinctrl core: initialized pinctrl subsystem
[    0.158423] DMI not present or invalid.
[    0.158845] NET: Registered protocol family 16
[    0.160139] cpuidle: using governor menu
[    0.160477] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.163069] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.163184] Serial: AMBA PL011 UART driver
[    0.166557] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.176635] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-04-27 14:33, variant start
[    0.180647] raspberrypi-firmware soc:firmware: Firmware hash is 3a8f1793b758d6fb7f375edaa260e069ecd34c88
[    0.212075] bcm2835-dma fe007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1
[    0.212127] bcm2835-dma fe007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1
[    0.213027] bcm2835-dma fe007b00.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1
[    0.215289] vgaarb: loaded
[    0.215613] SCSI subsystem initialized
[    0.215817] usbcore: registered new interface driver usbfs
[    0.215878] usbcore: registered new interface driver hub
[    0.215993] usbcore: registered new device driver usb
[    0.216096] pps_core: LinuxPPS API ver. 1 registered
[    0.216117] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.216160] PTP clock support registered
[    0.217652] clocksource: Switched to clocksource arch_sys_counter
[    0.294492] VFS: Disk quotas dquot_6.6.0
[    0.294611] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.294806] FS-Cache: Loaded
[    0.294998] CacheFiles: Loaded
[    0.302979] NET: Registered protocol family 2
[    0.303699] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
[    0.303762] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    0.303973] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    0.304497] TCP: Hash tables configured (established 32768 bind 32768)
[    0.304723] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    0.304798] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    0.305083] NET: Registered protocol family 1
[    0.309835] RPC: Registered named UNIX socket transport module.
[    0.309862] RPC: Registered udp transport module.
[    0.309880] RPC: Registered tcp transport module.
[    0.309898] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.309924] PCI: CLS 0 bytes, default 64
[    0.311600] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.311822] kvm [1]: 8-bit VMID
[    0.312522] kvm [1]: vgic interrupt IRQ1
[    0.312750] kvm [1]: Hyp mode initialized successfully
[    0.314995] Initialise system trusted keyrings
[    0.315239] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.322627] FS-Cache: Netfs 'nfs' registered for caching
[    0.323318] NFS: Registering the id_resolver key type
[    0.323364] Key type id_resolver registered
[    0.323383] Key type id_legacy registered
[    0.323413] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.329545] Key type asymmetric registered
[    0.329575] Asymmetric key parser 'x509' registered
[    0.329677] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.333891] io scheduler noop registered
[    0.333915] io scheduler deadline registered
[    0.334082] io scheduler cfq registered (default)
[    0.334104] io scheduler mq-deadline registered
[    0.334123] io scheduler kyber registered
[    0.336646] brcm-pcie fd500000.pcie: could not get clock
[    0.336727] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.336779] brcm-pcie fd500000.pcie:   MEM 0x600000000..0x603ffffff -> 0xf8000000
[    0.409695] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
[    0.409982] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.410013] pci_bus 0000:00: root bus resource [bus 00-01]
[    0.410040] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.410106] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.410264] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.413156] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.413285] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.413614] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.416390] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.416424] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.416510] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.416539] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.416650] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    0.416714] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    0.463623] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x8d0 took 45891 usecs
[    0.464006] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.479499] Console: switching to colour frame buffer device 210x65
[    0.489744] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1680x1050
[    0.493422] iproc-rng200 fe104000.rng: hwrng registered
[    0.493826] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.494546] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.494894] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.504304] brd: module loaded
[    0.514604] loop: module loaded
[    0.515525] Loading iSCSI transport class v2.0-870.
[    0.517423] libphy: Fixed MDIO Bus: probed
[    0.517971] bcmgenet fd580000.genet: failed to get enet clock
[    0.518054] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
[    0.518132] bcmgenet fd580000.genet: failed to get enet-wol clock
[    0.518212] bcmgenet fd580000.genet: failed to get enet-eee clock
[    0.518299] bcmgenet: Skipping UMAC reset
[    0.518588] unimac-mdio unimac-mdio.-19: DMA mask not set
[    0.529691] libphy: bcmgenet MII bus: probed
[    0.554523] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(____ptrval____)
[    0.555534] usbcore: registered new interface driver r8152
[    0.555659] usbcore: registered new interface driver lan78xx
[    0.555772] usbcore: registered new interface driver smsc95xx
[    0.556258] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.556352] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.559460] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[    0.559897] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 37
[    0.560819] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.560919] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.561005] usb usb1: Product: xHCI Host Controller
[    0.561068] usb usb1: Manufacturer: Linux 4.19.118-Re4son-v8l+ xhci-hcd
[    0.561146] usb usb1: SerialNumber: 0000:01:00.0
[    0.561762] hub 1-0:1.0: USB hub found
[    0.561906] hub 1-0:1.0: 1 port detected
[    0.562437] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.562514] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.562608] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.563055] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.565674] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.568221] usb usb2: Product: xHCI Host Controller
[    0.570806] usb usb2: Manufacturer: Linux 4.19.118-Re4son-v8l+ xhci-hcd
[    0.573381] usb usb2: SerialNumber: 0000:01:00.0
[    0.576463] hub 2-0:1.0: USB hub found
[    0.579125] hub 2-0:1.0: 4 ports detected
[    0.582895] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.585686] dwc_otg: FIQ enabled
[    0.585694] dwc_otg: NAK holdoff enabled
[    0.585703] dwc_otg: FIQ split-transaction FSM enabled
[    0.585714] Module dwc_common_port init
[    0.585957] usbcore: registered new interface driver uas
[    0.588591] usbcore: registered new interface driver usb-storage
[    0.591309] mousedev: PS/2 mouse device common for all mice
[    0.596563] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.600825] sdhci: Secure Digital Host Controller Interface driver
[    0.603436] sdhci: Copyright(c) Pierre Ossman
[    0.605845] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.607196] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.610368] ledtrig-cpu: registered to indicate activity on CPUs
[    0.611645] hidraw: raw HID events driver (C) Jiri Kosina
[    0.612895] usbcore: registered new interface driver usbhid
[    0.614113] usbhid: USB HID core driver
[    0.615711] vchiq: vchiq_init_state: slot_zero = (____ptrval____), is_master = 0
[    0.618647] Initializing XFRM netlink socket
[    0.620001] NET: Registered protocol family 17
[    0.621333] Key type dns_resolver registered
[    0.623088] registered taskstats version 1
[    0.624402] Loading compiled-in X.509 certificates
[    0.626368] Key type encrypted registered
[    0.630658] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.631903] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 19, base_baud = 0) is a PL011 rev2
[    0.636873] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.638341] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
[    0.639822] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.641015] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.666326] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.3
[    0.669014] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.4
[    0.691241] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.694352] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.697425] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.701755] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    0.704812] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.706362] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    0.709345] of_cfs_init
[    0.710959] of_cfs_init: OK
[    0.712900] Waiting for root device /dev/mmcblk0p2...
[    0.751260] random: fast init done
[    0.774503] mmc1: new high speed SDIO card at address 0001
[    0.815157] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    0.817284] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    0.820643]  mmcblk0: p1 p2
[    0.826305] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[    0.840550] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: noload
[    0.842615] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[    0.849389] devtmpfs: mounted
[    0.855090] Freeing unused kernel memory: 1024K
[    0.856735] Run /sbin/init as init process
[    0.905695] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.056308] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.058455] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.060505] usb 1-1: Product: USB2.0 Hub
[    1.064460] hub 1-1:1.0: USB hub found
[    1.066541] hub 1-1:1.0: 4 ports detected
[    1.278246] systemd[1]: System time before build time, advancing clock.
[    1.361709] usb 1-1.3: new low-speed USB device number 3 using xhci_hcd
[    1.389964] NET: Registered protocol family 10
[    1.391805] Segment Routing with IPv6
[    1.420603] systemd[1]: systemd 246.6-2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    1.424560] systemd[1]: Detected architecture arm64.
[    1.440372] systemd[1]: Set hostname to <kali>.
[    1.473420] usb 1-1.3: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[    1.475765] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.478235] usb 1-1.3: Product: USB Optical Mouse
[    1.480305] usb 1-1.3: Manufacturer: PixArt
[    1.492740] input: PixArt USB Optical Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:093A:2510.0001/input/input0
[    1.495276] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:01:00.0-1.3/input0
[    1.577724] usb 1-1.4: new low-speed USB device number 4 using xhci_hcd
[    1.736896] usb 1-1.4: New USB device found, idVendor=04d9, idProduct=0007, bcdDevice= 1.61
[    1.738793] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.740598] usb 1-1.4: Product: Raspberry Pi Internal Keyboard
[    1.742423] usb 1-1.4: Manufacturer:  
[    1.765461] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    1.771056] 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.0002/input/input1
[    1.830000] hid-generic 0003:04D9:0007.0002: input,hidraw1: USB HID v1.11 Keyboard [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input0
[    1.851820] 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.0003/input/input2
[    1.869578] systemd[1]: /etc/systemd/system/regenerate_ssh_host_keys.service:7: Unknown key name 'PartOf' in section 'Service', ignoring.
[    1.871807] systemd[1]: /etc/systemd/system/regenerate_ssh_host_keys.service:8: Unknown key name 'Before' in section 'Service', ignoring.
[    1.889085] systemd[1]: /lib/systemd/system/smartmontools.service:10: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    1.913834] hid-generic 0003:04D9:0007.0003: input,hidraw2: USB HID v1.11 Device [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input1
[    1.927206] systemd[1]: Queued start job for default target Graphical Interface.
[    1.930386] random: systemd: uninitialized urandom read (16 bytes read)
[    1.934821] systemd[1]: Created slice system-getty.slice.
[    1.939018] random: systemd: uninitialized urandom read (16 bytes read)
[    1.941322] systemd[1]: Created slice system-modprobe.slice.
[    1.945203] random: systemd: uninitialized urandom read (16 bytes read)
[    1.947464] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    1.951746] systemd[1]: Created slice User and Session Slice.
[    1.955833] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    1.960276] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    1.964447] systemd[1]: Reached target Slices.
[    1.968448] systemd[1]: Reached target Swap.
[    1.978534] systemd[1]: Listening on Syslog Socket.
[    1.983763] systemd[1]: Listening on fsck to fsckd communication Socket.
[    1.989270] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    2.008733] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    2.012042] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.017963] systemd[1]: Listening on Journal Socket.
[    2.023852] systemd[1]: Listening on udev Control Socket.
[    2.027977] systemd[1]: Listening on udev Kernel Socket.
[    2.032077] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    2.036044] systemd[1]: Mounting POSIX Message Queue File System...
[    2.042395] systemd[1]: Mounting RPC Pipe File System...
[    2.049611] systemd[1]: Mounting Kernel Debug File System...
[    2.056482] systemd[1]: Mounting Kernel Trace File System...
[    2.061293] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    2.065467] systemd[1]: Starting Set the console keyboard layout...
[    2.072248] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    2.080019] systemd[1]: Starting Load Kernel Module drm...
[    2.087209] systemd[1]: Starting Resize root file system...
[    2.096553] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    2.101720] systemd[1]: Starting File System Check on Root Device...
[    2.111314] systemd[1]: Starting Journal Service...
[    2.140465] systemd[1]: Starting Load Kernel Modules...
[    2.153863] systemd[1]: Starting Coldplug All udev Devices...
[    2.168867] systemd[1]: Mounted POSIX Message Queue File System.
[    2.173384] systemd[1]: Mounted RPC Pipe File System.
[    2.177845] systemd[1]: Mounted Kernel Debug File System.
[    2.183301] systemd[1]: Mounted Kernel Trace File System.
[    2.187893] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    2.197155] systemd[1]: [email protected]: Succeeded.
[    2.199440] systemd[1]: Finished Load Kernel Module drm.
[    2.203941] systemd[1]: Finished Load Kernel Modules.
[    2.209092] systemd[1]: Finished File System Check on Root Device.
[    2.213386] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[    2.217357] systemd[1]: Mounting Kernel Configuration File System...
[    2.224023] systemd[1]: Started File System Check Daemon to report status.
[    2.230471] systemd[1]: Starting Remount Root and Kernel File Systems...
[    2.236828] systemd[1]: Starting Apply Kernel Variables...
[    2.273208] systemd[1]: Finished Set the console keyboard layout.
[    2.276957] systemd[1]: Mounted Kernel Configuration File System.
[    2.282807] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.291028] systemd[1]: Finished Apply Kernel Variables.
[    2.295696] systemd[1]: Finished Remount Root and Kernel File Systems.
[    2.302748] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    2.304392] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    2.308468] systemd[1]: Starting Load/Save Random Seed...
[    2.314697] systemd[1]: Starting Create System Users...
[    2.379237] systemd[1]: Finished Coldplug All udev Devices.
[    2.387830] systemd[1]: Starting Helper to synchronize boot up for ifupdown...
[    2.431019] systemd[1]: Finished Create System Users.
[    2.436864] systemd[1]: Starting Create Static Device Nodes in /dev...
[    2.485504] systemd[1]: Finished Create Static Device Nodes in /dev.
[    2.492475] systemd[1]: Starting Rule-based Manager for Device Events and Files...
[    2.536647] systemd[1]: Started Journal Service.
[    2.829269] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
[    2.841366] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
[    2.854639] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
[    2.860027] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    2.866853] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
[    2.868086] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    2.875351] media: Linux media interface: v0.10
[    2.876003] [vc_sm_connected_init]: start
[    2.883816] [vc_sm_connected_init]: installed successfully
[    2.904806] videodev: Linux video capture interface: v2.00
[    3.019518] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    3.019521] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    3.035420] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    3.056196] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    3.058845] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.065936] bcm2835_audio soc:audio: card created with 8 channels
[    3.083528] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    3.086254] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.096371] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    3.098348] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    3.121371] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    3.123650] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    3.132403] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    3.134751] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    3.173911] PKCS#7 signature not signed with a trusted key
[    3.175468] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    3.208581] brcmfmac: F1 signature read @0x18000000=0x15294345
[    3.214638] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/9
[    3.215450] usbcore: registered new interface driver brcmfmac
[    4.297666] random: crng init done
[    4.297977] random: 7 urandom warning(s) missed due to ratelimiting
[    4.373709] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[    5.385838] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[   12.686536] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   12.754248] EXT4-fs (mmcblk0p2): resizing filesystem from 2505728 to 3856768 blocks
[   17.432804] EXT4-fs (mmcblk0p2): resized filesystem to 3856768
[   18.034881] bcmgenet: Skipping UMAC reset
[   18.106052] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[   18.106966] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.598128] uart-pl011 fe201000.serial: no DMA platform data
[   18.897315] Bluetooth: Core ver 2.22
[   18.897858] NET: Registered protocol family 31
[   18.904792] Bluetooth: HCI device and connection manager initialized
[   18.905238] Bluetooth: HCI socket layer initialized
[   18.905502] Bluetooth: L2CAP socket layer initialized
[   18.905941] Bluetooth: SCO socket layer initialized
[   18.933864] Bluetooth: HCI UART driver ver 2.3
[   18.934166] Bluetooth: HCI UART protocol H4 registered
[   18.934541] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   18.936113] Bluetooth: HCI UART protocol Broadcom registered
[   19.137832] bcmgenet fd580000.genet eth0: Link is Down
[   23.229953] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control off
[   23.230055] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   31.222179] fuse init (API version 7.27)
pi400-dmesg.txt (27,607 bytes)   
steev

steev

2021-01-20 02:32

manager   ~0014122

Okay, in the dmesg output, we see

brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

This means the firmware isn't loading correctly, so that's why there's no wifi device.

Would you mind grabbing the 3 brcmfmac43455-sdio files from https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm -

brcmfmac43455-sdio.bin
brcmfmac43455-sdio.clm_blob
brcmfmac43455-sdio.txt

and put them in /lib/firmware/brcm and see if wifi comes up with those files? If this works, you will not have nexmon support, but you would have working wifi at least.

hoshi

hoshi

2021-01-20 04:37

reporter   ~0014123

Thanks for the response. Unfortunately that did not seem to resolve the issue for me.

I tried copying the brcm files from the URL you indicated and I tried copying the versions of them from a working Raspberry Pi OS (which does have wifi working) and I still do not see the wlan0 interface. Relevant dmesg output:

kali@kali:~$ dmesg -l err
[ 1.425080] cgroup: cgroup2: unknown option "memory_recursiveprot"
[ 3.969423] PKCS#7 signature not signed with a trusted key
[ 4.017085] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/9
[ 5.217743] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 6.229038] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

I'm not sure if that's enough info. so I did "modprobe brcmfmac debug=0x120000e" to get debug level output, which I am attaching.

dmesg-brcmfmac.txt (3,703 bytes)   
[    3.977301] brcmfmac: F1 signature read @0x18000000=0x15294345
[    3.985414] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/9
[    3.987688] usbcore: registered new interface driver brcmfmac
[    5.169994] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[    6.176838] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[  651.955284] usbcore: deregistering interface driver brcmfmac
[  680.588280] brcmfmac: brcmfmac_module_init No platform data available.
[  680.588649] brcmfmac: brcmf_sdio_probe Enter
[  680.591669] brcmfmac: F1 signature read @0x18000000=0x15294345
[  680.591912] brcmfmac: brcmf_chip_recognition found AXI chip: BCM4345/9
[  680.594724] brcmfmac: brcmf_chip_cores_check  [1 ] core 0x800:51 base 0x18000000 wrap 0x18100000
[  680.594733] brcmfmac: brcmf_chip_cores_check  [2 ] core 0x812:54 base 0x18001000 wrap 0x18101000
[  680.594738] brcmfmac: brcmf_chip_cores_check  [3 ] core 0x83e:9  base 0x18002000 wrap 0x18102000
[  680.594742] brcmfmac: brcmf_chip_cores_check  [4 ] core 0x83c:14 base 0x18003000 wrap 0x18103000
[  680.594747] brcmfmac: brcmf_chip_cores_check  [5 ] core 0x829:21 base 0x18004000 wrap 0x18104000
[  680.594751] brcmfmac: brcmf_chip_cores_check  [6 ] core 0x135:0  base 0x00000000 wrap 0x18107000
[  680.594755] brcmfmac: brcmf_chip_cores_check  [7 ] core 0x240:0  base 0x00000000 wrap 0x00000000
[  680.594758] brcmfmac: brcmf_chip_set_passive Enter
[  680.596289] brcmfmac: brcmf_chip_get_raminfo RAM: base=0x198000 size=819200 (0xc8000) sr=0 (0x0)
[  680.596385] brcmfmac: brcmf_chip_setup ccrev=51, pmurev=27, pmucaps=0x39d05f1b
[  680.596393] brcmfmac: brcmf_get_module_param Enter, bus=0, chip=17221, rev=9
[  680.596399] brcmfmac: brcmf_sdiod_sgtable_alloc nents=35
[  680.596406] brcmfmac: brcmf_sdio_kso_init Enter
[  680.596437] brcmfmac: brcmf_sdio_drivestrengthinit No SDIO driver strength init needed for chip BCM4345/9 rev 9 pmurev 27
[  680.597491] brcmfmac: brcmf_sdio_probe completed!!
[  680.597501] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/9
[  680.597513] brcmfmac: brcmf_fw_get_firmwares enter: dev=mmc1:0001:1
[  680.597518] brcmfmac: brcmf_fw_request_next_item async request for brcm/brcmfmac43455-sdio.bin
[  680.598469] brcmfmac: brcmf_fw_request_done enter: firmware brcm/brcmfmac43455-sdio.bin found
[  680.598476] brcmfmac: brcmf_fw_request_next_item request for brcm/brcmfmac43455-sdio.txt
[  680.598518] brcmfmac: brcmf_fw_request_next_item firmware brcm/brcmfmac43455-sdio.txt found
[  680.598522] brcmfmac: brcmf_fw_request_nvram_done enter: dev=mmc1:0001:1
[  680.598589] brcmfmac: brcmf_fw_request_nvram_done nvram 000000000e802a37 len 1748
[  680.598595] brcmfmac: brcmf_sdio_firmware_callback Enter: dev=mmc1:0001:1, err=0
[  680.598982] usbcore: registered new interface driver brcmfmac
[  680.599095] brcmfmac: brcmf_sdio_download_code_file Enter
[  680.642802] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at 0x00198000; size=624943
[  680.699196] brcmfmac: brcmf_sdio_download_nvram Enter
[  680.699475] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at 0x0025f92c; size=1748
[  680.699663] brcmfmac: brcmf_chip_set_active Enter
[  681.706269] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[  681.706291] brcmfmac: brcmf_sdio_firmware_callback failed: dev=mmc1:0001:1, err=0
[  681.706392] brcmfmac: brcmf_sdio_remove Enter
[  681.706452] brcmfmac: brcmf_detach Enter
[  682.716447] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[  682.744180] brcmfmac: brcmf_chip_set_passive Enter
[  682.745495] brcmfmac: brcmf_sdio_remove Disconnected
dmesg-brcmfmac.txt (3,703 bytes)   
steev

steev

2021-01-20 20:50

manager   ~0014124

You're right, unfortunately I'm not sure what is causing the failure - can you try disabling bluetooth and rebooting? "systemctl disable bluetooth" - i don't think it will help, but i'd like to see if it does.

Otherwise, I'm assuming since you have the pi400, you're using the power supply that came with it?

hoshi

hoshi

2021-01-20 21:54

reporter   ~0014127

Disabling bluetooth did not have an effect.

I am using the provided power supply and I tried a different supply as well.

hoshi

hoshi

2021-01-21 03:58

reporter   ~0014128

I think the issue is that brcmfmac43455 isn't correct. In Kali it's definitely trying to load brcmfmac43455, but in Pi OS it's loads brcmfmac43456. This wasn't obvious to me at first because Pi OS has both versions (and two others), but dmesg in Pi OS confirmed it's loading brcmfmac43456.

For what it's worth, I also have a Pi 4 and this does use brcmfmac43455, which I think explains why a Pi 4 running Kali will work with wlan0 but the Pi 400 does not.

With that in mind, as a hack to test it, I looaded brcmfmac43456 in Kali but named in brcmfmac43455 -- yikes I know, but I can confirm that it does recognize wlan0 doing this (and I can scan and connect).

What controls what firmware version it tries to load?

steev

steev

2021-01-21 15:59

manager   ~0014131

That's in the kernel driver itself. I'll look into the kernel that the pi uses (are they still on 5.4?) - we may just need to backport the 43456 check in the driver to get it to load the correct firmware.

And that was a great test to track down. I just looked in the nexmon repo on github, and they don't seem to have support for the 43456, which makes sense since the 400 just came out a bit ago and still hard to get.

hoshi

hoshi

2021-01-21 16:24

reporter   ~0014132

Yes, Pi OS is still on 5.4 (5.4.83-v7l+ on what I'm seeing on mine). Thanks!

steev

steev

2021-01-21 22:12

manager   ~0014133

So yeah, it looks like the 43456 support was added with https://github.com/raspberrypi/linux/commit/e3062e05e1cfe378bb9b3fa0bef46711372bcf13 - I'll see if we can squeeze that in to 4.19 somehow or not... it should work, but will have to see.

steev

steev

2021-03-02 20:35

manager   ~0014265

This is now fixed - note that we don't have nexmon support, as nexmon doesn't support this firmware yet, but wireless itself should work now.

Issue History

Date Modified Username Field Change
2021-01-16 20:30 pujandixit New Issue
2021-01-16 21:36 steev Note Added: 0014116
2021-01-19 22:27 hoshi Note Added: 0014119
2021-01-19 22:28 steev Note Added: 0014120
2021-01-19 22:28 steev Note Edited: 0014120
2021-01-19 23:26 hoshi File Added: pi400-dmesg.txt
2021-01-19 23:26 hoshi Note Added: 0014121
2021-01-20 02:32 steev Note Added: 0014122
2021-01-20 04:37 hoshi File Added: dmesg-brcmfmac.txt
2021-01-20 04:37 hoshi Note Added: 0014123
2021-01-20 20:50 steev Note Added: 0014124
2021-01-20 21:54 hoshi Note Added: 0014127
2021-01-21 03:58 hoshi Note Added: 0014128
2021-01-21 15:59 steev Note Added: 0014131
2021-01-21 16:24 hoshi Note Added: 0014132
2021-01-21 22:12 steev Note Added: 0014133
2021-03-02 20:35 steev Assigned To => steev
2021-03-02 20:35 steev Status new => resolved
2021-03-02 20:35 steev Resolution open => fixed
2021-03-02 20:35 steev Fixed in Version => 2021.1
2021-03-02 20:35 steev Note Added: 0014265