Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support optional dtb loading via UKI #622

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

quic-vkraleti
Copy link
Contributor

If a DTB is present in UKI, systemd-boot can override the default UEFI provided DTB. This provisioning of DTB via UKI allows the users to customize DTBs as per product needs without regenerating the firmware.

recipes-kernel/images/linux-qcom-uki.bb Outdated Show resolved Hide resolved
recipes-kernel/images/linux-qcom-uki.bb Outdated Show resolved Hide resolved
recipes-kernel/images/linux-qcom-uki.bb Outdated Show resolved Hide resolved
recipes-kernel/images/esp-qcom-image.bb Show resolved Hide resolved
Copy link
Collaborator

@lumag lumag left a comment

Choose a reason for hiding this comment

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

Please make it a fatal error if the user specifies non-empty EFI_LINUX_IMG_DTB, but the $dtb doesn't exist. Other than that looks good.

UEFI provides default compatible DTB. If a DTB is present in UKI,
systemd-boot passes the same to Linux instead of UEFI provided DTB.
This optional overriding of DTB via UKI allows the users to customize
DTBs as per product needs without regenerating the firmware.

To override DTB via UKI, users need to set EFI_LINUX_IMG_DTB to an
appropriate dtb file name. For example
EFI_LINUX_IMG_DTB = "qcs6490-rb3gen2.dtb"

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
With updated boot flow, UEFI provides a compatible DTB by default.
To override this, there is a provision in UKI to have a DTB of choice.

When these two are in place, there is no need to explicilty pack DTBs into esp.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
@lumag lumag merged commit f8e1b28 into Linaro:master Sep 5, 2024
2 checks passed
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