[U-Boot] [PATCH] fdt: Fix fdt padding issue for initrd mem_rsv

Wolfgang Denk wd at denx.de
Sat Oct 24 22:39:42 CEST 2009


Dear Kumar Gala,

In message <1256185791-5492-1-git-send-email-galak at kernel.crashing.org> you wrote:
> Its possible that we end up with a device tree that happens to be a
> particular size that after we call fdt_resize() we don't have any
> space left for the initrd mem_rsv.
> 
> Fix this be adding a second mem_rsv into the size calculation.  We
> had one to cover the fdt itself and we have the potential of adding
> a second for the initrd.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> Wolfgang, this has been a long standing bug but only shows up if the fdt
> blob happens to be a particular size.  Please include this for the v2009.11
> release.
> 
> - k
> 
>  common/fdt_support.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The bad reputation UNIX has gotten is totally undeserved, laid on by
people who don't understand, who have not gotten in there  and  tried
anything."          -- Jim Joyce, owner of Jim Joyce's UNIX Bookstore


More information about the U-Boot mailing list