From: Wolfgang Denk Date: Wed, 6 Sep 2006 21:29:15 +0000 (+0200) Subject: Fix mkimage -l bug with multifile images on 64bit platforms X-Git-Tag: v2008.10-rc1~1121^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dab03ba8fb20ede7233f497b6c6db188986e7a8;p=platform%2Fkernel%2Fu-boot.git Fix mkimage -l bug with multifile images on 64bit platforms Patch by David Updegraff, 06 Sep 2006 --- diff --git a/CHANGELOG b/CHANGELOG index a288465..3c42d93 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Fix mkimage -l bug with multifile images on 64bit platforms + Patch by David Updegraff, 06 Sep 2006 + * Fix build problems on sorcery board. * Fix coldfire build problems. diff --git a/tools/mkimage.c b/tools/mkimage.c index fea3e5b..60aac79 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -632,7 +632,7 @@ print_header (image_header_t *hdr) if (hdr->ih_type == IH_TYPE_MULTI || hdr->ih_type == IH_TYPE_SCRIPT) { int i, ptrs; uint32_t pos; - unsigned long *len_ptr = (unsigned long *) ( + uint32_t *len_ptr = (uint32_t *) ( (unsigned long)hdr + sizeof(image_header_t) );