arm: dts: iot2050: Allow verifying U-Boot proper by SPL
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 28 Feb 2023 18:19:15 +0000 (19:19 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 29 Mar 2023 15:58:26 +0000 (11:58 -0400)
Add hashes and configuration signature stubs to prepare verified boot
of main U-Boot by SPL.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/k3-am65-iot2050-boot-image.dtsi

index 3ee0842..9082a79 100644 (file)
@@ -14,6 +14,7 @@
                filename = "flash.bin";
                pad-byte = <0xff>;
                size = <0x8c0000>;
+               allow-repack;
 
                blob-ext@0x000000 {
                        offset = <0x000000>;
@@ -45,6 +46,9 @@
                                        entry = <0x80800000>;
                                        u-boot-nodtb {
                                        };
+                                       hash {
+                                               algo = "sha256";
+                                       };
                                };
 
                                @fdt-SEQ {
@@ -52,6 +56,9 @@
                                        type = "flat_dt";
                                        arch = "arm64";
                                        compression = "none";
+                                       hash {
+                                               algo = "sha256";
+                                       };
                                };
 
 #ifdef CONFIG_WDT_K3_RTI_FW_FILE
@@ -64,6 +71,9 @@
                                                filename = CONFIG_WDT_K3_RTI_FW_FILE;
                                                missing-msg = "k3-rti-wdt-firmware";
                                        };
+                                       hash {
+                                               algo = "sha256";
+                                       };
                                };
 #endif
                        };
 #ifdef CONFIG_WDT_K3_RTI_FW_FILE
                                        loadables = "k3-rti-wdt-firmware";
 #endif
+                                       signature {
+                                               sign-images = "firmware", "fdt", "loadables";
+                                       };
                                };
                        };
                };
 
+               fdtmap {
+               };
+
                /* primary env */
                fill@0x680000 {
                        offset = <0x680000>;