WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: broadcom nexmon monitor mode  (Read 1448 times)

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
broadcom nexmon monitor mode
« on: May 08, 2018, 02:19:53 PM »
Hello,

Some time ago i came across: https://github.com/seemoo-lab/nexmon
Any thoughts on using nexmon for supporting monitor mode on the raspberry pi on board wifi?

Has anyone done it on tinycore? If so, how?
Is it doable?

I've seen people use it on a precompiled kali linux image.
I haven't had first hand experience with it, but i would love to see monitor mode on the pi on board wifi module.

Regards,
Jovan

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10103
Re: broadcom nexmon monitor mode
« Reply #1 on: May 09, 2018, 02:49:13 AM »
There are detailed instructions on the github page you mention above - did you try them?
« Last Edit: May 09, 2018, 02:52:19 AM by Juanito »

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #2 on: May 27, 2018, 02:26:35 AM »
On make, i can't get past by:
Code: [Select]
/usr/local/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:75: b43-asm.bin] Error 1

Code: [Select]
$ tce-load -i -w flex flex-dev
flex is already installed!
flex-dev is already installed!
« Last Edit: May 27, 2018, 02:33:25 AM by Јаневски »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10103
Re: broadcom nexmon monitor mode
« Reply #3 on: May 27, 2018, 03:39:03 AM »
If it were flex it was looking for it would be "-lfl", no?

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: broadcom nexmon monitor mode
« Reply #4 on: May 27, 2018, 05:06:28 AM »
Hi Juanito
If it were flex it was looking for it would be "-lfl", no?
According to this:
http://tinycorelinux.net/4.x/x86/tcz/flex.tcz.list
the x86 version of TC4 also contained a  libl:
Code: [Select]
/usr/local/include/FlexLexer.h
/usr/local/bin/lex
/usr/local/bin/flex
/usr/local/lib/libl.a
/usr/local/lib/libfl_pic.a
/usr/local/lib/libfl.a
Maybe it was a separate libray for  lex  that was later consolidated into  libfl ?

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: broadcom nexmon monitor mode
« Reply #5 on: May 27, 2018, 07:34:34 AM »
Hi Јаневски
It turns out that  /usr/local/lib/libl.a  is just a link to  /usr/local/lib/libfl.a.  Also,  /usr/local/bin/lex  is just a script that calls  flex  using
the  -l  parameter (maximal compatibility with original lex). Try this:
Code: [Select]
sudo ln -sf /usr/local/lib/libfl.a /usr/local/lib/libl.aThen run  make  again and see what error pops up next.

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #6 on: May 27, 2018, 09:57:18 AM »
Yep that did it.
Now i am getting:
Code: [Select]
/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/41
Code: [Select]
The 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:
Code: [Select]
# bash ./setup_env.sh
# ./setup_env.sh
./setup_env.sh: line 2: syntax error: bad substitution
Code: [Select]
# 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:
Code: [Select]
# source ./setup_env.sh
/bin/sh: ./setup_env.sh: line 2: syntax error: bad substitution
« Last Edit: May 27, 2018, 10:05:46 AM by Јаневски »

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #7 on: May 27, 2018, 10:24:53 AM »
So i made ./setup_pi.sh and it seems to have set env vars properly and passed okay, this far...

Code: [Select]
# cat setup_pi.sh
export ARCH="arm"
export SUBARCH="arm"
export KERNEL="kernel7"

export HOSTUNAME=`uname -s`
export PLATFORMUNAME=`uname -m`

export NEXMON_ROOT=`pwd`

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"

export Q=@
export NEXMON_SETUP_ENV=1
Code: [Select]
# source ./setup_pi.sh
# make
  BUILDING BUILDTOOLS
make[1]: Entering directory '/mnt/mmcblk0p4/nexmon/buildtools'
  BUILDING flash_patch_extractor
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/buildtools/flash_patch_extractor'
make[2]: 'fpext' is up to date.
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/buildtools/flash_patch_extractor'
  BUILDING ucode_extractor
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/buildtools/ucode_extractor'
make[2]: 'ucodeext' is up to date.
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/buildtools/ucode_extractor'
  BUILDING b43/assembler/b43-asm.bin
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/buildtools/b43/assembler'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/buildtools/b43/assembler'
  BUILDING b43/disassembler/b43-dasm
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/buildtools/b43/disassembler'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/buildtools/b43/disassembler'
make[1]: Leaving directory '/mnt/mmcblk0p4/nexmon/buildtools'
  EXTRACTING FLASHPATCHES AND UCODE
