[U-Boot] [PATCHv2 02/20] arm: socfpga: spl: Add SRAM section

Marek Vasut
2015-03-05T20:59:00Z

On Wednesday, March 04, 2015 at 10:34:30 PM, Dinh Nguyen wrote:
> On 03/04/2015 01:39 PM, Marek Vasut wrote:
> > On Wednesday, March 04, 2015 at 07:52:04 PM, Dinh Nguyen wrote:
> >> On 03/04/2015 06:39 AM, Marek Vasut wrote:
> >>> On Monday, March 02, 2015 at 05:27:50 PM,
> >>> dinguyen at opensource.altera.com
> >
> > wrote:
> >>>> From: Dinh Nguyen <dinguyen@opensource.altera.com>
> >>>>
> >>>> Add a section of SRAM to the SPL linker file.
> >>>>
> >>>> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
> >>>
> >>> Hi!
> >>>
> >>> Can we not use the generic SPL stuff ( ./arch/arm/cpu/u-boot-spl.lds )
> >>> here instead please ?
> >>
> >> I looked at this, but I didn't see way to overlay in an SRAM section. Do
> >> you have an example of how to do this?
> >
> > Hi!
> >
> > Is it really needed at all in the first place ? Why ?
>
> Isn't this need to specify the SPL to be located in the sram section? I
> see other platforms doing the same thing, ie. zynq, sunxi.

CONFIG_SPL_TEXT_BASE is what specifies the address to which the SPL is linked.
This is the address where the BootROM should place the SPL and jump to it's
first instruction.

I don't think you explicitly need to hack linker scripts to add this section.

btw. Tom Rini has a different email address (@konsulko) now.

btw2. is there any way I can help you with hacking on the SPL please ?

Best regards,
Marek Vasut