Skip to contentSkip to conversation

u-boot TEXT_BASE relocatable

U-Boot-Users Jayant Chauhan 2 participants 2 messages Dec 4, 2007

lore
Share & tools
lore
#0 lore raw

Hey fellas,
I am in a fix...and am a newbie...
I have my u-boot for ARM926Ejs...
And there are two DDR banks. The problem is I want to be able to run u-boot from both the banks...

Reason? I need to do DDR testing (so need to change the offset values at times in the control registers of the DDR)...
So if u-boot runs from Bank A, I can test Bank B, but as soon as I try and change control register of Bank A...my system crashes or resets... So I want to somehow use offsets to be used by the linker... Is that possible? And can nething be done to TEXT_BASE value in CONFIG.MK file to do this ?

thanks alot in advance guys

Sincerely
Jayant

Signature · 5 lines
View this message in context: http://www.nabble.com/u-boot-TEXT_BASE-relocatable-tf4940664.html#a14143068
Sent from the Uboot - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071203/1c97105c/attachment.htm 
#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I have my u-boot for ARM926Ejs...
And there are two DDR banks. The problem is I want to be able to run u-boot from both the banks...

Oops? U-Boot will (if configured properly) map all banks of RAM as a single contiguous memory area and use it all.

Quoted 4 lines

Reason? I need to do DDR testing (so need to change the offset values at times in the control registers of the DDR)...
So if u-boot runs from Bank A, I can test Bank B, but as soon as I try and change control register of Bank A...my system crashes or resets...

Sounds as if you don't present us all information. Normally, i. e. when booting from NOR flash, U-Boot does the RAM testing while still running from flash, i. e. before relocation.

You sound as if U-Boot was not booting from flash memory, but from some sort of storage device like NAND or data flash. In this case it is the responsibility of the bootstrap loader which sets up RAM to test it before using it.

Quoted 3 lines

------=_Part_54830_4138933.1196732954043
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

And NEVER post HTML here.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"There's only one kind of woman ..." "Or man, for  that  matter.  You
either believe in yourself or you don't."
	-- Kirk and Harry Mudd, "Mudd's Women", stardate 1330.1