summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-05-29 14:09:37 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-05-29 14:09:37 +0200
commitcaacb7d519ddf0c697ae20a9c55c6c0aed4b4a61 (patch)
tree22bc35b84a1b20a1f8d240d7dc1a635bb0a6fd3d /common
parent271ce8a33c6368ca81d075f1fea7b1deadb69aaa (diff)
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.
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 778d2a148b..368b730ded 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),