seemoo-lab / nexmon_csi

Channel State Information Extraction on Various Broadcom Wi-Fi Chips
304 stars 121 forks source link

mon0 no such device error raspberry pi 4 B #273

Open MaryaRB opened 2 years ago

MaryaRB commented 2 years ago

hello, I've been trying to run nexmon csi on raspberry pi 4 b, I tried to use kernals 5.10, 5.4, and 4.19, and everytime i get the same errors, when using: iw dev wlan0 interface add mon0 type monitor

the error is: command failed: Operation not supported (-95)

and when using: ip link set mon0 up

i get: Cannot find device "mon0"

I never managed to get anything when using nexutil or tcpdump, the output is always zero. does anyone know a solution to this? thank you in advance.

zeroby0 commented 2 years ago

Hints at patched driver not being loaded, but I'm not sure. What does nexutil -k say? I would also check if dmesg mentions "Nexmon".

MaryaRB commented 2 years ago

Hints at patched driver not being loaded, but I'm not sure. What does nexutil -k say? I would also check if dmesg mentions "Nexmon".

here are the outputs:

~ $ nexutil -k nex_init_netlink: socket error (93: Protocol not supported) nex_init_netlink: socket error (93: Protocol not supported) nex_init_netlink: bind error (9: Bad file descriptor) nex_init_netlink: connect error (9: Bad file descriptor) ERR (__nex_driver_netlink): no valid answer received chanspec: 0x6863, 85/160

~$ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.97-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:21:14 GMT 2020 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.4 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 256 MiB at 0x000000001ec00000 [ 0.000000] On node 0 totalpages: 504832 [ 0.000000] DMA zone: 1728 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 196608 pages, LIFO batch:63 [ 0.000000] HighMem zone: 308224 pages, LIFO batch:63 [ 0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4e8 with crng_init=0 [ 0.000000] percpu: Embedded 17 pages/cpu s36928 r8192 d24512 u69632 [ 0.000000] pcpu-alloc: s36928 r8192 d24512 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 503104 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M smsc95xx.macaddr=E4:5F:01:7D:91:8A vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 1721804K/2019328K available (8192K kernel code, 687K rwdata, 2408K rodata, 2048K init, 850K bss, 35380K reserved, 262144K cma-reserved, 1232896K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0x(ptrval) - 0x(ptrval) (10208 kB) .init : 0x(ptrval) - 0x(ptrval) (2048 kB) .data : 0x(ptrval) - 0x(ptrval) ( 688 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 851 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 28692 entries in 85 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 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.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000018] Switching to timer-based delay loop, resolution 18ns [ 0.000239] Console: colour dummy device 80x30 [ 0.000262] console [tty1] enabled [ 0.000307] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.000323] pid_max: default: 32768 minimum: 301 [ 0.000595] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000612] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001369] CPU: Testing write buffer coherency: ok [ 0.001775] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002422] Setting up static identity map for 0x200000 - 0x20003c [ 0.002581] rcu: Hierarchical SRCU implementation. [ 0.003444] smp: Bringing up secondary CPUs ... [ 0.004246] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.005187] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.006086] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.006220] smp: Brought up 1 node, 4 CPUs [ 0.006233] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.006242] CPU: All CPU(s) started in HYP mode. [ 0.006251] CPU: Virtualization extensions available. [ 0.007044] devtmpfs: initialized [ 0.017334] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.017539] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.017559] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.025054] pinctrl core: initialized pinctrl subsystem [ 0.025902] NET: Registered protocol family 16 [ 0.028855] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.030345] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.030355] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.030552] Serial: AMBA PL011 UART driver [ 0.033616] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.050038] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-02-12 12:36, variant start [ 0.060053] raspberrypi-firmware soc:firmware: Firmware hash is c3c8dbdf147686fb0c3f32aece709d0653368810 [ 0.103156] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.106353] vgaarb: loaded [ 0.106710] SCSI subsystem initialized [ 0.106914] usbcore: registered new interface driver usbfs [ 0.106966] usbcore: registered new interface driver hub [ 0.107034] usbcore: registered new device driver usb [ 0.108323] clocksource: Switched to clocksource arch_sys_counter [ 0.187011] VFS: Disk quotas dquot_6.6.0 [ 0.187089] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.187261] FS-Cache: Loaded [ 0.187421] CacheFiles: Loaded [ 0.187930] simple-framebuffer: probe of 0.framebuffer failed with error -12 [ 0.195753] NET: Registered protocol family 2 [ 0.196416] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.196442] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.196508] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.196580] TCP: Hash tables configured (established 8192 bind 8192) [ 0.196706] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.196734] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.196946] NET: Registered protocol family 1 [ 0.197546] RPC: Registered named UNIX socket transport module. [ 0.197555] RPC: Registered udp transport module. [ 0.197565] RPC: Registered tcp transport module. [ 0.197575] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.197590] PCI: CLS 0 bytes, default 64 [ 0.200591] Initialise system trusted keyrings [ 0.200753] workingset: timestamp_bits=14 max_order=19 bucket_order=5 [ 0.209818] FS-Cache: Netfs 'nfs' registered for caching [ 0.210343] NFS: Registering the id_resolver key type [ 0.210370] Key type id_resolver registered [ 0.210379] Key type id_legacy registered [ 0.210398] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.212659] Key type asymmetric registered [ 0.212670] Asymmetric key parser 'x509' registered [ 0.212777] bounce: pool size: 64 pages [ 0.212820] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) [ 0.212985] io scheduler noop registered [ 0.212996] io scheduler deadline registered (default) [ 0.213149] io scheduler cfq registered [ 0.213160] io scheduler mq-deadline registered (default) [ 0.213170] io scheduler kyber registered [ 0.216246] brcm-pcie fd500000.pcie: could not get clock [ 0.216303] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 0.216340] brcm-pcie fd500000.pcie: MEM 0x600000000..0x603ffffff -> 0xf8000000 [ 0.298359] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC) [ 0.298598] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 0.298614] pci_bus 0000:00: root bus resource [bus 00-01] [ 0.298631] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff]) [ 0.298674] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 0.298813] pci 0000:00:00.0: PME# supported from D0 D3hot [ 0.301504] PCI: bus0: Fast back to back transfers disabled [ 0.301695] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 0.301820] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 0.302138] pci 0000:01:00.0: PME# supported from D0 D3hot [ 0.304860] PCI: bus1: Fast back to back transfers disabled [ 0.304919] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 0.304937] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 0.305008] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.305026] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 0.305232] pcieport 0000:00:00.0: enabling device (0140 -> 0142) [ 0.305404] pcieport 0000:00:00.0: Signaling PME with IRQ 53 [ 0.305559] pcieport 0000:00:00.0: AER enabled with IRQ 53 [ 0.305725] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 0.352144] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x7c8 took 45350 usecs [ 0.355923] iproc-rng200 fe104000.rng: hwrng registered [ 0.356142] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 0.356630] vc-sm: Videocore shared memory driver [ 0.357014] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 0.367092] brd: module loaded [ 0.376628] loop: module loaded [ 0.377372] Loading iSCSI transport class v2.0-870. [ 0.379125] libphy: Fixed MDIO Bus: probed [ 0.379542] bcmgenet fd580000.genet: failed to get enet clock [ 0.379558] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000 [ 0.379575] bcmgenet fd580000.genet: failed to get enet-wol clock [ 0.379591] bcmgenet fd580000.genet: failed to get enet-eee clock [ 0.379613] bcmgenet: Skipping UMAC reset [ 0.379845] unimac-mdio unimac-mdio.-19: DMA mask not set [ 0.398351] libphy: bcmgenet MII bus: probed [ 0.438840] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval) [ 0.439759] usbcore: registered new interface driver r8152 [ 0.439826] usbcore: registered new interface driver lan78xx [ 0.439879] usbcore: registered new interface driver smsc95xx [ 0.440179] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.440209] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 0.441848] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890 [ 0.442154] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 54 [ 0.443014] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 0.443029] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.443041] usb usb1: Product: xHCI Host Controller [ 0.443052] usb usb1: Manufacturer: Linux 4.19.97-v7l+ xhci-hcd [ 0.443063] usb usb1: SerialNumber: 0000:01:00.0 [ 0.443565] hub 1-0:1.0: USB hub found [ 0.443646] hub 1-0:1.0: 1 port detected [ 0.444115] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.444137] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 0.444156] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 0.444490] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19 [ 0.444504] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.444516] usb usb2: Product: xHCI Host Controller [ 0.444527] usb usb2: Manufacturer: Linux 4.19.97-v7l+ xhci-hcd [ 0.444537] usb usb2: SerialNumber: 0000:01:00.0 [ 0.445004] hub 2-0:1.0: USB hub found [ 0.445056] hub 2-0:1.0: 4 ports detected [ 0.446181] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.446370] dwc_otg: FIQ enabled [ 0.446379] dwc_otg: NAK holdoff enabled [ 0.446387] dwc_otg: FIQ split-transaction FSM enabled [ 0.446400] Module dwc_common_port init [ 0.446639] usbcore: registered new interface driver uas [ 0.446733] usbcore: registered new interface driver usb-storage [ 0.446911] mousedev: PS/2 mouse device common for all mice [ 0.448041] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 0.449519] sdhci: Secure Digital Host Controller Interface driver [ 0.449528] sdhci: Copyright(c) Pierre Ossman [ 0.449923] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe [ 0.450316] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.453348] ledtrig-cpu: registered to indicate activity on CPUs [ 0.453497] hidraw: raw HID events driver (C) Jiri Kosina [ 0.453623] usbcore: registered new interface driver usbhid [ 0.453632] usbhid: USB HID core driver [ 0.454379] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0

