From: Hebbar <gururajakr@sanyo.co.in>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] how to Relocate arm startup code
Date: Mon, 11 Feb 2008 16:59:00 -0800 (PST) [thread overview]
Message-ID: <15424226.post@talk.nabble.com> (raw)
Hi,
I am working on a customized arm926ejs versatile board. My board has SDRAM
at reset vector i.e., @ 0x00 and FLASH is located at a different higher
lcoation. At Boot up, SDRAm is mapped to Flash. I have to enable few
register and enable sdram chip. @ reset the arm uboot startup code has
b reset
which point to TEXT_BASE + 0x50 which in my case falls to uninitialized
SDRAM and hence it fails. So i have to hard code the startup to point to my
flash location. so
Instead of
b reset
i have
ldr pc, _flash_reset
where
_flash_reset:
.word (CFG_FLASH_BASE + reset - TEXT_BASE)
So i want to know if there is any better alternative to this instead of hard
coding. Also i would like to know how this taken care of for versatile
board.
Regards
Gururaja
--
View this message in context: http://www.nabble.com/how-to-Relocate-arm-startup-code-tp15424226p15424226.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
reply other threads:[~2008-02-12 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=15424226.post@talk.nabble.com \
--to=gururajakr@sanyo.co.in \
--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