Fix multi-part image support on i386 platform.
Patch by David Updegraff, 19 Aug 2005
This commit is contained in:
parent
53dd6ce4f0
commit
e644670b68
|
@ -2,6 +2,9 @@
|
||||||
Changes since U-Boot 1.1.4:
|
Changes since U-Boot 1.1.4:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Fix multi-part image support on i386 platform.
|
||||||
|
Patch by David Updegraff, 19 Aug 2005
|
||||||
|
|
||||||
* Add support for KVME080 board
|
* Add support for KVME080 board
|
||||||
Patch by Sangmoon Kim, 18 Aug 2005
|
Patch by Sangmoon Kim, 18 Aug 2005
|
||||||
|
|
||||||
|
|
|
@ -151,6 +151,12 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
|
||||||
initrd_end = 0;
|
initrd_end = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if multi-part image, we need to advance base ptr */
|
||||||
|
if ((hdr->ih_type==IH_TYPE_MULTI) && (len_ptr[1])) {
|
||||||
|
int i;
|
||||||
|
for (i=0, addr+=sizeof(int); len_ptr[i++]; addr+=sizeof(int));
|
||||||
|
}
|
||||||
|
|
||||||
base_ptr = load_zimage((void*)addr + sizeof(image_header_t), ntohl(hdr->ih_size),
|
base_ptr = load_zimage((void*)addr + sizeof(image_header_t), ntohl(hdr->ih_size),
|
||||||
initrd_start, initrd_end-initrd_start, 0);
|
initrd_start, initrd_end-initrd_start, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue