]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sl28: generate FIT update image
authorMichael Walle <michael@walle.cc>
Wed, 29 Sep 2021 11:39:10 +0000 (13:39 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 09:13:24 +0000 (14:43 +0530)
Generate a FIT update image during build. The image will be called
"u-boot.update" and can be used to build an EFI UpdateCapsule or during
DFU mode. Although, the latter isn't supported because there is no USB
OTG driver yet.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi

index b3861ed98cf3a06a83c118202b036311adeeec25..a501cece6986b6c023492088c28f0f15eb7d151e 100644 (file)
        };
 
        binman: binman {
+               multiple-images;
+       };
+};
+
+&binman {
+       u_boot_rom: u-boot-rom {
                filename = "u-boot.rom";
                pad-byte = <0xff>;
 
        };
 };
 
+&binman {
+       u-boot-update {
+               filename = "u-boot.update";
+
+               fit {
+                       description = "FIT update image";
+
+                       images {
+                               u-boot-bin {
+                                       description = "U-Boot";
+                                       type = "firmware";
+                                       os = "u-boot";
+                                       arch = "arm";
+                                       compression = "none";
+                                       load = <0>; /* unused */
+
+                                       blob {
+                                               filename = "u-boot.rom";
+                                       };
+                               };
+                       };
+               };
+       };
+};
+
 #ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
 / {
        chosen {
 #endif
 
 #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
-&binman {
+&u_boot_rom {
        fit {
                images {
                        bl31 {
 #endif
 
 #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
-&binman {
+&u_boot_rom {
        fit {
                images {
                        bl32 {