[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>
This commit is contained in:
@@ -47,12 +47,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 ("MICROBLAZE 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;
|
||||
}
|
||||
theKernel = (void (*)(char *))ep;
|
||||
|
||||
@@ -67,4 +71,11 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
|
||||
return ;
|
||||
|
||||
theKernel (commandline);
|
||||
/* does not return */
|
||||
return;
|
||||
|
||||
error:
|
||||
if (images->autostart)
|
||||
do_reset (cmdtp, flag, argc, argv);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user