[U-Boot-Users] do_bootm_linux OF_FLAT_TREE

Kumar Gala galak at kernel.crashing.org
Fri Jan 5 16:05:37 CET 2007


On Jan 3, 2007, at 1:18 PM, David Updegraff wrote:

> Hi.
>
> in common/cmd_boot, around line 624:
>
> Looks like there is a small hole in the logic here if you happen to  
> want
> to boot with a MULTI image with a ptr. and  flat_tree.  Since
> 	"boot multi_img_addr - of_tree_addr"
> ends up falling into the 'Skipping initrd category'.  Which is  
> annoying,
> as it looses the initrd that is inside the MULTI img.
>
> An obvious solution does not pop out at me.
>
> Maybe special-case check for MULTI within that special-case of  
> FLAT_TREE
> and argv=='-' ?
>
> Please suggest better way.  Thnx.

When I implemented this I felt that it was an all or nothing  
situation.  Either you specified the memory locations of the kernel,  
initrd, and dtb or you used a single MULTI image.

One problem was that the MULTI image doesn't include any header  
information to know what the "sections" of the image are.

- k




More information about the U-Boot mailing list