All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support
Date: Fri, 20 Mar 2015 19:28:16 -0500	[thread overview]
Message-ID: <1426897696.27998.251.camel@freescale.com> (raw)
In-Reply-To: <20150321001803.GL32541@bill-the-cat>

On Fri, 2015-03-20 at 20:18 -0400, Tom Rini wrote:
> On Fri, Mar 20, 2015 at 04:44:19PM -0500, Scott Wood wrote:
> > On Fri, 2015-03-20 at 17:37 -0400, Tom Rini wrote:
> > > On Fri, Mar 20, 2015 at 04:15:40PM -0500, Scott Wood wrote:
> > > 
> > > [snip]
> > > > It would also be nice to sort out loading the environment during SPL.
> > > 
> > > *ears perk up*.  Please elaborate :)  We have SPL environment support,
> > > we have SPL NAND Environment support today.  It doesn't get passed along
> > > to the running U-Boot and it's used for some limited cases (network and
> > > redundancy).  I'd like to hear about more and better ways of using it.
> > 
> > In common/spl/spl_nand.c, why does it only load the environment when
> > CONFIG_NAND_ENV_DST is defined, yet it never uses the value of
> > CONFIG_NAND_ENV_DST?  I also don't see any boards definind
> > CONFIG_NAND_ENV_DST (apparently the only one that ever used it was
> > smdk6400 which has been removed).
> > 
> > Is there some other way that the environment is supposed to be getting
> > loaded from NAND (rather than using the default environment) during SPL?
> 
> Yeah, it's loaded via env_init() being called (see spl_net.c or
> board/ti/).

The NAND version of env_init() does not access NAND.  It loads from
CONFIG_NAND_ENV_DST (but again, no board sets that) or from an embedded
environment.

-Scott

  reply	other threads:[~2015-03-21  0:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20 19:21 [U-Boot] [PATCH v4 04/28] armv8/ls2085a: Fix generic timer clock source York Sun
2015-03-20 19:21 ` [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support York Sun
2015-03-20 21:15   ` Scott Wood
2015-03-20 21:23     ` York Sun
2015-03-20 21:33       ` Scott Wood
2015-03-20 21:44         ` York Sun
2015-03-21 23:47           ` Scott Wood
2015-03-20 21:37     ` Tom Rini
2015-03-20 21:44       ` Scott Wood
2015-03-21  0:18         ` Tom Rini
2015-03-21  0:28           ` Scott Wood [this message]
2015-03-23  0:46             ` Tom Rini
2015-03-20 19:21 ` [U-Boot] [PATCH v4 26/28] armv8/ls2085ardb: Enable NAND SPL support York Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426897696.27998.251.camel@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.