Skip to content

Add EBBR target for QEMU ARM64#431

Merged
ricardosalveti merged 12 commits intofoundriesio:masterfrom
ricardosalveti:ebbr-qemu
Sep 24, 2021
Merged

Add EBBR target for QEMU ARM64#431
ricardosalveti merged 12 commits intofoundriesio:masterfrom
ricardosalveti:ebbr-qemu

Conversation

@ricardosalveti
Copy link
Copy Markdown
Member

  • Add new qemuarm64-secureboot-ebbr machine configuration for an EBBR compatible build for QEMU ARM64
  • Add u-boot-fio 2021.07 (required for SystemReady compatibility), to be used by a few targets (NXP targets will stay aligned with 2021.04+BSP)
  • Improve installer and efidisk wks to properly handle the ESP/vfat partition

@angolini heads up for more content to be updated due new syntax on your master-next rebase.

Explicitly generate a FAT 32 fs for the boot partition with mkfs.vfat.

Signed-off-by: Ricardo Salveti <[email protected]>
Extend implementation by also supporting the do_install_disk function
for enabling boot flag on GPT partitions.

This is required as direct only enables legacy_boot by default, which
is not enough for it being considered a valid ESP partition.

Signed-off-by: Ricardo Salveti <[email protected]>
This forces wic to call do_install_disk from the bootimg-sota-efi
plugin, which in our case is used for setting up the GPT boot flag on
the ESP partition.

Signed-off-by: Ricardo Salveti <[email protected]>
Used by most targets that are not NXP based (which still tracks the
release based on their BSP).

This version is required for proper SystemReady validation.

Signed-off-by: Ricardo Salveti <[email protected]>
Support an additional EBBR config fragment when available via
MACHINE_FEATURES.

This fragment is used for enabling all the required EFI related options.

Signed-off-by: Ricardo Salveti <[email protected]>
Add u-boot config fragment required for EBBR support.

Signed-off-by: Ricardo Salveti <[email protected]>
Extends qemuarm64-secureboot by adding ebbr to the default
MACHINE_FEATURES list.

Signed-off-by: Ricardo Salveti <[email protected]>
Change kernel, ostree and wic related options for the EBBR-based
qemuarm64-secureboot machine.

Signed-off-by: Ricardo Salveti <[email protected]>
MTD block devices shouldn't be allowed to be used as target devices.

Signed-off-by: Ricardo Salveti <[email protected]>
Avoid errors when /dev/disk/by-id device entries are not found during
boot.

Signed-off-by: Ricardo Salveti <[email protected]>
While we're checking for /sys/firmware/efi/efivars before running
efibootmgr, it might not necessarily work depending on the target
machine used (e.g. qemu), so make sure to continue the install process
even on failures.

This is not critical as the efi payload is installed using the generic
arm64 naming.

Signed-off-by: Ricardo Salveti <[email protected]>
ESP partition might contain older data that is still relevant / useful
for the user, so make sure to ask before formatting it when we don't
recreate the disk partition layout.

Signed-off-by: Ricardo Salveti <[email protected]>
Copy link
Copy Markdown
Contributor

