From 194a021b285f556cf72ed30a91e0607f2dc9bc5f Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Sat, 26 Mar 2016 12:36:31 -0400 Subject: [PATCH] debug hardware --- Dockerfile | 3 --- build.sh | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0cba6c..3699b86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,6 @@ FROM resin/raspberrypi-buildpack-deps # Enable systemd, as Resin requires this ENV INITSYSTEM on -# Another approach to blowing away the cache -RUN date >/var/tmp/image_build.log - # Version number of gateway software. # (Incrementing this simply forces Docker to flush its cache # and thus forces a full rebuild. Not used outside of Dockerfile.) diff --git a/build.sh b/build.sh index a4b0c40..633d1bb 100755 --- a/build.sh +++ b/build.sh @@ -28,6 +28,12 @@ popd git clone https://github.com/TheThingsNetwork/lora_gateway.git pushd lora_gateway sed -i -e 's/PLATFORM= kerlink/PLATFORM= imst_rpi/g' ./libloragw/library.cfg +# Comment the following in or out as needed for hardware debugging +#sed -i -e 's/DEBUG_AUX= 0/DEBUG_AUX= 1/g' ./libloragw/library.cfg +sed -i -e 's/DEBUG_SPI= 0/DEBUG_SPI= 1/g' ./libloragw/library.cfg +#sed -i -e 's/DEBUG_REG= 0/DEBUG_REG= 1/g' ./libloragw/library.cfg +sed -i -e 's/DEBUG_HAL= 0/DEBUG_HAL= 1/g' ./libloragw/library.cfg +#sed -i -e 's/DEBUG_GPS= 0/DEBUG_GPS= 1/g' ./libloragw/library.cfg make popd