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

2019-03-17 Thread Philipp Tomsich
> On 17.03.2019, at 15:12, Simon Glass wrote: > > Well, my thinking is that GD is actually a set of pointers, with the > actual data stored elsewhere. The nice thing about bloblist is that it > is a contiguous block of a set size, which holds data used by > different parts of U-Boot (e.g.

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

2019-03-17 Thread Simon Glass
Hi Wolfgang, On Sun, 17 Mar 2019 at 20:01, Wolfgang Denk wrote: > > Dear Simon, > > In message > you > wrote: > > > > > First, we have GD, which exists since the dawn of U-Boot, which was > > > intended to pass data between boot stages (by then, before and after > > > relocation), but

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

2019-03-17 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > First, we have GD, which exists since the dawn of U-Boot, which was > > intended to pass data between boot stages (by then, before and after > > relocation), but apparently it has never been used for passing > > information between SPL and U-Boot proper.

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

2019-03-16 Thread Simon Glass
Hi Wolfgang, On Fri, 15 Mar 2019 at 02:34, Wolfgang Denk wrote: > > Dear Simon, > > In message > you > wrote: > > > > I think it is a reasonable idea to allow the gd region to pass from > > TPL -> SPL -> U-Boot. But we'll need to remove use of > > CONFIG_IS_ENABLED(), or put shared things at

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

2019-03-15 Thread Tom Rini
On Fri, Mar 15, 2019 at 05:41:36AM +0100, Heiko Schocher wrote: > Hello Tom, > > Am 13.03.2019 um 19:19 schrieb Tom Rini: > >On Wed, Mar 13, 2019 at 10:18:06AM +0100, Heiko Schocher wrote: > >>Hello Stefano, > >> > >>Am 13.03.2019 um 09:51 schrieb Stefano Babic: > >>>Hi Heiko, > >>> > >>>On

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

2019-03-15 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > I think it is a reasonable idea to allow the gd region to pass from > TPL -> SPL -> U-Boot. But we'll need to remove use of > CONFIG_IS_ENABLED(), or put shared things at the beginning of the > structure. Indeed. And/or split things up in "common" stuff

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

2019-03-14 Thread Heiko Schocher
Hello Simon, Am 14.03.2019 um 11:02 schrieb Simon Glass: Hi Heiko, On Tue, 12 Mar 2019 at 02:50, Heiko Schocher wrote: Hello Simon, Tom, Am 12.03.2019 um 09:21 schrieb Heiko Schocher: Hello Simon, Tom, I am just stumbeld on an am437x basd board over the problem to pass the bootmode from

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

2019-03-14 Thread Heiko Schocher
Hello Tom, Am 13.03.2019 um 19:19 schrieb Tom Rini: On Wed, Mar 13, 2019 at 10:18:06AM +0100, Heiko Schocher wrote: Hello Stefano, Am 13.03.2019 um 09:51 schrieb Stefano Babic: Hi Heiko, On 13/03/19 08:44, Heiko Schocher wrote: Hello Wolfgang, Am 12.03.2019 um 18:46 schrieb Wolfgang Denk:

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

2019-03-14 Thread Simon Glass
Hi Heiko, On Tue, 12 Mar 2019 at 02:50, Heiko Schocher wrote: > > Hello Simon, Tom, > > Am 12.03.2019 um 09:21 schrieb Heiko Schocher: > > 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

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

2019-03-13 Thread Tom Rini
On Wed, Mar 13, 2019 at 10:18:06AM +0100, Heiko Schocher wrote: > Hello Stefano, > > Am 13.03.2019 um 09:51 schrieb Stefano Babic: > >Hi Heiko, > > > >On 13/03/19 08:44, Heiko Schocher wrote: > >>Hello Wolfgang, > >> > >>Am 12.03.2019 um 18:46 schrieb Wolfgang Denk: > >>>Dear Tom, > >>> > >>>In

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

2019-03-13 Thread Tom Rini
On Wed, Mar 13, 2019 at 08:44:45AM +0100, Heiko Schocher wrote: > Hello Wolfgang, > > Am 12.03.2019 um 18:46 schrieb Wolfgang Denk: > >Dear Tom, > > > >In message <20190312173125.GP4690@bill-the-cat> you wrote: > >> > >>>I think you were misled by Heiko's description. What he really ment >

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

2019-03-13 Thread Heiko Schocher
Hello Stefano, Am 13.03.2019 um 09:51 schrieb Stefano Babic: Hi Heiko, On 13/03/19 08:44, Heiko Schocher wrote: Hello Wolfgang, Am 12.03.2019 um 18:46 schrieb Wolfgang Denk: Dear Tom, In message <20190312173125.GP4690@bill-the-cat> you wrote: I think you were misled by Heiko's

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

2019-03-13 Thread Stefano Babic
Hi Heiko, On 13/03/19 08:44, Heiko Schocher wrote: > Hello Wolfgang, > > Am 12.03.2019 um 18:46 schrieb Wolfgang Denk: >> Dear Tom, >> >> In message <20190312173125.GP4690@bill-the-cat> you wrote: >>> I think you were misled by Heiko's description.  What he really ment was just that

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

2019-03-13 Thread Heiko Schocher
Hello Wolfgang, Am 12.03.2019 um 18:46 schrieb Wolfgang Denk: Dear Tom, In message <20190312173125.GP4690@bill-the-cat> you wrote: I think you were misled by Heiko's description. What he really ment was just that the addresses where the boot ROM stored the information about the boot device

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

2019-03-12 Thread Wolfgang Denk
Dear Tom, In message <20190312173125.GP4690@bill-the-cat> you wrote: > > > I think you were misled by Heiko's description. What he really ment > > was just that the addresses where the boot ROM stored the > > information about the boot device etc. gets overwriteen when the SPL > > For clarity,

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

2019-03-12 Thread Tom Rini
On Tue, Mar 12, 2019 at 06:08:32PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20190312140417.GJ4690@bill-the-cat> you wrote: > > > > To answer that, no, I don't suppose there's a problem with auditing the > > code to make sure that we can pass in gd, rather than U-Boot proper > >

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

2019-03-12 Thread Wolfgang Denk
Dear Tom, In message <20190312140417.GJ4690@bill-the-cat> you wrote: > > To answer that, no, I don't suppose there's a problem with auditing the > code to make sure that we can pass in gd, rather than U-Boot proper > assuming it's the first thing to touch gd, if configured. > But that to > me

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

2019-03-12 Thread Tom Rini
On Tue, Mar 12, 2019 at 02:42:02PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20190312121957.GI4690@bill-the-cat> you wrote: > > > > > 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 > > >

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

2019-03-12 Thread Wolfgang Denk
Dear Tom, In message <20190312121957.GI4690@bill-the-cat> you wrote: > > > 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

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

2019-03-12 Thread Tom Rini
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

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

2019-03-12 Thread Heiko Schocher
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

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

2019-03-12 Thread 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

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

2019-03-12 Thread Heiko Schocher
Hello Simon, Tom, Am 12.03.2019 um 09:21 schrieb Heiko Schocher: 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

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

2019-03-12 Thread Heiko Schocher
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