Skip to contentSkip to conversation

ref-manual: uboot-sign: Add how to enable ATF, TEE and User defined snippet ITS for U-Boot FIT image

PATCH Superseded Jamin Lin 3 participants 5 messages Mar 13, 2025 – Mar 14, 2025

v5 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Jamin Lin

author
#0 lore raw

PATCH v5 1/1 ref-manual: uboot-sign: Add how to enable ATF, TEE and User defined snippet ITS for U-Boot FIT image

Add how to enable ATF, TEE and User defined ITS for U-Boot FIT image generation.

---
 documentation/ref-manual/classes.rst   |  14 +++
 documentation/ref-manual/variables.rst | 137 +++++++++++++++++++++++++
 2 files changed, 151 insertions(+)
documentation/ref-manual/classes.rst +14 -0
index b93279ff6..4b02daa58 100644
@@ -3401,6 +3401,20 @@ The variables used by this class are:
 -  :term:`UBOOT_FITIMAGE_ENABLE`: enable the generation of a U-Boot FIT image.
 -  :term:`UBOOT_MKIMAGE_DTCOPTS`: DTC options for U-Boot ``mkimage`` when
    rebuilding the FIT image containing the kernel.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`: include the Trusted Firmware-A (TF-A)
+   image in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`: specifies the path to the
+   Trusted Firmware-A (TF-A) image.
+-  :term:`UBOOT_FIT_TEE`: include the Trusted Execution Environment (TEE) image
+   in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_TEE_IMAGE`: specifies the path to the Trusted Execution
+   Environment (TEE) image.
+-  :term:`UBOOT_FIT_USER_SETTINGS`: adds a user-specific snippet to the ITS.
+   Users can include their custom ITS snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more user-defined images
+   to the loadables property of the configuration node. It should be a
+   comma-separated list of strings and each string needs to be surrounded by
+   quotes too.
 
 See U-Boot's documentation for details about `verified boot
 <https://source.denx.de/u-boot/u-boot/-/blob/master/doc/uImage.FIT/verified-boot.txt>`__
documentation/ref-manual/variables.rst +137 -0

149 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by on v5 1/1
#1 lore raw

Hi Jamin,

Quoted 1 line · Jamin Lin

Add how to enable ATF, TEE and User defined ITS for U-Boot FIT image generation.

Thanks for working on this,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to Jamin Lin

Hi Jamin,

I think we're almost there now!

Quoted 13 lines · Jamin Lin via lists.yoctoproject.org

Add how to enable ATF, TEE and User defined ITS for U-Boot FIT image generation.

---
  documentation/ref-manual/classes.rst   |  14 +++
  documentation/ref-manual/variables.rst | 137 +++++++++++++++++++++++++
  2 files changed, 151 insertions(+)
documentation/ref-manual/classes.rst +0 -0
index b93279ff6..4b02daa58 100644

documentation/ref-manual/classes.rst The variables used by this class are: · line 3407

Quoted 7 lines
documentation/ref-manual/classes.rst +4 -0
@@ -3401,6 +3401,20 @@ The variables used by this class are:
  -  :term:`UBOOT_FITIMAGE_ENABLE`: enable the generation of a U-Boot FIT image.
  -  :term:`UBOOT_MKIMAGE_DTCOPTS`: DTC options for U-Boot ``mkimage`` when
     rebuilding the FIT image containing the kernel.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`: include the Trusted Firmware-A (TF-A)
+   image in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`: specifies the path to the
+   Trusted Firmware-A (TF-A) image.

s/image/binary/

documentation/ref-manual/classes.rst The variables used by this class are: · line 3411

Quoted 4 lines
documentation/ref-manual/classes.rst +4 -0
+-  :term:`UBOOT_FIT_TEE`: include the Trusted Execution Environment (TEE) image
+   in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_TEE_IMAGE`: specifies the path to the Trusted Execution
+   Environment (TEE) image.

s/image/binary/

documentation/ref-manual/classes.rst The variables used by this class are: · line 3415

Quoted 4 lines
documentation/ref-manual/classes.rst +4 -0
+-  :term:`UBOOT_FIT_USER_SETTINGS`: adds a user-specific snippet to the ITS.
+   Users can include their custom ITS snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more user-defined images
+   to the loadables property of the configuration node. It should be a

s/loadables/``loadables``/

Quoted 10 lines
documentation/ref-manual/classes.rst +2 -0
+   comma-separated list of strings and each string needs to be surrounded by
+   quotes too.
 
  See U-Boot's documentation for details about `verified boot
  <https://source.denx.de/u-boot/u-boot/-/blob/master/doc/uImage.FIT/verified-boot.txt>`__
documentation/ref-manual/variables.rst +0 -0
index 861b04eaa..376782508 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9957

Quoted 9 lines
documentation/ref-manual/variables.rst +6 -0
@@ -9949,6 +9949,45 @@ system and gives an overview of their function and contents.
 
        See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
 
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
+      `Trusted Firmware-A (TF-A) <https://www.trustedfirmware.org/projects/tf-a>`__
+      is a reference implementation of secure world software for Arm A-Profile
+      architectures (Armv8-A and Armv7-A), including an Exception Level 3 (EL3)
+      Secure Monitor. This variable enables the generation of a U-Boot FIT image
+      with an Trusted Firmware-A (TF-A) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9964

Quoted 7 lines
documentation/ref-manual/variables.rst +7 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
+
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
+      Specifies the path to the Trusted Firmware-A (TF-A) image. Its default

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9969

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      value is "bl31.bin"::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
+
+      It is estimated that the image is placed in U-Boot's :term:`B` directory.

Maybe reword to:

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

   UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9975

Quoted 6 lines
documentation/ref-manual/variables.rst +6 -0
+      Users can specify an alternative location for the image, for example
+      using :term:`DEPLOY_DIR_IMAGE`::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"
+
+      If the Trusted Firmware-A (TF-A) image is built in a separate recipe, you

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9976

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      must add the necessary dependency in the U-boot ``.bbappend`` file. The

s/the U-boot/a U-Boot/

(note the capitalization of B above).

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9977

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      recipe name for Trusted Firmware-A (TF-A) image is ``trusted-firmware-a``

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9979

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      , which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::

s;meta-arm <https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm </meta-arm>;

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9990

Quoted 11 lines
documentation/ref-manual/variables.rst +11 -0
+
+         do_compile[depends] += "trusted-firmware-a:do_deploy"
+
+   :term:`UBOOT_FIT_CONF_USER_LOADABLES`
+      Adds one or more user-defined images to the ``loadables`` property of the
+      configuration node of the U-Boot Image Tree Source (ITS). It should be a
+      comma-separated list of strings and each string needs to be surrounded by
+      quotes too, e.g.::
+
+         UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
+

Question: do the quotes need to be escaped like in the example? or can we have:

UBOOT_FIT_CONF_USER_LOADABLES = '"fwa", "fwb"'

?

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10043

Quoted 12 lines
documentation/ref-manual/variables.rst +5 -0
     :term:`UBOOT_FIT_DESC`
        Specifies the description string encoded into a U-Boot fitImage. The default
        value is set by the :ref:`ref-classes-uboot-sign` class as follows::
@@ -9997,6 +10036,104 @@ system and gives an overview of their function and contents.
        of bits. The default value for this variable is set to "2048"
        by the :ref:`ref-classes-uboot-sign` class.
 
+   :term:`UBOOT_FIT_TEE`
+      A Trusted Execution Environment (TEE) is a secure environment for
+      executing code, ensuring high levels of trust in asset management within
+      the surrounding system. This variable enables the generation of a U-Boot
+      FIT image with a Trusted Execution Environment (TEE) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10050

Quoted 7 lines
documentation/ref-manual/variables.rst +7 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_TEE = "1"
+
+   :term:`UBOOT_FIT_TEE_IMAGE`
+      Specifies the path to the Trusted Execution Environment (TEE) image. Its

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10055

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      default value is "tee-raw.bin"::
+
+         UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
+
+      It is estimated that the image is placed in U-Boot's :term:`B` directory.

Maybe reword to:

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

   UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10061

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      Users can specify an alternative location for the image, for example> +      using :term:`DEPLOY_DIR_IMAGE`::
+
+         UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
+
+      If the Trusted Execution Environment (TEE) image is built in a separate

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10062

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      recipe, you must add the necessary dependency in the U-boot ``.bbappend``

s/the U-boot/a U-Boot/

(note the capitalization of B above).

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10065

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+      file. The recipe name for Trusted Execution Environment (TEE) image is
+      ``optee-os``, which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::

