Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Linux Boot RAM Determination
@ 2008-06-17 17:45 Sean Parker
  2008-06-17 18:15 ` Florian Fainelli
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Parker @ 2008-06-17 17:45 UTC (permalink / raw)
  To: linux-mips

Hello -

  We're developing a PMC-Sierra RM9000 system, and when Linux boots it seems to only see 256M RAM (cat /proc/meminfo -> MemTotal=256M), despite a Crucial 1GB double-sided SODIMM card.

  The boot code is PMON, and it recognizes all 1GB (dimm0:2 Ranks each 512MB) and prints as much when it's done.

  Is there a setting in the Linux source (we're using a single elf image with ramfs integrated) that might be limiting the MemTotal/RAM size found by Linux? I couldn't find anywhere in the Linux code (patched by PMC) that mentions reading the DDR DCR's to inspect what the configured RAM sizes/offsets are. Any ideas?

  Thanks and God Bless,
    Sean Parker 




      

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

* Re: Linux Boot RAM Determination
  2008-06-17 17:45 Linux Boot RAM Determination Sean Parker
@ 2008-06-17 18:15 ` Florian Fainelli
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2008-06-17 18:15 UTC (permalink / raw)
  To: supinlick; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

Hello Sean,

Le Tuesday 17 June 2008 19:45:01 Sean Parker, vous avez écrit :
> Hello -
>
>   We're developing a PMC-Sierra RM9000 system, and when Linux boots it
> seems to only see 256M RAM (cat /proc/meminfo -> MemTotal=256M), despite a
> Crucial 1GB double-sided SODIMM card.
>
>   The boot code is PMON, and it recognizes all 1GB (dimm0:2 Ranks each
> 512MB) and prints as much when it's done.
>
>   Is there a setting in the Linux source (we're using a single elf image
> with ramfs integrated) that might be limiting the MemTotal/RAM size found
> by Linux? I couldn't find anywhere in the Linux code (patched by PMC) that
> mentions reading the DDR DCR's to inspect what the configured RAM
> sizes/offsets are. Any ideas?

Did you check the code which reserves memory for ther kernel ? Most boards 
will set this in either prom or setup code :

pmc-sierra/msp71xx/msp_prom.c:          add_memory_region(base, size, type);
pmc-sierra/yosemite/setup.c:    add_memory_region(0x00000000, 0x10000000, 
BOOT_MEM_RAM);

If your code is based on yosemite, it seems like it should get the memsize 
parameter from the bootloader, instead of hardcoding it to 256Mb like it 
currently does.

Hope it helps you.
-- 
Cordialement, Florian Fainelli
------------------------------

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2008-06-17 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17 17:45 Linux Boot RAM Determination Sean Parker
2008-06-17 18:15 ` Florian Fainelli

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