* [U-Boot-Users] memory sizing(440GX)
@ 2005-02-17 17:41 Barbier, Renaud
2005-02-17 18:34 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Barbier, Renaud @ 2005-02-17 17:41 UTC (permalink / raw)
To: u-boot
was there any messages regarding doing memory sizing?
I am trying to write a piece of code that would find out how much memory I have on my 440GX board. not too successful so far.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] memory sizing(440GX)
2005-02-17 17:41 Barbier, Renaud
@ 2005-02-17 18:34 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2005-02-17 18:34 UTC (permalink / raw)
To: u-boot
In message <45ABD2373C33C4459D42B40EC4F346F205E19FAF@FTWMLVEM03.e2k.ad.ge.com> you wrote:
> was there any messages regarding doing memory sizing?
No, but there is code.
> I am trying to write a piece of code that would find out how much memory =
> I have on my 440GX board. not too successful so far.
Why do you have to write any new code? Is there any special problem
with common/memsize.c ?
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 22 - 24, Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Doubt is a pain too lonely to know that faith is his twin brother.
- Kahlil Gibran
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] memory sizing(440GX)
@ 2005-02-17 20:36 Barbier, Renaud
2005-02-17 21:12 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Barbier, Renaud @ 2005-02-17 20:36 UTC (permalink / raw)
To: u-boot
thanks .did not know that there was code.
should this function find the correct RAM size.
I have tried this get_ram_size(0, 512MB) on a board that has 256MB and it does not return the proper size (256MB).
I guess I need to test incrementally for the memory size. Right?
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de]
Sent: Thursday, February 17, 2005 6:34 PM
To: Barbier, Renaud (GE Infrastructure)
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] memory sizing(440GX)
In message <45ABD2373C33C4459D42B40EC4F346F205E19FAF@FTWMLVEM03.e2k.ad.ge.com> you wrote:
> was there any messages regarding doing memory sizing?
No, but there is code.
> I am trying to write a piece of code that would find out how much memory =
> I have on my 440GX board. not too successful so far.
Why do you have to write any new code? Is there any special problem
with common/memsize.c ?
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 22 - 24, Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Doubt is a pain too lonely to know that faith is his twin brother.
- Kahlil Gibran
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] memory sizing(440GX)
2005-02-17 20:36 [U-Boot-Users] memory sizing(440GX) Barbier, Renaud
@ 2005-02-17 21:12 ` Wolfgang Denk
2005-02-18 7:40 ` Stefan Roese
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2005-02-17 21:12 UTC (permalink / raw)
To: u-boot
In message <45ABD2373C33C4459D42B40EC4F346F205E1A387@FTWMLVEM03.e2k.ad.ge.com> you wrote:
>
> should this function find the correct RAM size.
Yes, that's what it does.
> I have tried this get_ram_size(0, 512MB) on a board that has 256MB and
> it does not return the proper size (256MB).
And what did it return instead?
> I guess I need to test incrementally for the memory size. Right?
No, the code already does that. You just have to make sure that your
memory mapping is correct (i. e. that the area [base, base+maxsize]
is mapped correectly in your memory controller).
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 22 - 24, Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Abstainer: A weak person who yields to the temptation of denying him-
self a pleasure. A total abstainer is one who abstains from every-
thing but abstention, and especially from inactivity in the affairs
of others. - Ambrose Bierce
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] memory sizing(440GX)
2005-02-17 21:12 ` Wolfgang Denk
@ 2005-02-18 7:40 ` Stefan Roese
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Roese @ 2005-02-18 7:40 UTC (permalink / raw)
To: u-boot
Hi Renaud,
On Thursday 17 February 2005 22:12, Wolfgang Denk wrote:
> > I guess I need to test incrementally for the memory size. Right?
>
> No, the code already does that. You just have to make sure that your
> memory mapping is correct (i. e. that the area [base, base+maxsize]
> is mapped correectly in your memory controller).
Please take a look at the file "cpu/ppc4xx/sdram.c". This will show you, how
the memory-size detection is done on the ppc405 systems (with onboard sdram)
using the "get_ram_size" function. The code has to be modified for the 440
ppc's, since they have a different SDRAM controller (DDR).
Best regards,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-18 7:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 20:36 [U-Boot-Users] memory sizing(440GX) Barbier, Renaud
2005-02-17 21:12 ` Wolfgang Denk
2005-02-18 7:40 ` Stefan Roese
-- strict thread matches above, loose matches on Subject: below --
2005-02-17 17:41 Barbier, Renaud
2005-02-17 18:34 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox