Hello,
I’m building an image with changes to the base torizon os image:
input:
easy-installer:
toradex-feed:
version: 6.5.0
release: quarterly
machine: verdin-imx8mp
distro: torizon
variant: torizon-core-docker
build-number: 8
The customisation step can be ignored, I’m currently only adding a test.txt
during debug.
By following the documentation as far as:
I have my outputs defined as:
output:
easy-installer:
local: my-base-<VERSION>-ap-secure
name: "my-base-<VERSION>-ap-secure"
description: "my OS base image"
provisioning:
mode: "online"
shared-data: shared-data.tar.gz
online-data: <ONLINE_DATA_STRING>
We’re using some of the scripts like tcb-env-setup.sh
provided by the IDE extension, so can not rule out the issue is somewhere in there - when the Aktualizr starts on the device, the following files are missing:
/var/sota/import/pkey.pem
/var/sota/import/director/root.json
○ aktualizr-torizon.service - Aktualizr SOTA Client
Loaded: loaded (/usr/lib/systemd/system/aktualizr-torizon.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2024-05-28 06:45:09 UTC; 39min ago
├─ ConditionPathExists=|/var/sota/import/pkey.pem was not met
└─ ConditionPathExists=|/var/sota/import/director/root.json was not met
May 28 06:45:09 verdin-imx8mp-xxxxxxxx systemd[1]: Aktualizr SOTA Client was skipped because all trigger condition checks failed.
There are no other logs coming from build to help. The /var/sota/
directory does not get created by the build tool. The director/root.json
is in the shared-data.tar.gz, but the pkey.pem
appears that is needs to be generated by the build command:
(https)://github.com/search?q=repo%3Atoradex%2Faktualizr+pkey.pem&type=code
It appears the director/root.json
is also created by the builder tool, and the /var/sota/
directory:
(https)://github.com/toradex/aktualizr/blob/1523e48df0c0ef68c8c05c519ef4c834ece7b46c/src/libaktualizr/storage/invstorage.h#L188
This section of the documentation says “Make sure that you performed the proper configurationof the device for using online or offline updates…” but the link to “proper configuration” links to configuring for offline-data only - at the top of the documentation saying " If you just want to use the Torizon Remote Updates with default settings, the pre-installed software on a Torizon OS image abstracts the settings of Aktualizr for you, therefore you can skip this article."
Does anyone know how I can generate these pkey.pem, and director/root.json? Or if there is some other steps I have missed? Any help would be great
Thank you,
Diarmuid