ref-manual: improve description of kernel-fitimage variables
PATCH 1/2 ref-manual: improve description of kernel-fitimage variables
From: Michael Opdenacker <[email protected]>
- Mentioning that they are related to this class
(for further information about their usage)
- Replace "fitImage" by "FIT image"
- Minor formating and style fixes
--- documentation/ref-manual/classes.rst | 4 +- documentation/ref-manual/variables.rst | 105 ++++++++++++++++--------- 2 files changed, 68 insertions(+), 41 deletions(-)
documentation/ref-manual/classes.rst +2 -2
@@ -1582,13 +1582,13 @@ The :ref:`ref-classes-kernel-devicetree` class, which is inherited by the =================== The :ref:`ref-classes-kernel-fitimage` class provides support to pack a kernel image, -device trees, a U-boot script, a :term:`Initramfs` bundle and a RAM disk +device trees, a U-boot script, an :term:`Initramfs` bundle and a RAM disk into a single FIT image. In theory, a FIT image can support any number of kernels, U-boot scripts, :term:`Initramfs` bundles, RAM disks and device-trees. However, :ref:`ref-classes-kernel-fitimage` currently only supports limited usecases: just one kernel image, an optional U-boot script, an optional :term:`Initramfs` bundle, an optional RAM disk, and any number of -device tree. +device trees. To create a FIT image, it is required that :term:`KERNEL_CLASSES` is set to include ":ref:`ref-classes-kernel-fitimage`" and :term:`KERNEL_IMAGETYPE`
documentation/ref-manual/variables.rst +66 -39
181 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 2/2 ref-manual: document uboot-sign class and variables
From: Michael Opdenacker <[email protected]>
--- documentation/ref-manual/classes.rst | 39 ++++++++ documentation/ref-manual/variables.rst | 121 ++++++++++++++++++++++++- 2 files changed, 155 insertions(+), 5 deletions(-)
documentation/ref-manual/classes.rst +39 -0
@@ -3178,6 +3178,45 @@ You can also specify the machine using this method:: See the :term:`UBOOT_CONFIG` and :term:`UBOOT_MACHINE` variables for additional information. +.. _ref-classes-uboot-sign: + +``uboot-sign`` +============== + +The :ref:`ref-classes-uboot-sign` class provides support for U-Boot verified boot. +It is intended to be inherited from U-Boot recipes. + +Here are variables used by this class: + +- :term:`SPL_MKIMAGE_DTCOPTS`: DTC options for U-Boot ``mkimage`` when + building the FIT image. +- :term:`SPL_SIGN_ENABLE`: enable signing the FIT image. +- :term:`SPL_SIGN_KEYDIR`: directory containing the signing keys. +- :term:`SPL_SIGN_KEYNAME`: base filename of the signing keys. +- :term:`UBOOT_FIT_ADDRESS_CELLS`: ``#address-cells`` value for the FIT image. +- :term:`UBOOT_FIT_DESC`: description string encoded into the FIT image. +- :term:`UBOOT_FIT_GENERATE_KEYS`: allows to generate the keys + if they don't exist yet. +- :term:`UBOOT_FIT_HASH_ALG`: hash algorithm for the FIT image. +- :term:`UBOOT_FIT_KEY_GENRSA_ARGS`: ``openssl genrsa`` arguments. +- :term:`UBOOT_FIT_KEY_REQ_ARGS`: ``openssl req`` arguments. +- :term:`UBOOT_FIT_SIGN_ALG`: signature algorithm for the FIT image. +- :term:`UBOOT_FIT_SIGN_NUMBITS`: size of the private key for FIT image + signing. +- :term:`UBOOT_FIT_KEY_SIGN_PKCS`: format for the public key certificate + for FIT image signing. +- :term:`UBOOT_FITIMAGE_ENABLE`: enables 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. + +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>`__ +and the `signature process +<https://source.denx.de/u-boot/u-boot/-/blob/master/doc/uImage.FIT/signature.txt>`__. + +See also the description of :ref:`ref-classes-kernel-fitimage` class, which this class +imitates. + .. _ref-classes-uninative: ``uninative``
documentation/ref-manual/variables.rst +116 -5
145 lines not on this page · raw message
Signature · 1 line
2.34.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 2/2] ref-manual: document uboot-sign class and variables
Hi Sean,
Quoted 4 lines · Sean Anderson
Quoted 3 lines
+- :term:`UBOOT_FIT_GENERATE_KEYS`: allows to generate the keys + if they don't exist yet.Remove the "allows to"
Fixed, thanks
Quoted 11 lines
documentation/ref-manual/classes.rst You can also specify the machine using this method:: · line 3207
Quoted 9 lines
+- :term:`UBOOT_FIT_HASH_ALG`: hash algorithm for the FIT image. +- :term:`UBOOT_FIT_KEY_GENRSA_ARGS`: ``openssl genrsa`` arguments. +- :term:`UBOOT_FIT_KEY_REQ_ARGS`: ``openssl req`` arguments. +- :term:`UBOOT_FIT_SIGN_ALG`: signature algorithm for the FIT image. +- :term:`UBOOT_FIT_SIGN_NUMBITS`: size of the private key for FIT imagedocumentation/ref-manual/classes.rst +3
-0+ signing. +- :term:`UBOOT_FIT_KEY_SIGN_PKCS`: format for the public key certificate + for FIT image signing.Maybe "algorithm" instead of "format"? The format stays the same (a binary blob), but what's changing is the way the data is interpreted.
Sure, done.
Quoted 3 lines
Quoted 2 lines
+- :term:
UBOOT_FITIMAGE_ENABLE: enables the generation of a U-Boot FIT image.enables -> enable
Good catch. Thanks.
All these fixes are now in master-next.
Thanks again
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Sean,
Many thanks for the review!
Quoted 25 lines · Sean Anderson
Quoted 24 lines · On 5/11/23 12:11, [email protected] wrote:
[You don't often get email from [email protected]. Learn why this is important at https://cas5-0-urlprotect.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2faka.ms%2fLearnAboutSenderIdentification&umid=518cf34e-efd1-4968-94ed-83b8c8896b6c&auth=d807158c60b7d2502abde8a2fc01f40662980862-ebaf0a6579314efc58145c5fef613fa0b2d5e7d3 ]
From: Michael Opdenacker <[email protected]>
- Mentioning that they are related to this class
(for further information about their usage)
- Replace "fitImage" by "FIT image"
- Minor formating and style fixesSigned-off-by Michael Opdenacker <[email protected]>CC Jamin Lin <[email protected]>CC Sean Anderson <[email protected]>--- documentation/ref-manual/classes.rst | 4 +- documentation/ref-manual/variables.rst | 105 ++++++++++++++++--------- 2 files changed, 68 insertions(+), 41 deletions(-)documentation/ref-manual/classes.rst +0
-0@@ -1582,13 +1582,13 @@ The :ref:`ref-classes-kernel-devicetree` class, which is inherited by the ===================
Quoted 4 lines
documentation/ref-manual/classes.rst The :ref:`ref-classes-kernel-devicetree` class, which is inherited by the · line 1585
Quoted 3 lines
documentation/ref-manual/classes.rst +1
-1The :ref:`ref-classes-kernel-fitimage` class provides support to pack a kernel image, -device trees, a U-boot script, a :term:`Initramfs` bundle and a RAM disk +device trees, a U-boot script, an :term:`Initramfs` bundle and a RAM diskIf we're being pedantic, it's "U-Boot." All these variables should really be
U_BOOT_... too, but that ship has sailed.
Yes, things can be complicated to change once they have been deployed :|
Quoted 2 lines
Reviewed-by Sean Anderson <[email protected]>
Thanks again!
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com