refactor(debos/flash)!: switch RB1 to EDK2-based boot firmware - #593
Draft
Christopher Obbard (obbardc) wants to merge 7 commits into
Draft
refactor(debos/flash)!: switch RB1 to EDK2-based boot firmware#593Christopher Obbard (obbardc) wants to merge 7 commits into
Christopher Obbard (obbardc) wants to merge 7 commits into
Conversation
Christopher Obbard (obbardc)
force-pushed
the
wip/obbardc/qrb2210-switch-to-edkii-bootflow
branch
from
August 21, 2026 15:04
d474803 to
8337fe4
Compare
Christopher Obbard (obbardc)
force-pushed
the
wip/obbardc/qrb2210-switch-to-edkii-bootflow
branch
from
August 21, 2026 19:21
8337fe4 to
3735679
Compare
Christopher Obbard (obbardc)
force-pushed
the
wip/obbardc/qrb2210-switch-to-edkii-bootflow
branch
2 times, most recently
from
August 21, 2026 19:33
65200af to
a3805ba
Compare
Christopher Obbard (obbardc)
force-pushed
the
wip/obbardc/qrb2210-switch-to-edkii-bootflow
branch
from
August 22, 2026 18:56
a3805ba to
3dbfd10
Compare
Christopher Obbard (obbardc)
added a commit
that referenced
this pull request
Aug 22, 2026
The reverted commit bumps qcom-ptool to a version which includes a breaking change to the qrb2210-rb1 partition layout, which switches the partitions to a new layout for the EDK-II based bootflow. Unfortunately that is incompatible with the existing U-Boot based bootflow which the qcom-deb-images currently uses (see switching to EDK-II in #593) and removes the boot_a and boot_b partitions where we currently chain U-Boot. Revert the change to allow qrb2210-rb1 to boot again. This reverts commit 5ae45ff. See: #587 Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Contributor
|
Christopher Obbard (@obbardc) Thanks for starting this; a few bits:
I would convert both agatti boards in one PR – RB1 and UNOQ, otherwise the current scope of your PR is fine. |
The following changes were merged in qcom-ptool:
Ali Erdinc Koroglu (1):
tests: add pytest-based unit tests
Amer Alshanawany (1):
qcom_ptool: loaders: parse uniqueguid from partition config
Fang Wu (1):
Revert "platforms/qcs615-ride: add uefivarstore partition to UFS
layout"
Igor Opaniuk (6):
pyproject: drop duplicate pytest ini_options section
README: fix project name in title
pyproject: declare PyYAML and jsonschema runtime deps
README: document PyYAML and jsonschema runtime deps
loaders: add YAML partition loader with schema validation
tests: cover the YAML loader and schema
Ricardo Salveti (1):
qrb2210-rb1: update partitions based on the edk2-downstream boot
firmware
Royyan Zahir (1):
tests: cover the named GPT attribute flags
Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Replace the old 96 Boards/Linaro rescue image for qrb2210-rb1 with the QRB2210_bootbinaries.1.0 boot firmware release (00021) published on the Qualcomm Software Center. This new release changes the qrb2210-rb1 boot flow to the new EDK2-downstream baseline; superseding the U-Boot based rescue-image flow. Wire up the matching RB1 Core Kit CDT download and cdt_filename so the CDT binary is included in the flashing package. The new bootloader requires a different partition layout to be flashed to the device; introduced in qualcomm-linux/qcom-ptool#109. As the board now boots through the EDK2 bootflow shipped with its boot binaries, the custom U-Boot image is no longer needed. Drop the u_boot_rb1 option from the flash recipe along with the u_boot_file board field, which was only used to overwrite boot.img in the flash directory with the custom U-Boot binary; the boot.img from the board's boot binaries is now used as-is. As the option also gated whether the board was built at all, qrb2210-rb1 is now built unconditionally like every other board and is selected with `target_boards`. Stop installing the U-Boot image into the artifacts and drop the build instructions from the README. The (unused) U-Boot build workflow and scripts/build-u-boot-rb1.sh are left in place for now. Reference: qualcomm-linux/meta-qcom#2057 Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
RB1 now boots the EDK2-based firmware shipped with its boot binaries; we no longer need to build a custom U-Boot image, so there is nothing left that uses the artifacts this workflow builds. Drop the weekly schedule so it stops occupying the self-hosted runners for a build nothing depends on and note at the top of the file that the workflow is deprecated. Manual runs via workflow_dispatch are kept for now, until the workflow and scripts/build-u-boot-rb1.sh are removed. Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
The u-boot-efi-dtb package installs a kernel hook copying the device trees shipped by the kernel package to /boot/efi/dtb, where U-Boot picks them up. This was only useful on RB1: the sole board booting U-Boot and required working around its postinst in the image recipe: diverting the kernel hook so it doesn't fail outside qemu, installing the package only once the ESP is mounted and copying an initial set of DTBs. Now that RB1 boots through the EDK-II bootflow, no board uses these DTBs anymore so drop the package and the action to copy the initial set of DTBs. Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
qbootctl marks the current Android boot partition as successfully booted, which the Android bootloader needs so it doesn't fall back to the other slot after a few boots. This was only required on RB1 where the Android bootloader chainloaded U-Boot from the boot_a/boot_b partitions. As RB1 now boots through the EDK2 bootflow, no supported board depends on this slot handling any more so drop the package. Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Christopher Obbard (obbardc)
force-pushed
the
wip/obbardc/qrb2210-switch-to-edkii-bootflow
branch
from
August 27, 2026 12:52
3dbfd10 to
477ccdc
Compare
See qualcomm-linux/qcom-ptool#165 Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
TODO; expand. Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the old 96 Boards/Linaro rescue image for qrb2210-rb1 with the
QRB2210_bootbinaries.1.0 boot firmware release (00021), published on
the Qualcomm Software Center. This new release changes the qrb2210-rb1
boot flow to the new EDK2-downstream baseline, instead of chain-loading
a custom U-Boot image from the rescue image.
The new bootloader requires a different partition layout to be flashed
to the device; introduced in qualcomm-linux/qcom-ptool#109.
The same change will be made for
qrb2210-arduino-imolain a follow-up PR (waiting on validation: qualcomm-linux/meta-qcom-3rdparty#28).Reference: qualcomm-linux/meta-qcom#2057
TODO (PR is draft until these are resolved)
qbootctl- defer to a separate PR and check if any interaction with Add armhf image support #510u-boot-efi-dtb- yes, we can drop u-boot-efi-dtb, mark this as a breaking change as arduino-deb-images might depend on it, but they can continue adding it in their layer - defer to a separate PRscripts/build-u-boot-rb1.sh,.github/workflows/u-boot.yml, reference to u-boot inCONTRIBUTING.mdand reference tou-boot-rb1-latestin.github/workflows/efs-maintenance.ymlValidation
Follow-ups