From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] how to load u-boot environment from nand while spl is loading
Date: Wed, 11 Nov 2015 16:38:22 +0100 [thread overview]
Message-ID: <201511111638.22946.marex@denx.de> (raw)
In-Reply-To: <56435EDE.9070807@aethra.com>
On Wednesday, November 11, 2015 at 04:29:34 PM, Francesco Lucconi wrote:
Hi,
> I'm working with imx28evk reference board with u-boot 2011.12 and for my
> specific purposes I have to load u-boot nand environment during spl
> binary is loading. I'm working with a static environment but this is not
> so useful because I need to initialize some drivers (such as serial
> console) with the current values stored within nand flash environment
> (such as baudrate variable).
> Comparing my u-boot version with more recent ones (u-boot 2015.10) I've
> found out that the enviroment loading has been applied during ram
> bootstrapping...can't we do this operation before u-boot.bin has been
> loaded in ddr memory?
> Could you send me any tips to solve this issue?
I think that the latest mainline already configures the serial console from
the environment or at least it sets up the environment to be complete enough
for getenv() to work. I'd suggest you give that a spin.
I cannot help you with the ancient U-Boot from Freescale and I'd suggest you
to avoid it like plague if at all possible.
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-11-11 15:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 15:29 [U-Boot] how to load u-boot environment from nand while spl is loading Francesco Lucconi
2015-11-11 15:38 ` Marek Vasut [this message]
2015-11-17 18:33 ` Scott Wood
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=201511111638.22946.marex@denx.de \
--to=marex@denx.de \
--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