Jump to content

DSDT disass+compile: newest iASLme / IASL :, Juli 11th 2012


mitch_de
 Share

265 posts in this topic

Recommended Posts

Hello. I used the last compilator. But it did not work for me. What did I do wrong?

Last login: Fri Mar 15 19:20:13 on ttys000
admins-imac:~ admin$ /Users/admin/Desktop/zlib/iasl -ta -vo /Users/admin/Desktop/zlib/DSDT.dsl
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130214-32 [Mar  7 2013]
Copyright (c) 2000 - 2013 Intel Corporation
Error    4092 - Could not open file "(null)" (No such file or directory)
/Users/admin/Desktop/zlib/DSDT.dsl    491:			 Name (_PCL, Package (0x01) 
Optimize 6039 -				   Integer optimized to single-byte AML opcode ^  (One)
/Users/admin/Desktop/zlib/DSDT.dsl    583:			 Name (_PCL, Package (0x01) 
Optimize 6039 -				   Integer optimized to single-byte AML opcode ^  (One)
/Users/admin/Desktop/zlib/DSDT.dsl   1167:				 Name (BGDS, Package (0x01)
Optimize 6039 -					   Integer optimized to single-byte AML opcode ^  (One)
/Users/admin/Desktop/zlib/DSDT.dsl   2815:			 Name (_PSL, Package (0x01) 
Optimize 6039 -				   Integer optimized to single-byte AML opcode ^  (One)
/Users/admin/Desktop/zlib/DSDT.dsl   7258:						 Name (TMP1, Package (0x01)
Optimize 6039 -							   Integer optimized to single-byte AML opcode ^  (One)
/Users/admin/Desktop/zlib/DSDT.dsl   7392:					 Return (Package (0x01)
Optimize 6039 -					   Integer optimized to single-byte AML opcode ^  (One)
admins-imac:~ admin$

DSDT.aml.zip

iasl-20130307.zip

Link to comment
Share on other sites

  • 2 weeks later...

11 July 2012. Summary of changes for version 20120711:

[color=#000000]1) ACPICA Kernel-resident Subsystem:[/color]
Fixed a possible fault in the return package object repair code. Fixes a
problem that can occur when a lone package object is wrapped with an outer
package object in order to force conformance to the ACPI specification. Can
affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, _DLM,
_CSD, _PSD, _TSD.

Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
ARB_DIS bit must be implemented in the host-dependent C3 processor power state
support. Note, ARB_DIS is obsolete and only applies to older chipsets, both
Intel and other vendors. (for Intel: ICH4-M and earlier)

This change removes the code to disable/enable bus master arbitration during
suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register causes
resume problems on some machines. The change has been in use for over seven
years within Linux.

Implemented two new external interfaces to support host-directed dynamic ACPI
table load and unload. They are intended to simplify the host implementation
of hot-plug support:
AcpiLoadTable: Load an SSDT from a buffer into the namespace.
AcpiUnloadParentTable: Unload an SSDT via a named object owned by the table.
See the ACPICA reference for additional details. Adds one new file,
components/tables/tbxfload.c

Implemented and deployed two new interfaces for errors and warnings that are
known to be caused by BIOS/firmware issues:
AcpiBiosError: Prints "ACPI Firmware Error" message.
AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
Deployed these new interfaces in the ACPICA Table Manager code for ACPI table
and FADT errors. Additional deployment to be completed as appropriate in the
future. The associated conditional macros are ACPI_BIOS_ERROR and
ACPI_BIOS_WARNING. See the ACPICA reference for additional details. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=843"]ACPICA BZ
843[/url].

Implicit notify support: ensure that no memory allocation occurs within a
critical region. This fix moves a memory allocation outside of the time that a
spinlock is held. Fixes issues on systems that do not allow this behavior.
Jung-uk Kim.

Split exception code utilities and tables into a new file, utilities/utexcep.c



2) iASL Compiler/Disassembler and Tools:

iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead of
0. Jung-uk Kim.

Debugger: Enhanced the "tables" command to emit additional information about
the current set of ACPI tables, including the owner ID and flags decode.

Debugger: Reimplemented the "unload" command to use the new
AcpiUnloadParentTable external interface. This command was disable previously
due to need for an unload interface.

AcpiHelp: Added a new option to decode ACPICA exception codes. The -e option
will decode 16-bit hex status codes (ACPI_STATUS) to name strings.[/codeBOX]

 

 

[b]iASL command line version 20120711 ([/b][b]July 11th 2012[/b][b]), Universal Binary (32 & 64 bit) -> [/b]http://drop.st/NtB93d

 

[b]iaslMe 1.33 version 20120711 (June 11[/b][b]th 2012[/b][b]), Universal Binary (32 & 64 bit)[/b] -> http://drop.st/jLsMBx

 

 

[b]Creadits to:[/b] cVad, Kabyl, Slice, STLVNUB

 

Reupload iaslMe please.

 

post-69729-0-94885800-1364230401_thumb.png

Link to comment
Share on other sites

  • 4 weeks later...

For anyone using Homebrew, here's an iasl formula:

 

require 'formula'
class Iasl < Formula
 homepage 'https://www.acpica.org'
 url 'https://acpica.org/sites/acpica/files/acpica-unix-20130418.tar.gz'
 def patches
   DATA
 end
 def install
   ENV.j1
   bin.mkpath
   system "make iasl HOST=_LINUX"
   system "make install PROGS=iasl INSTALLDIR=#{bin}"
 end
 def test
   system "#{bin}/iasl -v"
 end
end
__END__
# BSD cp doesn't understand --remove-destination so use -force instead
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
index 65242e0..14e49c4 100644
--- a/generate/unix/Makefile.config
+++ b/generate/unix/Makefile.config
@@ -61,7 +61,7 @@ RENAMEPROG = \
#
COPYPROG = \
 @mkdir -p ../$(BINDIR); \
- cp --remove-destination $(PROG) ../$(BINDIR); \
+ cp -f $(PROG) ../$(BINDIR); \
 echo "Copied $(PROG) to $(FINAL_PROG)";
#
# BSD install recursive directory creating won't let you copy the file also,
# unlike GNU's. Just have install install the correct binary and rely on
# bin.mkpath to create the destdir beforehand
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
index 14e49c4..62eb4eb 100644
--- a/generate/unix/Makefile.config
+++ b/generate/unix/Makefile.config
@@ -45,7 +45,7 @@ BITSFLAG =   -m$(BITS)
COMPILEOBJ = $(CC) -c $(CFLAGS) $(OPT_CFLAGS) -o $@ $<
LINKPROG =   $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS)
INSTALLDIR = /usr/bin
-INSTALLPROG = install -D ../$(BINDIR)/$(PROG) $(DESTDIR)$(INSTALLDIR)/$(PROG)
+INSTALLPROG = install ../$(BINDIR)/$(PROG) $(DESTDIR)$(INSTALLDIR)/$(PROG)

#
# Rename a .exe file if necessary

 

Sadly, nothing happened when I tried to submit it, but it's easy to keep up to date manually: just change "20130418" with "<latest version of ACPICA as reported on their site>" to get the newest version.

  • Like 1
Link to comment
Share on other sites

As an addition, here is a formula to compile all acpica utilities. Thanks to lianqi.

Additionally, you can build directly from the git repo with "install --HEAD".

 

require 'formula'

class Acpica < Formula
homepage 'https://www.acpica.org/'
url 'https://acpica.org/sites/acpica/files/acpica-unix-20130517.tar.gz'
sha1 '11dc21c2e1314b727a6ca2d8f55af6b74e9f3134'

head 'https://github.com/acpica/acpica.git'

def install
ENV.deparallelize
ENV.no_optimization
system "make", "HOST=_APPLE", "PREFIX=#{prefix}"
system "make", "install", "HOST=_APPLE", "PREFIX=#{prefix}"
test
end

test do
system "#{bin}/iasl -v"
end
end

 

 

History:

2013-05-27 official acpica formula available

2013-05-18 acpica now has OS X compilation support

2013-05-10 Reflects recent Makefile update

Edited by k3nny
  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 11 months later...

This is your version:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20140926-64 [Oct 15 2014]
Copyright (c) 2000 - 2014 Intel Corporation

It is suspicious, because we had this version ( http://www.hackintoshosx.com/files/file/4224-iasl-intel-acpi-tools-x64/ ) before:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20140926-64 [Sep 26 2014]
Copyright (c) 2000 - 2014 Intel Corporation

So why did you recompiled it? Your version have 11Kb bigger file size, but the same modification date (what definitely wrong). So whats going on?

 

post-359059-0-11035900-1413875686_thumb.jpg

 

MaciASL (with updated iasl5 15.10.2014)

iasl5 only (latest version 15.10.2014) (just rename it to iasl if you want to put into /usr/bin)

Link to comment
Share on other sites

  • 3 months later...

I am trying to convert ASL (*.dsl) to AML (*.dat) file (using iasl -tc *.dsl )but i am facing this error

------------------------------------------------------------------------------------
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20150204-64 [Feb  5 2015]
Copyright © 2000 - 2015 Intel Corporation

Compiler aborting due to parser-detected syntax error(s)
dsdt.dsl     66:         }
Error    6126 -         ^ syntax error, unexpected '}'

dsdt.dsl  13916:
Error    6126 - syntax error, unexpected $end and premature End-Of-File

ASL Input:     dsdt.dsl - 13916 lines, 431044 bytes, 5401 keywords
Hex Dump:      dsdt.hex - 217 bytes

Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
--------------------------------------------------------------------------------------------------------------------
 

and we did not change the *.dsl (ASL)file
which i got from iasl -d *.dat

 

I am getting error on this line, But not able to debug it.

 

    Method (ADBG, 1, Serialized)
    {
        If (CondRefOf (MDBG))
        {
            Return (MDBG) /* External reference */
            Arg0
        } // getting error at this point

        Return (Zero)
    }
 

please download the complete file and let me know why i got this error.
 

https://www.dropbox....e/dsdt.dsl?dl=0

Link to comment
Share on other sites

I am trying to convert ASL (*.dsl) to AML (*.dat) file (using iasl -tc *.dsl )but i am facing this error

------------------------------------------------------------------------------------

Intel ACPI Component Architecture

ASL+ Optimizing Compiler version 20150204-64 [Feb  5 2015]

Copyright © 2000 - 2015 Intel Corporation

 

Compiler aborting due to parser-detected syntax error(s)

dsdt.dsl     66:         }

Error    6126 -         ^ syntax error, unexpected '}'

 

dsdt.dsl  13916:

Error    6126 - syntax error, unexpected $end and premature End-Of-File

 

ASL Input:     dsdt.dsl - 13916 lines, 431044 bytes, 5401 keywords

Hex Dump:      dsdt.hex - 217 bytes

 

Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

--------------------------------------------------------------------------------------------------------------------

 

and we did not change the *.dsl (ASL)file

which i got from iasl -d *.dat

 

I am getting error on this line, But not able to debug it.

 

    Method (ADBG, 1, Serialized)

    {

        If (CondRefOf (MDBG))

        {

            Return (MDBG) /* External reference */

            Arg0

        } // getting error at this point

 

        Return (Zero)

    }

 

please download the complete file and let me know why i got this error.

 

https://www.dropbox....e/dsdt.dsl?dl=0

It is a very common error, and is caused by iasl's bad guess on the number of parameters for MDBG.

 

The fix is simple... (and obvious). Just edit the method to read:

  Method (ADBG, 1, Serialized)
    {
        Return (Zero)
    }
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 3 years later...
 Share

×
×
  • Create New...