make[1]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares'
  EXECUTING MAKE FOR CHIP VERSION bcm4330/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4330'
  EXECUTING MAKE FOR FIRMWARE VERSION 5_90_100_41_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4330/5_90_100_41_sta'
  EXTRACTING UCODE
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4330/5_90_100_41_sta'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4330'
  EXECUTING MAKE FOR CHIP VERSION bcm4335b0/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4335b0'
  EXECUTING MAKE FOR FIRMWARE VERSION 6.30.171.1_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4335b0/6.30.171.1_sta'
  EXTRACTING UCODE
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4335b0/6.30.171.1_sta'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4335b0'
  EXECUTING MAKE FOR CHIP VERSION bcm4356/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4356'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_35_101_5_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4356/7_35_101_5_sta'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4356/7_35_101_5_sta'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4356'
  EXECUTING MAKE FOR CHIP VERSION bcm43451b1/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43451b1'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_63_43_0/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43451b1/7_63_43_0'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
  REMOVE PRINTF FLASHPATCH to print to console buffer
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43451b1/7_63_43_0'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43451b1'
  EXECUTING MAKE FOR CHIP VERSION bcm4339/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4339'
  EXECUTING MAKE FOR FIRMWARE VERSION 6_37_34_43/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4339/6_37_34_43'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4339/6_37_34_43'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4339'
  EXECUTING MAKE FOR CHIP VERSION bcm43596a0/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0'
  EXECUTING MAKE FOR FIRMWARE VERSION 9.75.155.45_sta_c0/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0/9.75.155.45_sta_c0'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0/9.75.155.45_sta_c0'
  EXECUTING MAKE FOR FIRMWARE VERSION 9.96.4_sta_c0/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0/9.96.4_sta_c0'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0/9.96.4_sta_c0'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43596a0'
  EXECUTING MAKE FOR CHIP VERSION bcm4358/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_112_300_14_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_300_14_sta'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_300_14_sta'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_112_200_17_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_200_17_sta'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_200_17_sta'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_112_201_3_sta/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_201_3_sta'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358/7_112_201_3_sta'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm4358'
  EXECUTING MAKE FOR CHIP VERSION bcm43430a1/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_41_26/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1/7_45_41_26'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1/7_45_41_26'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_41_46/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1/7_45_41_46'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1/7_45_41_46'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1'
  EXECUTING MAKE FOR CHIP VERSION bcm43455c0/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455c0'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_154/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455c0/7_45_154'
  EXTRACTING UCODE
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455c0/7_45_154'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455c0'
  EXECUTING MAKE FOR CHIP VERSION bcm43438/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43438'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_41_26/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43438/7_45_41_26'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43438/7_45_41_26'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43438'
  EXECUTING MAKE FOR CHIP VERSION bcm43455/
make[2]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_120_7_1_sta_C0/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_120_7_1_sta_C0'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_120_7_1_sta_C0'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_120_5_1_sta_C0/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_120_5_1_sta_C0'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_120_5_1_sta_C0'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_77_0_hw/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_45_77_0_hw'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_45_77_0_hw'
  EXECUTING MAKE FOR FIRMWARE VERSION 7_45_77_0_hw_23_8_2017/
make[3]: Entering directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_45_77_0_hw_23_8_2017'
  EXTRACTING UCODE
  EXTRACTING TEMPLATERAM
  EXTRACTING FLASHPATCHES
make[3]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455/7_45_77_0_hw_23_8_2017'
make[2]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares/bcm43455'
make[1]: Leaving directory '/mnt/mmcblk0p4/nexmon/firmwares'
« Last Edit: May 27, 2018, 10:26:49 AM by Јаневски »

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #8 on: May 27, 2018, 10:43:13 AM »
So then i continue with:
Code: [Select]
# cd /mnt/mmcblk0p4/nexmon/patches/bcm43430a1/7_45_41_46/nexmon
# make


          ###########   ###########   ##########    ##########           
         ############  ############  ############  ############         
         ##            ##            ##   ##   ##  ##        ##         
         ##            ##            ##   ##   ##  ##        ##         
         ###########   ####  ######  ##   ##   ##  ##    ######         
          ###########  ####  #       ##   ##   ##  ##    #    #         
                   ##  ##    ######  ##   ##   ##  ##    #    #         
                   ##  ##    #       ##   ##   ##  ##    #    #         
         ############  ##### ######  ##   ##   ##  ##### ######         
         ###########    ###########  ##   ##   ##   ##########           

            S E C U R E   M O B I L E   N E T W O R K I N G               


                               presents:                                 

              # ###   ###  #   # # ###  ###   ###  # ###                 
              ##   # #   #  # #  ##   ##   # #   # ##   #                 
              #    # #####   #   #    #    # #   # #    #                 
              #    # #      # #  #    #    # #   # #    #                 
              #    #  #### #   # #    #    #  ###  #    #                 

                The C-based Firmware Patching Framework                   


                           !!! WARNING !!!                               
    Our software may damage your hardware and may void your hardware’s   
     warranty! You use our tools at your own risk and responsibility     


  COLLECTING STATISTICS read /mnt/mmcblk0p4/nexmon/STATISTICS.md for more information