s;meta-arm <https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm </meta-arm>;

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10074

Quoted 9 lines
documentation/ref-manual/variables.rst +9 -0
+
+         do_compile[depends] += "optee-os:do_deploy"
+
+   :term:`UBOOT_FIT_USER_SETTINGS`
+      Add a user-specific snippet to the U-Boot Image Tree Source (ITS). This
+      variable allows the user to add one or more user-defined ``/images`` node
+      to the U-Boot Image Tree Source (ITS). For more details, please refer to
+      https://fitspec.osfw.foundation/.
+

Since there'll be a v6, can you check this link actually works? I have some vague recollection the dot may be part of the URL. You may want to do

https://fitspec.osfw.foundation/\ .

instead?

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10075

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      The original contents of the U-Boot Image Tree Source (ITS) are as

s/contents[...] are/content[...] is/

Quoted 25 lines
documentation/ref-manual/variables.rst +25 -0
+      follows::
+
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+         };
+
+      Users can include their custom ITS snippet in this variable, e.g.::
+
+         UBOOT_FIT_FWA_ITS = '\
+             fwa {\n\
+                 description = \"FW A\";\n\
+                 data = /incbin/(\"fwa.bin\");\n\
+                 type = \"firmware\";\n\
+                 arch = \"\";\n\
+                 os = \"\";\n\
+                 load = <0xb2000000>;\n\

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10110

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+                 entry = <0xb2000000>;\n\
+                 compression = \"none\";\n\
+             };\n\
+         '
+
+         UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
+
+      Newlines are stripped, and if they need to be included, they must be
+      explicitly added using ``\n``.
+

Please specify the quotes need to be escaped too?

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10113

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+      The generated contents of the U-Boot Image Tree Source (ITS) are as
+      follows::
+

s/contents[...] are/content[...] is/

Quoted 13 lines
documentation/ref-manual/variables.rst +13 -0
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+             fwa {
+                 description = "FW A";

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10136

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+                 data = /incbin/("fwa.bin");
+                 type = "firmware";
+                 arch = "";
+                 os = "";
+                 load = <0xb2000000>;
+                 entry = <0xb2000000>;
+                 compression = "none";
+             };
+         };
+

Looks good otherwise!

Cheers,
Quentin

author
#3 lore raw

Hi Quentin,

Quoted 142 lines

Subject: Re: [docs] [PATCH v5] ref-manual: uboot-sign: Add how to enable ATF, TEE and User defined snippet ITS for U-Boot FIT image

Hi Jamin,

I think we're almost there now!

Quoted 1 line · Jamin Lin via lists.yoctoproject.org

Add how to enable ATF, TEE and User defined ITS for U-Boot FIT image

generation.

Quoted 5 lines
---
  documentation/ref-manual/classes.rst   |  14 +++
  documentation/ref-manual/variables.rst | 137

+++++++++++++++++++++++++

documentation/ref-manual/classes.rst The variables used by this class are: · line 3401

Quoted 9 lines
  2 files changed, 151 insertions(+)
documentation/ref-manual/classes.rst +0 -0
index b93279ff6..4b02daa58 100644
@@ -3401,6 +3401,20 @@ The variables used by this class are:
  -  :term:`UBOOT_FITIMAGE_ENABLE`: enable the generation of a U-Boot

FIT image.

documentation/ref-manual/classes.rst The variables used by this class are: · line 3402

Quoted 1 line
documentation/ref-manual/classes.rst +0 -0
  -  :term:`UBOOT_MKIMAGE_DTCOPTS`: DTC options for U-Boot

``mkimage`` when

documentation/ref-manual/classes.rst The variables used by this class are: · line 3404

Quoted 2 lines
documentation/ref-manual/classes.rst +1 -0
     rebuilding the FIT image containing the kernel.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`: include the Trusted

Firmware-A (TF-A)

documentation/ref-manual/classes.rst The variables used by this class are: · line 3406

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   image in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`: specifies the

path to the

documentation/ref-manual/classes.rst The variables used by this class are: · line 3407

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+   Trusted Firmware-A (TF-A) image.

s/image/binary/

documentation/ref-manual/classes.rst The variables used by this class are: · line 3408

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+-  :term:`UBOOT_FIT_TEE`: include the Trusted Execution Environment

(TEE) image

