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 1UDW2e-0000YE-Ly for barebox@lists.infradead.org; Thu, 07 Mar 2013 08:19:14 +0000 Date: Thu, 7 Mar 2013 09:18:59 +0100 From: Sascha Hauer Message-ID: <20130307081859.GT1906@pengutronix.de> References: <1360336929.3798.11.camel@lws-weitzel> <20130211100432.GZ1906@pengutronix.de> <5135F36E.2090401@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5135F36E.2090401@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Antwort: Re: v2013.02.0 phyCORE-OMAP4 MLO to big To: =?iso-8859-15?Q?J=FCrgen?= Cc: barebox@lists.infradead.org Hi J=FCrgen, On Tue, Mar 05, 2013 at 02:30:22PM +0100, J=FCrgen wrote: > On 11.02.2013 Sascha Hauer wrote: > >On Fri, Feb 08, 2013 at 04:22:09PM +0100, Jan Weitzel wrote: > >>Hi, > >>with the release v2013.02.0 the MLO gets so bit, that it eats the boot > >>information in the SRAM. > >> > >>nm --size-sort > >> > >>... > >>00000630 D nand_flash_ids > >>000008c0 t mci_probe > >>00000c00 b gpio_desc > >>00001400 b files > >> > >>If I remove GPIOLIB from MLO it work again. Maybe setting MAX_FILES > >>down or find a dynamic way for the big arrays is a better solution. > >>Any Ideas? > >Could you link the MLO to SDRAM instead? > Hi Sascha, we have tried as you suggested and it doesn't work > without changes... > = > We found two things: > = > 1.) There is early code which is not relocatable. > = > We solved this by adding -fPIC to the CPPFLAGS. > But I think, this is also solved with your patch > http://lists.infradead.org/pipermail/barebox/2013-March/013366.html This won't help you directly. What you could do with this is: - generate a compressed image using PBL support - The PBL is loaded to SRAM by the ROM, relocated to the current address in SRAM - extracts the binary to SDRAM - continues executing in SDRAM. Thinking about it it should work. The other thing you could do is making the bss segment smaller. For ARM we initialize the malloc space before the initcalls are starting which means that malloc can be used in every initcall. This in turn means that we can allocate the files array and the gpio_desc array dynamically. You would have to move the malloc initialization from initcalls to early init for the other architectures though to make this work. 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