Getting physical memory information from /proc/iomem
Rajasekaran Periyasamy
rajasekaran.periyasamy at toshiba-tesi.com
Wed Nov 28 17:32:56 EST 2007
Hi,
I have a MPC7447A board running linux 2.6.21. I want to get the physical RAM layout from /proc/iomem, but it is not proper as of x86 platform. Here is the output of my target's /proc/iomem.
[root at rootfs ~]# cat /proc/iomem
80000000-87ffffff : PCI hose 0 MEM Space 0
86900000-869fffff : 0000:00:02.2
86a00000-86afffff : 0000:00:02.2
.
.
87f00000-87f7ffff : 0000:00:01.0
87ffffc0-87ffffff : 0000:00:01.0
88000000-8fffffff : PCI hose 1 MEM Space 0
8d3fe000-8d3fefff : 0001:01:05.2
8d3ff000-8d3fffff : 0001:01:05.1
.
.
8e000000-8effffff : 0001:01:04.0
8f800000-8fffffff : 0001:01:04.0
fbe02000-fbe03fff : ethernet shared base
fbe04000-fbe04c17 : sdma 0 base
fbe04000-fbe04c17 : sdma_regs
fbe06000-fbe06c17 : sdma 1 base
fbe06000-fbe06c17 : sdma_regs
fbe08000-fbe08037 : mpsc 0 base
fbe08000-fbe08037 : mpsc_regs
fbe09000-fbe09037 : mpsc 1 base
fbe09000-fbe09037 : mpsc_regs
fbe0b200-fbe0b207 : brg 0 base
fbe0b200-fbe0b207 : brg_regs
fbe0b208-fbe0b20f : brg 1 base
fbe0b208-fbe0b20f : brg_regs
fbe0b400-fbe0b40b : mpsc routing base
fbe0b400-fbe0b40b : mpsc_routing_regs
fbe0b800-fbe0b883 : sdma intr base
fbe0b800-fbe0b883 : sdma_intr_regs
fbe0c000-fbe0c01f : mv64xxx i2c base
fbe0c000-fbe0c01f : mv64xxx_i2c adapter
ff000000-ffffffff : physmap-flash.0
ff000000-ffffffff : physmap-flash.0
Can you please anybody tell me how to interpret this to get physical RAM addresses. Or is there any patch available to get the details of System RAM from /proc/iomem ??
Thanks in advance,
Rajasekaran.P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20071128/732809b4/attachment.htm
More information about the Linuxppc-embedded
mailing list