u-boot-qcom: enable EFI runtime variable store for efivar#2513
Open
ricardosalveti wants to merge 1 commit into
Open
u-boot-qcom: enable EFI runtime variable store for efivar#2513ricardosalveti wants to merge 1 commit into
ricardosalveti wants to merge 1 commit into
Conversation
Enable CONFIG_EFI_RT_VOLATILE_STORE so U-Boot supports SetVariable at runtime on its in-RAM EFI variable backend. With this U-Boot advertises EFI_RT_SUPPORTED_SET_VARIABLE in the RT properties table and creates the RTStorageVolatile and VarToFile EFI variables. These variables are what userspace needs to persist runtime EFI variable changes: RTStorageVolatile names the variable store file relative to the ESP (ubootefi.var) and VarToFile holds the binary dump of the variables to write back. The efivar SetVariableRT backport in oe-core uses them to sync changes to the ESP so they survive reboots; without this option SetVariable at runtime returns EFI_UNSUPPORTED and efivar cannot work. CONFIG_EFI_RT_VOLATILE_STORE depends on CONFIG_EFI_VARIABLE_FILE_STORE, so select that explicitly in the fragment to keep the option from being silently dropped should the dependency default ever change. Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
Test Results 105 files 634 suites 4h 50m 5s ⏱️ Results for commit 038895c. ♻️ This comment has been updated with latest results. |
lumag
approved these changes
Jun 19, 2026
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.
Enable CONFIG_EFI_RT_VOLATILE_STORE so U-Boot supports SetVariable at runtime on its in-RAM EFI variable backend. With this U-Boot advertises EFI_RT_SUPPORTED_SET_VARIABLE in the RT properties table and creates the RTStorageVolatile and VarToFile EFI variables.
These variables are what userspace needs to persist runtime EFI variable changes: RTStorageVolatile names the variable store file relative to the ESP (ubootefi.var) and VarToFile holds the binary dump of the variables to write back. The efivar SetVariableRT backport in oe-core uses them to sync changes to the ESP so they survive reboots; without this option SetVariable at runtime returns EFI_UNSUPPORTED and efivar cannot work.
CONFIG_EFI_RT_VOLATILE_STORE depends on CONFIG_EFI_VARIABLE_FILE_STORE, so select that explicitly in the fragment to keep the option from being silently dropped should the dependency default ever change.