From caacb7d519ddf0c697ae20a9c55c6c0aed4b4a61 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 29 May 2015 14:09:37 +0200 Subject: imx-common: m4boot: allow to boot other OS'es using m4boot Allow to boot eCos, MQX and bare-metal firmwares to boot on the secondary Cortex-M4. The boot code is equal for all those firmware types, the argument register will be set to 0 and the code will jump to the specified entry point directly. --- common/image-fit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/image-fit.c b/common/image-fit.c index 778d2a148be..368b730ded0 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1640,11 +1640,11 @@ int fit_image_load(bootm_headers_t *images, ulong addr, fit_image_check_type(fit, noffset, IH_TYPE_KERNEL_NOLOAD)); - os_ok = image_type == IH_TYPE_FLATDT || - fit_image_check_os(fit, noffset, IH_OS_LINUX) || - fit_image_check_os(fit, noffset, IH_OS_OPENRTOS); + fit_image_get_os(fit, noffset, &os); + os_ok = image_type == IH_TYPE_FLATDT || os == IH_OS_LINUX || + os == IH_OS_OPENRTOS || os == IH_OS_ECOS || + os == IH_OS_MQX || os == IH_OS_BAREMETAL; if (!type_ok || !os_ok) { - fit_image_get_os(fit, noffset, &os); printf("No %s %s %s Image\n", genimg_get_os_name(os), genimg_get_arch_name(arch), -- cgit v1.2.3