From: Matthias Weisser <weisserm@arcor.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] newbie questions regarding some config options.
Date: Mon, 13 Jun 2011 15:59:24 +0200 [thread overview]
Message-ID: <4DF617BC.4040009@arcor.de> (raw)
In-Reply-To: <OF460D0558.A844A780-ONC12578AE.0047905C-802578AE.00482EFA@eu.necel.com>
Am 13.06.2011 15:09, schrieb PHIL.EDWORTHY at renesas.com:
>
> Hi Christopher,
>
>> What is the CONFIG_SYS_TEXT_BASE variable and how can
>> I figure out what it should be?
>
> U-boot is typically stored in flash and one of the first things it does when executed is relocate to ram. CONFIG_SYS_TEXT_BASE is
the relocation
> address. Typically, u-boot global data, heap and then stack is stored just below this.
On ARM, CONFIG_SYS_TEXT_BASE is typically the base address of the image
in flash. This is, on a system booting from NOR, the address of the
first instruction which is fetched from the CPU.
> Since u-boot is used to load some other program like the kernel, you need the u-boot relocation address to be out of the way of this. So, for the
> boards I have seen (not arm), CONFIG_SYS_TEXT_BASE is set to the top of ram - 256KB, i.e. enough room for the u-boot image.
The relocation address is dynamically calculated from a couple of
(runtime) information and has nothing to do with CONFIG_SYS_TEXT_BASE.
This is true for ARM and AFAIK for PPC.
Matthias
next prev parent reply other threads:[~2011-06-13 13:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 12:31 [U-Boot] newbie questions regarding some config options Christopher Harvey
2011-06-13 13:09 ` PHIL.EDWORTHY at renesas.com
2011-06-13 13:59 ` Matthias Weisser [this message]
2011-06-13 14:08 ` PHIL.EDWORTHY at renesas.com
2011-06-13 14:12 ` Christopher Harvey
2011-06-13 16:00 ` Wolfgang Denk
2011-06-13 15:59 ` Wolfgang Denk
2011-06-13 15:58 ` Wolfgang Denk
2014-08-22 3:49 ` Chris
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=4DF617BC.4040009@arcor.de \
--to=weisserm@arcor.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 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.