Re: [PATCH v4 6/7] test: fit: cover mkimage load address overlap detection

Simon Glass <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <CAFLszTg=rQJweERV_TSZJ+11RUSTb7pnT4cJrBjX0BTWre=w9g@mail.gmail.com>
On 2026-07-31T00:13:34, Aristo Chen <[email protected]> wrote:
> test: fit: cover mkimage load address overlap detection
>
> Add a test that mkimage rejects a FIT image whose configuration
> references a kernel and an FDT with the same load address, and that
> the error message names the offending configuration and images.
>
> Also add a companion test for the intended escape hatch: two images
> may use the same load address as long as no single configuration
> references both of them. Only one configuration is selected at
> runtime, so such images never coexist in memory. This mirrors the TI
> K3 tispl layout after commit c85bf61b14f9 ("arm: k3: select tifsstub
> via board_fit_config_name_match"), where each security state has its
> own configuration and all tifsstub variants share one load address.
>
> Signed-off-by: Aristo Chen <[email protected]>
>
> test/py/tests/test_fit_mkimage_validate.py | 136 +++++++++++++++++++++++++++++
>  1 file changed, 136 insertions(+)

Reviewed-by: Simon Glass <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.