[U-Boot-Users] [PATCH 2/2] [new uImage] Restore the ability to continue booting after legacy image overwrite

Wolfgang Denk wd at denx.de
Fri Apr 18 09:54:53 CEST 2008


In message <20080411090749.7630.39554.stgit at hekate.izotz.org> you wrote:
> 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 at semihalf.com>
> ---
> 
>  common/cmd_bootm.c     |   37 ++++++++++++++++++++++++++-----------
>  common/image.c         |    2 +-
>  include/image.h        |    3 ++-
>  lib_arm/bootm.c        |    2 +-
>  lib_avr32/bootm.c      |    2 +-
>  lib_blackfin/bootm.c   |    2 +-
>  lib_m68k/bootm.c       |    2 +-
>  lib_microblaze/bootm.c |    2 +-
>  lib_mips/bootm.c       |    2 +-
>  lib_nios2/bootm.c      |    2 +-
>  lib_ppc/bootm.c        |    4 ++--
>  lib_sh/bootm.c         |    2 +-
>  12 files changed, 39 insertions(+), 23 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Save energy:  Drive a smaller shell.




More information about the U-Boot mailing list