SJ_UnderWater
Moderator
- Joined
- Dec 3, 2010
- Messages
- 461
- Motherboard
- Gigabyte GA-H55M-S2V
- CPU
- Intel i3-530
- Graphics
- HIS HD 6570
- Mac
-
- Classic Mac
-
- Mobile Phone
-
Anyone wanting to extract Data objects using ioreg from Terminal can use the extract below. Uses include extracting your DSDT, SSDT, video BIOS rom, and so on. Replace <selector> with your ioreg selector, <property> with the registry entry's property you wish to extract, and <output> with the desired file name.
DSDT:
AMD/ATI BIOS ROM (may have to replace display with GFX0 or similar)
NVidia BIOS ROM (MUST boot with VBIOS=Yes, may have to replace display with GFX0 or similar)
Make sure you rename the rom <vendor>_<device>.rom if you wish to inject your edited copy with Chimera in /Extra.
--edit
RehabMan has noted that `xpath` may fail when trying to read full plists if you don't have internet access. In this case place " tail -n +3 | " in front of xpath, e.g.
DSDT with internet:
DSDT without internet:
Code:
ioreg -arw0 -d1 <selector> | xpath '//key[.="<field>"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/<output>
Code:
ioreg -arw0 -d1 -c AppleACPIPlatformExpert | xpath '//key[.="DSDT"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/DSDT.aml
Code:
ioreg -arw0 -d1 -n display | xpath '//key[.="ATY,bin_image"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/vbios.rom
Code:
ioreg -arw0 -d1 -n display | xpath '//key[.="vbios"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/vbios.rom
--edit
RehabMan has noted that `xpath` may fail when trying to read full plists if you don't have internet access. In this case place " tail -n +3 | " in front of xpath, e.g.
DSDT with internet:
Code:
ioreg -arw0 -d1 -c AppleACPIPlatformExpert | xpath '//key[.="DSDT"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/DSDT.aml
Code:
ioreg -arw0 -d1 -c AppleACPIPlatformExpert | tail -n +3 | xpath '//key[.="DSDT"]/following-sibling::*[1]/text()' | base64 -D -o ~/Desktop/DSDT.aml