documentation/ref-manual/classes.rst The variables used by this class are: · line 3410

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   in the U-Boot FIT image.
+-  :term:`UBOOT_FIT_TEE_IMAGE`: specifies the path to the Trusted

Execution

documentation/ref-manual/classes.rst The variables used by this class are: · line 3411

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+   Environment (TEE) image.

s/image/binary/

documentation/ref-manual/classes.rst The variables used by this class are: · line 3412

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+-  :term:`UBOOT_FIT_USER_SETTINGS`: adds a user-specific snippet to the

ITS.

documentation/ref-manual/classes.rst The variables used by this class are: · line 3414

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   Users can include their custom ITS snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more

user-defined images

documentation/ref-manual/classes.rst The variables used by this class are: · line 3416

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   to the loadables property of the configuration node. It should be
+a

s/loadables/``loadables``/

documentation/ref-manual/classes.rst The variables used by this class are: · line 3417

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+   comma-separated list of strings and each string needs to be surrounded

by

documentation/ref-manual/variables.rst system and gives an overview of their function

Quoted 11 lines
documentation/ref-manual/classes.rst +1 -0
+   quotes too.
 
  See U-Boot's documentation for details about `verified boot

<https://source.denx.de/u-boot/u-boot/-/blob/master/doc/uImage.FIT/ver
ified-boot.txt>`__ diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 861b04eaa..376782508 100644

documentation/ref-manual/variables.rst +0 -0
@@ -9949,6 +9949,45 @@ system and gives an overview of their function

and contents.

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9949

Quoted 2 lines
documentation/ref-manual/variables.rst +0 -0
        See `more details about #address-cells

<https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9951

Quoted 3 lines
documentation/ref-manual/variables.rst +2 -0
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
+      `Trusted Firmware-A (TF-A)

<https://www.trustedfirmware.org/projects/tf-a>`__

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9952

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      is a reference implementation of secure world software for Arm

A-Profile

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9953

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      architectures (Armv8-A and Armv7-A), including an Exception Level

3 (EL3)

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9954

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      Secure Monitor. This variable enables the generation of a U-Boot FIT

image

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9957

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      with an Trusted Firmware-A (TF-A) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 8 lines
documentation/ref-manual/variables.rst +8 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
+
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
+      Specifies the path to the Trusted Firmware-A (TF-A) image. Its
+ default

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      value is "bl31.bin"::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
+
+      It is estimated that the image is placed in U-Boot's :term:`B`

directory.

Maybe reword to:

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?=
"${DEPLOY_DIR_IMAGE}/bl31.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 4 lines
documentation/ref-manual/variables.rst +4 -0
+      Users can specify an alternative location for the image, for example
+      using :term:`DEPLOY_DIR_IMAGE`::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?=

"${DEPLOY_DIR_IMAGE}/bl31.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9975

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+
+      If the Trusted Firmware-A (TF-A) image is built in a separate
+ recipe, you

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9977

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      must add the necessary dependency in the U-boot ``.bbappend``
+ file. The

s/the U-boot/a U-Boot/

(note the capitalization of B above).

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9979

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      recipe name for Trusted Firmware-A (TF-A) image is
+ ``trusted-firmware-a``

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9979

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      , which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::
Quoted 7 lines

s;`meta-arm
<https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm
</meta-arm>`;

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

I don't understand it, could you please describe it more detail?

Quoted 18 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+
+         do_compile[depends] += "trusted-firmware-a:do_deploy"
+
+   :term:`UBOOT_FIT_CONF_USER_LOADABLES`
+      Adds one or more user-defined images to the ``loadables`` property

of the

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9987

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      configuration node of the U-Boot Image Tree Source (ITS). It should

be a

documentation/ref-manual/variables.rst system and gives an overview of their function · line 9988

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      comma-separated list of strings and each string needs to be

surrounded by

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9990

Quoted 4 lines
documentation/ref-manual/variables.rst +4 -0
+      quotes too, e.g.::
+
+         UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
+

Question: do the quotes need to be escaped like in the example? or can we have:

Quoted 4 lines

UBOOT_FIT_CONF_USER_LOADABLES = '"fwa", "fwb"'

?

We need to add (\). If we add '"fwa", "fwb"', the generated ITS file appears as follows:

```loadables = "atf", "tee", fwa, fwb;  
```

