summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2025-02-25 23:24:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-07 17:04:26 +0000
commit657b45833260eab2430bbc982eca9c88e236fc0d (patch)
tree27611617fb7123d17c0d4501aaa67a4218402009 /documentation/ref-manual
parent1145d16d08b47d1dd37417e87aabfd4ff9bec2ed (diff)
downloadpoky-657b45833260eab2430bbc982eca9c88e236fc0d.tar.gz
ref-manual: cover UBOOT_ENV variables
(From yocto-docs rev: dc2ff96a3401eba8dac86fc8305b261be52c8a13) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r--documentation/ref-manual/variables.rst63
1 files changed, 63 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 60984cc8f3..f18298c104 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -3183,6 +3183,31 @@ system and gives an overview of their function and contents.
3183 The default value for this variable is set to "2048" 3183 The default value for this variable is set to "2048"
3184 by the :ref:`ref-classes-kernel-fitimage` class. 3184 by the :ref:`ref-classes-kernel-fitimage` class.
3185 3185
3186 :term:`FIT_UBOOT_ENV`
3187 This variable allows to add a U-Boot script as a text file to the
3188 FIT image. Such a script can be sourced from the U-Boot shell.
3189
3190 When inheriting the :ref:`ref-classes-kernel-fitimage` class a
3191 script file should be included in the :term:`SRC_URI` of the Linux
3192 kernel recipe.
3193
3194 Example:
3195
3196 - Add a script ``boot.cmd`` to the Linux kernel recipe::
3197
3198 FIT_UBOOT_ENV = "boot.cmd"
3199 SRC_URI += "file://${FIT_UBOOT_ENV}"
3200
3201 - Use the script file from the U-Boot shell. The name of the script in
3202 FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
3203 image from a TFTP server::
3204
3205 tftp $loadaddr $fit_tftp_path
3206 source $loadaddr#bootscr-boot.cmd
3207
3208 More information can be found in the official U-Boot documentation:
3209 `U-Boot source command <https://docs.u-boot.org/en/latest/usage/cmd/source.html#fit-image.f>`__
3210
3186 :term:`FONT_EXTRA_RDEPENDS` 3211 :term:`FONT_EXTRA_RDEPENDS`
3187 When inheriting the :ref:`ref-classes-fontcache` class, 3212 When inheriting the :ref:`ref-classes-fontcache` class,
3188 this variable specifies the runtime dependencies for font packages. 3213 this variable specifies the runtime dependencies for font packages.
@@ -9807,6 +9832,44 @@ system and gives an overview of their function and contents.
9807 :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign` 9832 :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
9808 classes. 9833 classes.
9809 9834
9835 :term:`UBOOT_ENV`
9836 This variable allows to add additional environment variables or a script
9837 to be installed together with U-Boot.
9838 This file, typically ``uEnv.txt`` or ``boot.cmd``, is installed in
9839 ``/boot`` as well as copied to the :term:`DEPLOYDIR` directory.
9840
9841 For machine configurations needing one of these files a ``.bbappend``
9842 file should include it in the :term:`SRC_URI` of the U-Boot recipe.
9843
9844 If the variable :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` the script is
9845 packaged as a uImage (``mkimage -T script..``) otherwise it gets
9846 installed verbatim.
9847
9848 Some examples:
9849
9850 - Adding a script ``boot.cmd`` as a uImage to ``/boot``::
9851
9852 UBOOT_ENV = "boot"
9853 UBOOT_ENV_SUFFIX = "scr"
9854 SRC_URI += "file://${UBOOT_ENV_SRC}"
9855
9856 - Adding a script ``uEnv.txt`` as a plain text file to ``/boot``::
9857
9858 UBOOT_ENV = "uEnv"
9859 UBOOT_ENV_SUFFIX = "txt"
9860 SRC_URI += "file://${UBOOT_ENV_BINARY}"
9861
9862 :term:`UBOOT_ENV_SRC_SUFFIX`
9863 If :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` this is the suffix of the
9864 plain text script file as it is specified in the :term:`SRC_URI` of the
9865 U-Boot recipe. It defaults to ``cmd``.
9866
9867 :term:`UBOOT_ENV_SUFFIX`
9868 If this variable is set to ``scr`` the script referred to by
9869 :term:`UBOOT_ENV` gets packaged as a uImage before it gets installed.
9870 The default is ``txt`` which means the script is installed as-is, with
9871 no modification.
9872
9810 :term:`UBOOT_FIT_ADDRESS_CELLS` 9873 :term:`UBOOT_FIT_ADDRESS_CELLS`
9811 Specifies the value of the ``#address-cells`` value for the 9874 Specifies the value of the ``#address-cells`` value for the
9812 description of the U-Boot FIT image. 9875 description of the U-Boot FIT image.