public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: 吳志峰 <civic.xyz@msa.hinet.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can anyone help me to solve the stack problem of U-boot? Urgent~
Date: Thu, 26 Apr 2012 00:35:07 +0800	[thread overview]
Message-ID: <001e01cd2301$609c2e00$21d48a00$@xyz@msa.hinet.net> (raw)

Dear all:

 

I had a ARM platform which call DVTEST.

While booting, the platform (ROM code) will copy image from SD card to SDRAM
base address (0x0).

So my TEXT_BASE address should be start from 0x00000000.

But I found all the ARM platforms in U-boot didn?t start from their SDRAM
base address.

They also set up the stack pointer by growing up direction

 

        /* Set up the stack                                              */

stack_setup:

        ldr    r0, _TEXT_BASE              /* upper 128 KiB: relocated uboot
*/

        sub   r0, r0, #CONFIG_SYS_MALLOC_LEN      /* malloc area
*/

        sub   r0, r0, #CONFIG_SYS_GBL_DATA_SIZE  /* bdinfo           */

 

My question is can I start U-boot from SDRAM base address (0x00000000)?

If so, how to change the stack direction?  (GCC option or some else)

 

Please help me because this problem had confused me a lot of days.

Thanks.

 

Best Regards.

 

Richard 

             reply	other threads:[~2012-04-25 16:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25 16:35 吳志峰 [this message]
2012-04-25 22:11 ` [U-Boot] Can anyone help me to solve the stack problem of U-boot? Urgent~ Wolfgang Denk
2012-04-26  4:24   ` Macpaul Lin
2012-04-26  8:32     ` 吳志峰

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='001e01cd2301$609c2e00$21d48a00$@xyz@msa.hinet.net' \
    --to=civic.xyz@msa.hinet.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