Sunday, January 16, 2011

Memory System Configuration

OS: Cent OS 5.5
Chipset: AMDK8

you could get memory system configuration from following file:
/sys/bus/pci/devices/0000\:00\:18.0/  /* this is bus 0, device 18, function 0 registers */

E.g.
/* This is use hexdump to see the memory configuration */ 
hexdump /sys/bus/pci/devices/0000\:00\:18.0/config -v > ~/f0_conf
hexdump /sys/bus/pci/devices/0000\:00\:18.1/config -v > ~/f1_conf
hexdump /sys/bus/pci/devices/0000\:00\:18.2/config -v > ~/f2_conf
hexdump /sys/bus/pci/devices/0000\:00\:18.3/config -v > ~/f3_conf

For the meaning of these 256 bytes, please read the BIOS Kernel Development Guide(BKDG). There is another article about this

No comments: