CUPS - Firmware update file preparation
The 'firmware update file preparation' bash script is helping Azure IoT Edge LoRaWAN Starter Kit users to generate the files needed for executing a firmware upgrade.
More information on how to execute a firmware update can be found in 'Firmware upgrade' section of this documentation.
./firmwarePrep.sh stationEui firmwareUpgradeFilePath
stationEui(REQUIRED) EUI of the target Basics Station
firmwareUpgradeFilePath(REQUIRED) The path of the binary to be executed on Basics Station for upgrading the firmware
The tool will generate three output files being:
sig-0.keyto be placed on the Basics Station
sig-0.crccontaining the checksum of the sig-0.key. This is required to understand which key generated the digest of the firmware upgrade file. This value has to be saved in the IoT Hub Device Twin for the Station, using the Device Provisioning tool.
fwUpdate.digestfile containing the base64 encoding of the digest computed for the firmware upgrade file. This value has to be saved in the IoT Hub Device Twin for the Station, using the Device Provisioning tool.