The quotation marks (") are missing in the generated ITS file, which causes a build failure

Quoted 130 lines

documentation/ref-manual/variables.rst system and gives an overview of their function

Quoted 2 lines
documentation/ref-manual/variables.rst +0 -0
     :term:`UBOOT_FIT_DESC`
        Specifies the description string encoded into a U-Boot fitImage.

The default

documentation/ref-manual/variables.rst system and gives an overview of their function

Quoted 2 lines

value is set by the :ref:ref-classes-uboot-sign class as follows::

documentation/ref-manual/variables.rst +0 -0
@@ -9997,6 +10036,104 @@ system and gives an overview of their function

and contents.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 6 lines
documentation/ref-manual/variables.rst +3 -0
        of bits. The default value for this variable is set to "2048"
        by the :ref:`ref-classes-uboot-sign` class.
 
+   :term:`UBOOT_FIT_TEE`
+      A Trusted Execution Environment (TEE) is a secure environment for
+      executing code, ensuring high levels of trust in asset management

within

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10042

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      the surrounding system. This variable enables the generation of a

U-Boot

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10043

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      FIT image with a Trusted Execution Environment (TEE) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 8 lines
documentation/ref-manual/variables.rst +8 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_TEE = "1"
+
+   :term:`UBOOT_FIT_TEE_IMAGE`
+      Specifies the path to the Trusted Execution Environment (TEE)
+ image. Its

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+      default value is "tee-raw.bin"::
+
+         UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
+
+      It is estimated that the image is placed in U-Boot's :term:`B`

directory.

Maybe reword to:

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

    UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10057

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      Users can specify an alternative location for the image, for

example> + using :term:DEPLOY_DIR_IMAGE::

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10059

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+
+         UBOOT_FIT_TEE_IMAGE ?=

"${DEPLOY_DIR_IMAGE}/tee-raw.bin"

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10062

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+
+      If the Trusted Execution Environment (TEE) image is built in a
+ separate

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10064

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      recipe, you must add the necessary dependency in the U-boot
+ ``.bbappend``

s/the U-boot/a U-Boot/

(note the capitalization of B above).

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10065

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      file. The recipe name for Trusted Execution Environment (TEE)

image is

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10065

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      ``optee-os``, which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::

s;`meta-arm
<https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm
</meta-arm>`;

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+
+         do_compile[depends] += "optee-os:do_deploy"
+
+   :term:`UBOOT_FIT_USER_SETTINGS`
+      Add a user-specific snippet to the U-Boot Image Tree Source (ITS).

This

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10073

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      variable allows the user to add one or more user-defined

``/images`` node

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10074

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      to the U-Boot Image Tree Source (ITS). For more details, please refer

to

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10076

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      https://fitspec.osfw.foundation/.
+

Since there'll be a v6, can you check this link actually works? I have some vague recollection the dot may be part of the URL. You may want to do

https://fitspec.osfw.foundation/\ .

instead?

documentation/ref-manual/variables.rst system and gives an overview of their function · line 10078

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      The original contents of the U-Boot Image Tree Source (ITS) are
+ as

s/contents[...] are/content[...] is/

Quoted 29 lines
documentation/ref-manual/variables.rst +29 -0
+      follows::
+
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+         };
+
+      Users can include their custom ITS snippet in this variable, e.g.::
+
+         UBOOT_FIT_FWA_ITS = '\
+             fwa {\n\
+                 description = \"FW A\";\n\
+                 data = /incbin/(\"fwa.bin\");\n\
+                 type = \"firmware\";\n\
+                 arch = \"\";\n\
+                 os = \"\";\n\
+                 load = <0xb2000000>;\n\
+                 entry = <0xb2000000>;\n\
+                 compression = \"none\";\n\
+             };\n\
+         '
Quoted 9 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10110

Quoted 6 lines
documentation/ref-manual/variables.rst +6 -0
+
+         UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
+
+      Newlines are stripped, and if they need to be included, they must be
+      explicitly added using ``\n``.
+

Please specify the quotes need to be escaped too?

We need to add (\).
If we do not add (\), the quotation marks (") are missing in the generated ITS file, which causes a build failure.

Quoted 30 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10113

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+      The generated contents of the U-Boot Image Tree Source (ITS) are as
+      follows::
+

s/contents[...] are/content[...] is/

Quoted 13 lines
documentation/ref-manual/variables.rst +13 -0
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+             fwa {
+                 description = "FW A";

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10136

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+                 data = /incbin/("fwa.bin");
+                 type = "firmware";
+                 arch = "";
+                 os = "";
+                 load = <0xb2000000>;
+                 entry = <0xb2000000>;
+                 compression = "none";
+             };
+         };
+
Quoted 2 lines

