]> git.sur5r.net Git - u-boot/commitdiff
x86: bootm: Fix FIT image booting on x86
authorStefan Roese <sr@denx.de>
Fri, 31 Mar 2017 06:09:39 +0000 (08:09 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 10 Apr 2017 02:02:03 +0000 (10:02 +0800)
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.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/bootm.c

index 3c3d9e1e800261839d45f70b9f0866f0ab67f77f..75bab902251d90d68585a1d0d742c4d0eee8bf98 100644 (file)
@@ -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);