Open patorrad opened 2 years ago
I don't think I can debug this without further details, but my hunch is the build ENV variables haven't been setup. Did you run source setup_env.sh
?
PS: 5.10 includes RSSI and FC,
@patorrad Hi, I have the same issues, have you able to solve this problems?
/home/pi/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.4.y-nexmon/chip.c:12:10: fatal error: defs.h: No such file or directory
#include <defs.h>
^~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:266: /home/pi/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.4.y-nexmon/chip.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/pi/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.4.y-nexmon/cfg80211.c:21:10: fatal error: brcmu_utils.h: No such file or directory
#include <brcmu_utils.h>
^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:266: /home/pi/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.4.y-nexmon/cfg80211.o] Error 1
make[1]: *** [Makefile:1709: /home/pi/nexmon/patches/bcm43455c0/7_45_189/nexmon_csi/brcmfmac_5.4.y-nexmon] Error 2
make: *** [Makefile:108: brcmfmac.ko] Error 2
Did you do:?
source setup_env.sh
make
source setup_env.sh
has to be done in every new terminal session.
Hi Aravind, thanks for reply, I did
source setup_env.sh
make
before
make install-firmware
Btw, my kernal info
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
I did not find a solution. I had sourced the env variables so that was not my problem. I am still super interested in a solution.
oh.. I don't know why it happens yet then.
Both defs.h
and brcm_utils.h
exist in the include directory. And make
knows to look in that directory because of this:
The path to the includes dir could be wrong if NEXMON_ROOT
is wrong or unset. And NEXMON_ROOT
is set when sourcing setup_env.sh
https://github.com/seemoo-lab/nexmon/blob/4087b4e5a408e6e1c4e5cbf4fd098b74bf74cdfa/setup_env.sh#L11
That's about all the information I have. I recommend wiping the SD card and starting over again, that miraculously solves bugs sometimes and is probably the quickest potential way to get rid of the bug. I'll try to build 5.4.51-plus later this week and see if I run into it too.
Thanks Aravind. I can build 5.4.51-plus with kernal 5.10 by including folder(brcmfmac_5.10.y-nexmon) in your 5.04.51-plus and it is successed. I guess I could ignore error with kernal 5.4 since it is outdated.
Hi,
I am getting this error in the last step (the tmux command line) of your github installation guide for kernel 5.4.51-plus:
Any tips on how to fix this?