public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Brian Smucker <bds@bsmucker.eu.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can I load uEnv.txt conditionally, based on the boot source?
Date: Wed, 11 Feb 2015 09:14:19 -0800	[thread overview]
Message-ID: <54DB8DEB.1050808@bsmucker.eu.org> (raw)
In-Reply-To: <CANr=Z=aCVSWzhBzJXyrWVtOmMuKOKt77WXSp=P-OmBk3yLW6+w@mail.gmail.com>

Hello,

That would be the most obvious thing, wouldn't it.  I thought of that, 
but am not sure of the answer in u-boot.

Thanks,
Brian

On 2/11/2015 12:09 AM, Joe Hershberger wrote:
>
> On Tue, Feb 10, 2015 at 7:18 PM, Brian Smucker <bds@bsmucker.eu.org 
> <mailto:bds@bsmucker.eu.org>> wrote:
> >
> > Hello,
> >
> > I was wondering if there is a way to tell what the boot source is?
> >
> > My am335x SOC can boot to the mmc or the flash, based on the status 
> of a digital line. I would like to load the uEnv.txt, only if booting 
> from SD card (mmc).  I notice at least in some codebases that the 
> automatic loading of uEnv.txt is based on whether the SD card is 
> available, not whether we are currently booting from the SD card.
> >
> > Is there a way to sense which we are booting from?
>
> Are you able to read the same digital line that the SoC is using to 
> decide?

  reply	other threads:[~2015-02-11 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11  1:18 [U-Boot] Can I load uEnv.txt conditionally, based on the boot source? Brian Smucker
2015-02-11  8:09 ` Joe Hershberger
2015-02-11 17:14   ` Brian Smucker [this message]
2015-02-11 18:57     ` Joe Hershberger

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=54DB8DEB.1050808@bsmucker.eu.org \
    --to=bds@bsmucker.eu.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox