seemoo-lab / nexmon_csi

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

brcmfmac_4.19.y-nexmon chip.c:23:10: fatal error: defs.h: No such file or directory #328

Closed leechaowen closed 11 months ago

leechaowen commented 11 months ago

HI, I using Raspberry Pi 4 Model B Rev 1.2. and i flash the OS from this link

http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-06-24/

and the kernal is Linux RPI 4.19.97 afte update and upgrade

meet this error when run make install-firmware in nexmon_csi . how to fix it?

COLLECTING STATISTICS read /home/tb-user/ISAC/nexmon/STATISTICS.md for more information
  COMPILING src/version.c => obj/version.o (details: log/compiler.log)
  PREPARING gen/nexmon.pre => gen/nexmon2.pre
  GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld
  GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld
  LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)
  GENERATING MAKE FILE gen/nexmon.pre => gen/nexmon.mk
  GENERATING MAKE FILE gen/nexmon.pre => gen/flashpatches.mk
  APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43455-sdio.bin (details: log/flashpatches.log)
  APPLYING PATCHES gen/nexmon.mk => brcmfmac43455-sdio.bin (details: log/patches.log)
  BUILDING DRIVER for kernel 4.19 brcmfmac_4.19.y-nexmon/brcmfmac.ko (details: log/driver.log)
/home/tb-user/ISAC/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_4.19.y-nexmon/chip.c:23:10: fatal error: defs.h: No such file or directory
 #include <defs.h>
          ^~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:303: /home/tb-user/ISAC/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_4.19.y-nexmon/chip.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/tb-user/ISAC/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_4.19.y-nexmon/cfg80211.c:31:10: fatal error: brcmu_utils.h: No such file or directory
 #include <brcmu_utils.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:303: /home/tb-user/ISAC/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_4.19.y-nexmon/cfg80211.o] Error 1
make[1]: *** [Makefile:1522: _module_/home/tb-user/ISAC/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_4.19.y-nexmon] Error 2
make: *** [Makefile:105: brcmfmac.ko] Error 2

by the way how to check the firmware version? my version is right ?

root@RPI:/home/tb-user# vcgencmd bootloader_version 2023/01/11 17:40:52 version 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 (release) timestamp 1673458852

root@RPI:/home/tb-user# vcgencmd version Feb 12 2020 12:36:21 Copyright (c) 2012 Broadcom version c3c8dbdf147686fb0c3f32aece709d0653368810 (clean) (release) (start) root@RPI:/home/tb-user#

leechaowen commented 11 months ago

install this OS 2020-05-27-raspios-buster-full-armhf . finish install. i used lite os before.