]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
u-boot: make initial environment binary image
authorPierre-Loup GOSSE <pierre-loup.gosse@smile.fr>
Fri, 21 Nov 2025 08:49:17 +0000 (09:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Dec 2025 13:53:50 +0000 (13:53 +0000)
commitcf11b14a4cfc0617f45f7cdb87d1dec4aa58e765
tree1e6eaad1eb56ee54cba748175bf5cb470487f49a
parent627f8b1bab571b0046f71c8d4512388d5572afa9
u-boot: make initial environment binary image

Build the U-Boot initial environment binary image if
UBOOT_INITIAL_ENV_BINARY is set to "1". The environment partition size
(in bytes, hexadecimal or decimal) must be defined using
UBOOT_INITIAL_ENV_BINARY_SIZE.

If U-Boot environment redundancy is enabled,
UBOOT_INITIAL_ENV_BINARY_REDUND must be set to "1".

The resulting binary can be flashed using WIC at the environment offset,
overriding any existing environment if present, for example:

  part --source rawcopy --sourceparams="file=u-boot-initial-env-sd.bin" --ondisk sda --no-table --offset 4096

Signed-off-by: Pierre-Loup GOSSE <pierre-loup.gosse@smile.fr>
Reviewed-by: Martin Schwan <m.schwan@phytec.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/uboot-config.bbclass
meta/recipes-bsp/u-boot/u-boot.inc