Repository navigation
[lib][uefi] merge platform FDT and add Cuttlefish bootconfig properties - #550
Merged
zhangxp1998 merged 1 commit intoNov 11, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The DTB fixup mishandles insufficient buffer capacity and ignores property-copy failures, preventing resize retries and potentially reporting success with an incomplete tree.
2 open issues
What changed in this PR
Updates LK’s UEFI fixups to combine the platform device tree with GBL’s /chosen properties, addressing Cuttlefish’s placeholder DTB, and adds vendor APEX selections required by current Cuttlefish images.
Changes:
- Uses the platform FDT as the base while preserving GBL’s
/chosenproperties. - Packs the resulting device tree after updating bootargs.
- Adds bootconfig selections for gatekeeper, graphics composer, keymint, and camera vendor APEX packages.
| File | Description |
|---|---|
lib/uefi/uefi_platform.cpp |
Merges platform and GBL device-tree data and adds Cuttlefish vendor APEX bootconfig properties. |
Review effort: Balanced
zhangxp1998
force-pushed
the
uefi-gbl-dt-bootconfig-fixup
branch
2 times, most recently
from
November 10, 2026 03:38
7310e73 to
167ae8f
Compare
Recent GBL mainline dropped reading DEVICE_TREE_GUID from the UEFI configuration table and instead passes the base DTB from vendor_boot to EfiDtFixupProtocol.fixup (which on Cuttlefish is an empty dummy FDT). When get_fdt() is present, open the platform FDT into the fixup buffer and copy GBL's /chosen properties into it, and move the console and earlycon kernel commandline addition to fixup_kernel_commandline(). Also append androidboot.modem_simulator_ports and the Cuttlefish vendor APEX selection properties in fixup_bootconfig() so vendor.ril-daemon and apexd-bootstrap start cleanly.
zhangxp1998
force-pushed
the
uefi-gbl-dt-bootconfig-fixup
branch
from
November 10, 2026 05:21
167ae8f to
62e3a86
Compare
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.

Recent GBL mainline dropped reading
DEVICE_TREE_GUIDfrom the UEFI configuration table and instead passes the base DTB fromvendor_boottoEfiDtFixupProtocol.fixup(which on Cuttlefish is an empty dummy FDT). Whenget_fdt()is present, open the platform FDT into the fixup buffer and copy GBL's/chosenproperties into it, and move theconsoleandearlyconkernel commandline addition tofixup_kernel_commandline().Also append
androidboot.modem_simulator_portsand the Cuttlefish vendor APEX selection properties infixup_bootconfig()sovendor.ril-daemonandapexd-bootstrapstart cleanly.