bootm: Support load images when os is elf
author牛 志宏 <Zone.Niuzh@hotmail.com>
Tue, 1 Apr 2025 07:44:34 +0000 (07:44 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 11 Apr 2025 02:55:53 +0000 (20:55 -0600)
This extends the bootm command to allow find images when os type is elf.

Signed-off-by: Niu Zhihong <zone.niuzh@hotmail.com>
boot/bootm.c

index 854ac7e..f5cbb10 100644 (file)
@@ -545,7 +545,8 @@ static int bootm_find_other(ulong img_addr, const char *conf_ramdisk,
             images.os.type == IH_TYPE_KERNEL_NOLOAD ||
             images.os.type == IH_TYPE_MULTI) &&
            (images.os.os == IH_OS_LINUX || images.os.os == IH_OS_VXWORKS ||
-            images.os.os == IH_OS_EFI || images.os.os == IH_OS_TEE)) {
+            images.os.os == IH_OS_EFI || images.os.os == IH_OS_TEE ||
+            images.os.os == IH_OS_ELF)) {
                return bootm_find_images(img_addr, conf_ramdisk, conf_fdt, 0,
                                         0);
        }