68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Find total RAM amount in Open Firmware
Posted by: slimac55 on 2008-11-11 02:20:54
With New World Macs I get, I'd like to be able to find the RAM amount quickly and easily, so is there an Open Firmware command to get the total amount of RAM?

Posted by: LCGuy on 2008-11-11 03:21:36
I'm not sure, but wouldn't it be easier to boot the machine up and go to About This Mac?

Posted by: paws on 2008-11-11 08:36:46
It is possibly, I can't remember off-hand, but it probably involves finding the path to the RAM and getting .properties. Try doing

> dev / ls

to see a list of devices, and then finding the path of the RAM. Then type in

> dev /path/to/ram .properties

I think that's it, anyways.

Posted by: slimac55 on 2008-11-11 12:44:23
I did the following command:

dev /memory@0 .properties

and it came up with the following:

name         memory
device_type  memory
reg          00000000 00000000
            00000000 02000000
slot-names   00000003
            DIMM0/J13
            DIMM1/J14
available:   00003000 01bfd000
dimm-info:   00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            8008040b 09024000 01a07500 80080001 8f020701 01000ef0 90386c1e 141e3c04
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 000012ef
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 00006200
            00000000 00000000 00000000 00000000 00000000 00000000 00000000 000066f6
dimm-types
            SDRAM
dimm-speeds
            PC100-333S

ok
It doesn't seem to mention size. Is it a different device I need to be looking at or is that large amount of binary supposed to tell me something.

Posted by: paws on 2008-11-11 16:52:37
http://www.kernelthread.com/mac/osx/arch_boot.html

It's in the reg section. My iBook has two 512MB modules and so has

00000000 20000000

20000000 20000000

Yours would appear to have one 512MB module installed.

Posted by: slimac55 on 2008-11-12 13:17:40
http://www.kernelthread.com/mac/osx/arch_boot.html
It's in the reg section. My iBook has two 512MB modules and so has

00000000 20000000

20000000 20000000

Yours would appear to have one 512MB module installed.
That's interesting because my server seems to read the RAM stick as 32MB.

Posted by: paws on 2008-11-12 13:42:43
That is odd - do you have more information? What system is this?

Posted by: paws on 2008-11-12 13:43:34
OH.

Wait. I misread the number you posted. 02000000 isn't the same as 20000000... It's 1/16 of it. So one 32MB stick, yes.

Posted by: slimac55 on 2008-11-13 22:29:52
So what is the algorithm for deciphering these numbers?

Posted by: paws on 2008-11-14 04:56:30
It's just hexadecimal bytes.

Posted by: slimac55 on 2008-11-14 12:10:39
It's just hexadecimal bytes.
Ah, thanks.

1