From: Lokesh Vutla <a0131933@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] ARM: keystone2: configs: Move SP to end of u-boot section
Date: Mon, 17 Aug 2015 20:04:28 +0530 [thread overview]
Message-ID: <55D1F0F4.3000603@ti.com> (raw)
In-Reply-To: <CAGo_u6rRGUgKDMvtoex6zrze0wuTXv46aNS=-Mw8FKe8V7qpBA@mail.gmail.com>
Hi Nishanth,
On Monday 17 August 2015 08:01 PM, menon.nishanth at gmail.com wrote:
> On Mon, Aug 17, 2015 at 9:24 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>> Currently u-boot stack is defined at the beginning of MSMC RAM.
>> This is a problem for uart boot mode as ROM downloads directly to
>> starting of MSMC RAM.
>> Fixing it by moving stack to the end of u-boot section and shifting
>> SYS_TEXT_BASE to the start of MSMC RAM.
>> Updated division of MSMC RAM is shown below:
>> -----------------------------------------
>> | | | |
>> | U-Boot text |U-Boot | SPL text |
>> | download | Stack | Download + |
>> | | | SPL_BSS + |
>> | | | SPL_STACK |
>> -----------------------------------------
>> [1] [2] [3] [4]
>>
>> [1] SYS_TEXT_BASE (Start of MSMC RAM)
>> [2] SPL_TEXT_BASE - GBL_DATA_SIZE
>> [3] SPL_TEXT_BASE
>> [4] END of SPL
>>
>> [1] + [2] is at least 1M on all platforms, so no chance of overlap.
>>
>> Reviewed-by: Nishanth Menon <nm@ti.com>
>> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
>> ---
>> include/configs/ti_armv7_keystone2.h | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
>> index b441590..58c98ce 100644
>> --- a/include/configs/ti_armv7_keystone2.h
>> +++ b/include/configs/ti_armv7_keystone2.h
>> @@ -20,7 +20,7 @@
>> /* SoC Configuration */
>> #define CONFIG_ARCH_CPU_INIT
>> #define CONFIG_SYS_ARCH_TIMER
>> -#define CONFIG_SYS_TEXT_BASE 0x0c001000
>> +#define CONFIG_SYS_TEXT_BASE 0x0c000000
>> #define CONFIG_SPL_TARGET "u-boot-spi.gph"
>> #define CONFIG_SYS_DCACHE_OFF
>>
>> @@ -29,7 +29,7 @@
>> #define CONFIG_SYS_LPAE_SDRAM_BASE 0x800000000
>> #define CONFIG_MAX_RAM_BANK_SIZE (2 << 30) /* 2GB */
>> #define CONFIG_STACKSIZE (512 << 10) /* 512 KiB */
>> -#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - \
>> +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE - \
>> GENERATED_GBL_DATA_SIZE)
>>
>> /* SPL SPI Loader Configuration */
>
> This change is great. Now that this patch is done, I might like to see
> the documentation of uart download added in as well - the sequence is
> not really straight forward without documentation to follow
Patch 5/5 does the update in the README.
Thanks and regards,
Lokesh
>
> Regards,
> Nishanth Menon
>
next prev parent reply other threads:[~2015-08-17 14:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 14:24 [U-Boot] [PATCH 0/5] ARM: keystone2: Build images by default Lokesh Vutla
2015-08-17 14:24 ` [U-Boot] [PATCH 1/5] ARM: keystone2: configs: Move SP to end of u-boot section Lokesh Vutla
2015-08-17 14:31 ` menon.nishanth at gmail.com
2015-08-17 14:34 ` Lokesh Vutla [this message]
2015-08-17 14:38 ` menon.nishanth at gmail.com
2015-08-28 21:02 ` [U-Boot] [U-Boot, " Tom Rini
2015-08-17 14:24 ` [U-Boot] [PATCH 2/5] ARM: keystone2: move the custom build rules out to keystone specific makefile Lokesh Vutla
2015-08-28 21:02 ` [U-Boot] [U-Boot, " Tom Rini
2015-08-17 14:24 ` [U-Boot] [PATCH 3/5] ARM: keystone2: Rename u-boot-nand.gph to MLO Lokesh Vutla
2015-08-28 21:03 ` [U-Boot] [U-Boot, " Tom Rini
2015-08-17 14:24 ` [U-Boot] [PATCH 4/5] ARM: keystone2: Build MLO by default Lokesh Vutla
2015-08-28 21:03 ` [U-Boot] [U-Boot,4/5] " Tom Rini
2015-08-17 14:24 ` [U-Boot] [PATCH 5/5] ARM: keystone2: Update README Lokesh Vutla
2015-08-28 21:03 ` [U-Boot] [U-Boot,5/5] " Tom Rini
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=55D1F0F4.3000603@ti.com \
--to=a0131933@ti.com \
--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.