Fix bug in auto_update (trab board)

Patch by Martin Krause, 16 Sep 2005
This commit is contained in:
Wolfgang Denk 2005-09-21 15:31:25 +02:00
parent 59d80bf180
commit 8b4c9e7c14
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 */