Hi, I am trying to add a chrony NTP client to the TorizonOS build by using Yocto approach decribed here Build Torizon OS from Source With Yocto Project/OpenEmbedded | Toradex Developer Center. After I successfully created a custom TorizonOS image (my only modification is adding IMAGE_INSTALL:append = " chrony" in the local.conf
) I use our usual system customization approach with torizoncore builder to provide specific files / configs changes. After that I generated another torizoncore customized build and got a new Lockbox to try the offline updates mechanism. The issue that I’m getting is that the Aktualizr doesn’t recognize the new Lockbox as an update.
Here is the tdx-info output:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.148-6.6.0-devel-6.6.0-devel+git.23a8e831749d #1-TorizonCore SMP PREEMPT Thu Feb 29 20:25:21 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/792b69f28c810ea81485e10211ce42d659622af965ed2480d703fd7358e7ad1d/0 clk-imx8mp.mcore_booted=1
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.6.0-devel-20241114171935-build.0
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15230140
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus WB on Yavia Board
Toradex version: 0058 V1.1B
Serial number: 15230140
Processor arch: aarch64
------------------------------------------------------------
Here is the Aktualizr config for offline updates:
root@verdin-imx8mp-15230140:~# cat /etc/sota/conf.d/99-offline-updates.toml
[uptane]
enable_offline_updates = true
enable_online_updates = false
offline_updates_source = "/var/lib/docker/volumes/torizon_application/_data/update"
Here are the contents of offline update metadata file:
{"signatures":[{"keyid":"6530a8f5a72ff4c2080f9fb5542bcfbb8682164fce432cfa2bb33a0ae42fcf22","method":"ed25519","sig":"FltUdXd2FXjg+bKKP6Q1C3iFgdenB+5G392NBOrZPAKPjRmZwqGcAWUb+d8vlWloA0HEIgQdv7nyHrIDqDkdBg=="}],"signed":{"_type":"Offline-Updates","expires":"2025-11-15T15:28:15Z","targets":{"abc3-nema-gateway-docker-apps-release-0.0.9":{"custom":{"canonical_compose_file":true,"createdAt":"2024-11-15T15:28:10Z","hardwareIds":["docker-compose"],"name":"abc3-nema-gateway-docker-apps","targetFormat":"BINARY","updatedAt":"2024-11-15T15:28:10Z","uri":null,"version":"release-0.0.9"},"hashes":{"sha256":"7ce6fa4d96a37f5c6d7a4abe01ce0a16ed47789389e63d191ed17056f40b094d"},"length":977},"aktina-abc3-nema-gateway-os-package-release-0.0.9":{"custom":{"commitBody":"","commitSubject":"TorizonCore Builder union commit created at 2024-11-15T15:27:11","createdAt":"2024-11-15T15:27:52Z","hardwareIds":["verdin-imx8mp"],"name":"aktina-abc3-nema-gateway-os-package","ostreeMetadata":{"oe.arch":"aarch64","oe.distro":"torizon","oe.distro-codename":"kirkstone","oe.image":"torizon-core-docker","oe.kernel-source":["git.toradex.com/linux-toradex.git","toradex_5.15-2.2.x-imx","23a8e831749da"],"oe.machine":"verdin-imx8mp","oe.package-arch":"cortexa53","oe.tdx-build-purpose":"testing","oe.tdx-major":"6","ostree.ref-binding":["tcbuilder-20241115152711"],"version":"6.6.0-devel-20241114171935+build.0-tcbuilder.20241115152711"},"targetFormat":"OSTREE","updatedAt":"2024-11-15T15:27:52Z","uri":null,"version":"release-0.0.9"},"hashes":{"sha256":"1d3020b84c1ae7b8aa071c028a78c0fe36d7d21cd6011eb18b523a725d1abd9d"},"length":0}},"version":36}}
If I build the torizoncore builder customization on top of one of the pre-built images I can run the offline update without any issue. Everything works perfectly.