[PATCH 1/1] tools: mkimage: validate image references in FIT configurations
Simon Glass
sjg at chromium.org
Wed May 14 21:44:51 CEST 2025
Hi,
On Tue, 13 May 2025 at 17:28, Quentin Schulz <quentin.schulz at cherry.de> wrote:
>
> Hi Aristo,
>
> On 5/5/25 12:08 PM, Aristo Chen wrote:
> > When parsing a FIT image source (ITS), mkimage does not currently check
> > whether the image names referenced in the /configurations section (e.g.
> > "kernel", "fdt", "ramdisk", "loadables") actually exist in the /images
> > node.
> >
> > This patch introduces a validation step during FIT import that iterates
> > over each configuration and verifies that all referenced image names are
> > defined under /images. If a missing image is detected, an appropriate
> > error is reported and mkimage exits with FDT_ERR_NOTFOUND.
> >
One option (for boards which use Binman) would be to put these sorts
of checks in there, since it might be easier to code? But having it in
mkimage as well seems reasonable to me.
Regards,
Simon
More information about the U-Boot
mailing list