Jump to content

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


  • Please log in to reply
266 replies to this topic

#1
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,880 posts
  • Gender:Male
  • Location:Stuttgart / Germany
DL link to newest iasl at end of this post.
LASTEST NOW:
, Juli 11th 2012 : 32Bit/64 Bit : by Rednous & others

NEW SCRIPT:
Downloads Acpica latest source from GitHub and compiles

Always have latest version...
DL: end of the page



Also sometimes compiled an 32 Bit Version for 32 Bit CPUs (AMD & co) (up to version 28_05)
INFO:since 28_04_2010 and up Versions does some lenght checks which may give errors if your dsdt has some wrong lenght parameters, whereas older versions didnt ! This helps to get dsdt bugfree.
Read therefor latest postings about that new check errors and maybe fixes for (sure wrong lenght definitions in your dsdt!)


SOLUTION found to edit real wrong length found ny new iasl version , look at my postings !


---------
SUMMARY of why using newer iasl:
Newer versions of iasl (and iaslMe with newer iasl) help to get dsdt.dsl source complied or getting much less compile errors.
EDIT: Even more interesting as "optimisations" : Newer iasl compiler may also find more bugs (errors) in your bios/dsdt ! So you can fix them .
It will NOT help to avoid os x specidic problems like sleep, usb, cpu=1 : therefore you need adding known dsdt source patching by changes of dsdt source and/or dsdt device injection code.

Hi,
i was a bit ??? as i see in an DSDT of an other users didnt have the well known _WAK compile error fix in his _WAK part of dsdt.
The fix adds some return values at the end to avoid the "has no return values error" on compiling the .dsl to .aml
My _WAK part can look now :
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>....
}
Notify (\_SB.PCI0.USB0, Zero)
Notify (\_SB.PCI0.USB1, Zero)
Notify (\_SB.PCI0.USB2, Zero)
Notify (\_SB.PCI0.USB3, Zero)
Notify (\_SB.PCI0.USB4, Zero)
Notify (\_SB.PCI0.USB5, Zero)
}</div>


No more compile error (needed return .... after last notify..)
So i used an newer iasl version - and : really no more _WAK fix needed to avoid compile error = only warning (=you get an dsdt.aml)!
iasl itself gets updated often (by intel) so you may update yours also .
Lots of fixes between newer and older (2007/2008 versions most here will use!)
iaslme tool, which is really easy to use:
drag&drop your .dsl on iaslme = compiled .aml in an session subfolder with errorlog
drag&drop your .aml on iaslme = disassembled .dsl

If you want the iasl as commandline itself you can simple show packadge content / ressources and use that .

DL: (i update here the dl links if needed)

iaslme (newest with iasl ), from some kind dev: an really easy to to use that iasl commandline tool: drag&drop .dsl on it > .aml (or error ;) ), drag&drop an .aml > dsl

DL: , at Posting 242
http://www.insanelym...5

Attached Files



#2
dubhead

dubhead

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 165 posts
Thanks mitch_de for the Heads up on the subject!!

#3
cVaD

cVaD

    InsanelyMac Geek

  • Coders
  • 219 posts
  • Gender:Male
Attached File  iASLMe.v1.2.20090903.PNG   28.22KB   2432 downloads

Now the version of included IASL is displayed in the header.
You can safely update the version of yourself.

Attached File  iASLMe.v1.2.20090903.zip   270.85KB   1393 downloads

#4
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK
Thanks mitch and cVaD

Great :)

#5
Konami®

Konami®

    InsanelyMac Legend

  • Donators
  • 956 posts
  • Gender:Male
  • Location:Pennsylvania
Thank you guys!

#6
ZenGiga

ZenGiga

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 134 posts

No more compile error (needed return .... after last notify..)

Maybe no errors, but still a warning?

/Users/Admin/Hackintosh/DSDT tools and info/dsdt.dsl 255: Method (_WAK, 1, NotSerialized)
Warning 1080 - Reserved method must return a value ^ (_WAK)


Can I ignore that or am I doing something wrong?
dsdt.aml was generated with patcher02b5 and disassembled/compiled with cVaD's linked update.

#7
ZenGiga

ZenGiga

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 134 posts

Can I ignore that or am I doing something wrong?

So I ignored the warning, it works fine :whistle: Thanks.

#8
thiagomorales

thiagomorales

    Think different...

  • Members
  • PipPipPip
  • 121 posts
  • Gender:Male
  • Location:Brazil - Rio de Janeiro
If you want iASL binary only, get here below, or compile it yourself.

1. You need xCode installed
2. Get the current source from http://www.acpica.or...source_code.php
3. Get the 20081031 source from http://www.acpica.or...ix-20081031.php
4. Open Terminal, change dir to where you want to have your source code.
5. Extract the source tarballs into separate directories by running
tar xf ~/Downloads/iasl-20090521/acpica-unix-20090521.tar
	tar xf ~/Downloads/iasl-20090521/acpica-unix-20081031.tar
6. Define shorthands for later use:
export WORKING="`pwd`/acpica-unix-20081031"
	export CURRENT="`pwd`/acpica-unix-20090521"
7. Run
cp -p "$WORKING/osunixxf.c" "$CURRENT/osunixxf.c"
8. Edit "$CURRENT/include/platform/aclinux.h": Replace line 163, which reads

#define ACPI_THREAD_ID			  pthread_t
by
#define ACPI_THREAD_ID			  void *
9. Change directory to "$CURRENT/compiler" and run the following command.
make LDLIBS=''
10. Now you should have a file called "iasl" in "$CURRENT/compiler". This is your ASL compiler :P .
Intel ACPI Component Architecture
   ASL Optimizing Compiler version 20090521 [Jun 16 2009]
   Copyright © 2000 - 2009 Intel Corporation
   Supports ACPI Specification Revision 3.0a

For iasl Sept-03-2009 version need replace osunixxf.c instead of osunix.c ..

Attached Files



#9
lord_webi

lord_webi

    ./root86.com

  • Members
  • PipPipPipPipPipPipPip
  • 648 posts
  • Gender:Male
  • Location:Duesseldorf, Germany
  • Interests:WingTsun, osx86, western shooting
and why is date of iasl after decrompressing 28.01.2009 ???

#10
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,880 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Someones birthday :P :) - I dont know.

#11
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

Someones birthday :( :) - I dont know.


lol - cheers mitch_de

#12
asstastic

asstastic

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 318 posts
  • Gender:Male
  • Location:Austin, TX
Thanks for making the latest binaries available. I should be able to compile a error-free DSDT now. The DSDT GUI tool comes with a pretty old version of iasl that throws up a lot of errors over pretty trivial coding laziness.

#13
cVaD

cVaD

    InsanelyMac Geek

  • Coders
  • 219 posts
  • Gender:Male

...
The DSDT GUI tool comes with a pretty old version of iasl that throws up a lot of errors over pretty trivial coding laziness.


Why not just update the iasl version in the tool?

#14
digital_dreamer

digital_dreamer

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,077 posts
  • Gender:Male
  • Location:Missouri USA
Thanks for this update, guys!

regards,
MAJ

#15
np_

np_

  • Retired Developers
  • 339 posts

8. Edit "$CURRENT/include/platform/aclinux.h": Replace line 163, which reads


or correct way

add after line 158 (#include <unisdt.h>)
#include <pthread.h>

and edit "osunixxf.c" function "AcpiOsGetThreadID()

replace line 1110 "return getpid());" with "return (pthread_self());"


rest same

#16
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,880 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Thanks !
Hint point 6. export CURRENT="`pwd`/acpica-unix-20090521"

I did dump an export CURRENT="`pwd`/acpica-unix-20090521" - sure not working (Point 7 cp ... fails) , because that current source daily/weekly... changes - so change also that last 4 month+day numbers

"10. Now you should have a file called "iasl" in "$CURRENT/compiler". This is your ASL compiler :) "
YEAH! (screenshoot = compiled result = ready to rubmle :)
THANKS for that step by step how to dl + compile !

EDIT: I edited the second thread information line to : newest iasl here and also made an dl share for newest iasl (compiled) and that posted iaslme tool (within 0903 iasl) there.
So community must not search all postings for newest version.
Maybe useful to make that iasl (DSDT) thread sticky by someone of the mods.

Attached Files



#17
MuppMan

MuppMan

    InsanelyMac Protégé

  • Members
  • PipPip
  • 76 posts
A stupid question perhaps, but how do I check if the DSDT.aml is loaded or not ? Is there a terminal command ? 

Thanks!

#18
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil
Extract DSDT under OSX and compare it to your non-patched DSDT.

#19
geekstinator

geekstinator

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

Extract DSDT under OSX and compare it to your non-patched DSDT.


How do you extract the DSDT under OSX? Noob question I know, but I don't know how.

#20
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil
You can use fassl's DSDT Patcher or DSDTSE.

There's also a script floating around that will work.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy