[U-Boot-Users] memory probe
Wolfgang Denk
wd at denx.de
Thu May 12 10:42:24 CEST 2005
In message <1115885736.9698.2.camel at orionlinux.starfleet.com> you wrote:
>
> > No need to do this. If implemented correctly, U-Boot will auto-
> > matically find out how big your RAM. This is what the RAM size
> > detection code in common/memsize.c was made for. Just use it.
>
> Yes, but you still need to read the DIP switch in the memsetup.S
No, this is NOT necessary.
> to properly initialise SDRAM. You can use this code only to report
> the memory size to U-Boot and the Linux.
No, this code is used to ADJUST the memory controller to the actual
sizes found on the board - you start with a preliminary configuration
of the memory controller which assumes that all possible banks are
fitted with the maximum amountof memory; then you run get_ram_size()
on all of these banks, disable those where a size of 0 is reported,
and adjust controller settings according to the sizes reported for
the others.
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
Panic, n.: The second time you can't do it the first time.
More information about the U-Boot
mailing list