Help - Search - Members - Calendar
Full Version: Chameleon with DSDT override
InsanelyMac Forum > OSx86 Project > Tutorials (The Genius Bar)
Pages: 1, 2, 3, 4, 5, 6
mackerintel
Update: also have a look at http://forum.insanelymac.com/index.php?showtopic=133683

Update: file chameleon in chameleon.zip should become your /boot if you use "easy install method" for Chameleon. If you don't know how to install Chameleon chances are you may screw this up. But reinstall of Chameleon should cure. Still I take no responsibility. Try at your own risk
Update: relaxed some sanity checks due to the problem on Superhai's mobo. Thanks him for testing
Click to view attachment

Update: I've just added two options to control DSDT override. First one is DSDT=<filename> which let you specify DSDT file to load. Second one is DropSSDT. If you write DropSSDT=y then all SSDT tables (additions to main DSDT) will be hidden from OSX. If you need to patch SSDT just reunite it with SSDT and override DSDT dropping SSDT. Debug version is also in the archive
Click to view attachment


Hello. Some people were experiencing problems because of the incompatible DSDT. So I've written a patch to Chameleon which looks for the file named /DSDT.aml and if it finds one it overrides the DSDT with contents of this file. Micro-howto.
Under Ubuntu
CODE
sudo cat /proc/acpi/dsdt > dsdt.dat
  sudo aptitude install iasl
  iasl -d dsdt.dat

