How to update a single file with Thistle Update Client
THISTLE_TOKEN
in the configuration step below.init
command. This will set the device trust model to Trust On First Use (TOFU) where devices are to be trusted upon joining the network.
The init
command requires the path to an on-device persistent directory. This path will be used by the client to store persistent data between restarts./tmp/persist
was used in this example. The local signing key, device configuration file config.json
and a release manfest template manifest.json
will also be generated.
my_app
, that will be installed at path /tmp/my_app
. Complete “rootfs” system update are also possible using similar commands. Updates are defined by manifest files, they contain the assets’ definition and a cryptographic signature.
manifest.json
will be amended for the OTA release.
trh
tool to upload the release and its assets.
prepare
and release
commands. All the devices using the configuration file config.json
will then receive this update.
--signing-method="remote"
to all the above trh
commands to use this remotely managed signing key. For example,