PRAM and NVRAM differences and overlap with eachother and UEFI firmware chip
Solution 1:
Yes, PRAM is stored on the same NVRAM chip as the firmware variables, but it is managed separately. It actually shows up as a device in the firmware device tree.
HT1242: What's stored in PRAM
When you reset one, you reset the other.
HT1379: Resetting your Mac's PRAM and NVRAM
AFAIK, Apple has never supported direct developer access to PRAM, so it is not documented well (or at all). The functions readXPRAM
and writeXPRAM
can be used to access the raw bytes, although these days they are just wrappers around IOKIT functions which access the APL,MacOS75
partition in NVRAM.
The nvram
command line program only manipulates the firmware variables stored in NVRAM, and so does not let you access the PRAM partition.