Skip to contentSkip to conversation

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

PATCH Superseded Jamin Lin 2 participants 5 messages May 20, 2025 – May 23, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Jamin Lin

author
#0 lore raw

PATCH 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 | 8 ++++++++
 2 files changed, 10 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 +8 -0
index 643a3e7ae..b430fa51f 100644
@@ -10327,6 +10327,14 @@ system and gives an overview of their function and contents.
 
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Adds one image to the ``firmware`` property of the configuration node
+      of the U-Boot Image Tree Source (ITS). Sets the firmware property to select
+      the image to boot first. If not set, the first entry in "loadables" is used
+      instead.::
+
+         UBOOT_FIT_CONF_FIRMWARE = "fwa"
+
    :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

Hi,

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 | 8 ++++++++
 2 files changed, 10 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..b430fa51f 100644

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

Quoted 8 lines
documentation/ref-manual/variables.rst +5 -0
@@ -10327,6 +10327,14 @@ system and gives an overview of their function and contents.
 
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Adds one image to the ``firmware`` property of the configuration node
+      of the U-Boot Image Tree Source (ITS). Sets the firmware property to select
+      the image to boot first. If not set, the first entry in "loadables" is used
+      instead.::

Extra "." here.

When you write:

"""
The first entry in "loadables" is used instead
"""

It's not really clear to me what it is used for.
Used to boot?

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

Quoted 6 lines
documentation/ref-manual/variables.rst +3 -0
+
+         UBOOT_FIT_CONF_FIRMWARE = "fwa"
+
    :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

Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw

Hi Antonin,

Quoted 49 lines

Subject: Re: [docs] [PATCH v1] ref-manual: uboot-sign: Support firmware property in FIT config

Hi,

Quoted 4 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.

Quoted 13 lines
---
 documentation/ref-manual/classes.rst   | 2 ++
 documentation/ref-manual/variables.rst | 8 ++++++++
 2 files changed, 10 insertions(+)
documentation/ref-manual/classes.rst +0 -0
index 5187033f7..54a98bf24 100644

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

Quoted 1 line
documentation/ref-manual/classes.rst +0 -0
@@ -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

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

Quoted 1 line
documentation/ref-manual/classes.rst +0 -0
    Image Tree Source (ITS). Users can include their custom U-Boot Image

Tree

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