Looks good otherwise!

Thanks for review and suggestions.
Jamin

Quoted 2 lines

Cheers,
Quentin

author
#4 lore raw

Hi Quentin,

Quoted 161 lines

Subject: RE: [docs] [PATCH v5] ref-manual: uboot-sign: Add how to enable ATF, TEE and User defined snippet ITS for U-Boot FIT image

Hi Quentin,

Quoted 117 lines

Subject: Re: [docs] [PATCH v5] ref-manual: uboot-sign: Add how to enable ATF, TEE and User defined snippet ITS for U-Boot FIT image

Hi Jamin,

I think we're almost there now!

Quoted 1 line · Jamin Lin via lists.yoctoproject.org

Add how to enable ATF, TEE and User defined ITS for U-Boot FIT image

generation.

Quoted 5 lines
---
  documentation/ref-manual/classes.rst   |  14 +++
  documentation/ref-manual/variables.rst | 137

+++++++++++++++++++++++++

Quoted 10 lines
  2 files changed, 151 insertions(+)
documentation/ref-manual/classes.rst +0 -0
index b93279ff6..4b02daa58 100644
@@ -3401,6 +3401,20 @@ The variables used by this class are:
  -  :term:`UBOOT_FITIMAGE_ENABLE`: enable the generation of a

U-Boot

FIT image.

Quoted 1 line

- :term:UBOOT_MKIMAGE_DTCOPTS: DTC options for U-Boot

``mkimage`` when

Quoted 2 lines

rebuilding the FIT image containing the kernel.
+- :term:UBOOT_FIT_ARM_TRUSTED_FIRMWARE: include the Trusted

Firmware-A (TF-A)

Quoted 2 lines

+ image in the U-Boot FIT image.
+- :term:UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE: specifies the

path to the

Quoted 1 line

+ Trusted Firmware-A (TF-A) image.

s/image/binary/

Quoted 1 line

+- :term:UBOOT_FIT_TEE: include the Trusted Execution Environment

(TEE) image

Quoted 2 lines

+ in the U-Boot FIT image.
+- :term:UBOOT_FIT_TEE_IMAGE: specifies the path to the Trusted

Execution

Quoted 1 line

+ Environment (TEE) image.

s/image/binary/

Quoted 2 lines

+- :term:UBOOT_FIT_USER_SETTINGS: adds a user-specific snippet to +the

ITS.

Quoted 2 lines

+ Users can include their custom ITS snippet in this variable.
+- :term:UBOOT_FIT_CONF_USER_LOADABLES: adds one or more

user-defined images

documentation/ref-manual/classes.rst

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   to the loadables property of the configuration node. It should
+be a

s/loadables/``loadables``/

Quoted 2 lines

+ comma-separated list of strings and each string needs to be
+ surrounded

by

Quoted 12 lines

+ quotes too.

See U-Boot's documentation for details about `verified boot

<https://source.denx.de/u-boot/u-boot/-/blob/master/doc/uImage.FIT/v
er ified-boot.txt>`__ diff --git
a/documentation/ref-manual/variables.rst
b/documentation/ref-manual/variables.rst
index 861b04eaa..376782508 100644

documentation/ref-manual/variables.rst +0 -0
@@ -9949,6 +9949,45 @@ system and gives an overview of their
Quoted 1 line

function

and contents.

Quoted 2 lines

See `more details about #address-cells

<https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.

documentation/ref-manual/variables.rst

Quoted 3 lines
documentation/ref-manual/variables.rst +2 -0
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
+      `Trusted Firmware-A (TF-A)

<https://www.trustedfirmware.org/projects/tf-a>`__

Quoted 2 lines

+ is a reference implementation of secure world software for
+ Arm

A-Profile

Quoted 2 lines

+ architectures (Armv8-A and Armv7-A), including an Exception
+ Level

3 (EL3)

Quoted 2 lines

+ Secure Monitor. This variable enables the generation of a
+ U-Boot FIT

image

Quoted 1 line

+ with an Trusted Firmware-A (TF-A) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 8 lines
documentation/ref-manual/variables.rst +8 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
+
+   :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
+      Specifies the path to the Trusted Firmware-A (TF-A) image.
+ Its default

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 6 lines
documentation/ref-manual/variables.rst +6 -0
+      value is "bl31.bin"::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
+
+      It is estimated that the image is placed in U-Boot's
+ :term:`B`

directory.

Maybe reword to:

Quoted 9 lines

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?=
"${DEPLOY_DIR_IMAGE}/bl31.bin"

Quoted 1 line

+ Users can specify an alternative location for the image, for

example

Quoted 29 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+      using :term:`DEPLOY_DIR_IMAGE`::
+
+         UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?=

"${DEPLOY_DIR_IMAGE}/bl31.bin"

documentation/ref-manual/variables.rst

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+
+      If the Trusted Firmware-A (TF-A) image is built in a separate
+ recipe, you

s/image/binary/

Quoted 2 lines

+ must add the necessary dependency in the U-boot ``.bbappend``
+ file. The

s/the U-boot/a U-Boot/

(note the capitalization of B above).

Quoted 2 lines

+ recipe name for Trusted Firmware-A (TF-A) image is
+ ``trusted-firmware-a``

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9979

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      , which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::

s;`meta-arm
<https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm
</meta-arm>`;

Quoted 7 lines
Quoted 3 lines

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

I don't understand it, could you please describe it more detail?

Please ignore this question.
This syntax works, :yocto_git:meta-arm</meta-arm>

Quoted 25 lines
Quoted 20 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+         do_compile[depends] += "trusted-firmware-a:do_deploy"
+
+   :term:`UBOOT_FIT_CONF_USER_LOADABLES`
+      Adds one or more user-defined images to the ``loadables``
+ property

of the

Quoted 2 lines

+ configuration node of the U-Boot Image Tree Source (ITS). It
+ should

be a

Quoted 1 line

+ comma-separated list of strings and each string needs to be

surrounded by

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9990

Quoted 4 lines
documentation/ref-manual/variables.rst +4 -0
+      quotes too, e.g.::
+
+         UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
+

Question: do the quotes need to be escaped like in the example? or can we
have:

Quoted 4 lines

UBOOT_FIT_CONF_USER_LOADABLES = '"fwa", "fwb"'

?

Quoted 87 lines

We need to add (\). If we add '"fwa", "fwb"', the generated ITS file appears as follows:
```loadables = "atf", "tee", fwa, fwb; ```

