* [U-Boot-Users] how to Relocate arm startup code
@ 2008-02-12 0:59 Hebbar
0 siblings, 0 replies; only message in thread
From: Hebbar @ 2008-02-12 0:59 UTC (permalink / raw)
To: u-boot
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-12 0:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 0:59 [U-Boot-Users] how to Relocate arm startup code Hebbar
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.