Re: [U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-04-08 Thread Scott Wood
On Mon, 2014-04-07 at 12:10 +0530, Prabhakar Kushwaha wrote: On 4/5/2014 5:21 AM, Scott Wood wrote: That doesn't really answer my question of how it gets initialized for NOR flash. What line in what file does the initialization? It looks like the answer is env_init() -- so it doesn't

Re: [U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-04-07 Thread Prabhakar Kushwaha
On 4/5/2014 5:21 AM, Scott Wood wrote: On Wed, 2014-04-02 at 09:12 +0530, Prabhakar Kushwaha wrote: On 4/2/2014 3:34 AM, Scott Wood wrote: On Mon, 2014-03-31 at 15:34 +0530, Prabhakar Kushwaha wrote: GD(Global Data) structure has pointer to environment variable array. but, it always point to

Re: [U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-04-04 Thread Scott Wood
On Wed, 2014-04-02 at 09:12 +0530, Prabhakar Kushwaha wrote: On 4/2/2014 3:34 AM, Scott Wood wrote: On Mon, 2014-03-31 at 15:34 +0530, Prabhakar Kushwaha wrote: GD(Global Data) structure has pointer to environment variable array. but, it always point to default_environment assuming it is

Re: [U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-04-01 Thread Scott Wood
On Mon, 2014-03-31 at 15:34 +0530, Prabhakar Kushwaha wrote: GD(Global Data) structure has pointer to environment variable array. but, it always point to default_environment assuming it is running from final location. So update GD pointer with env variable array during SPL boot.

Re: [U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-04-01 Thread Prabhakar Kushwaha
On 4/2/2014 3:34 AM, Scott Wood wrote: On Mon, 2014-03-31 at 15:34 +0530, Prabhakar Kushwaha wrote: GD(Global Data) structure has pointer to environment variable array. but, it always point to default_environment assuming it is running from final location. So update GD pointer with env

[U-Boot] [PATCH 5/10] common/env: Point default environment for GD

2014-03-31 Thread Prabhakar Kushwaha
GD(Global Data) structure has pointer to environment variable array. but, it always point to default_environment assuming it is running from final location. So update GD pointer with env variable array during SPL boot. Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com ---