[PATCH] Revert "ARM: Use armlinux_bootparams address for DTB"

Sascha Hauer s.hauer at pengutronix.de
Fri Aug 9 04:02:39 EDT 2013


On Fri, Aug 09, 2013 at 11:02:26AM +0400, Alexander Shiyan wrote:
> > > > > On Wed, Aug 07, 2013 at 01:55:42PM +0400, Alexander Shiyan wrote:
> > > > > > > This patch placed the flattened devicetree to armlinux_bootparams.
> > > > > > > armlinux_bootparams normally is at SDRAM_START + 0x100. The kernels
> > > > > > > initial page tables are normally at SDRAM_START + 0x4000, so the
> > > > > > > flattened devicetree gets overwritten once it exceeds 0x3f00 bytes
> > > > > > > which is quite common.
> > > > > > > 
> > > > > > > Revert this patch for now once a better solution can be found
> > > > > > 
> > > > > > In such a case, tree may be placed immediately after the kernel?
> > > > > > It can also serve as an automatic option "ARM_APPENDED_DTB".
> > > > > 
> > > > > Did you actually stumbled over this problem? Normally the dtb is
> > > > > allocated using malloc. The malloc region normally shouldn't overlap
> > > > > with the kernels text region unless you are really tight of memory.
> > > > > Was this on a clps711x?
> > > > 
> > > > I described it here:
> > > > http://www.spinics.net/lists/u-boot-v2/msg15612.html
> > > 
> > > Seems this issue can be resolved by decrease MALLOC_SIZE.
> > > 
> > > ...
> > >     0xc0380000 - 0xc077ffff (size 0x00400000) malloc space
> > > ...
> > 
> > Does this mean you are fine with reverting the patch?
> 
> Unfortunately I cannot test this now.
> In any case if this breaks other builds, yes, we should revert this.

Ok, thanks. Just did that.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list