On 2026-07-21T15:21:05, Aristo Chen <[email protected]> wrote:
> binman: Fix FIT image overlap issues
>
> Several binman test fixtures describe FIT images whose configuration
> references both a u-boot firmware image loaded at address 0x0 with a
> size of 0x2e bytes and a split-elf atf image whose first segment is
> loaded at 0x10, so the two images overlap in memory. The upcoming
> mkimage load address overlap check refuses to build such images,
> which makes the tests that run these fixtures through mkimage fail.
>
> Move the u-boot load and entry addresses to 0x2000, clear of the atf
> segments taken from elf_sections.lds, in the fixtures used by
> testFitFirmwareLoadables, testFitSignSimple,
> testFitSignNoSignatureNodes, testFitSignEngineSimple,
> testFitSignEncryptEngine, testFitSignPKCS11Simple,
> testFitSignPKCS11Object, testFitSignMultipleKeyPaths and
> testKeyNameHintIsPathSimpleFit.
>
> Signed-off-by: Aristo Chen <[email protected]>
>
> tools/binman/test/fit/firmware_loadables.dts             | 4 ++--
>  tools/binman/test/fit/key_name_hint_dir_signature.dts    | 4 ++--
>  tools/binman/test/fit/signature.dts                      | 4 ++--
>  tools/binman/test/fit/signature_engine.dts               | 4 ++--
>  tools/binman/test/fit/signature_engine_encrypt.dts       | 4 ++--
>  tools/binman/test/fit/signature_engine_pkcs11.dts        | 4 ++--
>  tools/binman/test/fit/signature_engine_pkcs11_object.dts | 4 ++--
>  tools/binman/test/fit/signature_multi_key.dts            | 4 ++--
>  tools/binman/test/fit/signature_no_nodes.dts             | 4 ++--
>  9 files changed, 18 insertions(+), 18 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to