From b8973a5bfc852e56c0f21f437bf0ca5ac59cff04 Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Fri, 22 Apr 2016 14:39:46 -0400 Subject: [PATCH] bug fix --- README.md | 14 ++++++++++++++ run.sh | 7 ++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a579412..ef4f0a2 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,20 @@ GW_REGION | EU GW_CONTACT_EMAIL | yourname@yourdomain.com GW_DESCRIPTION | your-gateway-1 +SPECIAL Note for using the LinkLabs gateway on a Raspberry Pi 3: + +There is a backward incomatibility between the Raspberry Pi 1 and 2 hardware, and Raspberry Pi 3. For Raspberry Pi 3, it is necessary to make a small additional configuration change. + +Click <- to go back to the Device List, and note that on the left there is an option called "Fleet Configuration". Click it. + +Add a New config variable as follows: + +APPLICATION CONFIG VARIABLES + +Name | Value +------------------------------|-------------------------- +RESIN_HOST_CONFIG_core_freq | 250 + ## TRANSFERRING TTN GATEWAY SOFTWARE TO RESIN SO THAT IT MAY BE DOWNLOADED ON YOUR DEVICES 1. On your Mac or PC, in terminal, change your working directory to the directory that is the clone of **this** git repo. diff --git a/run.sh b/run.sh index 56f5b7c..51dc035 100755 --- a/run.sh +++ b/run.sh @@ -45,7 +45,7 @@ fi if [[ $GW_TYPE == "linklabs-dev" && "$RESIN_MACHINE_NAME" == "raspberrypi3" ]] then echo "*** Raspberry Pi 3 with LinkLabs board" - if [[ "$RESIN_HOST_CONFIG_dtoverlay" == "pi3-miniuart-bt"]] + if [[ "$RESIN_HOST_CONFIG_dtoverlay" == "pi3-miniuart-bt" ]] then echo "*** Operating with Bluetooth disabled, and UART swapped onto /dev/ttyAMA0" if [[ "$RESIN_HOST_CONFIG_core_freq" != "" ]] @@ -54,13 +54,14 @@ then exit 1 fi elif [[ "$RESIN_HOST_CONFIG_core_freq" == "250" ]] - echo "*** Operating with Bluetooth enabled, and UART frequency adjusted to work properly + then + echo "*** Operating with Bluetooth enabled, and UART frequency adjusted to work properly" else echo "*** Please add one of these two Resin Fleet Configuration variables (but not both)" echo "*** If there is some reason you need Bluetooth (which is unlikely):" echo "*** RESIN_HOST_CONFIG_dtoverlay=pi3-miniuart-bt" echo "*** Otherwise:" - echo "*** RESIN_HOST_CONFIG_core_freq=250 + echo "*** RESIN_HOST_CONFIG_core_freq=250" exit 1 fi