From: Wolfgang Denk Date: Fri, 18 Apr 2008 09:54:53 +0200 Subject: [U-Boot-Users] [PATCH 2/2] [new uImage] Restore the ability to continue booting after legacy image overwrite In-Reply-To: Your message of "Fri, 11 Apr 2008 11:07:49 +0200." <20080411090749.7630.39554.stgit@hekate.izotz.org> Message-ID: <20080418075453.A5EEB248AB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20080411090749.7630.39554.stgit@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 > --- > > 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.