[PATCH RFC 1/2] image: fit: allow IH_OS_OPENSBI in fit_image_load()

Simon Glass sjg at chromium.org
Tue Jun 23 16:47:22 CEST 2026


Hi Nikita,

On 2026-06-19T12:52:56, Nikita Shubin <nikita.shubin at maquefel.me> wrote:
> image: fit: allow IH_OS_OPENSBI in fit_image_load()
>
> Add IH_OS_OPENSBI to the list of supported OS types in the os_ok check
> so that FIT images containing an OpenSBI firmware can be loaded without
> error. Otherwise loading OpenSBI in full FIT Image is not possible.
>
> Signed-off-by: Nikita Shubin <nikita.shubin at maquefel.me>
>
> boot/image-fit.c | 1 +
>  1 file changed, 1 insertion(+)

> diff --git a/boot/image-fit.c b/boot/image-fit.c
> @@ -2258,6 +2258,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
>               fit_image_check_os(fit, noffset, IH_OS_U_BOOT) ||
>               fit_image_check_os(fit, noffset, IH_OS_TEE) ||
>               fit_image_check_os(fit, noffset, IH_OS_OPENRTOS) ||
> +             fit_image_check_os(fit, noffset, IH_OS_OPENSBI) |
>               fit_image_check_os(fit, noffset, IH_OS_EFI) ||

Should be || not |

Regards,
Simon


More information about the U-Boot mailing list