From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mx51evk: support new relocation scheme
Date: Wed, 27 Oct 2010 14:17:58 +0200 [thread overview]
Message-ID: <4CC81876.3020903@denx.de> (raw)
In-Reply-To: <AANLkTi=7r4mcSFxpSsdU3bUr_CNMyZey3MLUO2t0-MVm@mail.gmail.com>
On 10/27/2010 01:54 PM, Shawn Guo wrote:
> On Wed, Oct 27, 2010 at 7:46 PM, Wolfgang Denk <wd@denx.de> wrote:
>> Dear Shawn Guo,
>>
>> In message <1288174358-14896-1-git-send-email-shawn.gsc@gmail.com> you wrote:
>>> This patch is to fix build breakage and support new relocatoin
>>> scheme for mx51evk.
>>>
>>> - Correct IRAM base address and add size definition
>>>
>>> The IRAM starts from 0x1FFE0000 on final revsion i.mx51 than
>>> 0x1FFE8000 which is for older revision.
>>>
>>> - Include imx-regs.h in mx51evk.h
>>>
>>> Definitions like CSD0_BASE_ADDR and IRAM_BASE_ADDR can be
>>> referred to.
>>>
>>> - Define CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE
>>>
>>> This is something suggested by Wolfgang, and for automatic
>>> calculation of macros like CONFIG_SYS_GBL_DATA_SIZE (done) and
>>> CONFIG_SYS_INIT_SP_ADDR (later).
>>
>> Um... this is NOT what we discussed.
>>
> Are you saying that automatic calculation of CONFIG_SYS_INIT_SP_ADDR
> will not happen?
>
>>
>> No. This is not what I want to se.
>>
>> Memory allocation in the inital ram has the global data at the top.
>>
>> Please use something like
>>
>> #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
>> #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
>>
> If the automatic calculation of CONFIG_SYS_INIT_SP_ADDR will not
> happen, I can send another patch to fix it, since it's been applied by
> Stefano already.
Sorry for that. I was too fast and I have not read the patch with
attention. I revert the patch after I see Wolfgang's comment. You can
send V3 version of this patch and you can forget the "applied" message.
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2010-10-27 12:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 10:12 [U-Boot] [PATCH v2] mx51evk: support new relocation scheme Shawn Guo
2010-10-27 11:28 ` Stefano Babic
2010-10-27 11:29 ` Jason Liu
2010-10-27 11:37 ` Shawn Guo
2010-10-27 11:44 ` Jason Liu
2010-10-27 11:46 ` Wolfgang Denk
2010-10-27 11:54 ` Shawn Guo
2010-10-27 12:17 ` Stefano Babic [this message]
2010-10-27 12:23 ` Wolfgang Denk
2010-10-27 12:28 ` Shawn Guo
2010-10-27 12:45 ` Wolfgang Denk
2010-10-27 15:32 ` Shawn Guo
2010-10-27 16:06 ` Wolfgang Denk
2010-10-28 2:13 ` [U-Boot] [PATCH v3] " Shawn.Guo at freescale.com
2010-10-28 11:22 ` Stefano Babic
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=4CC81876.3020903@denx.de \
--to=sbabic@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 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.