Skip to contentSkip to conversation

x86: bootm: Fix FIT image booting on x86

PATCH New Stefan Roese 3 participants 4 messages Mar 31, 2017 – Apr 5, 2017 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: bootm: Fix FIT image booting on x86

Checking 'is_zimage' at this time will always fail and therefore booting a FIT style image will always lead to this error message:

"## Kernel loading failed (missing x86 kernel setup) ..."

This change now removes this check and booting of FIT images works just fine.

---
 arch/x86/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/bootm.c +1 -1
index 3c3d9e1e80..75bab90225 100644
@@ -100,7 +100,7 @@ static int boot_prep_linux(bootm_headers_t *images)
 		}
 		is_zimage = 1;
 #if defined(CONFIG_FIT)
-	} else if (images->fit_uname_os && is_zimage) {
+	} else if (images->fit_uname_os) {
 		ret = fit_image_get_data(images->fit_hdr_os,
 				images->fit_noffset_os,
 				(const void **)&data, &len);
Signature · 1 line
2.12.2
#1 lore raw

PATCH 1/1 x86: bootm: Fix FIT image booting on x86

Quoted 8 lines · Stefan Roese

Checking 'is_zimage' at this time will always fail and therefore booting a FIT style image will always lead to this error message:

"## Kernel loading failed (missing x86 kernel setup) ..."

This change now removes this check and booting of FIT images works just fine.

Quoted 6 lines
---
 arch/x86/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw

PATCH 1/1 x86: bootm: Fix FIT image booting on x86

In reply to Stefan Roese
Quoted 8 lines · Stefan Roese

Checking 'is_zimage' at this time will always fail and therefore booting a FIT style image will always lead to this error message:

"## Kernel loading failed (missing x86 kernel setup) ..."

This change now removes this check and booting of FIT images works just fine.

Quoted 7 lines
---
 arch/x86/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw

PATCH 1/1 x86: bootm: Fix FIT image booting on x86

Quoted 17 lines · Bin Meng
Quoted 8 lines · Stefan Roese

Checking 'is_zimage' at this time will always fail and therefore booting a FIT style image will always lead to this error message:

"## Kernel loading failed (missing x86 kernel setup) ..."

This change now removes this check and booting of FIT images works just fine.

Quoted 7 lines
---
 arch/x86/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 1 line

applied to u-boot-x86, thanks!