Jump to content

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


  • Please log in to reply
266 replies to this topic

#21
GoodWorld

GoodWorld

    InsanelyMac Protégé

  • Members
  • Pip
  • 29 posts
Hey, I would like to get my rtl 8139 family dsdt.dsl.

What should I modify ?


==============================================================
credit to mitch_de, I got from mitch_de's patched DSDT.


			Device (LAN0)
				{
					Name (_ADR, 0x00)
					Name (_PRW, Package (0x02)
					{
						0x0B, 
						0x04
					})
					Method (_DSM, 4, NotSerialized)
					{
						Store (Package (0x04)
							{
								"built-in", 
								Buffer (0x01)
								{
									0x01
								}, 

								"device_type", 
								Buffer (0x09)
								{
									"ethernet"
								}
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
				}


========================================================


#22
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany
First you must know what name your LAN device has in the DSDT. You can look in the IORegistryExplorer and look where the lan drivers are listed.

Then you can use:
[size=1]Method (_DSM, 4, NotSerialized)                    {                        Store (Package (0x04)                            {                                "built-in",                                 Buffer (0x01)                                {                                    0x01                                },                                 "device_type",                                 Buffer (0x09)                                {                                    "ethernet"                                }                            }, Local0)                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))                        Return (Local0)                    }[/size]

In the Device (yours) part add that code above - thats all. There is no special code for exact lan chip device ID needed.
Also some PCI EFI bootloaders have on boot option to set lan to build in also (does same as that above).
If you already have that method DTGP in use (for other injextions) that all. If no DTGP you must first add this method into DSDT.
But for further Q&A please use one of the DSDT threads in the forum part Genuis (all how tos are there).

#23
leclercqr

leclercqr

    InsanelyMac Protégé

  • Members
  • PipPip
  • 93 posts
  • Gender:Male
  • Location:Adelaide, Australia
Guys,

Thanks for the updated 'iasl'. I'm pretty new to DSDT hacking so please excuse my ignorance.

I extracted a unpatched DSDT.dsl using 'Patcher02Beta' applied the RTC fix for Snow Leopard and changed 'AZAL' to 'HDEF' (two places) just to start off. With the version of 'iasl' I had it returned over 200 error and didn't list them but with the new on it returned only 2 (Local0) errors and the _WAK warning.

While this is great because it won't take long to get a compilable DSDT.dsl should I be concerned about where the other 198+ errors went or is the new 'iasl' just that much better?

Thanks

#24
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany
I would say (my opinion) that we must see two different things comparing newer iasl and older ones:
1. The fix of compiler errors, handling of "not good" dsdt source code = getting complied or not
and
2. The result in working / praktical way of an compiled dsdt
I think that if an dsdt source getting compiled (no errors by lots of workarounds: older iasl / less workarounds newer iasl) the result (woring) is the same.

So major benefit of newer iasl is getting dsdt compiled easier (less errors) and not getting an "better working" dsdt.aml. I dont think that problems with sleep,... getting fixed with newer iasl vs older one.

last but not least : UPDATED IASL + iaslME to 20091013 Version :blink:

#25
d00d

d00d

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 476 posts
  • Gender:Male
  • Location:41.648324, -70.635260

9. Change directory to "$CURRENT/compiler" and run the following command.

make LDLIBS=''

This gives a 64 bit binary, to get a 32 bit one use;
make LDLIBS='' CC='cc -m32'

#26
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany
updated - DL at first post !!!
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20091112 [Nov 13 2009]
Copyright © 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 4.0

Also updated iASLme with that iasl version:
-- iASL Me v1.2 2009 by cVad --
- (De)Compiling ASL <-> AML files -
- ASL Optimizing Compiler version 20091112 [Nov 13 2009] inside -

#27
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,050 posts
  • Gender:Male
  • Location:UK

updated - DL at first post !!!
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20091112 [Nov 13 2009]
Copyright © 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 4.0

Also updated iASLme with that iasl version:
-- iASL Me v1.2 2009 by cVad --
- (De)Compiling ASL <-> AML files -
- ASL Optimizing Compiler version 20091112 [Nov 13 2009] inside -

Thanks mitch_de. Good to see you keeping this up to date :thumbsup_anim:

#28
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany
:D , Thanks.
But i cant garantie that i will be every time sooo fast : Only a few hours after orig. Source update , you got the OS X version too :thumbsup_anim:

#29
LS8

LS8

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Reality Distortion Field
Can I use the old DSDT patcher version 1.0.1e and just replace the iasl binary in it? Or is therea better / newer / recommender DSDT maker front-end? Thank you!

#30
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany

Can I use the old DSDT patcher version 1.0.1e and just replace the iasl binary in it? Or is therea better / newer / recommender DSDT maker front-end? Thank you!

Sure, it should work to use only the IASL commandline in all other GUI Apps.
But if possible i would NOT use such old GUIs anymore, because some DSDT patches are "old way" patches.
Better to use dsdt hints from DSDT forum or use the great , also user friendly but much, much complete + new DSDTSE:
Posted Image
http://www.osx86.es/?p=610
Thats all in one really good: very large+newest dsdt patchtes with explaining text/ tipp database, editor,....

I use that / beside iASLme (quick compile/disass) with IASL 12.11.2009. You can copy (as ti all GUIs) IASL into the DSDTSE ../ressources and overwrite the older IASL version there. I think its an version Juli/August there.


HAPPY PATCHING!

Attached Files



#31
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
How can I create a DSDT? I need to use iasl_Nov_2009.zip?

#32
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house

How can I create a DSDT? I need to use iasl_Nov_2009.zip?


I'll suggest you this method for creating a DSDT source for your motherboard

#33
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male

I'll suggest you this method for creating a DSDT source for your motherboard

I don't need BIOS patching.

I would like to create a DSDT file. As far as I know "iaslme" is used to compile/decompile an existing dsdt, but how can I create one? Thanks!

#34
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house

I don't need BIOS patching.

I would like to create a DSDT file. As far as I know "iaslme" is used to compile/decompile an existing dsdt, but how can I create one? Thanks!


Then use the PDF guide as a general reference for building your own DSDT

#35
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
Is there any difference between Koalala's ACPIpatcher and Fassl dsdt patcher?

#36
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male
Get the latest release now!

14 December 2009. Summary of changes for version 20091214 (only the important/relevant bits):

iASL Compiler/Disassembler and Tools:

iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files were no longer automatically removed at the termination of the compile.

#37
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,879 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Same procdure as every "year" - NEW IASL SOURCE = NEW OS X version compiled :)

#38
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,050 posts
  • Gender:Male
  • Location:UK

Same procdure as every "year" - NEW IASL SOURCE = NEW OS X version compiled :P

Thanks mitch_de :o

iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files were no longer automatically removed at the termination of the compile.

and Thanks MasterChief

#39
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
Thanx :P

#40
Smith@@™

Smith@@™

    InsanelyMac LOL

  • Retired
  • 2,928 posts
  • Gender:Male
  • Location:Somewhere over the rainbow...ITALIA!
  • Interests:Dark matter and dark energy. E basta. HD3000. E basta.
Thanks men :P





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