[ 0.464950] [vc_sm_connected_init]: end - returning 0 [ 0.466102] Initializing XFRM netlink socket [ 0.466131] NET: Registered protocol family 17 [ 0.466237] Key type dns_resolver registered [ 0.466564] Registering SWP/SWPB emulation handler [ 0.467119] registered taskstats version 1 [ 0.467135] Loading compiled-in X.509 certificates [ 0.474179] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 0.474242] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2 [ 0.479404] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 0.479939] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver [ 0.480567] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 0.480579] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 0.506622] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.3 [ 0.506701] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.4 [ 0.525881] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 0.527526] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.529135] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.532018] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 0.533623] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.538357] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA [ 0.541099] of_cfs_init [ 0.541262] of_cfs_init: OK [ 0.541913] Waiting for root device PARTUUID=ea7d04d6-02... [ 0.586921] random: fast init done [ 0.639274] mmc0: new ultra high speed DDR50 SDXC card at address aaaa [ 0.640468] mmcblk0: mmc0:aaaa SC64G 59.5 GiB [ 0.643236] mmc1: new high speed SDIO card at address 0001 [ 0.643663] mmcblk0: p1 p2 [ 0.662765] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem [ 0.662777] EXT4-fs (mmcblk0p2): write access will be enabled during recovery [ 0.769146] EXT4-fs (mmcblk0p2): recovery complete [ 0.770749] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 0.770795] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 0.771460] devtmpfs: mounted [ 0.779123] Freeing unused kernel memory: 2048K [ 0.779368] Run /sbin/init as init process [ 0.808373] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 0.990991] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 0.991005] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 0.991017] usb 1-1: Product: USB2.0 Hub [ 0.992670] hub 1-1:1.0: USB hub found [ 0.993008] hub 1-1:1.0: 4 ports detected [ 1.165943] systemd[1]: System time before build time, advancing clock. [ 1.261030] NET: Registered protocol family 10 [ 1.262254] Segment Routing with IPv6 [ 1.299742] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.300420] systemd[1]: Detected architecture arm. [ 1.308106] systemd[1]: Set hostname to . [ 1.310308] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument [ 1.932770] random: systemd: uninitialized urandom read (16 bytes read) [ 1.941246] random: systemd: uninitialized urandom read (16 bytes read) [ 1.946625] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 1.946943] random: systemd: uninitialized urandom read (16 bytes read) [ 1.947379] systemd[1]: Listening on udev Kernel Socket. [ 1.948397] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 1.949001] systemd[1]: Listening on udev Control Socket. [ 1.955688] systemd[1]: Listening on Syslog Socket. [ 1.956065] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 2.063072] i2c /dev entries driver [ 2.624431] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 2.717872] systemd-journald[108]: Received request to flush runtime journal from PID 1 [ 3.262606] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff [ 3.263116] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff [ 3.263708] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff [ 3.264223] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff [ 3.293720] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 3.294830] media: Linux media interface: v0.10 [ 3.295818] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

