[U-Boot-Users] RAM mapping repeats

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.

In message 200605092249.11586.antonio.dibacco@aruba.it 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

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

In message BAY105-F16366015E401A8668F788D8EAE0@phx.gbl you wrote:
I'm using U-boot-1.0.0 on an ebony board (ppc),
...
- how do i get around this ?
Use current code. U-Boot-1.0.0 is just too old.
- How does these commands scheme work, are the always linked in ?
Yes, the configured commands are always linked in.
- I thought you could cherry pick the ones you need. is this correct ?
Yes, you can, when configuring your board.
- Also is this a right approach to handle the above problem.
No.
- 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

My bad the version that we are using is 1.1.3,
- Also is this a right approach to handle the above problem.
No.
whats a better way to tackle this then. Thanks -Kunal
From: Wolfgang Denk wd@denx.de To: "k bisla" k_bisla@hotmail.com CC: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Section overlap Date: Wed, 10 May 2006 09:20:18 +0200
In message BAY105-F16366015E401A8668F788D8EAE0@phx.gbl you wrote:
I'm using U-boot-1.0.0 on an ebony board (ppc),
...
- how do i get around this ?
Use current code. U-Boot-1.0.0 is just too old.
- How does these commands scheme work, are the always linked in ?
Yes, the configured commands are always linked in.
- I thought you could cherry pick the ones you need. is this correct ?
Yes, you can, when configuring your board.
- Also is this a right approach to handle the above problem.
No.
- 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
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@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&kid%120709&bid&3057&... _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message BAY105-F24DAA8E2D5224188C2CA178EAE0@phx.gbl you wrote:
My bad the version that we are using is 1.1.3,
8 months old. Please use current code.
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

k bisla wrote:
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]
- 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
participants (4)
-
Antonio Di Bacco
-
k bisla
-
Tolunay Orkun
-
Wolfgang Denk