浏览代码

Fix mkimage -l bug with multifile images on 64bit platforms
Patch by David Updegraff, 06 Sep 2006

Wolfgang Denk 18 年之前
父节点
当前提交
0dab03ba8f
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGELOG
  2. 1 1
      tools/mkimage.c

+ 3 - 0
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.

+ 1 - 1
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)
 				);