summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-09-21 15:31:25 +0200
committerWolfgang Denk <wd@pollux.(none)>2005-09-21 15:31:25 +0200
commit8b4c9e7c144397f483d23c002dcd9c59ff7c2395 (patch)
tree336ff7ec3622ed4765f8d0c8fac62d37a995ec27 /board
parent59d80bf180c39e4e83ec23654dc17ce514c88208 (diff)
downloadu-boot-imx-8b4c9e7c144397f483d23c002dcd9c59ff7c2395.zip
u-boot-imx-8b4c9e7c144397f483d23c002dcd9c59ff7c2395.tar.gz
u-boot-imx-8b4c9e7c144397f483d23c002dcd9c59ff7c2395.tar.bz2
Fix bug in auto_update (trab board)
Patch by Martin Krause, 16 Sep 2005
Diffstat (limited to 'board')
-rw-r--r--board/trab/auto_update.c2
1 files changed, 1 insertions, 1 deletions
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 */