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

Nikita Shubin nikita.shubin at maquefel.me
Fri Jun 19 14:52:57 CEST 2026


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
index b0fcaf6e17f..458df45ea7b 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2204,6 +2204,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) ||
 		fit_image_check_os(fit, noffset, IH_OS_VXWORKS) ||
 		fit_image_check_os(fit, noffset, IH_OS_ELF);

-- 
2.52.0



More information about the U-Boot mailing list