summaryrefslogtreecommitdiffstats
path: root/lib_blackfin
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-03-12 10:33:00 +0100
committerMarian Balakowicz <m8@semihalf.com>2008-03-12 10:33:00 +0100
commitcd7c596e9f561dbbc17b717277438aee78cde14f (patch)
tree1766af01b819e4f7c341cb841742cb6242ff0b33 /lib_blackfin
parent3dfe110149311425919e6d6a14b561b4207498f1 (diff)
downloadtalos-obmc-uboot-cd7c596e9f561dbbc17b717277438aee78cde14f.tar.gz
talos-obmc-uboot-cd7c596e9f561dbbc17b717277438aee78cde14f.zip
[new uImage] Add new uImage format support to arch specific do_bootm_linux() routines
This patch updates architecture specific implementations of do_bootm_linux() adding new uImage format handling for operations like get kernel entry point address, get kernel image data start address. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_blackfin')
-rw-r--r--lib_blackfin/bootm.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib_blackfin/bootm.c b/lib_blackfin/bootm.c
index 33979a9fb2..1ea80f4e36 100644
--- a/lib_blackfin/bootm.c
+++ b/lib_blackfin/bootm.c
@@ -65,12 +65,16 @@ void do_bootm_linux(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
ep = image_get_ep (images->legacy_hdr_os);
#if defined(CONFIG_FIT)
} else if (images->fit_uname_os) {
- fit_unsupported_reset ("AVR32 linux bootm");
- do_reset (cmdtp, flag, argc, argv);
+ int ret = fit_image_get_entry (images->fit_hdr_os,
+ images->fit_noffset_os, &ep);
+ if (ret) {
+ puts ("Can't get entry point property!\n");
+ goto error;
+ }
#endif
} else {
puts ("Could not find kernel entry point!\n");
- do_reset (cmdtp, flag, argc, argv);
+ goto error;
}
appl = (int (*)(char *))ep;
@@ -85,6 +89,13 @@ void do_bootm_linux(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
dcache_disable();
}
(*appl) (cmdline);
+ /* does not return */
+ return;
+
+error:
+ if (images->autostart)
+ do_reset (cmdtp, flag, argc, argv);
+ return;
}
char *make_command_line(void)
OpenPOWER on IntegriCloud