[PATCH 17/19] bootwrapper: compatibility layer for old U-Boots (a.k.a. cuImage, cuboot)

Mark A. Greer mgreer at mvista.com
Thu Mar 15 10:23:39 EST 2007


On Wed, Mar 14, 2007 at 04:48:49PM -0500, Scott Wood wrote:
> Mark A. Greer wrote:
> >Are you sure that '_end' (which is the end of the zImage/cuImage)
> >is safe to use?  If the kernel is large enough (e.g., INITRAMFS)
> >it will overwrite your dtb when its decompressed and relocated to 0.
> >You need to grok the elfheader to figure out where the kernel will end
> >and take the max of that and _end.
> 
> Wouldn't it overwrite the bootwrapper itself before overwriting the heap?

Sure but that doesn't matter--the kernel is running so the bootwrapper's
life is over but the dtb's life isn't.

Mark



More information about the Linuxppc-dev mailing list