summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWeijie Gao <[email protected]>2026-05-20 16:27:41 +0800
committerHeiko Schocher <[email protected]>2026-07-08 11:35:29 +0200
commit93ae75361f12fb621c425dd2509f321b6b26c4b6 (patch)
treee3c7e8d905a99f763b60c8527c7b48253165daef /include
parentc719d2627ae67903199045c6072a3370b395b7ef (diff)
env: ubi: add support to create environment volume if it does not exist
When U-Boot is booting from a fresh device, the environment volume may not exist in the factory UBI image. This is a common case where factory UBI image contains only volumes with valid data. With the current design, even if the volume is created manually, the environment will still be unusable (e.g., saveenv) before a reboot. This patch adds support to automatically create missing volumes before loading environment. This will make environment available at first boot. There are two options: CONFIG_ENV_UBI_VOLUME_CREATE: whether to enable volume creation CONFIG_ENV_UBI_VOLUME_STATIC: create static volume (default is dynamic) Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions