debug hardware

This commit is contained in:
Ray Ozzie 2016-03-26 12:36:31 -04:00
parent a1620c84da
commit 194a021b28
2 changed files with 6 additions and 3 deletions

View File

@ -3,9 +3,6 @@ FROM resin/raspberrypi-buildpack-deps
# Enable systemd, as Resin requires this # Enable systemd, as Resin requires this
ENV INITSYSTEM on ENV INITSYSTEM on
# Another approach to blowing away the cache
RUN date >/var/tmp/image_build.log
# Version number of gateway software. # Version number of gateway software.
# (Incrementing this simply forces Docker to flush its cache # (Incrementing this simply forces Docker to flush its cache
# and thus forces a full rebuild. Not used outside of Dockerfile.) # and thus forces a full rebuild. Not used outside of Dockerfile.)

View File

@ -28,6 +28,12 @@ popd
git clone https://github.com/TheThingsNetwork/lora_gateway.git git clone https://github.com/TheThingsNetwork/lora_gateway.git
pushd lora_gateway pushd lora_gateway
sed -i -e 's/PLATFORM= kerlink/PLATFORM= imst_rpi/g' ./libloragw/library.cfg 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 make
popd popd