Yep that did it.
Now i am getting:
/buildtools/ucode_extractor/ucodeext -r bcmdhd_sta.bin -b 0x2D830 -l 0x8B82 -o ucode.bin
make[3]: /buildtools/ucode_extractor/ucodeext: Command not found
make[3]: *** [Makefile:7: ucode.bin] Error 127
I've ran # bash ./setup_env.sh first.
It seems to be shell environment related, which as a consequence causes this issue:
https://github.com/seemoo-lab/nexmon/issues/41The build command should be:
./buildtools/ucode_extractor/ucodeext -r bcmdhd_sta.bin -b 0x2D830 -l 0x8B82 -o ucode.bin
^
(Period goes there)
This is setup_env.sh, which passes without complaining if i run it using bash, if i do it with sh it says:
# bash ./setup_env.sh
# ./setup_env.sh
./setup_env.sh: line 2: syntax error: bad substitution
# cat setup_env.sh
OLD_PWD=$(pwd)
cd $(dirname ${BASH_SOURCE[0]})
export ARCH=arm
export SUBARCH=arm
export KERNEL=kernel7
export HOSTUNAME=$(uname -s)
export PLATFORMUNAME=$(uname -m)
export NEXMON_ROOT=$(pwd)
if [ $HOSTUNAME == "Darwin" ]; then
export CC=$NEXMON_ROOT/buildtools/gcc-arm-none-eabi-5_4-2016q2-osx/bin/arm-none-eabi-
export CCPLUGIN=$NEXMON_ROOT/buildtools/gcc-nexmon-plugin-osx/nexmon.so
export ZLIBFLATE="openssl zlib"
else if [ $HOSTUNAME == "Linux" ] && [ $PLATFORMUNAME == "x86_64" ]; then
export CC=$NEXMON_ROOT/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-
export CCPLUGIN=$NEXMON_ROOT/buildtools/gcc-nexmon-plugin/nexmon.so
export ZLIBFLATE="zlib-flate -compress"
else if [[ $HOSTUNAME == "Linux" ]] && [[ $PLATFORMUNAME == "armv7l" || $PLATFORMUNAME == "armv6l" ]]; then
export CC=$NEXMON_ROOT/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-armv7l/bin/arm-none-eabi-
export CCPLUGIN=$NEXMON_ROOT/buildtools/gcc-nexmon-plugin-arm/nexmon.so
export ZLIBFLATE="zlib-flate -compress"
else
echo "Platform not supported!"
fi
fi
fi
export Q=@
export NEXMON_SETUP_ENV=1
cd "$OLD_PWD"
The manual says i shoud be using source ./setup_env.sh but it fails with:
# source ./setup_env.sh
/bin/sh: ./setup_env.sh: line 2: syntax error: bad substitution