[PATCH] Load PBL into SRAM

Sascha Hauer s.hauer at pengutronix.de
Tue Feb 4 02:04:29 EST 2014


On Tue, Feb 04, 2014 at 07:57:46AM +0100, Sascha Hauer wrote:
> On Tue, Feb 04, 2014 at 04:56:25AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 10:06 Fri 31 Jan     , David Vincent wrote:
> > > This allows to load all the lowlevel init code, including the
> > > uncompressor, inside SRAM and not just the bare init part. This is
> > > useful when pbl is used as a first-stage bootloader but is loaded by an
> > > external firmware.
> > > 
> > > Signed-off-by: David Vincent <freesilicon at gmail.com>
> > > ---
> > >  arch/arm/lib/pbl.lds.S            |    4 ++--
> > >  common/Kconfig                    |   16 ++++++++++++++--
> > >  include/asm-generic/barebox.lds.h |   14 +++++++++++++-
> > >  pbl/Kconfig                       |    7 +++++++
> > >  4 files changed, 36 insertions(+), 5 deletions(-)
> > > 
> > > diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S
> > > index 0954c89..34c0cb3 100644
> > > --- a/arch/arm/lib/pbl.lds.S
> > > +++ b/arch/arm/lib/pbl.lds.S
> > > @@ -50,11 +50,11 @@ SECTIONS
> > >  		*(.text*)
> > >  	}
> > >  
> > > +	BAREBOX_PBL_SIZE
> > > +
> > >  	/* Discard unwind if enable in barebox */
> > >  	/DISCARD/ : { *(.ARM.ex*) }
> > >  
> > > -	BAREBOX_BARE_INIT_SIZE
> > > -
> > 
> > nack you change the binary format you can add an information but can not
> > change the format
> 
> I don't think the format is changed here. It shouldn't matter where the
> /DISCARD/ is, right? Nevertheless the patch looks more obvious if just
> the line is changed, not its position.

Sorry, I misread the patch. My thought was that BAREBOX_PBL_SIZE
replaces (and includes) BAREBOX_BARE_INIT_SIZE, but this is not the
case. So you are right, BAREBOX_BARE_INIT_SIZE should not be removed
here.

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