The quotation marks (") are missing in the generated ITS file, which causes a build failure

Quoted 80 lines
Quoted 2 lines

:term:UBOOT_FIT_DESC
Specifies the description string encoded into a U-Boot fitImage.

The default

Quoted 3 lines

value is set by the :ref:ref-classes-uboot-sign class as follows::

documentation/ref-manual/variables.rst +0 -0
@@ -9997,6 +10036,104 @@ system and gives an overview of their

function

and contents.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 7 lines

of bits. The default value for this variable is set to "2048" by the :ref:ref-classes-uboot-sign class.

documentation/ref-manual/variables.rst +4 -0
+   :term:`UBOOT_FIT_TEE`
+      A Trusted Execution Environment (TEE) is a secure environment for
+      executing code, ensuring high levels of trust in asset
+ management

within

Quoted 2 lines

+ the surrounding system. This variable enables the generation
+ of a

U-Boot

Quoted 1 line

+ FIT image with a Trusted Execution Environment (TEE) image.

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 8 lines
documentation/ref-manual/variables.rst +8 -0
+
+      Its default value is "0", so set it to "1" to enable this functionality::
+
+         UBOOT_FIT_TEE = "1"
+
+   :term:`UBOOT_FIT_TEE_IMAGE`
+      Specifies the path to the Trusted Execution Environment (TEE)
+ image. Its

s/image/binary/

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 6 lines
documentation/ref-manual/variables.rst +6 -0
+      default value is "tee-raw.bin"::
+
+         UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
+
+      It is estimated that the image is placed in U-Boot's
+ :term:`B`

directory.

Maybe reword to:

If a relative path is provided, the file is expected to be relative to U-Boot's :term:B directory.

An absolute path can be provided too, e.g.::

    UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
Quoted 1 line

+ Users can specify an alternative location for the image, for

example> + using :term:DEPLOY_DIR_IMAGE::

documentation/ref-manual/variables.rst

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+
+         UBOOT_FIT_TEE_IMAGE ?=

"${DEPLOY_DIR_IMAGE}/tee-raw.bin"

documentation/ref-manual/variables.rst

Quoted 3 lines
documentation/ref-manual/variables.rst +3 -0
+
+      If the Trusted Execution Environment (TEE) image is built in
+ a separate

s/image/binary/

Quoted 2 lines

+ recipe, you must add the necessary dependency in the U-boot
+ ``.bbappend``

s/the U-boot/a U-Boot/

(note the capitalization of B above).

Quoted 1 line

+ file. The recipe name for Trusted Execution Environment (TEE)

image is

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10065

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      ``optee-os``, which comes from the
+      `meta-arm <https://git.yoctoproject.org/meta-arm/>`__ layer::

s;`meta-arm
<https://git.yoctoproject.org/meta-arm/>__;:yocto_git:meta-arm
</meta-arm>`;

Please check this works, I'm not entirely sure about the syntax anymore, but please use :yocto_git: here.

Added

Quoted 14 lines
Quoted 14 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 5 lines
documentation/ref-manual/variables.rst +5 -0
+
+         do_compile[depends] += "optee-os:do_deploy"
+
+   :term:`UBOOT_FIT_USER_SETTINGS`
+      Add a user-specific snippet to the U-Boot Image Tree Source (ITS).

This

Quoted 1 line

+ variable allows the user to add one or more user-defined

``/images`` node

Quoted 2 lines

+ to the U-Boot Image Tree Source (ITS). For more details,
+ please refer

to

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      https://fitspec.osfw.foundation/.
+
Quoted 7 lines
Quoted 7 lines

Since there'll be a v6, can you check this link actually works? I have some vague recollection the dot may be part of the URL. You may want to do

https://fitspec.osfw.foundation/\ .

instead?

Fixed

Quoted 46 lines
Quoted 31 lines
Quoted 3 lines

+ The original contents of the U-Boot Image Tree Source (ITS)
+ are as

s/contents[...] are/content[...] is/

Quoted 25 lines
documentation/ref-manual/variables.rst +25 -0
+      follows::
+
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+         };
+
+      Users can include their custom ITS snippet in this variable, e.g.::
+
+         UBOOT_FIT_FWA_ITS = '\
+             fwa {\n\
+                 description = \"FW A\";\n\
+                 data = /incbin/(\"fwa.bin\");\n\
+                 type = \"firmware\";\n\
+                 arch = \"\";\n\
+                 os = \"\";\n\
+                 load = <0xb2000000>;\n\
Quoted 8 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents.

Quoted 8 lines
documentation/ref-manual/variables.rst +8 -0
+                 entry = <0xb2000000>;\n\
+                 compression = \"none\";\n\
+             };\n\
+         '
+
+         UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
+
+      Newlines are stripped, and if they need to be included, they must

be

Quoted 5 lines

documentation/ref-manual/variables.rst

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      explicitly added using ``\n``.
+

Please specify the quotes need to be escaped too?

Quoted 37 lines

We need to add (\).
If we do not add (\), the quotation marks (") are missing in the generated ITS file, which causes a build failure.

Quoted 1 line
Quoted 1 line

+ The generated contents of the U-Boot Image Tree Source (ITS) are

as

Quoted 31 lines

documentation/ref-manual/variables.rst

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      follows::
+

s/contents[...] are/content[...] is/

Quoted 13 lines
documentation/ref-manual/variables.rst +13 -0
+         images {
+             uboot {
+                 description = "U-Boot image";
+                 data = /incbin/("u-boot-nodtb.bin");
+                 type = "standalone";
+                 os = "u-boot";
+                 arch = "";
+                 compression = "none";
+                 load = <0x80000000>;
+                 entry = <0x80000000>;
+             };
+             fwa {
+                 description = "FW A";

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 10136

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+                 data = /incbin/("fwa.bin");
+                 type = "firmware";
+                 arch = "";
+                 os = "";
+                 load = <0xb2000000>;
+                 entry = <0xb2000000>;
+                 compression = "none";
+             };
+         };
+

Looks good otherwise!

I resend v6 patch here, https://patchwork.yoctoproject.org/project/docs/patch/[email protected]/

Thanks-Jamin

Quoted 4 lines

Thanks for review and suggestions.
Jamin

Quoted 2 lines

Cheers,
Quentin