Dear support person,
We are attempting to update bootloader with Torizon Cloud’s “INITIATE SETUP” feature.
We have built our own Torizon OS v6.7.0 and are trying to perform an OTA update using the generated imx-boot.
When we perform an INITIATE UPDATE using this generated imx-boot, the update fails on the GUI.
However, when we check the target system, u-boot is successfully updated and the OS is booted normally.
After booting, we checked the aktualizr logs and found the following logs, but the cause is not clear.
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Action-handler "/usr/bin/bl_actions.sh" message: bootloader update failed
Note that the update using “bootloader/apalis-imx8/u-boot-ota.bin (2022.04-6.2.0-devel+git.0e1f11392251-n216)” completed successfully and is working properly.
Would you please let us know how to create OTA capable bootloader.
Best regards,
Yoshinobu KATO
Entire aktualizr log is blow.
Oct 22 08:03:51 apalis-imx8-15445076 systemd[1]: Started Aktualizr SOTA Client.
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Aktualizr version tdx-f785d48f starting
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/20-sota-device-cred.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/30-rollback.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/40-hardware-id.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/50-secondaries.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/60-polling-interval.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Reading config: "/usr/lib/sota/conf.d/70-reboot.toml"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Use existing SQL storage: "/var/sota/sql.db"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Couldn`t import data: empty path received
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Initializing docker-compose Secondaries...
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Use existing SQL storage: "/var/sota/storage/docker-compose/sql.db"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: No valid metadata found in storage.
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Adding Secondary with ECU serial: 98c65c8df2abe6977a4167e7a5f7f0b79abf8c4f6dfb2cda144405357a2b3dc7 with hardware ID: docker-compose
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Initializing torizon-generic Secondaries...
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Use existing SQL storage: "/var/sota/storage/bootloader/sql.db"
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Adding Secondary with ECU serial: 35b269e1f6803621016806fdae005130afabc4927e36c3e3daa9e2a4321c04b9 with hardware ID: apalis-imx8-bootloader
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: The current update is pending. Check if secondaries have already been updated
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Trying to complete pending update Hash: 7D0DABBDB4845243A698E74A0F475DFCBDD854083614F3F3C8351C3FA50F994B on Secondary with serial 35b269e1f6803621016806fdae005130afabc4927e36c3e3daa9e2a4321c04b9
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Action-handler "/usr/bin/bl_actions.sh" message: bootloader update failed
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Pending update Hash: 7D0DABBDB4845243A698E74A0F475DFCBDD854083614F3F3C8351C3FA50F994B failed to complete on Secondary with serial 35b269e1f6803621016806fdae005130afabc4927e36c3e3daa9e2a4321c04b9
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Primary ECU serial: 5f2f3a8679bd3597a3adef2e07269b4e9fd38c32e423d29c2419b5f7a134c993 with hardware ID: apalis-imx8
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Device ID: c93750ca-4722-43c2-a591-6fbc71d8c6c8
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Device Gateway URL: https://dgw.torizon.io
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Certificate subject: CN=c93750ca-4722-43c2-a591-6fbc71d8c6c8
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Certificate issuer: CN=ota-devices-CA
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Certificate valid from: Oct 22 07:31:06 2024 GMT until: Oct 22 07:31:06 2124 GMT
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: PROXY: initializing...
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: PROXY: using TCP port 8850.
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: Offline Updates are disabled
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: PROXY: starting thread.
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: PROXY: listening to connections...
Oct 22 08:03:52 apalis-imx8-15445076 aktualizr-torizon[1087]: curl error 58 (http code 0): Problem with the local SSL certificate
Oct 22 08:04:09 apalis-imx8-15445076 aktualizr-torizon[1087]: curl error 58 (http code 0): Problem with the local SSL certificate
Oct 22 08:04:10 apalis-imx8-15445076 aktualizr-torizon[1087]: curl error 58 (http code 0): Problem with the local SSL certificate
Oct 22 08:04:10 apalis-imx8-15445076 aktualizr-torizon[1087]: Failed to post update events: 58 Problem with the local SSL certificate HTTP 0
Oct 22 08:04:10 apalis-imx8-15445076 aktualizr-torizon[1087]: Event: SendDeviceDataComplete
Oct 22 08:04:13 apalis-imx8-15445076 aktualizr-torizon[1087]: Event: UpdateCheckComplete, Result - No updates available