From: Wolfgang Denk Date: Wed, 21 Sep 2005 13:31:25 +0000 (+0200) Subject: Fix bug in auto_update (trab board) X-Git-Tag: DENX-2005-10-29-2350~91^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b4c9e7c144397f483d23c002dcd9c59ff7c2395;p=kernel%2Fu-boot.git Fix bug in auto_update (trab board) Patch by Martin Krause, 16 Sep 2005 --- diff --git a/CHANGELOG b/CHANGELOG index 54420fc..909c416 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Fix bug in auto_update (trab board) + Patch by Martin Krause, 16 Sep 2005 + * Fix computation of framebuffer palette for 8bpp LCD bitmaps Patch by Francesco Mandracci, 16 Sep 2005 diff --git a/board/trab/auto_update.c b/board/trab/auto_update.c index 0399fe8..b25928c 100644 --- a/board/trab/auto_update.c +++ b/board/trab/auto_update.c @@ -296,7 +296,7 @@ au_check_header_valid(int idx, long nbytes) /* recycle checksum */ checksum = ntohl(hdr->ih_size); /* for kernel and app the image header must also fit into flash */ - if (idx != IDX_DISK) + if ((idx != IDX_DISK) && (idx != IDX_FIRMWARE)) checksum += sizeof(*hdr); /* check the size does not exceed space in flash. HUSH scripts */ /* all have ausize[] set to 0 */