Skip to contentSkip to conversation

5272 u-boot

U-Boot-Users Robert Williams 2 participants 2 messages Mar 30, 2004

lore
Share & tools
lore
#0 lore raw

u-boot runs great from sdram.

When I change the text base to 0xffc00400 and undefined MONITOR_IS_IN_RAM,

My environment is set up between 0xffc02000 and 0xffc03fff

I get the following link command error.

u-boot.lds:143 cannot move location counter backwards (from ffc03f72 to ffc02400)

What am I doing wrong? What does it mean?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040330/10602502/attachment.htm

#1 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:

My environment is set up between 0xffc02000 and 0xffc03fff
I get the following link command error.
u-boot.lds:143 cannot move location counter backwards (from ffc03f72 to ffc02400)

What am I doing wrong? What does it mean?

You must edit your linker script and adapt it for you board.

The error means that the combined size of all objects that get linked in front of the envrionment occupy all space until 0xffc03f72, which makes it impossible to the linker to place the environment at 0xffc02400, because it "cannot move location counter backwards".

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Life and death are seldom logical."
"But attaining a desired goal always is."
	-- McCoy and Spock, "The Galileo Seven", stardate 2821.7