Restore the ability to continue booting after legacy image overwrite
authorMarian Balakowicz <m8@semihalf.com>
Fri, 11 Apr 2008 09:07:49 +0000 (11:07 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 18 Apr 2008 06:59:05 +0000 (23:59 -0700)
commitcb1c4896905ab22fcd982e6a8a539f0031942e71
tree31e02bd5eb93e4692cb23289a108beb951211e91
parentde2b3216e6b4f3b2fe93759c05b17504f9dfe036
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>
12 files changed:
common/cmd_bootm.c
common/image.c
include/image.h
lib_arm/bootm.c
lib_avr32/bootm.c
lib_blackfin/bootm.c
lib_m68k/bootm.c
lib_microblaze/bootm.c
lib_mips/bootm.c
lib_nios2/bootm.c
lib_ppc/bootm.c
lib_sh/bootm.c