WIFI preconfigure Gateway OS

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:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


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

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.

Check wifi.config file in data/upperdir/var/lib/connman directory

" LoRa Gateway OS is built using Yocto"
That explains it, I knew I’d seen this before, STM32MP1 devices are built on Yocto, takes some time to learn it like any other OS/Build system.
I changed the interfaces file (didn’t work) then stumbled across (read the screen during login) gateway-config. Good thing to add information at the top of the interfaces file like “DON’T WASTE YOUR TIME” …
This appears to be the kernel from 2020 end of buster. I know it doesn’t support USB boot but on a PI below a PI 4 it doesn’t matter, USB 3.0 makes the PI 4 very fast during an USB boot…