Permalink
Browse files

added rudimentary support for rpi zero w, there are still problems wi…

…th the driver
  • Loading branch information...
DanielAW committed Jun 23, 2017
1 parent f4895fc commit e9d34466e746497ba2ee6951fe2ac58619ac0727
Showing with 9 additions and 9 deletions.
  1. +4 −4 patches/bcm43438/7_45_41_26/nexmon/Makefile
  2. +1 −1 setup_env.sh
  3. +1 −1 utilities/libnexio/Makefile
  4. +3 −3 utilities/nexutil/Makefile
@@ -37,7 +37,7 @@ init: FORCE
$(Q)mkdir -p obj gen log
brcmfmac.ko: check-nexmon-setup-env
ifeq ($(shell uname -m),armv7l)
ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
ifeq ($(findstring 4.9,$(shell uname -r)),4.9)
@printf "\033[0;31m BUILDING DRIVER for kernel 4.9\033[0m brcmfmac_kernel49/brcmfmac.ko (details: log/driver.log)\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_kernel49 -j2 >log/driver.log
@@ -162,14 +162,14 @@ ifndef NEXMON_SETUP_ENV
endif
backup-firmware:
ifeq ($(shell uname -m),armv7l)
ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
cp /lib/firmware/brcm/brcmfmac43430-sdio.bin brcmfmac43430-sdio.bin.orig
else
$(warning Warning: Cannot backup the original firmware on this arch.)
endif
install-firmware: brcmfmac43430-sdio.bin brcmfmac.ko
ifeq ($(shell uname -m),armv7l)
ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
@printf "\033[0;31m COPYING\033[0m brcmfmac43430-sdio.bin => /lib/firmware/brcm/brcmfmac43430-sdio.bin\n"
$(Q)cp brcmfmac43430-sdio.bin /lib/firmware/brcm/brcmfmac43430-sdio.bin
ifeq ($(shell lsmod | grep "^brcmfmac" | wc -l), 1)
@@ -205,7 +205,7 @@ clean-firmware: FORCE
$(Q)rm -fr $(RAM_FILE) obj gen log src/ucode_compressed.c ucode_compressed.bin
clean: clean-firmware
ifeq ($(shell uname -m),armv7l)
ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
ifeq ($(findstring 4.9,$(shell uname -r)),4.9)
@printf "\033[0;31m CLEANING DRIVER\033[0m\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_kernel49 clean
View
@@ -18,7 +18,7 @@ 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" ]; then
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"
@@ -2,7 +2,7 @@ GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
all: libs/armeabi/libnexio.a
ifneq ($(shell uname -m),armv7l)
ifneq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
libs/armeabi/libnexio.a: Android.mk
$(NDK_ROOT)/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21
else
@@ -1,12 +1,12 @@
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
ifneq ($(shell uname -m),armv7l)
ifneq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
all: libs/armeabi/nexutil
else
all: nexutil
endif
ifneq ($(shell uname -m),armv7l)
ifneq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
libs/armeabi/nexutil: Android.mk nexutil.c ../libargp/local/armeabi/libargp.a ../libnexio/local/armeabi/libnexio.a FORCE
touch nexutil.c
$(NDK_ROOT)/ndk-build NDK_APPLICATION_MK=`pwd`/Application.mk NDK_APP_OUT=. TARGET_PLATFORM=android-21 GIT_VERSION=$(GIT_VERSION)
@@ -24,7 +24,7 @@ endif
../libnexio/libnexio.a: FORCE
cd ../libnexio && make
ifneq ($(shell uname -m),armv7l)
ifneq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
install: libs/armeabi/nexutil
adb push $< /sdcard/
adb shell 'su -c "mount -o remount,rw /system"'

0 comments on commit e9d3446

Please sign in to comment.