@Tim-Anderson Tim-Anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ricardosalveti ricardosalveti merged commit 1c88b46 into foundriesio:master Sep 24, 2021
quaresmajose added a commit to quaresmajose/meta-lmp that referenced this pull request Nov 21, 2025
Changelog:
- c01c39a Merge pull request foundriesio#425 from foundriesio/detsch-add-cli-doc
- 5082335 README: Restructure and extend architecture section
- 5c32785 docs: Add docs for key components, using content from docs.foundries.io
- cd63527 Merge pull request foundriesio#432 from foundriesio/check-if-app-is-in-store
- 8d014b8 appengine: Check if app is in store before other checks
- 8204f3d Merge pull request foundriesio#431 from foundriesio/stream-child-output-to-stdout
- 74acd8e appengine: Set timeout for long running app commands
- 38eb5cc appengine: Print app installation progress
- f4811be exec: Add child output printing to stdout
- 4da2503 exec: Add optional param for timeout setting
- a7da093 exec: Make exec non-template function
- fde00f0 api: Make clang-format-20 happy
- 1520ccc Merge pull request foundriesio#429 from foundriesio/detsch-fill-install-description
- 213bf84 api: Fill install result description
- a1bbc4c Merge pull request foundriesio#428 from foundriesio/detsch-test-pull-fail-install
- 451c098 format: Some white-space fixes detected by clang-format-20
- c672b69 e2e-tests: Test pull + install cli operations whith different targets
- 274565e cli: Rename InstallAppPullFailure to InstallTargetPullFailure
- c90d3c5 Merge pull request foundriesio#426 from foundriesio/detsch-improve-e2e-tests
- 27f4bfd e2e-tests: Re-order if conditions to improve organization
- e4bb8f7 e2e-tests: Add test for random sequence of updates
- f7cee2a e2e-tests: Indent log messages for internal operations
- 28947ce e2e-tests: Add wrapper for running commands in targets generation script
- 66c2e7c Merge pull request foundriesio#427 from foundriesio/detsch-pin-composeapp-version
- 7dade6d e2e-tests: Pin composeapp version to v95.1
- a2e73c7 Merge pull request foundriesio#422 from foundriesio/detsch-avoid-deprecated-api
- e5e404e Avoid use of boost process API
- 7384ffc liteclient: Avoid using boost::process::system
- 8042e12 Merge pull request foundriesio#423 from foundriesio/detsch-update-containers
- b034728 docker: Update containers to ubuntu 25.04
- 768c9fe aktualizr: Bump to version 3d25b0304
- bdb0ba6 Merge pull request foundriesio#424 from foundriesio/detsch-tag-container
- 6d47008 e2e-tests: Use tag for referencing aklite-dev image

Signed-off-by: Jose Quaresma <[email protected]>
quaresmajose added a commit that referenced this pull request Nov 26, 2025
Changelog:
- c01c39a Merge pull request #425 from foundriesio/detsch-add-cli-doc
- 5082335 README: Restructure and extend architecture section
- 5c32785 docs: Add docs for key components, using content from docs.foundries.io
- cd63527 Merge pull request #432 from foundriesio/check-if-app-is-in-store
- 8d014b8 appengine: Check if app is in store before other checks
- 8204f3d Merge pull request #431 from foundriesio/stream-child-output-to-stdout
- 74acd8e appengine: Set timeout for long running app commands
- 38eb5cc appengine: Print app installation progress
- f4811be exec: Add child output printing to stdout
- 4da2503 exec: Add optional param for timeout setting
- a7da093 exec: Make exec non-template function
- fde00f0 api: Make clang-format-20 happy
- 1520ccc Merge pull request #429 from foundriesio/detsch-fill-install-description
- 213bf84 api: Fill install result description
- a1bbc4c Merge pull request #428 from foundriesio/detsch-test-pull-fail-install
- 451c098 format: Some white-space fixes detected by clang-format-20
- c672b69 e2e-tests: Test pull + install cli operations whith different targets
- 274565e cli: Rename InstallAppPullFailure to InstallTargetPullFailure
- c90d3c5 Merge pull request #426 from foundriesio/detsch-improve-e2e-tests
- 27f4bfd e2e-tests: Re-order if conditions to improve organization
- e4bb8f7 e2e-tests: Add test for random sequence of updates
- f7cee2a e2e-tests: Indent log messages for internal operations
- 28947ce e2e-tests: Add wrapper for running commands in targets generation script
- 66c2e7c Merge pull request #427 from foundriesio/detsch-pin-composeapp-version
- 7dade6d e2e-tests: Pin composeapp version to v95.1
- a2e73c7 Merge pull request #422 from foundriesio/detsch-avoid-deprecated-api
- e5e404e Avoid use of boost process API
- 7384ffc liteclient: Avoid using boost::process::system
- 8042e12 Merge pull request #423 from foundriesio/detsch-update-containers
- b034728 docker: Update containers to ubuntu 25.04
- 768c9fe aktualizr: Bump to version 3d25b0304
- bdb0ba6 Merge pull request #424 from foundriesio/detsch-tag-container
- 6d47008 e2e-tests: Use tag for referencing aklite-dev image

Signed-off-by: Jose Quaresma <[email protected]>
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.

3 participants