From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Memory test post relocation
Date: Fri, 14 Nov 2014 18:51:23 +0100 [thread overview]
Message-ID: <20141114185123.12a4eaf8@lilith> (raw)
In-Reply-To: <1415980460901-196196.post@n7.nabble.com>
Hello DaveKucharczyk,
On Fri, 14 Nov 2014 08:54:20 -0700 (MST), DaveKucharczyk
<david.kucharczyk@gmail.com> wrote:
> Albert ARIBAUD (U-Boot) wrote
> > No, that's not where it'll be; it'll relocate as high as it can.
>
> I guess that's the confusing part. When I run with debug on I get the
> following log. Halfway down it reports "Now running in RAM - U-Boot at:
> eff89000", but there are still initcall's to lower memory after that. So I'm
> thinking lower memory is still used at that point. Am I wrong?
>
> I did try a mem test starting at the lowest address and it worked, but I
> would like to understand why the initcall's to low-mem after relocation.
> The mem test essentially erases those addresses, so initcall's to those
> addresses are suspect at that point.
You're correct that they'd be suspect; but the calls are to high
addresses, only the debug printf() prints their address... minus the
reloc offset (why it does that is beyond me). So false alarm here.
So, no, you don't use lower mem once relocated. But you do use some
memory below the stack top, and you dont exactly know how much.
> Albert ARIBAUD (U-Boot) wrote
> > If you happen to have an SPL running from some RAM and not from DDR,
> > then you could perform the full DDR test there. .
>
> I think the mx53 has internal sram, which is why we were able to run fully
> from there before, since we had set CONFIG_SKIP_RELOCATE_UBOOT. I tried
> setting CONFIG_SKIP_LOWLEVEL_INIT, but nothing works with that set.
Still not sure what your config is. Can you indicate the board, commit
and toolchain you're using?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2014-11-14 17:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 22:19 [U-Boot] Memory test post relocation DaveKucharczyk
2014-11-14 8:20 ` Albert ARIBAUD
2014-11-14 14:18 ` DaveKucharczyk
2014-11-14 14:27 ` Fabio Estevam
2014-11-14 14:34 ` DaveKucharczyk
2014-11-14 15:21 ` Albert ARIBAUD
2014-11-14 15:54 ` DaveKucharczyk
2014-11-14 16:07 ` DaveKucharczyk
2014-11-14 17:50 ` Albert ARIBAUD
2014-11-14 17:51 ` Albert ARIBAUD [this message]
2014-11-14 18:41 ` DaveKucharczyk
2014-11-14 20:20 ` DaveKucharczyk
2014-11-14 22:22 ` DaveKucharczyk
2014-11-15 12:13 ` Albert ARIBAUD
2014-11-15 12:26 ` Albert ARIBAUD
2014-11-15 12:37 ` Albert ARIBAUD
2014-11-14 16:15 ` Wolfgang Denk
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=20141114185123.12a4eaf8@lilith \
--to=albert.u.boot@aribaud.net \
--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