[PATCH v2 0/3] mkimage: validate default configuration reference

Tom Rini trini at konsulko.com
Thu Jul 24 01:09:22 CEST 2025


On Tue, 15 Jul 2025 13:03:04 +0000, Aristo Chen wrote:

> This patch series introduces a validation step in `mkimage` to ensure that
> the `default` property under the `/configurations` node in a FIT image
> references a valid subnode. If the referenced node does not exist, mkimage
> now prints an error and fails early. This helps prevent runtime failures
> when U-Boot attempts to boot using an undefined configuration.
> 
> The first patch implements the validation logic in `fit_image.c`. The second
> patch fixes an invalid default configuration reference exposed by this new
> check in the `k3-am65-iot2050-boot-image.dtsi`. The final patch adds a test
> case to verify that mkimage correctly fails when an invalid default
> configuration is present in the ITS file.
> 
> [...]

Applied to u-boot/master, thanks!

[1/3] arm: k3-am65-iot2050: Fix invalid default configuration reference
      commit: f7b03695d46d7301fe78eed0fe8f8df9c08c33a4
[2/3] tools: fit_image: validate existence of default configuration node
      commit: edb4bf38688bb232ba0739585693aa94be5246f5
[3/3] test: fit: add test case for invalid default configuration reference
      commit: 93d09d3bd8ea941eff860443db2d8628cdbfe7e8
-- 
Tom




More information about the U-Boot mailing list