From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Schwarz Date: Fri, 16 Sep 2011 14:55:43 +0200 Subject: [U-Boot] SPL boot modes In-Reply-To: <20110916123157.7413213B8A28@gemini.denx.de> References: <20110916123157.7413213B8A28@gemini.denx.de> Message-ID: <4E73474F.70608@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/16/2011 02:31 PM, Wolfgang Denk wrote: > Dear Joel A Fernandes, > > In message you wrote: >> >> Just one question about one of your patches I happen to notice [1], >> why is there a SPL build for each different boot mode such as for >> NAND, MMC etc?. Wouldn't it be nicer to have a single SPL loader that >> tried different boot modes one after the other, something like what >> x-load already does? Are there are any challenges with this approach? > > Yes, this would be nice. Question: how do we make this fit in - say - > the 2 KiB code size that some processors load? Including all the > drivers for NAND, MMC etc.? > > Best regards, > > Wolfgang Denk > That's the reason for the librarys in SPL. One can build a SPL that is able to boot from more than one source (although it might not work yet - the tools are there). If size matters: Just include the one needed Regards Simon