[U-Boot] passing info from SPL to U-Boot

Tom Rini trini at konsulko.com
Tue Mar 12 12:19:57 UTC 2019


On Tue, Mar 12, 2019 at 12:37:20PM +0100, Heiko Schocher wrote:
> Hello Tom,
> 
> Am 12.03.2019 um 12:16 schrieb Tom Rini:
> >On Tue, Mar 12, 2019 at 09:21:36AM +0100, Heiko Schocher wrote:
> >>Hello Simon, Tom,
> >>
> >>I am just stumbeld on an am437x basd board over the problem to pass
> >>the bootmode from SPL to U-Boot. On am437x the bootmode info get
> >>overwritten from SPL stack, and I need this info in U-Boot.
> >>
> >>Hack would be to move SPL stack to another address, but we loose
> >>than 0xa000 size for stack ... I do not want to go this way..
> >
> >I think you need to fix it being over-written as it sounds like we're
> >running over our pre-defined scratch space area and that can lead to
> >other problems as well, depending on how much your platform is deviating
> >from how the TI ref platforms are written.  Thanks!
> 
> Yes, doable ... but the question is more, do we really want to read
> such infos twice, instead reading them in SPL and passing them from
> SPL to U-Boot ?

Probably so, yes.  Since we're talking about SPL and a "lots of
features, medium sized SRAM" SoC where we've had to carefully tweak
configs before to get all desired features within the limits.  If you've
bled into SRAM_SCRATCH_SPACE_ADDR range you may run into other problems
too.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190312/0a069391/attachment.sig>


More information about the U-Boot mailing list