[ 3.300896] [vc_sm_connected_init]: installed successfully [ 3.318024] videodev: Linux video capture interface: v2.00 [ 3.344815] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 3.355141] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 3.380472] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 3.392198] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 3.392233] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 3.398671] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 3.398703] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 3.415554] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 3.415593] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 3.481078] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 3.505419] bcm2835_audio soc:audio: card created with 8 channels [ 3.689502] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0 [ 3.807540] [drm] No displays found. Consider forcing hotplug if HDMI is attached [ 3.807639] vc4-drm soc:gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4]) [ 3.812275] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 1 [ 3.812289] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 3.812298] [drm] No driver support for vblank timestamp query. [ 3.812308] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL [ 5.680492] uart-pl011 fe201000.serial: no DMA platform data [ 5.749718] 8021q: 802.1Q VLAN Support v1.8 [ 5.775155] random: crng init done [ 5.775169] random: 7 urandom warning(s) missed due to ratelimiting [ 5.925702] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 5.979595] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 6.057224] bcmgenet: Skipping UMAC reset [ 6.065076] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 6.159049] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay) [ 6.159318] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 7.208482] bcmgenet fd580000.genet eth0: Link is Down [ 11.368489] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control off [ 11.368511] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 12.277788] Bluetooth: Core ver 2.22 [ 12.277858] NET: Registered protocol family 31 [ 12.277866] Bluetooth: HCI device and connection manager initialized [ 12.277892] Bluetooth: HCI socket layer initialized [ 12.277902] Bluetooth: L2CAP socket layer initialized [ 12.277933] Bluetooth: SCO socket layer initialized [ 12.289285] Bluetooth: HCI UART driver ver 2.3 [ 12.289297] Bluetooth: HCI UART protocol H4 registered [ 12.289392] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 12.289590] Bluetooth: HCI UART protocol Broadcom registered [ 12.507678] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 12.507684] Bluetooth: BNEP filters: protocol multicast [ 12.507695] Bluetooth: BNEP socket layer initialized [ 12.539420] Bluetooth: RFCOMM TTY layer initialized [ 12.539433] Bluetooth: RFCOMM socket layer initialized [ 12.539447] Bluetooth: RFCOMM ver 1.11

zeroby0 commented 2 years ago

Yup, that's because patched driver module wasn't loaded.

Backup the original brcmfmac.ko supplied with RaspiOS. modinfo brcmfmac -n returns it's location. Then replace it with the brcmfmac.ko file at patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.10.y-nexmon/brcmfmac.ko - this is the patched driver module.

Repeat that with the brcmfmac43455-sdio.bin at /lib/firmware/brcm/brcmfmac43455-sdio.bin. Replace it with brcmfmac43455-sdio.bin built with Nexmon.

Now run depmod -a, and reboot.

I have an install script that builds Nexmon_csi from scratch and does this here: https://github.com/nexmonster/nexmon_csi/tree/pi-5.10.92. Pre-compiled binaries and scripts for 4.19, 5.4, and 5.10 are here: https://github.com/nexmonster/nexmon_csi_bin

MaryaRB commented 2 years ago

Yup, that's because patched driver module wasn't loaded.

Backup the original brcmfmac.ko supplied with RaspiOS. modinfo brcmfmac -n returns it's location. Then replace it with the brcmfmac.ko file at patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.10.y-nexmon/brcmfmac.ko - this is the patched driver module.

Repeat that with the brcmfmac43455-sdio.bin at /lib/firmware/brcm/brcmfmac43455-sdio.bin. Replace it with brcmfmac43455-sdio.bin built with Nexmon.

Now run depmod -a, and reboot.

I have an install script that builds Nexmon_csi from scratch and does this here: https://github.com/nexmonster/nexmon_csi/tree/pi-5.10.92. Pre-compiled binaries and scripts for 4.19, 5.4, and 5.10 are here: https://github.com/nexmonster/nexmon_csi_bin

when i try to use modinfo brcmfmac -n i get this error: modinfo: ERROR: Module brcmfmac not found. i tried to use your installing script before but it didn't work because of the same error.

zeroby0 commented 2 years ago

Oh.. Did it never work or did it work for a while and then stopped working?

modinfo: ERROR: Module brcmfmac not found.

Yup, driver module hasn't been loaded.

I'll try to build with my script again this week and see if I can reproduce the error - although I never seem to be able to. Meanwhile, you can use the precompiled binaries: https://github.com/nexmonster/nexmon_csi_bin .

MaryaRB commented 2 years ago

Oh.. Did it never work or did it work for a while and then stopped working?

modinfo: ERROR: Module brcmfmac not found.

Yup, driver module hasn't been loaded.

I'll try to build with my script again this week and see if I can reproduce the error - although I never seem to be able to. Meanwhile, you can use the precompiled binaries: https://github.com/nexmonster/nexmon_csi_bin .

I reinstalled the kernel and used your scrip and it worked, the protocol errors are gone now, however i still get Cannot find device "mon0" when i follow the usage section. I also receive 0 packets when using sudo tcpdump -i wlan0 dst port 5500 -v. I have the Pi connected to network via ether net cable, I tried to use channel 7, 36, and 157 with no luck, any advice?