diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-04-11 09:07:49 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-18 06:59:05 (GMT) |
commit | cb1c4896905ab22fcd982e6a8a539f0031942e71 (patch) | |
tree | 31e02bd5eb93e4692cb23289a108beb951211e91 /lib_microblaze/bootm.c | |
parent | de2b3216e6b4f3b2fe93759c05b17504f9dfe036 (diff) | |
download | u-boot-fsl-qoriq-cb1c4896905ab22fcd982e6a8a539f0031942e71.tar.xz |
Restore the ability to continue booting after legacy image overwrite
Before new uImage code was merged, bootm code allowed for the kernel image to
get overwritten during decompresion. new uImage introduced a check for image
overwrites and refused to boot the image that got overwritten. This patch
restores the old behavior. It also adds a warning when the image overwriten is
a multi-image file, because in such case accessing componentes other than the
first one will fail.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_microblaze/bootm.c')
-rw-r--r-- | lib_microblaze/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_microblaze/bootm.c b/lib_microblaze/bootm.c index fab4a54..30a03ef 100644 --- a/lib_microblaze/bootm.c +++ b/lib_microblaze/bootm.c @@ -44,7 +44,7 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[], /* find kernel entry point */ if (images->legacy_hdr_valid) { - ep = image_get_ep (images->legacy_hdr_os); + ep = image_get_ep (&images->legacy_hdr_os_copy); #if defined(CONFIG_FIT) } else if (images->fit_uname_os) { int ret = fit_image_get_entry (images->fit_hdr_os, |