make[2]: *** [/mnt/mmcblk0p4/nexmon/patches/common/statistics.mk:21: statistics] Error 1
make[1]: *** [/mnt/mmcblk0p4/nexmon/patches/common/header.mk:31: header] Error 2
make: *** [Makefile:39: init] Error 2

 :o

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: broadcom nexmon monitor mode
« Reply #9 on: May 27, 2018, 10:57:42 AM »
Hi Јаневски
Maybe there are some clues in:
Quote
COLLECTING STATISTICS read /mnt/mmcblk0p4/nexmon/STATISTICS.md for more information

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #10 on: May 27, 2018, 11:00:24 AM »
Then i disable broken build platform statistics towards their mothership:
Code: [Select]
# mkdir -p /mnt/mmcblk0p4/nexmon/DISABLE_STATISTICS

And i get:
Code: [Select]
# cd /mnt/mmcblk0p4/nexmon/patches/bcm43430a1/7_45_41_46/nexmon
# make
...
  STATISTICS DISABLED to enable: delete /mnt/mmcblk0p4/nexmon/DISABLE_STATISTICS
  COMPILING src/ioctl.c => obj/ioctl.o (details: log/compiler.log)
  COMPILING src/autostart.c => obj/autostart.o (details: log/compiler.log)
  COMPILING src/injection.c => obj/injection.o (details: log/compiler.log)
  COMPILING src/patch.c => obj/patch.o (details: log/compiler.log)
  COMPILING src/version.c => obj/version.o (details: log/compiler.log)
  COMPILING src/local_wrapper.c => obj/local_wrapper.o (details: log/compiler.log)
  COMPILING src/sendframe.c => obj/sendframe.o (details: log/compiler.log)
  COMPILING src/monitormode.c => obj/monitormode.o (details: log/compiler.log)
  COPYING UCODE /mnt/mmcblk0p4/nexmon/firmwares/bcm43430a1/7_45_41_46/ucode.bin => gen/ucode.bin
  COMPRESSING UCODE gen/ucode.bin => gen/ucode_compressed.bin
/bin/bash: zlib-flate: command not found
make: *** [Makefile:155: gen/ucode_compressed.bin] Error 127

Code: [Select]
# su tc -c "tce-load -i -w zlib_base-dev"
zlib_base-dev is already installed!
« Last Edit: May 27, 2018, 11:06:04 AM by Јаневски »

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: broadcom nexmon monitor mode
« Reply #11 on: May 27, 2018, 11:08:34 AM »
Hi Јаневски
Quote
/bin/bash: zlib-flate: command not found
Install  qpdf.tcz.

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #12 on: May 27, 2018, 11:15:47 AM »
Code: [Select]
# su tc -c "tce-load -i -w qpdf"
Downloading: qpdf.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: qpdf.tcz.md5.txt: No such file or directory
Error on qpdf.tcz
# uname -a
Linux box 4.4.20-piCore_v7+ #1 SMP Wed Sep 7 22:53:19 CEST 2016 armv7l GNU/Linux
I have piCore 8.2...

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: broadcom nexmon monitor mode
« Reply #13 on: May 27, 2018, 11:21:12 AM »
Hi Јаневски
It is available in TC9.

Offline Јаневски

  • Jr. Member
  • **
  • Posts: 61
Re: broadcom nexmon monitor mode
« Reply #14 on: May 27, 2018, 12:06:54 PM »
I compiled qpdf.

Now compilation fails at:
Code: [Select]
# cd /mnt/mmcblk0p4/nexmon
# source ./setup_pi.sh
# cd /mnt/mmcblk0p4/nexmon/patches/bcm43430a1/7_45_41_46/nexmon
# make
...
  STATISTICS DISABLED to enable: delete /mnt/mmcblk0p4/nexmon/DISABLE_STATISTICS
  COMPILING src/version.c => obj/version.o (details: log/compiler.log)
  GENERATING C FILE gen/ucode_compressed.bin => src/ucode_compressed.c
/bin/bash: xxd: command not found
make: *** [Makefile:160: src/ucode_compressed.c] Error 127
Which according to the internet is vim-common and i don't seem to have it, yet.