Whaka Posted April 20, 2015 Share Posted April 20, 2015 Hi, first, the hardware : atom N270 1,6 Ghz (32 bits) ICH7-M - GMA 945 2 GB of ram under 10.6.8 i have some troubles after dissasemble this good old netbook dsdt. i extracted tables under linux, then dissasemble with iasl under OSX. no problems, i get this : Mac-Pro-de-Whaka:tables Whaka$ iasl -e SSDT*.aml -d DSDT.aml Intel ACPI Component Architecture ASL Optimizing Compiler version 20140828-64 [Aug 28 2014] Copyright (c) 2000 - 2014 Intel Corporation Loading Acpi table from file DSDT.aml - Length 00034561 (008701) ACPI: DSDT 0x0000000000000000 008701 (v01 14680 14680F02 00000F02 INTL 20051117) Acpi table [DSDT] successfully installed and loaded Loading Acpi table from file SSDT5.aml - Length 00000133 (000085) ACPI: SSDT 0x0000000000000000 000085 (v01 PmRef Cpu1Cst 00003000 INTL 20051117) Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Loading Acpi table from file SSDT4.aml - Length 00000204 (0000CC) ACPI: SSDT 0x0000000000000000 0000CC (v01 PmRef Cpu1Ist 00003000 INTL 20051117) Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Loading Acpi table from file SSDT3.aml - Length 00001488 (0005D0) ACPI: SSDT 0x0000000000000000 0005D0 (v01 PmRef Cpu0Cst 00003001 INTL 20051117) Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Loading Acpi table from file SSDT2.aml - Length 00000572 (00023C) ACPI: SSDT 0x0000000000000000 00023C (v01 PmRef Cpu0Ist 00003000 INTL 20051117) Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Loading Acpi table from file SSDT.aml - Length 00001264 (0004F0) ACPI: SSDT 0x0000000000000000 0004F0 (v01 PmRef CpuPm 00003000 INTL 20051117) Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT] Pass 2 parse of [SSDT] Pass 1 parse of [DSDT] Pass 2 parse of [DSDT] Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) Parsing completed Disassembly completed ASL Output: DSDT.dsl - 343192 bytes but, when i want to compile the dsdt with maciasl, it's a big big fail. tons of errors and the tree is not complete at all. something is originally really wrong in this dsdt, but i don't know what. i tried again : extracted tables under linux > iasl under osx, same result everytime. i even reflashed the bios to be sure, same result. someone could take a look inside this ? i'm lost here are the dissasembled dsdt, and the originals tables extracted from linux. dsdt compaq CQ10-130SF.zip Thanks Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/ Share on other sites More sharing options...
intruder16 Posted April 20, 2015 Share Posted April 20, 2015 Use this command to decompile. iasl -da -dl * Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2129707 Share on other sites More sharing options...
Whaka Posted April 21, 2015 Author Share Posted April 21, 2015 Hi, i tried with -da -dl, but -dl option seems to be not present. i use the most recent iasl i found (august 2014) it's ok ? Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2129934 Share on other sites More sharing options...
RehabMan Posted April 21, 2015 Share Posted April 21, 2015 Hi, i tried with -da -dl, but -dl option seems to be not present. i use the most recent iasl i found (august 2014) it's ok ? https://bitbucket.org/RehabMan/acpica/downloads Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2129937 Share on other sites More sharing options...
Whaka Posted April 21, 2015 Author Share Posted April 21, 2015 thanks guys but still the same issue. when i want to simply compile it (with acpi 4, i think it's the better choice ?), i still get this : Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2129950 Share on other sites More sharing options...
RehabMan Posted April 21, 2015 Share Posted April 21, 2015 thanks guys but still the same issue. when i want to simply compile it (with acpi 4, i think it's the better choice ?), i still get this : Capture d’écran 2015-04-21 à 18.02.06.png Use ACPI 5.0. Be prepared to fix errors. Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2129995 Share on other sites More sharing options...
Whaka Posted April 22, 2015 Author Share Posted April 22, 2015 Be prepared to fix errors. 5203, 6126, syntax error, unexpected PARSEOP_DEVICE, expecting $end and premature End-Of-File yep... this one is gonna make me crazy... Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2130068 Share on other sites More sharing options...
RehabMan Posted April 22, 2015 Share Posted April 22, 2015 5203, 6126, syntax error, unexpected PARSEOP_DEVICE, expecting $end and premature End-Of-File yep... this one is gonna make me crazy... Use ACPI5. Disassemble with 'iasl -da -dl *.aml' The errors you have are obvious... Intel ACPI Component Architecture ASL+ Optimizing Compiler version 20150410-64 Copyright (c) 2000 - 2015 Intel Corporation Compiler aborting due to parser-detected syntax error(s) dsdt.dsl 5020: If (_OSI ("Windows 2009")) Error 6126 - ^ syntax error, unexpected PARSEOP_IF dsdt.dsl 5066: If (_OSI ("Windows 2009")) {} Error 6126 - ^ syntax error, unexpected PARSEOP_IF dsdt.dsl 5082: If (_OSI ("Windows 2009")) {} Error 6126 - ^ syntax error, unexpected PARSEOP_IF dsdt.dsl 5089: Error 6126 - syntax error, unexpected PARSEOP_DEVICE, expecting $end and premature End-Of-File ASL Input: dsdt.dsl - 5089 lines, 206458 bytes, 1727 keywords Compilation complete. 4 Errors, 0 Warnings, 0 Remarks, 0 Optimizations Note code not allowed by ACPI spec anymore... If (_OSI ("Windows 2009")) { Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake { If (Arg0) { Store (0x03, URES) } Else { Store (Zero, URES) } Acquire (ECMX, 0xFFFF) If (ECRG) { If (LEqual (^^SBRG.EC0.ADP, Zero)) { Store (Zero, URES) } } Release (ECMX) } } Change to: //If (_OSI ("Windows 2009")) //{ Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake { If (Arg0) { Store (0x03, URES) } Else { Store (Zero, URES) } Acquire (ECMX, 0xFFFF) If (ECRG) { If (LEqual (^^SBRG.EC0.ADP, Zero)) { Store (Zero, URES) } } Release (ECMX) } //} And really dumb stuff: If (_OSI ("Windows 2009")) {} Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State { Return (0x03) } Replace: //If (_OSI ("Windows 2009")) {} Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State { Return (0x03) } Repeat for all occurrences. After you fix all of that, you'll have _PLD buffer/package error. Use "Fix _PLD Buffer/Package Error" from: https://github.com/RehabMan/Laptop-DSDT-Patch Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2130150 Share on other sites More sharing options...
Whaka Posted April 22, 2015 Author Share Posted April 22, 2015 Many many thanks, you made my day Link to comment https://www.insanelymac.com/forum/topic/305762-compaq-cq10-130sf-bad-dsdt-dissasemble/#findComment-2130170 Share on other sites More sharing options...
Recommended Posts