DrSchottky / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
22 stars 5 forks source link

pi4 not loading nexmon #10

Closed jayofelony closed 1 year ago

jayofelony commented 1 year ago
[    1.335776] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[    1.345014] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.345081] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.345187] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.345286] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.346337] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.414350] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    5.534902] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    5.536412] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    6.116665] brcmfmac: loading out-of-tree module taints kernel.
[    6.116665] brcmfmac: loading out-of-tree module taints kernel.
[    6.270215] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.286925] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.303044] usbcore: registered new interface driver brcmfmac
[    6.613773] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.621616] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.621912] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    6.622764] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    7.603103] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    7.615383] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   10.594162] brcmfmac: brcmf_vif_add_validate: Attempt to add a MONITOR interface...
[   10.594187] brcmfmac: brcmf_mon_add_vif: brcmf_mon_add_vif called
[   10.594192] brcmfmac: brcmf_mon_add_vif: Adding vif "wlan0mon"

Raspios 03-05-2023 arm64

uname -r
6.1.21-v8+

I have followed all the usual steps to install the firmware. All other version for RPi work perfectly fine, but on pi4 somehow it reverts back to 7.45.241. No errors given whatsoever. Maybe you have a clue what's going on?

PS: The blob error is my doing, I deleted it to see if it would make a difference. It did not..

jayofelony commented 1 year ago

It does work on a fresh install somehow, but when I try installing it with my ansible build the pi 4 drivers will not load/install. The others I am installing with the ansible work perfectly fine.

But installing them afterwards doesn't work either.

jayofelony commented 1 year ago

sudo nano /usr/lib/modules/6.1.21-v8+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko

When I search while nano-ing this file for nexmon it finds multiple 'nexmon' in the file, but still it does not load version 7.45.206.

jayofelony commented 1 year ago

image

jayofelony commented 1 year ago

I found it!!

pi@jayofelony:/usr/lib/firmware/brcm $ sudo mv /usr/lib/firmware/cypress/cyfmac43455-sdio-standard.bin /usr/lib/firmware/cypress/cyfmac43455-sdio-standard.bin.orig
pi@jayofelony:/usr/lib/firmware/brcm $ sudo cp /usr/lib/firmware/brcm/brcmfmac43455-sdio.bin /usr/lib/firmware/cypress/cyfmac43455-sdio-standard.bin
pi@jayofelony:~ $ sudo dmesg | grep brcmfmac
[    6.690704] brcmfmac: loading out-of-tree module taints kernel.
[    6.727883] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.784480] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.785467] usbcore: registered new interface driver brcmfmac
[    7.196632] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.222236] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Oct  4 2023 19:53:57 version 7.45.206 (nexmon.org: 2.2.2-457-gfade2-4) FWID 01-88ee44ea
[    8.023964] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    8.049201] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   11.102611] brcmfmac: brcmf_vif_add_validate: Attempt to add a MONITOR interface...
[   11.102636] brcmfmac: brcmf_mon_add_vif: brcmf_mon_add_vif called
[   11.102641] brcmfmac: brcmf_mon_add_vif: Adding vif "wlan0mon"

I will have to edit my playbook to follow symlinks...