Skip to contentSkip to conversation

RAM mapping repeats

U-Boot-Users Antonio Di Bacco 4 participants 7 messages May 9, 2006 – May 23, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

I have 16MB of RAM (0x01000000) then I specified BR2=0x0000xxxx and OR2=0xFE000000 . Obviously if I write at 1000000 is the same as I write at 0x00000000. That is, the memory repeats in the space address. This doesn't seem good to me because I will not receive any bus error if go to an address higher than my RAM size. Am I wrong?

Bye,
Antonio.

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

I have 16MB of RAM (0x01000000) then I specified BR2=0x0000xxxx and OR2=0xFE000000 . Obviously if I write at 1000000 is the same as I write at 0x00000000. That is, the memory repeats in the space address. This doesn't seem good to me because I will not receive any bus error if go to an address higher than my RAM size. Am I wrong?

Why do you set OR2 to this value then, after you know it is wrong?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Live long and prosper.
	-- Spock, "Amok Time", stardate 3372.7
#2 lore raw

[U-Boot-Users] Section overlap

Hi,
I'm using U-boot-1.0.0 on an ebony board (ppc),
and running into section overlap error at the time of linking. here's what the output looks like ...

section .u_boot_cmd [ffffef50 -> fffff567] overlaps section .bootpg [fffff000 -> fffff29f]

1) how do i get around this ?
Taking out cmd_bmp, cmd_ide, cmd_scsi etc etc which i'm not using from the common/Makefile helped,
Looks like i cant take out most of the commands, they are referred from other portion of the code.

2) How does these commands scheme work, are the always linked in ?
3) I thought you could cherry pick the ones you need. is this correct ?
4) Also is this a right approach to handle the above problem.
5) Would using -ffunction-sections -fdata-sections for gcc and --gc-sections for the linker possible.

Any suggestion how i could remove unwanted stuff. Your thoughts and suggestion would be appreciated.

-Kunal

#3 lore raw

[U-Boot-Users] Section overlap

Quoted 2 lines · In message <[email protected]> you wrote:

I'm using U-boot-1.0.0 on an ebony board (ppc),

...

Quoted 1 line

1) how do i get around this ?

Use current code. U-Boot-1.0.0 is just too old.

Quoted 1 line

2) How does these commands scheme work, are the always linked in ?

Yes, the configured commands are always linked in.

Quoted 1 line

3) I thought you could cherry pick the ones you need. is this correct ?

Yes, you can, when configuring your board.

Quoted 1 line

4) Also is this a right approach to handle the above problem.

No.

Quoted 2 lines

5) Would using -ffunction-sections -fdata-sections for gcc and --gc-sections for the linker possible.

It makes no sense trying to fix problems that have been fixed long ago in less prehistoric versions ov the code.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"355/113 -- Not the famous irrational number PI,  but  an  incredible
simulation!"
#4 lore raw

[U-Boot-Users] Section overlap

My bad the version that we are using is 1.1.3,

Quoted 3 lines
Quoted 1 line

4) Also is this a right approach to handle the above problem.

No.

whats a better way to tackle this then.
Thanks
-Kunal

Quoted 54 lines

From: Wolfgang Denk <[email protected]>
To: "k bisla" <[email protected]>
CC: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Section overlap Date: Wed, 10 May 2006 09:20:18 +0200

Quoted 2 lines · In message <[email protected]> you wrote:

I'm using U-boot-1.0.0 on an ebony board (ppc),

...

Quoted 1 line

1) how do i get around this ?

Use current code. U-Boot-1.0.0 is just too old.

Quoted 1 line

2) How does these commands scheme work, are the always linked in ?

Yes, the configured commands are always linked in.

Quoted 1 line

3) I thought you could cherry pick the ones you need. is this correct ?

Yes, you can, when configuring your board.

Quoted 1 line

4) Also is this a right approach to handle the above problem.

No.

Quoted 1 line

5) Would using -ffunction-sections -fdata-sections for gcc and

--gc-sections

Quoted 1 line

for the linker possible.

It makes no sense trying to fix problems that have been fixed long ago in less prehistoric versions ov the code.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "355/113 -- Not the famous irrational number PI, but an incredible simulation!"

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#5 lore raw

[U-Boot-Users] Section overlap

Quoted 1 line · In message <[email protected]> you wrote:

My bad the version that we are using is 1.1.3,

8 months old. Please use current code.

Quoted 2 lines
Quoted 1 line

No.

whats a better way to tackle this then.

Please use current code.

Note that you can even download working and tested images from our FTP server.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Reader, suppose you were an idiot. And suppose you were a  member  of
Congress. But I repeat myself.                           - Mark Twain
#6 lore raw

[U-Boot-Users] Section overlap

In reply to k bisla
Quoted 9 lines · k bisla

Hi,
I'm using U-boot-1.0.0 on an ebony board (ppc),
and running into section overlap error at the time of linking. here's what the output looks like ...

section .u_boot_cmd [ffffef50 -> fffff567] overlaps section .bootpg [fffff000 -> fffff29f]

1) how do i get around this ?

Section overlap is due to a toolchain issue. One of the patches after 1.1.4 fixed this issue by updating all .lds files as a workaround. If you use the top of the tree with updated .lds, linker will no longer overlap sections incorrectly.

Best regards,
Tolunay