From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7geo-0004Cx-O4 for barebox@lists.infradead.org; Fri, 09 Aug 2013 06:58:44 +0000 Date: Fri, 9 Aug 2013 08:58:17 +0200 From: Sascha Hauer Message-ID: <20130809065817.GY26614@pengutronix.de> References: <1375868734-32357-1-git-send-email-s.hauer@pengutronix.de> <20130807101159.GK26614@pengutronix.de> <1375871688.726256777@f18.i.mail.ru> <1375946248.679028165@f304.i.mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1375946248.679028165@f304.i.mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] Revert "ARM: Use armlinux_bootparams address for DTB" To: Alexander Shiyan Cc: barebox@lists.infradead.org On Thu, Aug 08, 2013 at 11:17:28AM +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? 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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox