[U-Boot-Users] get_ram_size() returns wrong value 
    Wolfgang Denk 
    wd at denx.de
       
    Wed Apr  6 12:42:54 CEST 2005
    
    
  
In message <9b7ca65705040603187af7aa9c at mail.gmail.com> you wrote:
> 
> Somehow I've missed this before, but just today noticed that u-boot is
> reporting DRAM: 64 MB (BTW, machine is running with 128MB)
...
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>     for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
> printf("*addr(%x)\n",*(addr=base + 0x1000000));
How is maxsize defined in your configuration?
How is your memory controller configured (address masks) ?
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
When in doubt, mumble;   when in trouble, delegate;  when in  charge,
ponder.                                             -- James H. Boren
    
    
More information about the U-Boot
mailing list