[U-Boot-Users] i386 multi_image.

Hi.
I think this is needed to correctly boot multi-part images if you are unfortuanate enough to be working on an i386 platform.
-dbu.
diff --git a/lib_i386/i386_linux.c b/lib_i386/i386_linux.c --- a/lib_i386/i386_linux.c +++ b/lib_i386/i386_linux.c @@ -150,6 +150,11 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, in initrd_start = 0; initrd_end = 0; } + /* dave@cray.com : if multi-part img. 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), initrd_start, initrd_end-initrd_start, 0);

In message 4305F8C8.5020506@cray.com you wrote:
I think this is needed to correctly boot multi-part images if you are unfortuanate enough to be working on an i386 platform.
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
David Updegraff
-
Wolfgang Denk