public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] RAM mapping repeats
@ 2006-05-09 20:49 Antonio Di Bacco
  2006-05-09 22:13 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Antonio Di Bacco @ 2006-05-09 20:49 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] RAM mapping repeats
  2006-05-09 20:49 [U-Boot-Users] RAM mapping repeats Antonio Di Bacco
@ 2006-05-09 22:13 ` Wolfgang Denk
  2006-05-10  1:05   ` [U-Boot-Users] Section overlap k bisla
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2006-05-09 22:13 UTC (permalink / raw)
  To: u-boot

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

-- 
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] Section overlap
  2006-05-09 22:13 ` Wolfgang Denk
@ 2006-05-10  1:05   ` k bisla
  2006-05-10  7:20     ` Wolfgang Denk
  2006-05-23 17:25     ` Tolunay Orkun
  0 siblings, 2 replies; 7+ messages in thread
From: k bisla @ 2006-05-10  1:05 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] Section overlap
  2006-05-10  1:05   ` [U-Boot-Users] Section overlap k bisla
@ 2006-05-10  7:20     ` Wolfgang Denk
  2006-05-10 22:44       ` k bisla
  2006-05-23 17:25     ` Tolunay Orkun
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2006-05-10  7:20 UTC (permalink / raw)
  To: u-boot

In message <BAY105-F16366015E401A8668F788D8EAE0@phx.gbl> you wrote:
>
> I'm using U-boot-1.0.0 on an ebony board (ppc),
...
> 1) how do i get around this ?

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

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

Yes, the configured commands are always linked in.

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

Yes, you can, when configuring your board.

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

No.

> 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

-- 
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!"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] Section overlap
  2006-05-10  7:20     ` Wolfgang Denk
@ 2006-05-10 22:44       ` k bisla
  2006-05-10 23:00         ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: k bisla @ 2006-05-10 22:44 UTC (permalink / raw)
  To: u-boot

My bad the version that we are using is 1.1.3,
> > 4) 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 at 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),
>...
> > 1) how do i get around this ?
>
>Use current code. U-Boot-1.0.0 is just too old.
>
> > 2) How does these commands scheme work, are the always linked in ?
>
>Yes, the configured commands are always linked in.
>
> > 3) I thought you could cherry pick the ones you need. is this correct ?
>
>Yes, you can, when configuring your board.
>
> > 4) Also is this a right approach to handle the above problem.
>
>No.
>
> > 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
>
>--
>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&kid\x120709&bid&3057&dat\x121642
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] Section overlap
  2006-05-10 22:44       ` k bisla
@ 2006-05-10 23:00         ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2006-05-10 23:00 UTC (permalink / raw)
  To: u-boot

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

-- 
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] Section overlap
  2006-05-10  1:05   ` [U-Boot-Users] Section overlap k bisla
  2006-05-10  7:20     ` Wolfgang Denk
@ 2006-05-23 17:25     ` Tolunay Orkun
  1 sibling, 0 replies; 7+ messages in thread
From: Tolunay Orkun @ 2006-05-23 17:25 UTC (permalink / raw)
  To: u-boot

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]
> 
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-23 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-09 20:49 [U-Boot-Users] RAM mapping repeats Antonio Di Bacco
2006-05-09 22:13 ` Wolfgang Denk
2006-05-10  1:05   ` [U-Boot-Users] Section overlap k bisla
2006-05-10  7:20     ` Wolfgang Denk
2006-05-10 22:44       ` k bisla
2006-05-10 23:00         ` Wolfgang Denk
2006-05-23 17:25     ` Tolunay Orkun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox