Skip to content

V2: torizon_base_image_type: Add bootloader deploy to OTA_FILES_DEPENDS.#422

Open
drewmoseley wants to merge 1 commit intotorizon:scarthgap-7.x.yfrom
drewmoseley:scarthgap-7.x.y
Open

V2: torizon_base_image_type: Add bootloader deploy to OTA_FILES_DEPENDS.#422
drewmoseley wants to merge 1 commit intotorizon:scarthgap-7.x.yfrom
drewmoseley:scarthgap-7.x.y

Conversation

@drewmoseley
Copy link
Contributor

This fixes a build race where the u-boot-env.json file is not populated. To manually trigger this, the following sequence of commands can be used:
$ bitbake virtual/kernel -c cleansstate
$ rm -rf deploy/ tmp/
$ bitbake torizon-docker -c rootfs
ERROR: torizon-docker-1.0-r0 do_rootfs: Could not find bootloader version file '.../deploy/images/verdin-imx8mm/u-boot-version.json'
ERROR: torizon-docker-1.0-r0 do_rootfs: ExecutionError('.../tmp/work/verdin_imx8mm-tdx-linux/torizon-docker/1.0/temp/run.gen_bootloader_ota_files.495585', 1, None, None)
ERROR: Logfile of failure stored in: .../tmp/work/verdin_imx8mm-tdx-linux/torizon-docker/1.0/temp/log.do_rootfs.495585
ERROR: Task (.../layers/meta-toradex-torizon/recipes-images/images/torizon-docker.bb:do_rootfs) failed with exit code '1'

v2: Make this conditional on architecture; X86+GRUB does not need this.

This fixes a build race where the u-boot-env.json file is not populated.  To manually
trigger this, the following sequence of commands can be used:
  $ bitbake virtual/kernel -c cleansstate
  $ rm -rf deploy/ tmp/
  $ bitbake torizon-docker -c rootfs
  ERROR: torizon-docker-1.0-r0 do_rootfs: Could not find bootloader version file '.../deploy/images/verdin-imx8mm/u-boot-version.json'
  ERROR: torizon-docker-1.0-r0 do_rootfs: ExecutionError('.../tmp/work/verdin_imx8mm-tdx-linux/torizon-docker/1.0/temp/run.gen_bootloader_ota_files.495585', 1, None, None)
  ERROR: Logfile of failure stored in: .../tmp/work/verdin_imx8mm-tdx-linux/torizon-docker/1.0/temp/log.do_rootfs.495585
  ERROR: Task (.../layers/meta-toradex-torizon/recipes-images/images/torizon-docker.bb:do_rootfs) failed with exit code '1'

v2: Make this conditional on architecture; X86+GRUB does not need this.

Signed-off-by: Drew Moseley <drew.moseley@toradex.com>
@drewmoseley drewmoseley reopened this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant