]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
binman: Fix FIT image overlap issues
authorAristo Chen <jj251510319013@gmail.com>
Sun, 14 Sep 2025 10:59:27 +0000 (10:59 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 23 Sep 2025 19:35:22 +0000 (13:35 -0600)
Fix three binman tests that has memory region overlap issue, the test
cases needed to be updated to use non-overlapping memory layouts.

* Tests fixed:
  - testFitFirmwareLoadables
  - testFitSignSimple
  - testFitSignNoSignatureNodes

* Changes made:
  Updated DTB test files to change U-Boot load addresses from 0x0 to
  0x2000 to avoid overlapping with ATF in the 0x10-0xfc range:
  - 276_fit_firmware_loadables.dts
  - 340_fit_signature.dts
  - 342_fit_signature.dts

An upcoming commit will validate if the memory region is overlapped

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
tools/binman/test/276_fit_firmware_loadables.dts
tools/binman/test/340_fit_signature.dts
tools/binman/test/342_fit_signature.dts

index 2f79cdc9bb88a57fd504242e1440d8644ecbcf2b..d344036a11aa6c8d8684d7117a676952a187ae5c 100644 (file)
@@ -19,8 +19,8 @@
                                        arch = "arm64";
                                        os = "u-boot";
                                        compression = "none";
-                                       load = <0x00000000>;
-                                       entry = <0x00000000>;
+                                       load = <0x00002000>;
+                                       entry = <0x00002000>;
 
                                        u-boot-nodtb {
                                        };
index 9dce62e52de9a62dfcb784b599f06c43b74f8bc3..1c25d52cba4b76dfe177142a9159d26ae6c49462 100644 (file)
@@ -20,8 +20,8 @@
                                        arch = "arm64";
                                        os = "u-boot";
                                        compression = "none";
-                                       load = <0x00000000>;
-                                       entry = <0x00000000>;
+                                       load = <0x00002000>;
+                                       entry = <0x00002000>;
 
                                        u-boot-nodtb {
                                        };
index 267105d0f684f6c0292a18a03fef517c665d6c23..2ac600b1c70c8ba8a8c36ad6e876a0764f86103d 100644 (file)
@@ -20,8 +20,8 @@
                                        arch = "arm64";
                                        os = "u-boot";
                                        compression = "none";
-                                       load = <0x00000000>;
-                                       entry = <0x00000000>;
+                                       load = <0x00002000>;
+                                       entry = <0x00002000>;
 
                                        u-boot-nodtb {
                                        };