From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <pierre-loup.gosse@smile.fr>, <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH 1/2] ref-manual/variables.rst: document UBOOT_INITIAL_ENV_BINARY variables
Date: Fri, 09 Jan 2026 09:31:25 +0100 [thread overview]
Message-ID: <DFJX2UDR0L90.1U0TLMTBQR4X2@bootlin.com> (raw)
In-Reply-To: <20260107170153.760421-1-pierre-loup.gosse@smile.fr>
Hi,
On Wed Jan 7, 2026 at 6:01 PM CET, Pierre-loup GOSSE via lists.yoctoproject.org wrote:
> From: Pierre-Loup GOSSE <pierre-loup.gosse@smile.fr>
>
> Added by commit cf11b14a4cfc ("u-boot: make initial environment binary
> image") in OE-Core.
>
> Signed-off-by: Pierre-Loup GOSSE <pierre-loup.gosse@smile.fr>
> ---
> documentation/ref-manual/variables.rst | 38 ++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index ee776c110..01bf346fc 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -10974,6 +10974,44 @@ system and gives an overview of their function and contents.
>
> See the :ref:`ref-classes-uboot-sign` class for details.
>
> + :term:`UBOOT_INITIAL_ENV_BINARY`
> + This variable enables the generation of the U-Boot initial environment in
> + binary format. The binary size must be specified using
> + :term:`UBOOT_INITIAL_ENV_BINARY_SIZE`.
> +
> + Its default value is "0", set it to "1" to enable this functionality::
> +
> + UBOOT_INITIAL_ENV_BINARY = "1"
> +
Suggestion, add:
"""
If set to "1", you must also set the size of the environment with
:term:`UBOOT_INITIAL_ENV_BINARY_SIZE`.
"""
> + This variable is used in the :ref:`ref-classes-uboot-config` class.
> +
> + The resulting binary can be flashed using WIC or any other flashing
I would add a link here:
s/WIC/:doc:`WIC </dev-manual/wic>`/
> + method at the environment offset, overriding any existing environment if
> + one is present. Below is an example of a WKS file to flash the binary::
> +
> + part --source rawcopy --sourceparams="file=u-boot-initial-env-sd.bin" --ondisk sda --no-table --offset 4096k
> +
> + In this example, the U-Boot initial environment binary
> + `u-boot-initial-env-sd.bin` is flashed at offset 4096 kibibyte.
> +
> + :term:`UBOOT_INITIAL_ENV_BINARY_REDUND`
> + When using redundant U-Boot environment, this variable must be enabled to
> + support the multiple copies layout. Enable it as follows::
Maybe I would rephrase it to:
"""
If redundant environment support is enabled in U-boot's configuration, this
variable should to properly generate the redundant environment in the output
U-boot environment binary file.
"""
> +
> + UBOOT_INITIAL_ENV_BINARY_REDUND = "1"
> +
I would add:
"""
The :term:`UBOOT_INITIAL_ENV_BINARY` must also be set to "1" if
:term:`UBOOT_INITIAL_ENV_BINARY_REDUND` is enabled.
"""
> + This variable is used in the :ref:`ref-classes-uboot-config` class.
> +
> +
Extra empty line here
> + :term:`UBOOT_INITIAL_ENV_BINARY_SIZE`
> + This variable sets the binary size (in bytes) of the U-Boot initial
> + environment. Both hexadecimal and decimal values are supported and can be
> + set as follows::
> +
> + UBOOT_INITIAL_ENV_BINARY_SIZE = "0x4000"
> +
> + This variable is used in the :ref:`ref-classes-uboot-config` class.
> +
> :term:`UBOOT_LOADADDRESS`
> Specifies the load address for the U-Boot image. During U-Boot image
> creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
Thanks for following up with the docs patch, appreciated!
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2026-01-09 8:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-07 17:01 [PATCH 1/2] ref-manual/variables.rst: document UBOOT_INITIAL_ENV_BINARY variables pierre-loup.gosse
2026-01-07 17:01 ` [PATCH 2/2] migration-guides/release-notes-6.0.rst: add U-Boot initial env binary pierre-loup.gosse
2026-01-09 8:31 ` [docs] " Antonin Godard
2026-01-09 8:31 ` Antonin Godard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DFJX2UDR0L90.1U0TLMTBQR4X2@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=pierre-loup.gosse@smile.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox