Skip to content

u-boot-qcom: enable EFI runtime variable store for efivar#2513

Open
ricardosalveti wants to merge 1 commit into
qualcomm-linux:masterfrom
ricardosalveti:efivar
Open

u-boot-qcom: enable EFI runtime variable store for efivar#2513
ricardosalveti wants to merge 1 commit into
qualcomm-linux:masterfrom
ricardosalveti:efivar

Conversation

@ricardosalveti

Copy link
Copy Markdown
Contributor

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.

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-reporting-app

test-reporting-app Bot commented Jun 19, 2026

Copy link
Copy Markdown

Test Results

  105 files    634 suites   4h 50m 5s ⏱️
  125 tests   125 ✅  0 💤 0 ❌
6 037 runs  5 943 ✅ 94 💤 0 ❌

Results for commit 038895c.

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 038895c

nodistro
Pass: 9 | Fail: 0 | Total: 9
qcom-distro_linux-qcom-6.18
Pass: 210 | Fail: 0 | Total: 250
qcom-distro
Pass: 243 | Fail: 0 | Total: 297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants