Skip to content

Commit

Permalink
Merge branch 'XePeleato-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAW committed Sep 19, 2016
2 parents 1840448 + 98856eb commit 06810af
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions firmware_patching/include/bcm43438.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
/* addresses of static structs */
#define SDIO_INFO_ADDR ((void *) 0x6c5a8)
#define OSL_INFO_ADDR ((void *) 0x6b950)
#define WLC_INFO_ADDR ((void *) 0x6ad6c)

#endif /*BCM43438_H*/
2 changes: 2 additions & 0 deletions firmware_patching/monitor_mode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ FUNCTIONS_BIN = $(FUNCTIONS:=.bin)
all: brcmfmac/brcmfmac.ko brcmfmac43430-sdio.bin

brcmfmac/brcmfmac.ko: check-nexmon-setup-env
make -C ../../kernel/ bcm2709_defconfig
make -C ../../kernel/
make -C ../../kernel/ M=$$PWD/brcmfmac -j2

brcmfmac43430-sdio.bin: patcher.py patch.elf text.bin $(FUNCTIONS_BIN)
Expand Down
5 changes: 5 additions & 0 deletions firmware_patching/monitor_mode/brcm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include "../include/types.h"
#define WL_CHANSPEC_CHAN_MASK 0x00ff
#define CHSPEC_CHANNEL(chspec) ((uint8_t)((chspec) & WL_CHANSPEC_CHAN_MASK))
7 changes: 7 additions & 0 deletions setup_env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if [ -d "$(pwd)/buildtools" ]; then
export CC=$(pwd)/buildtools/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
export CROSS_COMPILE=$(pwd)/buildtools/arm-eabi-4.7/bin/arm-eabi-

Expand All @@ -8,3 +9,9 @@ export NEXMON_FIRMWARE_PATCHING=$(pwd)/firmware_patching
export NEXMON_ROOT=$(pwd)

export NEXMON_SETUP_ENV=1

else

echo "This script should be run at nexmon's root folder!"
fi

0 comments on commit 06810af

Please sign in to comment.