[U-Boot] CONFIG_SYS_XIP_BOOT for when it's a choice?

Tom Rini trini at ti.com
Mon Apr 7 19:49:36 CEST 2014


On Mon, Apr 07, 2014 at 07:41:39PM +0200, Wolfgang Denk wrote:
> Dear Tom,
> 
> In message <20140407171943.GG23803 at bill-the-cat> you wrote:
> > 
> > > What exactly do you mean by "non-SPL XIP booting"?  Is this not the
> > > standard boot mode which has actually been the first (and only one)
> > > that U-Boot has ever been designed for, like booting from a ROM (like
> > > parallel NOR flash)?  Because the we do exactly that: we execute the
> > > code as is from the boot device...
> >
> > Exactly.  But most modern platforms are not XIP booting by default, if
> > ever.  When it is, it's a special case and needs the code we usually
> > only call in SPL (say memory controller init) linked in.  Today this is
> > done with say:
> > #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_NOR_BOOT)
> > ...
> > #endif
> > on am335x.  Looking at am43xx we have both traditional NOR and QSPI NOR
> > as boot options, along with SD/NAND/various-peripheral-boots.
> 
> OK.  So if this basically the same what we do when booting XIP from
> parallel NOR, then maybe we should rename CONFIG_NOR_BOOT into a more
> generic name, like CONFIG_XIP_BOOT ?

Nope, not everything for NOR is required for QSPI nor correct, so we'll
still need NOR/QSPI boot options (CONFIG_ENV_IS_IN.. then
size/location).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140407/35c6ec3d/attachment.pgp>


More information about the U-Boot mailing list