Quoted 2 lines
documentation/ref-manual/classes.rst +1 -0
    Source (ITS) snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_FIRMWARE`: adds one image to the

``firmware`` property

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

Quoted 2 lines
documentation/ref-manual/classes.rst +1 -0
+   of the configuration node.
 -  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more

user-defined images

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

Quoted 8 lines
documentation/ref-manual/classes.rst +0 -0
    to the ``loadables`` property of the configuration node.
 
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..b430fa51f 100644
@@ -10327,6 +10327,14 @@ 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 5 lines
documentation/ref-manual/variables.rst +2 -0
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Adds one image to the ``firmware`` property of the configuration
Quoted 9 lines

node

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      of the U-Boot Image Tree Source (ITS). Sets the firmware property to

select

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      the image to boot first. If not set, the first entry in "loadables" is

used

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      instead.::

Extra "." here.

Will fix

Quoted 8 lines

When you write:

"""
The first entry in "loadables" is used instead """

It's not really clear to me what it is used for.
Used to boot?

Example:1

configurations {
        default = "conf";
        conf {
            firmware = "fwA";
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwA

Example:2

configurations {
        default = "conf";
        conf {
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwB

Example:3

configurations {
        default = "conf";
        conf {
            loadables = "fwA" "fwB", "fwC", "fwD";
        };
};

Boot fwA

Thanks-Jamin

Quoted 16 lines

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

Quoted 5 lines
documentation/ref-manual/variables.rst +3 -0
+
+         UBOOT_FIT_CONF_FIRMWARE = "fwa"
+
    :term:`UBOOT_FIT_CONF_USER_LOADABLES`
       Adds one or more user-defined images to the ``loadables`` property

of the

Quoted 2 lines
documentation/ref-manual/variables.rst +0 -0
       configuration node of the U-Boot Image Tree Source (ITS). This

variable

Antonin

--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#3 lore raw
Quoted 97 lines · Jamin Lin

Hi Antonin,

Quoted 49 lines

Subject: Re: [docs] [PATCH v1] ref-manual: uboot-sign: Support firmware property in FIT config

Hi,

Quoted 4 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.

Quoted 13 lines
---
 documentation/ref-manual/classes.rst   | 2 ++
 documentation/ref-manual/variables.rst | 8 ++++++++
 2 files changed, 10 insertions(+)
documentation/ref-manual/classes.rst +0 -0
index 5187033f7..54a98bf24 100644

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

Quoted 1 line
documentation/ref-manual/classes.rst +0 -0
@@ -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

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

Quoted 1 line
documentation/ref-manual/classes.rst +0 -0
    Image Tree Source (ITS). Users can include their custom U-Boot Image

Tree

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

Quoted 2 lines
documentation/ref-manual/classes.rst +1 -0
    Source (ITS) snippet in this variable.
+-  :term:`UBOOT_FIT_CONF_FIRMWARE`: adds one image to the

``firmware`` property

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

Quoted 2 lines
documentation/ref-manual/classes.rst +1 -0
+   of the configuration node.
 -  :term:`UBOOT_FIT_CONF_USER_LOADABLES`: adds one or more

user-defined images

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

Quoted 8 lines
documentation/ref-manual/classes.rst +0 -0
    to the ``loadables`` property of the configuration node.
 
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..b430fa51f 100644
@@ -10327,6 +10327,14 @@ 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 5 lines
documentation/ref-manual/variables.rst +2 -0
          do_compile[depends] += "trusted-firmware-a:do_deploy"
 
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Adds one image to the ``firmware`` property of the configuration
Quoted 9 lines

node

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      of the U-Boot Image Tree Source (ITS). Sets the firmware property to

select

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      the image to boot first. If not set, the first entry in "loadables" is

used

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      instead.::

Extra "." here.

Will fix

Quoted 8 lines

When you write:

"""
The first entry in "loadables" is used instead """

It's not really clear to me what it is used for.
Used to boot?

Example:1

configurations {
        default = "conf";
        conf {
            firmware = "fwA";
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwA

Example:2

configurations {
        default = "conf";
        conf {
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwB

Example:3

Quoted 8 lines
configurations {
        default = "conf";
        conf {
            loadables = "fwA" "fwB", "fwC", "fwD";
        };
};

Boot fwA

Thanks that clears things up! Can you modify the last sentence from:

"""
If not set, the first entry in "loadables" is used instead """

to

"""
If not set, the first entry in "loadables" is used to boot instead """

Thanks,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#4 lore raw

Hi Antonin

Quoted 121 lines

Subject: Re: [docs] [PATCH v1] ref-manual: uboot-sign: Support firmware property in FIT config

Quoted 11 lines · Jamin Lin

Hi Antonin,

Quoted 9 lines

Subject: Re: [docs] [PATCH v1] ref-manual: uboot-sign: Support firmware property in FIT config

Hi,

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

Add documentation for the UBOOT_FIT_CONF_FIRMWARE variable,

which

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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"

Quoted 90 lines
Quoted 45 lines

list.

Quoted 14 lines
---
 documentation/ref-manual/classes.rst   | 2 ++
 documentation/ref-manual/variables.rst | 8 ++++++++
 2 files changed, 10 insertions(+)
documentation/ref-manual/classes.rst +0 -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
Quoted 1 line

to the

U-Boot

Quoted 2 lines

Image Tree Source (ITS). Users can include their custom U-Boot
Image

Tree

Quoted 2 lines

Source (ITS) snippet in this variable.
+- :term:UBOOT_FIT_CONF_FIRMWARE: adds one image to the

``firmware`` property

Quoted 2 lines

+ of the configuration node.
- :term:UBOOT_FIT_CONF_USER_LOADABLES: adds one or more

user-defined images

Quoted 9 lines

to the ``loadables`` property of the configuration node.

documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..b430fa51f 100644
@@ -10327,6 +10327,14 @@ system and gives an overview of their

function

and contents.

documentation/ref-manual/variables.rst

Quoted 6 lines
          do_compile[depends] += "trusted-firmware-a:do_deploy"
documentation/ref-manual/variables.rst +3 -0
+   :term:`UBOOT_FIT_CONF_FIRMWARE`
+      Adds one image to the ``firmware`` property of the
+ configuration

node

Quoted 2 lines

+ of the U-Boot Image Tree Source (ITS). Sets the firmware
+ property to

Quoted 8 lines

select

Quoted 2 lines

+ the image to boot first. If not set, the first entry in
+ "loadables" is

used

Quoted 1 line

+ instead.::

Extra "." here.

Will fix

Quoted 8 lines

When you write:

"""
The first entry in "loadables" is used instead """

It's not really clear to me what it is used for.
Used to boot?

Example:1

configurations {
        default = "conf";
        conf {
            firmware = "fwA";
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwA

Example:2

configurations {
        default = "conf";
        conf {
            loadables = "fwB", "fwC", "fwD";
        };
};

Boot fwB

Example:3

Quoted 8 lines
configurations {
        default = "conf";
        conf {
            loadables = "fwA" "fwB", "fwC", "fwD";
        };
};

Boot fwA

Thanks that clears things up! Can you modify the last sentence from:

Quoted 8 lines

"""
If not set, the first entry in "loadables" is used instead """

to

"""
If not set, the first entry in "loadables" is used to boot instead """

Thanks for the review and suggestion.
I resend v2 here, https://patchwork.yoctoproject.org/project/docs/patch/[email protected]/

Thanks-Jamin

Quoted 7 lines

Thanks,
Antonin

--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com