Scripts to generate a Raspbian based LoRa Server image for the Raspberry Pi. The image is intended to use on a Rasberry Pi based LoRa Gateway, for example the RisingHF IoT Discovery kit. These scripts are based on RPi-Distro/pi-gen.
Components installed:
- packet_forwarder (master branch)
- Redis
- Mosquitto
- PostgreSQL
- LoRa Gateway Bridge (latest release)
- LoRa Server (latest release)
- LoRa App Server (latest release)
- LoRa App Server is accessible on port
8080
(http). - SSH is disabled by default. See the Raspberry Pi documentation for more information.
- The default configuration is for the EU 868 ISM band. To change this, you
need to modify two files:
stage3/02-packet-forwarder/files/global_conf.json
stage3/04-loraserver/files/loraserver.toml
- Make sure the correct GPIO reset pin number is correctly configured in:
stage3/02-packet-forwarder/files/start.sh
When running this script outside Docker, you need to install the following dependencies:
quilt parted realpath qemu-user-static debootstrap zerofree pxz zip dosfstools bsdtar libcap2-bin grep rsync
./build-docker.sh
If everything goes well, your finished image will be in the deploy/
folder.
You can then remove the build container with docker rm pigen_work
If something breaks along the line, you can edit the corresponding scripts, and continue:
CONTINUE=1 ./build-docker.sh
There is a possibility that even when running from a docker container,
the installation of qemu-user-static
will silently fail when building the
image because binfmt-support
must be enabled on the underlying kernel.
An easy fix is to ensure binfmt-support
is installed on the host machine
before starting the ./build-docker.sh
script (or using your own docker build
solution).