Skip to content

u-boot-qcom: enable libubootenv environment access tool - #2808

Open
aswinm94 wants to merge 2 commits into
qualcomm-linux:masterfrom
aswinm94:uboot-tools
Open

u-boot-qcom: enable libubootenv environment access tool#2808
aswinm94 wants to merge 2 commits into
qualcomm-linux:masterfrom
aswinm94:uboot-tools

Conversation

@aswinm94

@aswinm94 aswinm94 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Enable userspace access to the U-Boot environment variable on U-Boot based builds using libubootenv (fw_printenv/fw_setenv) tools.

Changes

  1. Enable fw_env.config support in u-boot-qcom
  • Install u-boot-fw-utils and u-boot-qcom-env.
  • Add fw_env.config for the U-Boot environment partition.
  • Include fw_env.config in SRC_URI for automatic packaging.
  1. Standardize initial environment naming
  • Re-enable UBOOT_INITIAL_ENV generation for Qualcomm machines.
  • Use the standard name u-boot-initial-env for compatibility with libubootenv.

aswinm94 added 2 commits July 27, 2026 16:02
Install u-boot-fw-utils (libubootenv's fw_printenv/fw_setenv tools)
and u-boot-qcom-env (the sub-package carrying fw_env.config) into
images built with ci/u-boot-qcom.yml, so the U-Boot environment can
be read/written from userspace.

Add a fw_env.config that points to the environment partition used to
store U-Boot environment variables.

Add fw_env.config into u-boot-qcom's SRC_URI so the existing u-boot.inc
packaging logic installs/deploys it automatically.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
UBOOT_INITIAL_ENV was previously hard-set to "" for all qcom
machines, disabling generation of the U-Boot default/initial
environment reference file entirely.

Re-enable it and override the recipe-level default
(${PN}-initial-env, e.g. "u-boot-qcom-initial-env") with a fixed
"u-boot-initial-env" base name. libubootenv's fw_printenv/fw_setenv
tools look up the default/initial environment specifically under
the name "u-boot-initial-env", so using the provider-specific name
would leave that default-environment lookup unable to find the file.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 00e996f

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro
Pass: 10 | Fail: 2 | Total: 12
qcom-distro_linux-qcom-6.18
Pass: 223 | Fail: 8 | Total: 259

@test-reporting-app

Copy link
Copy Markdown

Test Results

   68 files    319 suites   7h 9m 6s ⏱️
  154 tests   135 ✅  3 💤 16 ❌
2 108 runs  2 051 ✅ 28 💤 29 ❌

For more details on these failures, see this check.

Results for commit 00e996f.

@koenkooi Koen Kooi (koenkooi) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Drop the 'meta-qcom: ' from the leader, and start explaining the problem you're solving, not describe what the commit does.

@aswinm94 aswinm94 changed the title meta-qcom: u-boot-qcom: enable libubootenv environment access tool u-boot-qcom: enable libubootenv environment access tool Jul 27, 2026
@qcomlnxci

Copy link
Copy Markdown

Test Coral run workflow

Test jobs for commit 00e996f

  • qcomdistro: multimedia image-prop
    Pass: 42 | Fail: 4 | Others: 1 | Total: 47
  • qcomdistro: multimedia image
    Pass: 9 | Fail: 0 | Total: 9

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.

3 participants