WIFI preconfigure Gateway OS


#1

Hello.
i want to setup the wifi connection on the lora gateway OS, without connecting a monitor the my Raspberry.
normallly in the Raspberry OS you can add the files wpa_supplicant.conf and an empty file named ssh in the root directory of the SD card, where the wpa_supplicant.conf file will contain:

country=DK
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=“YOUR_SSID”
psk=“YOUR_PASSWORD”
key_mgmt=WPA-PSK
}

is there a way to preconfigure the wifi to avoid using a monitor to the gateway OS?


#2

You can create your own custom images as all the recipes are open-source: https://github.com/brocaar/lora-gateway-os. You can add extra files, pre-install other binaries etc… LoRa Gateway OS is built using Yocto, so https://www.yoctoproject.org/ might also be a good source of information how to customize these images.