Thread
Find total RAM amount in Open Firmware
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?
I'm not sure, but wouldn't it be easier to boot the machine up and go to About This Mac?
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.
> 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.
I did the following command:
dev /memory@0 .properties
and it came up with the following:
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.
dev /memory@0 .properties
and it came up with the following:
Code:
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
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.
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.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 is odd - do you have more information? What system is this?
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.
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.
So what is the algorithm for deciphering these numbers?
It's just hexadecimal bytes.