Skip to contentSkip to conversation

ref-manual: uboot-sign: Support firmware property in FIT config

PATCH Applied Jamin Lin 2 participants 3 messages May 26, 2025 – May 27, 2025

lore
Share & tools
lore

Jamin Lin

author
#0 lore raw

PATCH v3 1/1 ref-manual: uboot-sign: Support firmware property in FIT config

Add documentation for the UBOOT_FIT_CONF_FIRMWARE variable, which allows users to specify an image to be assigned to the "firmware" property of the FIT configuration node. This explicitly defines the primary image to boot, instead of relying on the first entry in the "loadables" list.

---
 documentation/ref-manual/classes.rst   | 2 ++
 documentation/ref-manual/variables.rst | 7 +++++++
 2 files changed, 9 insertions(+)
documentation/ref-manual/classes.rst +2 -0
index 5187033f7..54a98bf24 100644
@@ -3426,6 +3426,8 @@ The variables used by this class are:
 -  :term:`UBOOT_FIT_USER_SETTINGS`: adds a user-specific snippet to the U-Boot
    Image Tree Source (ITS). Users can include their custom U-Boot Image Tree
    Source (ITS) snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_FIRMWARE`: adds one image to the ``firmware`` property
+   of the configuration node.
 -  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more user-defined images
    to the ``loadables`` property of the configuration node.
 
documentation/ref-manual/variables.rst +7 -0
index 643a3e7ae..36c61e48e 100644
@@ -10327,6 +10327,13 @@ system and gives an overview of their function and contents.
 
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Sets the firmware property to select the image to boot first::
+
+         UBOOT_FIT_CONF_FIRMWARE = "fwa"
+
+      If not set, the first entry in "loadables" is used to boot instead.
+
    :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). This variable
Signature · 1 line
2.43.0
#1 lore raw
Quoted 29 lines · Jamin Lin via lists.yoctoproject.org

Add documentation for the UBOOT_FIT_CONF_FIRMWARE variable, which allows users to specify an image to be assigned to the "firmware" property of the FIT configuration node. This explicitly defines the primary image to boot, instead of relying on the first entry in the "loadables" list.

---
 documentation/ref-manual/classes.rst   | 2 ++
 documentation/ref-manual/variables.rst | 7 +++++++
 2 files changed, 9 insertions(+)
documentation/ref-manual/classes.rst +2 -0
index 5187033f7..54a98bf24 100644
@@ -3426,6 +3426,8 @@ The variables used by this class are:
 -  :term:`UBOOT_FIT_USER_SETTINGS`: adds a user-specific snippet to the U-Boot
    Image Tree Source (ITS). Users can include their custom U-Boot Image Tree
    Source (ITS) snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_FIRMWARE`: adds one image to the ``firmware`` property
+   of the configuration node.
 -  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more user-defined images
    to the ``loadables`` property of the configuration node.
 
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..36c61e48e 100644

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

Quoted 9 lines
documentation/ref-manual/variables.rst +6 -0
@@ -10327,6 +10327,13 @@ system and gives an overview of their function and contents.
 
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Sets the firmware property to select the image to boot first::
+
+         UBOOT_FIT_CONF_FIRMWARE = "fwa"
+
+      If not set, the first entry in "loadables" is used to boot instead.

Thanks this looks good. I did not mean to remove the first sentence with my suggestion, though! But that is fine, I will add it manually, no need to send a v4.

Antonin

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

Add documentation for the UBOOT_FIT_CONF_FIRMWARE variable, which allows users to specify an image to be assigned to the "firmware" property of the FIT configuration node. This explicitly defines the primary image to boot, instead of relying on the first entry in the "loadables" list.

Applied, thanks!

[1/1] ref-manual: uboot-sign: Support firmware property in FIT config

      commit: f72fc69e2d2a074d5eaf1cc36b30726de58e3ab5

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>