- Joined
- Aug 28, 2015
- Messages
- 42
- Motherboard
- Asus Zenbook UX305FA (Clover UEFI)
- CPU
- M-5Y10/BGA
- Graphics
- HD5300, 1920x1080
- Mac
- Classic Mac
- Mobile Phone
Disassembling ACPI files
Although the extracted native files can be opened directly in MaciASL, it is not recommended. Opening an AML file directly in MaciASL will cause MaciASL to disassemble the file (with iasl) standalone, and if the AML has complex references to other AMLs, it will not disassemble it correctly. You'll be left with many hard to fix errors.
As a result, it is better to disassemble all files as a group using iasl in Terminal. To prepare, place all DSDT and SSDT files in a single directory (DO NOT copy ACPI files that don't begin with DSDT or SSDT), and change the names such that they have an .aml extension. You will need a recent build of iasl to disassemble them properly. There is an appropriate version available here: https://bitbucket.org/RehabMan/acpica/downloads. It is a good idea to copy the iasl binary to your path (eg. /usr/bin), so it is easily accessed from Terminal.
In OS X Terminal:
Code:cd "to directory where you placed all SSDT/DSDT" iasl -da -dl *.aml
Note: Do NOT attempt to disassemble other ACPI files with the -da option. It will not work.
From this point onward, you will work exclusively with the resulting *.dsl files using MaciASL. Of course, to use them you must save as "ACPI Machine Language Binary" with an extension .aml and place them where they will be loaded by the bootloader. But keep your patched .dsl files in case you need to apply more patches in the future.
Let me state it quite simply (because this comes up a lot): If you are opening an AML file directly in MaciASL and clicking Compile, you are doing it WRONG. Let that soak into the gray matter between your ears for a minute.
When inputting iasl -da -dl *.aml into terminal, I get a responce of -bash: iasl: command not found. How else should I disassemble the files? Or should I follow the Fast Lane instructions from [guide] Asus Zenbook UX305FA Using Clover UEFI? This is not the first post install issue I've had, since I'm trying to progress without a working bootloader (mentioned in thread on PTIDSensors), and will then have to fix the battery display, wifi, backlight control, and audio. I have the links bookmarked for them, but I cant get to them until I deal with the dissasembly and bootloader issues.