Then correct your dsdt.dsl. (Look at http://forum.insanelymac.com/index.php?showtopic=90505)
CODE
iasl -ta dsdt.dsl

then put dsdt.aml to DSDT.aml in the root of your macos partition.
Install Chameleon (any Chameleon install method should do. I personally load it with GRUB)
On my system this had mixed results: I now can use vanilla AppleACPIPlatform and AppleAPIC (before I had to use old JaS kexts) but when I try to boot with cpus=2 I recieve a crash (but significantly later than before). Perhaps I have to fix my DSDT some more, perhaps my new problem isn't DSDT-related or perhaps my patch has some problems.
This patch is really fresh, I've just written it and I tested it only on my machine . So any bug is possible.
You try this patch on your own risk. I take no responsibility of any possible damage.
But if you try please leave a comment in this thread
Just for the people using search: DSDT replacement solves different problems. One of them is the problem "using 10485 buffer headers and 4096 cluster IO buffer headers" (like http://forum.insanelymac.com/index.php?showtopic=78235 except that you get both cores working)
EDIT: Removed old version. Put new which should support more configurations
Click to view attachment
mackerintel
Small update: on my laptop additionally GenericCPUPowerManagement.kext was conflicting with dual-core. After reinstall (just to clear everything) using modified DSDT allowed me to use second core but since I didn't reinstall GenericCPUPowerManagement.kext I have no speedstep. Will go around and look for another speedstep solution
H4ckster
Wow this is great news, I too need the old ACPI and APIC to boot, if this works out maybe it can be merged with the chameleon /dfe for the boot-132 cd's and dfe/efi partition booting. This would be huge imo. Great job smile.gif

I am booing a patched kernel + extensions + boot.plist from the efi partition on my P4 system so this would be of interest to me.
zef
mackerintel:

Hi! Grats for your additions to Chameleon 1.0.11! smile.gif However i'd like to ask you to follow APSL's terms which means you make your source code available somehow.

Bye,
zef


I'm terribly sorry, just missed that patch file in the attached zip! tongue.gif

Thank you so much smile.gif

Bye,
zef
olvko
Seems to work OK for me. I used to use modified BIOS and I dumped DSDT from that - now I can use vanilla BIOS and with Your patch everything is OK - two cores and new AppleACPIPlatform and AppleAPIC as weel. Good work!
H4ckster
QUOTE (zef @ Oct 23 2008, 07:35 PM) *
mackerintel:

Hi! Grats for your additions to Chameleon 1.0.11! smile.gif However i'd like to ask you to follow APSL's terms which means you make your source code available somehow.

Bye,
zef


I'm terribly sorry, just missed that patch file in the attached zip! tongue.gif

Thank you so much smile.gif

Bye,
zef


Looks like zef is on top of it biggrin.gif yay!
netkas
now to merge hibernate and x64 code into chamellion and all will be happy biggrin.gif
cyclonefr
that's a great fix, great work ! works perfectly smile.gif
mackerintel
QUOTE (netkas @ Oct 24 2008, 03:48 PM) *
now to merge hibernate and x64 code into chamellion and all will be happy biggrin.gif


I personally don't care much about sleep (my system refuses to wake up from sleep) but x64 support would be very nice. x64 support+DSDT override is exactly what I need to get my system Snow Leopard-x64-ready (if Snow Leopard doesn't break anything else)
P.S. I added a line to say what this patch can fix: for the people using search
netkas
ur patch doesnt work on gigabytes, freeze after it find rsdt address (enabled debug)
can it be cause by bl unable to find acpi2.0 rsdp on gigas ?
mackerintel
QUOTE (netkas @ Oct 25 2008, 09:13 PM) *
ur patch doesnt work on gigabytes, freeze after it find rsdt address (enabled debug)
can it be cause by bl unable to find acpi2.0 rsdp on gigas ?


I don't think so since on my computer it doesn't find ACPIv1 and the code is completely symmetrical about v1 and v2. Do you have more than 4GB of RAM? If it's the case then it's possible that xsdt is upper than 4 GB and then my patch find some random data instead of XSDT.
So it writes "rsdt=..." but no "TABLE ..."? I'll add different sanity checks to be sure that it finds correct table
Try the attached version. I added some checks and if it finds an address over 4GB it drops XSDT completely hoping that OSX reverts to RSDT. Does anybody know about simple way of accessing memory over 4GB?
P.S. Corrected the name of compiler in first post. Sorry for mistake
EDIT: deleted this download. Use the latest version
ovof
NEed help plz.

I boot OSX with an USB key.

I use chameleon on it.

I copied boot file in chameleon.app/Contents/resources/boot/, then installed again chameleon.

Did i do right ?

How can i know if it works correctly ? Any Message in verbose mode ?
mackerintel
QUOTE (ovof @ Oct 25 2008, 11:48 PM) *
NEed help plz.

I boot OSX with an USB key.

I use chameleon on it.

I copied boot file in chameleon.app/Contents/resources/boot/, then installed again chameleon.

Did i do right ?

How can i know if it works correctly ? Any Message in verbose mode ?

I don't know. I always use GRUB method. You can try just putting boot at the root of your partition. Have you put the corrected DSDT in the file /DSDT.aml of your partition? Did you put the compiled version? Try debug version from last post (use chameleon2debug as boot)
ovof
I used the debug V2.

I simply copy it in the / of the boot drive

it works smile.gif

Now i have to find what i have to change to get dual core working on my hp laptop NC6400, as it crash randomely when dual core is enabled
Hre's my DSDT
mackerintel
QUOTE (ovof @ Oct 26 2008, 12:06 AM) *
I used the debug V2.

I simply copy it in the / of the boot drive

it works smile.gif

Now i have to find what i have to change to get dual core working on my hp laptop NC6400, as it crash randomely when dual core is enabled
Hre's my DSDT

I looked at your dsdt (downloaded from parallel thread). It doesn't suffer from the same problem as mine (aliases). UnfortunatelyI don't have a lot of experience with DSDT to determine what's wrong with it. But my first suggestion would be to go through kexts. Perhaps some of them conflict with dual-core. Try moving all the modified and non-apple kexts out of the extension folder. Try also to boot with -f, -x or -s
ovof
QUOTE (mackerintel @ Oct 25 2008, 11:37 PM) *
I looked at your dsdt (downloaded from parallel thread). It doesn't suffer from the same problem as mine (aliases). UnfortunatelyI don't have a lot of experience with DSDT to determine what's wrong with it. But my first suggestion would be to go through kexts. Perhaps some of them conflict with dual-core. Try moving all the modified and non-apple kexts out of the extension folder. Try also to boot with -f, -x or -s


i Tried...
nothing works sad.gif

it seems when crash, that one core stops responding, as it sleep
mackerintel
QUOTE (ovof @ Oct 26 2008, 10:32 AM) *
i Tried...
nothing works sad.gif

it seems when crash, that one core stops responding, as it sleep


Hello. I removed the power-state information from your DSDT. Not sure what effect it will have. So I give no warranty whatsoever. Try at your own risk
fassl
Thanks for that, the chameleon2 version works without any hassle smile.gif
mackerintel
Hello. For all those having Gigabyte or any other mobo with ACPIv1 support. Could you test the new version that I uploaded at http://forum.insanelymac.com/index.php?s=&...st&p=944536 . In case of problems the debug version is at http://forum.insanelymac.com/index.php?s=&...st&p=944496. Great thanks to roisoft for his testing
roisoft
thanks for this, you rock man smile.gif
netkas
mackerintel

i have 4gb, according to bios memory map, about 1 gb mapped above 4gb limit.

will try ur 1.2 patch.

EDIT: checked, works fine now.
fassl
Hey,

I made a Tool to patch your DSDT, it will create a dsdt.aml with what you should be able to run AppleIntelCPUPowerManagement.kext and the upcoming AppleRTC kext without a panic. Have fun smile.gif
Readme is included. If it fails please PM me and attach the Patcher output.

greetz

Click to view attachment

Thanks to all Chameleon/OSX Developers who make such things possible, especially zef, kabyl and modbin for helping me at any time and share their work/knowledge, keep it up thanks.
realityiswhere
I have done some testing with fassl's patch and i can say it definitely works. I've got both AppleIntelCPUPowerManagement.kext and AppleRTC.kext loaded now with corrected dsdt.aml and it's working fine smile.gif
roisoft
it works great!!! tested on P35-DS4 Q6700

awesome work !

thanks for this smile.gif




CODE

Last login: Tue Oct 28 00:21:24 on console
MB51-de-roisoft:~ roisoft$ kextstat
Index Refs Address Size Wired Name (Version) <Linked Against>
1 1 0x0 0x0 0x0 com.apple.kernel (9.5.1)
2 32 0x0 0x0 0x0 com.apple.kpi.bsd (9.5.1)
3 3 0x0 0x0 0x0 com.apple.kpi.dsep (9.5.1)
4 50 0x0 0x0 0x0 com.apple.kpi.iokit (9.5.1)
5 52 0x0 0x0 0x0 com.apple.kpi.libkern (9.5.1)
6 45 0x0 0x0 0x0 com.apple.kpi.mach (9.5.1)
7 27 0x0 0x0 0x0 com.apple.kpi.unsupported (9.5.1)
8 1 0x0 0x0 0x0 com.apple.iokit.IONVRAMFamily (9.5.1)
9 1 0x0 0x0 0x0 com.apple.driver.AppleNMI (9.5.1)
10 1 0x0 0x0 0x0 com.apple.iokit.IOSystemManagementFamily (9.5.1)
11 1 0x0 0x0 0x0 com.apple.iokit.ApplePlatformFamily (9.5.1)
12 13 0x0 0x0 0x0 com.apple.kernel.6.0 (7.9.9)
13 1 0x0 0x0 0x0 com.apple.kernel.bsd (7.9.9)
14 1 0x0 0x0 0x0 com.apple.kernel.iokit (7.9.9)
15 1 0x0 0x0 0x0 com.apple.kernel.libkern (7.9.9)
16 1 0x0 0x0 0x0 com.apple.kernel.mach (7.9.9)
17 13 0x5456d000 0x10000 0xf000 com.apple.iokit.IOPCIFamily (2.5) <7 6 5 4>
18 8 0x54583000 0x4000 0x3000 com.apple.iokit.IOACPIFamily (1.2.0) <12>
19 2 0x545d2000 0x3e000 0x3d000 com.apple.driver.AppleACPIPlatform (1.2.1) <18 17 12 7 5 4>
20 0 0x5461c000 0x4000 0x3000 com.superhai.driver.SMBIOSResolver (1.0.6) <12>
21 2 0x54730000 0x39000 0x38000 com.apple.iokit.IOHIDFamily (1.5.3) <7 6 5 4 2>
22 0 0x54779000 0x5000 0x4000 com.apple.BootCache (30.2) <7 6 5 4 2>
23 0 0x5478a000 0x3000 0x2000 com.apple.driver.decrypt (2.0.3) <7 5 4>
24 0 0x547ed000 0x19000 0x18000 com.apple.driver.AppleIntelCPUPowerManagement (59.0.0) <12 7 6 5 4 2>
25 0 0x54846000 0x3000 0x2000 com.apple.security.TMSafetyNet (3) <7 6 5 3 2>
26 0 0x54860000 0x8000 0x7000 com.apple.nke.applicationfirewall (1.0.77) <7 6 5 4 2>
27 0 0x548a0000 0x18000 0x17000 com.apple.security.seatbelt (107.10) <7 6 5 3 2>
28 0 0x54960000 0x3000 0x2000 com.apple.driver.AppleAPIC (1.4) <5 4>
29 0 0x54981000 0x4000 0x3000 com.apple.driver.AppleSMBIOS (1.1.1) <7 5 4>
30 0 0x5b611000 0x4000 0x3000 com.apple.driver.AppleACPIButtons (1.2.1) <21 19 18 7 6 5 4 2>
31 0 0x5b6bf000 0x3000 0x2000 com.apple.driver.AppleACPIPCI (1.2.1) <19 18 17 12>
32 0 0x5b700000 0x3000 0x2000 com.apple.driver.AppleHPET (1.2) <18 7 6 5 4>
33 0 0x5b759000 0x5000 0x4000 com.apple.driver.AppleRTC (1.2.2) <18 6 5 4 2>
34 0 0x5b76d000 0x3000 0x2000 com.apple.driver.AppleEFIRuntime (1.2.0) <7 6 5 4>
35 7 0x5b825000 0x2b000 0x2a000 com.apple.iokit.IOUSBFamily (3.2.0) <7 6 5 4 2>
36 0 0x5b954000 0xe000 0xd000 com.apple.driver.AppleUSBUHCI (3.2.0) <35 17 7 6 5 4>
37 3 0x5b9bb000 0x6000 0x5000 com.apple.iokit.IOAHCIFamily (1.5.0) <6 5 4 2>
38 0 0x5b9d6000 0xd000 0xc000 com.apple.driver.AppleAHCIPort (1.5.2) <37 17 6 5 4 2>
40 0 0x5baa5000 0x12000 0x11000 com.apple.driver.AppleUSBEHCI (3.2.0) <35 17 7 6 5 4>
41 10 0x5bb4b000 0x18000 0x17000 com.apple.iokit.IOStorageFamily (1.5.4) <7 6 5 4 2>
42 0 0x5bb8d000 0x11000 0x10000 com.apple.iokit.IOAHCIBlockStorage (1.2.0) <41 37 6 5 4 2>
43 0 0x5bc91000 0x2000 0x1000 com.apple.iokit.IOUSBUserClient (3.2.0) <35 6 5 4>
45 0 0x5bd69000 0xb000 0xa000 com.apple.driver.AppleUSBHub (3.2.0) <35 6 5 4>
46 0 0x5be3c000 0x5000 0x4000 com.apple.driver.XsanFilter (2.7.91) <41 12>
47 5 0x5bf27000 0x19000 0x18000 com.apple.iokit.IOSCSIArchitectureModelFamily (2.0.5) <6 5 4 2>
48 0 0x5bf71000 0x8000 0x7000 com.apple.iokit.IOAHCISerialATAPI (1.0.2) <47 37 6 5 4 2>
49 3 0x5c0ce000 0x8000 0x7000 com.apple.iokit.IOCDStorageFamily (1.5) <41 6 5 4 2>
50 2 0x5c10e000 0x6000 0x5000 com.apple.iokit.IODVDStorageFamily (1.5) <49 41 6 5 4 2>
51 1 0x5c137000 0x16000 0x15000 com.apple.iokit.IOSCSIBlockCommandsDevice (2.0.5) <47 41 6 5 4 2>
52 1 0x5c15b000 0x5000 0x4000 com.apple.iokit.IOBDStorageFamily (1.5) <50 49 41 6 5 4 2>
53 0 0x5c188000 0x16000 0x15000 com.apple.iokit.IOSCSIMultimediaCommandsDevice (2.0.5) <52 51 50 49 47 41 6 5 4 2>
54 0 0x5c20a000 0x6000 0x5000 com.apple.iokit.SCSITaskUserClient (2.0.5) <47 41 6 5 4 2>
55 0 0x5c263000 0x4000 0x3000 com.apple.driver.AppleUSBComposite (3.2.0) <35 5 4>
56 0 0x5c34e000 0xa000 0x9000 com.apple.iokit.IOUSBMassStorageClass (2.0.3) <47 41 35 12>
58 0 0x6623d000 0x5000 0x4000 com.apple.iokit.IOUSBHIDDriver (3.2.0) <35 21 6 5 4>
59 0 0x5452d000 0x3000 0x2000 com.apple.driver.AppleLPC (1.2.11) <17 6 5 4>
60 2 0x5466d000 0x9000 0x8000 com.apple.driver.AppleSMC (2.2.0d4) <18 7 6 5 4>
61 1 0x54676000 0xe000 0xd000 com.apple.driver.IOPlatformPluginFamily (3.2.0d26) <12 4>
62 0 0x54684000 0xe000 0xd000 com.apple.driver.ACPI_SMC_PlatformPlugin (3.2.0d26) <61 60 18 17 12 7 6 5 4>
63 4 0x54692000 0x1d000 0x1c000 com.apple.iokit.IOGraphicsFamily (1.6) <17 7 6 5 4>
64 1 0x546af000 0x16000 0x15000 com.apple.iokit.IONetworkingFamily (1.6.1) <7 6 5 4 2>
65 0 0x546c5000 0x6000 0x5000 com.apple.driver.AppleRTL8169Ethernet (1.0.3) <64 17 6 5 4 2>
68 2 0x5478d000 0xe000 0xd000 com.apple.iokit.IONDRVSupport (1.6) <63 17 7 6 5 4>
69 2 0x66263000 0x26b000 0x26a000 com.apple.NVDAResman (5.3.2) <68 63 17 6 5 4 2>
70 0 0x664ce000 0x254000 0x253000 com.apple.nvidia.nv50hal (5.3.2) <69 5 4>
71 0 0x54868000 0x10000 0xf000 com.apple.driver.DiskImages (195.1) <41 7 6 5 4 2>
72 0 0x5c001000 0x98000 0x97000 com.apple.GeForce (5.3.2) <69 68 63 17 12 6 5 4 2>
73 1 0x54610000 0x3000 0x2000 com.apple.kext.OSvKernDSPLib (1.1) <6 5>
74 1 0x5b770000 0x17000 0x16000 com.apple.iokit.IOAudioFamily (1.6.4b7) <73 6 5 4 2>
75 0 0x54769000 0x4000 0x3000 com.apple.driver.AudioIPCDriver (1.0.4) <74 6 5 4 2>
76 0 0x5476d000 0x4000 0x3000 com.apple.driver.AppleUpstreamUserClient (2.7) <63 18 17 12 7 6 5 4 2>
77 0 0x54771000 0x3000 0x2000 com.apple.Dont_Steal_Mac_OS_X (6.0.3) <60 7 5 4 2>
78 0 0x5bac1000 0xb000 0xa000 com.apple.filesystems.autofs (2.0.1) <7 6 5 4 2>
79 0 0x5baef000 0x5000 0x4000 com.apple.driver.AppleHWSensor (1.7.2d1) <12>
MB51-de-roisoft:~ roisoft$

Jason48
works here great too!

tested on Asus P5K and Asus P5B Deluxe/Wifi

thx to fassl who supported me via irc and all others who made this patch working
ovof
QUOTE (Jason48 @ Oct 28 2008, 05:58 AM) *
works here great too!

tested on Asus P5K and Asus P5B Deluxe/Wifi

thx to fassl who supported me via irc and all others who made this patch working


Hi, i have some issue :

Mobo : GA P35 DS3R

the fass's patch works, gives me an dsdt.aml, but at boot, just after the dsdt patching, the screen hangs with a lot of ascii colored keys all over the screen; like memory adressing bug


Mobo : Laptop HP NC6400

the fass's patch dont work : it says "no HPET Device found, adding one..." and then loops with this message



Can anyone help plz ?

Edit : it works with unmodified dsdt.aml of course
sensei730000
fassl patch give me a correct dsdt but when a try to replace the "boot" file, the computer doesn't start not even try to load text, it give me a error " no acpi driver etc..."
mackerintel
QUOTE (ovof @ Oct 28 2008, 09:37 AM) *
Hi, i have some issue :

Mobo : GA P35 DS3R

the fass's patch works, gives me an dsdt.aml, but at boot, just after the dsdt patching, the screen hangs with a lot of ascii colored keys all over the screen; like memory adressing bug

Did you use the latest version (chameleondsdt_acpv12.zip from the first post)?
If yes try the last debug version with -v and post the results: http://forum.insanelymac.com/index.php?sho...mp;#entry944496

QUOTE (sensei730000 @ Oct 28 2008, 09:56 AM) *
fassl patch give me a correct dsdt but when a try to replace the "boot" file, the computer doesn't start not even try to load text, it give me a error " no acpi driver etc..."


The same as for ovof + can you boot with -v debug=0xffffffff ?
ovof
QUOTE (roisoft @ Oct 26 2008, 06:05 PM) *
thanks for this, you rock man smile.gif


WORKING !!! with the chameleonv12 fix and the fass's fix smile.gif

on Gigabyte GA-P35-DS3R

now appleInteCPUPowermanagement is loaded (Apple RTC too)


BTW, it means that we can update Leopard without the sleep–rm–kext–script ? Great smile.gif

Does this kext gives anything else ?
fassl
QUOTE (ovof @ Oct 28 2008, 09:37 AM) *
the fass's patch dont work : it says "no HPET Device found, adding one..." and then loops with this message


Can you do the following:
CODE
/PATH/TO/PatchDSDT -d

and send me the dsdt.dsl please.

greetz
OriginalMACNUT
Awesome job mackerintel for getting Chameleon to work with this smile.gif

QUOTE (fassl @ Oct 27 2008, 04:44 PM) *
Hey,

I made a Tool to patch your DSDT, it will create a dsdt.aml with what you should be able to run AppleIntelCPUPowerManagement.kext and the upcoming AppleRTC kext without a panic. Have fun smile.gif
Readme is included. If it fails please PM me and attach the Patcher output.

greetz

Click to view attachment

Thanks to all Chameleon/OSX Developers who make such things possible, especially zef, kabyl and modbin for helping me at any time and share their work/knowledge, keep it up thanks.


Great Patch smile.gif

Working on my ASRock P43twins1600 as well smile.gif
Thanks,
-Omn
ovof
QUOTE (fassl @ Oct 28 2008, 02:36 PM) *
Can you do the following:
CODE
/PATH/TO/PatchDSDT -d

and send me the dsdt.dsl please.

greetz


Ok i found why smile.gif

when dump DSDT and dissamble,

the HPET is not named HPET but CXXX :

CODE
               Device (C219)
                {
                    Name (_HID, EisaId ("PNP0103"))



BUT ! PNP0103 is the name of HPET device smile.gif

So i try ti manually patch the DSDT using this entry :–)

I'll tell you...



hee's the complete entry for HPET device on NC6400 HP laptop :
CODE
                Device (C219)
                {
                    Name (_HID, EisaId ("PNP0103"))
                    Name (C21A, 0xFFFFFFFD)
                    Method (_STA, 0, NotSerialized)
                    {
                        If (LEqual (C21A, 0xFFFFFFFD))
                        {
                            Store (0x00, Local0)
                            Store (\_SB.C09D (), Local1)
                            If (LGreaterEqual (\C008 (), 0x04))
                            {
                                If (Local1)
                                {
                                    Store (0x0F, Local0)
                                }
                            }
                            Else
                            {
                                If (Local1)
                                {
                                    Store (0x0B, Local0)
                                }
                            }

                            Store (Local0, C21A)
                        }

                        Return (C21A)
                    }

                    Name (C01F, ResourceTemplate ()
                    {
                        Memory32Fixed (ReadOnly,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            _Y0F)
                    })
                    Method (_CRS, 0, Serialized)
                    {
                        Store (\_SB.C09D (), Local1)
                        If (Local1)
                        {
                            CreateDWordField (C01F, \_SB.C002.C003.C219._Y0F._BAS, C21C)
                            Store (Local1, C21C)
                        }

                        Return (C01F)
                    }
                }


I have to find what to patch now
fassl
QUOTE (ovof @ Oct 28 2008, 03:05 PM) *
CODE
                Name (C01F, ResourceTemplate ()
                    {
                        Memory32Fixed (ReadOnly,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            _Y0F)
                    })


I have to find what to patch now



try:

CODE
Name (C01F, ResourceTemplate ()
{
        IRQNoFlags ()
            {0}
        IRQNoFlags ()
            {8}
    Memory32Fixed (ReadOnly,
    0xFED00000,         // Address Base
    0x00000400,         // Address Length
    _Y0F)
})
mackerintel
QUOTE (fassl @ Oct 27 2008, 11:44 PM) *
Hey,

I made a Tool to patch your DSDT, it will create a dsdt.aml with what you should be able to run AppleIntelCPUPowerManagement.kext and the upcoming AppleRTC kext without a panic. Have fun smile.gif
Readme is included. If it fails please PM me and attach the Patcher output.

greetz

Click to view attachment

Thanks to all Chameleon/OSX Developers who make such things possible, especially zef, kabyl and modbin for helping me at any time and share their work/knowledge, keep it up thanks.


Thank you for this patcher. I didn't try it yet but it really smells vanilla! It gave me an idea of creating perl script which will patch common DSDT problems (processor aliases, RTC,...). It would especially useful for installing vanilla OSX: so a perl script could dump DSDT, patch it, recompile, then unpack bootloader disc (eg dfe), add patched DSDT and recreate the image. And as it would in perl it could be done from linux (eventually from windows) before installing OSX. So could you say what exactly your patcher does?

P.S: I'm not really a Chameleon developer: I simply needed DSDT override so I wrote it and as I'm open-source fan I share this code with others
ovof
I try to patch it like inside fass' patch :

- get rid off IRQNoFlags in RTC device
- get conditionnal return in HPET device to return thr right values

No luck, crash after loading AppleIntelCPUPM... juste before, in console, i can see : Package 0 didn't get HPET...

sad.gif


CODE
5014a5015,5016
>                         IRQNoFlags ()
>                             {8}
5024c5026,5048
<                         Return (0x0F)
---
>                         If (LEqual (C21A, 0xFFFFFFFD))
>                         {
>                             Store (0x00, Local0)
>                             Store (\_SB.C09D (), Local1)
>                             If (LGreaterEqual (\C008 (), 0x04))
>                             {
>                                 If (Local1)
>                                 {
>                                     Store (0x0F, Local0)
>                                 }
>                             }
>                             Else
>                             {
>                                 If (Local1)
>                                 {
>                                     Store (0x0B, Local0)
>                                 }
>                             }
>
>                             Store (Local0, C21A)
>                         }
>
>                         Return (C21A)
5036c5060,5067
<                        Return (C01F)
---
>                         Store (\_SB.C09D (), Local1)
>                         If (Local1)
>                         {
>                             CreateDWordField (C01F, \_SB.C002.C003.C219._Y0F._BAS, C21C)
>                             Store (Local1, C21C)
>                         }
>
>                         Return (C01F)



QUOTE (fassl @ Oct 28 2008, 03:18 PM) *
try:

CODE
Name (C01F, ResourceTemplate ()
{
        IRQNoFlags ()
            {0}
        IRQNoFlags ()
            {8}
    Memory32Fixed (ReadOnly,
    0xFED00000,         // Address Base
    0x00000400,         // Address Length
    _Y0F)
})


Ah ok, i try right now !
fassl
QUOTE (mackerintel @ Oct 28 2008, 03:27 PM) *
Thank you for this patcher. I didn't try it yet but it really smells vanilla! It gave me an idea of creating perl script which will patch common DSDT problems (processor aliases, RTC,...). It would especially useful for installing vanilla OSX: so a perl script could dump DSDT, patch it, recompile, then unpack bootloader disc (eg dfe), add patched DSDT and recreate the image. And as it would in perl it could be done from linux (eventually from windows) before installing OSX. So could you say what exactly your patcher does?

P.S: I'm not really a Chameleon developer: I simply needed DSDT override so I wrote it and as I'm open-source fan I share this code with others


Yeah, that is what i wanted to add next to the patcher, the CPU aliases fix. As you i am also a fan of open-source, i sure will release the Source as soon as i cleaned the Code and added the CPU aliases fix. Also it also looks like i need to rewrite the search routine (look at ovof's post) and also need to add an OSI entry for Darwin, so if people will flash it to BIOS it will still work for the other OS's. If you want to help, feel free to contact me.

greetz
ovof
Thanks FASS !

The IRQNoFLag was missing !!!!

CODE
AppleIntelCPUPowermanagement : initialization complete

rolleyes.gif



QUOTE (ovof @ Oct 28 2008, 03:40 PM) *
Thanks FASS !

The IRQNoFLag was missing !!!!

CODE
AppleIntelCPUPowermanagement : initialization complete

rolleyes.gif


But its not the trick to enable dual core sad.gif still crash (and no aliases in DSDT ??)
mitch_de
QUOTE (ovof @ Oct 28 2008, 01:37 PM) *
WORKING !!! with the chameleonv12 fix and the fass's fix smile.gif

on Gigabyte GA-P35-DS3R

now appleInteCPUPowermanagement is loaded (Apple RTC too)
BTW, it means that we can update Leopard without the sleep–rm–kext–script ? Great smile.gif

Does this kext gives anything else ?


Hi, i also et those coloured ASCI Screen you had as frist tries, at boot using the comeleon2debug (as boot) and the DSTL.aml (of my GA-EP35-DS3).
I dont have the CPU=1 problem, but in my bios there is somethning wrong with the ACPI-Table of PSTATES (CPU).
How did you get that screen fixed and all working ?
(would be fine if you could tell me which dl links you used)
ovof
QUOTE (mitch_de @ Oct 28 2008, 04:15 PM) *
Hi, i also et those coloured ASCI Screen you had as frist tries, at boot using the comeleon2debug (as boot) and the DSTL.aml (of my GA-EP35-DS3).
I dont have the CPU=1 problem, but in my bios there is somethning wrong with the ACPI-Table of PSTATES (CPU).
How did you get that screen fixed and all working ?
(would be fine if you could tell me which dl links you used)


using the link from mackerintel : chameleonv12

QUOTE (ovof @ Oct 28 2008, 03:58 PM) *
Thanks FASS !

The IRQNoFLag was missing !!!!

CODE
AppleIntelCPUPowermanagement : initialization complete

rolleyes.gif
But its not the trick to enable dual core sad.gif still crash (and no aliases in DSDT ??)


Butx2, now sleep is working on NC6400 Hp Laptop smile.gif but only S1

Does anyone if its possible to force S3 ? Using DSDT ? (no entry in bios for this)
mackerintel
QUOTE (mitch_de @ Oct 28 2008, 04:15 PM) *
Hi, i also et those coloured ASCI Screen you had as frist tries, at boot using the comeleon2debug (as boot) and the DSTL.aml (of my GA-EP35-DS3).
I dont have the CPU=1 problem, but in my bios there is somethning wrong with the ACPI-Table of PSTATES (CPU).
How did you get that screen fixed and all working ?
(would be fine if you could tell me which dl links you used)

chameleon2debug is an old version which works only if you have no acpiv1 tables (gigabytes have it). Use the latest version. In case of problems use the latest debug version. I deleted all old files so people don't get confused anymore
For P-States try GenericCPUPowerManagement.kext from http://superhai.com/darwin.html. But be sure to have latest version because older ones have bugs. If I'll have enough time I'll have a look at P-State specification - my BIOS also doesn't provide P-states-table but it would be nice to use speedstep without extra kext

QUOTE (fassl @ Oct 28 2008, 03:39 PM) *
Yeah, that is what i wanted to add next to the patcher, the CPU aliases fix. As you i am also a fan of open-source, i sure will release the Source as soon as i cleaned the Code and added the CPU aliases fix. Also it also looks like i need to rewrite the search routine (look at ovof's post) and also need to add an OSI entry for Darwin, so if people will flash it to BIOS it will still work for the other OS's. If you want to help, feel free to contact me.
greetz


I actually thought that perl would be better suited for this kind of things. Especially that it has regexp. If you're interested in perl version I can do it. This would effectively solve search engine problems. But I'm not sure of having enough free time before the weekend

Can anyone supply DSDT dump from any apple notebook? This could help to understand apple's implementation of P-states among many other things. But please don't use apple's DSDT directly on non-apple computer.
relikwie
QUOTE (fassl @ Oct 27 2008, 11:44 PM) *
Hey,

I made a Tool to patch your DSDT, it will create a dsdt.aml with what you should be able to run AppleIntelCPUPowerManagement.kext and the upcoming AppleRTC kext without a panic. Have fun smile.gif
Readme is included. If it fails please PM me and attach the Patcher output.

greetz

Click to view attachment

Thanks to all Chameleon/OSX Developers who make such things possible, especially zef, kabyl and modbin for helping me at any time and share their work/knowledge, keep it up thanks.


Thanks or the patch tool. But it does't work here.
placed boot and the resulting dsdt.aml into the root of the startup drive. Everything looks fine but the system just hangs
at a certain point (random). Sometimes it loads everything but at the moment I would expect the loginscreen it just sits there.

I even see that AICPUPowerManagement initilizes completly.
Do I need to remove any disabler kext?

Thanks..
ovof
Google is your friend :

DSDT from MacPro
mackerintel
QUOTE (ovof @ Oct 28 2008, 08:41 PM) *
Google is your friend :

DSDT from MacPro

Thank you for this. I tried using google but didn't find any downloadable dump. Just a small correction: it's a dump from MacBook Pro and not from MacPro

QUOTE (relikwie @ Oct 28 2008, 08:28 PM) *
Thanks or the patch tool. But it does't work here.
placed boot and the resulting dsdt.aml into the root of the startup drive. Everything looks fine but the system just hangs
at a certain point (random). Sometimes it loads everything but at the moment I would expect the loginscreen it just sits there.

I even see that AICPUPowerManagement initilizes completly.
Do I need to remove any disabler kext?

Thanks..

Supply more information. As: does it work if you remove AppleCPUPowerManagement.kext? Does it work without DSDT override w/o AppleCPU... and so on. And please attach your system logs and your DSDT.
ovof
NC6400 dual core issue.

1st solution :

The dual core issue with my HP laptop (NC6400) seems to come from a bad initialization of the second core during LAPIC initialization.

Does the DSDT pass any arguments for this to the OS ?



2nd solution :

i see in the DSDT that cores enumeration starts at 0x1 for CPU0, then 0x2 for CPU1. But in other DSDT, it starts at 0x0 for CPU0. Maybe its there the issue...

Edit : i think its here :
When ACPI inits, i've got this in console :

28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=0 Enabled
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=2 LocalApicId=1 Enabled

But in normal it should be :
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled

I thnik i've really have an issue in cpu enumeration which the issue...



Still searching...
mackerintel
QUOTE (ovof @ Oct 28 2008, 10:54 PM) *
2nd solution :

i see in the DSDT that cores enumeration starts at 0x1 for CPU0, then 0x2 for CPU1. But in other DSDT, it starts at 0x0 for CPU0. Maybe its there the issue...

Edit : i think its here :
When ACPI inits, i've got this in console :

28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=0 Enabled
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=2 LocalApicId=1 Enabled

But in normal it should be :
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled

I thnik i've really have an issue in cpu enumeration which the issue...

Don't think that this is a problem. On my laptop in corrected DSDT (with which both cores work) I have:
CODE
    Scope (_PR)
    {
        Processor (P001, 0x01, 0x00000810, 0x06) {}
    }

    Scope (_PR)
    {
        Processor (P002, 0x02, 0x00000810, 0x06) {}
    }

And if I remember correctly I also get
CODE
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=0 Enabled
28/10/08 20:03:59 kernel AppleACPICPU: ProcessorApicId=2 LocalApicId=1 Enabled

EDIT: Booted my OSX and confirmed that I really get theese messages
spanakorizo
how do i use it?
there are only 2 files in the zip "boot+dsdt_acpi12.diff"
i need to use patcher http://forum.insanelymac.com/index.php?sho...=133683&hl=
but i think that 1st i need to install this
casmsk
Hi, mackerintel!!

My system freezes right before GUI load. It doesn't boot neither normal mode nor debug.

I use this Chameleon bootloader to boot my system (unfortunately with one core). Could you try to patch it for DSDT override with DSDT.aml

http://rapidshare.com/files/158577540/Cham...sk.dmg.zip.html

Thanks.
mackerintel
QUOTE (casmsk @ Oct 29 2008, 07:36 AM) *
Hi, mackerintel!!

My system freezes right before GUI load. It doesn't boot neither normal mode nor debug.

I use this Chameleon bootloader to boot my system (unfortunately with one core). Could you try to patch it for DSDT override with DSDT.aml

http://rapidshare.com/files/158577540/Cham...sk.dmg.zip.html

Thanks.

a) To make Chameleon override DSDT just replace /boot with my boot file and add DSDT.aml
b You'll need patched DSDT for your system. No two systems are the same. Go here http://forum.insanelymac.com/index.php?showtopic=133683
c) DSDT override is not a magick wand and I'm not a wizard. DSDT override can solve many problems but not all of them. Your problem is probably graphics driver. Try to delete it to go to VGA mode. There are sufficiently many threads about graphic cards. Just use the search
casmsk
QUOTE (mackerintel @ Oct 29 2008, 10:25 AM) *
a) To make Chameleon override DSDT just replace /boot with my boot file and add DSDT.aml
b You'll need patched DSDT for your system. No two systems are the same. Go here http://forum.insanelymac.com/index.php?showtopic=133683
c) DSDT override is not a magick wand and I'm not a wizard. DSDT override can solve many problems but not all of them. Your problem is probably graphics driver. Try to delete it to go to VGA mode. There are sufficiently many threads about graphic cards. Just use the search


I've replaced mine /boot with yours boot file and added DSDT already.
DSDT.aml i've reached using DSDT patch by fassl.
Unfortunately for mine graphic card only one driver is useful. I'll try to delete it and write here about result.
mentorek
Hey guys,

Could you point me to the good howto install chameleon? I want to try out this patch since it might solve my last issue.

Cheers,
mentorek
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.