InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   ASRock x58 Extreme DSDT & optimizing. (http://infinitemac.com/showthread.php?t=5161)

bigmac 03-09-2010 09:19 AM

hi. ok, i didn't know that is possible ... i've read that but i thought that is a kind of reverse engineering and a point of failure.

is the version i use of your dsdt already with speedstep support?

btw: i'm totally patient right now ... so i really can wait until you have again access to your system :)

adriangb 03-09-2010 04:19 PM

I don't know what version you'r using, but use MSRTools to check.

bigmac 03-09-2010 05:07 PM

yes ok, thought this might not be possible... but i'm patient in this case, the system itself runs so i'm un no stress ^^

thx anyway

adriangb 03-09-2010 08:54 PM

Quote:

Originally Posted by bigmac (Post 46062)
yes ok, thought this might not be possible

What might not be possible? Checking speed-stepping with MSRTools?
Or uncomplying? As far as I know you can just download http://www.osx86.es/Archivos/DSDTSE.zip and open DSDT.aml's with that.

bigmac 03-10-2010 04:19 PM

i've ment the decompiling ... but i'll give it a try...
thx again ^^

roi 03-12-2010 06:23 AM

Great post!
 
I've been struggling for days trying to get MAC OS X to start working by playing around iAtkos v7 and all those snazzy softwares. None of them ever worked for me because I always end up in Kernal Panic. :[

I stumbled upon this post today hoping that this will definitely help me out because of the similar motherboard.

You should totally make a simple step by step tutorial for all the ASRock x58 Extreme Motherboard users out there! You'll be my hero haha

adriangb 03-12-2010 11:40 AM

As I said, I will, but since the secret is in the DSDT edits, I'd have to "retrace" my steps, trying to "guess" all the changes I've made!

joeboxer 03-16-2010 12:04 PM

Hi there.
I have finally a S.L. X.6.2 installation on my second drive. Sound is working and also wifi is recognized.
My only BIG problem is that I need to use the Empire efi CD, without no way to boot.

My step by step install from the first X.5.8 drive:

1- Guid partition with Disk utility
2- Snowleopard install from a .dmg
3- Boot with Empire efi i5
4- My hack 1.0
5- Adriangb DSDT on the Extra folder and some kext
6- Pfix 3.0

After that I have a working system, I just need the video kext but I'm sure that the Natit.kext is what my Nvidia need for working.

About the boot.plist I'm not sure I have the right one, or I maybe need to change some thing.
Thank you for any help.

joeboxer 03-16-2010 05:11 PM

Adriangb

definitely, can you post again your Extra folder?
I think the only two differences from your configuration, are video and Wifi.
Anyway thank you for your helps!

Stephen.Eidson 03-19-2010 04:54 PM

As others have said, great thread. I've got the ASRock X58 Extreme / i7 920 combo like the rest of you.

I've been messing with this for a couple of weeks and have learned a lot, but I still don't have a working rig. Taking all of what I've just read into mind, though, I think I should be able to use adriangb's dsdt file with myHack to give it another shot today.

With the dsdt file, I've looked at it with DSDTE but I really have no idea what I'm looking at. It should basically work me, but I'm wondering about my Graphics card. How can I insert the EFI string for it? The graphics card is a BFG 8800 GTS.

Right now I'm running 1.8 BIOS because I simply cannot update using InstantFlash. I've formatted my thumbdrive with FAT32 like ASRock recommends, but InstantFlash refuses to recognize the 1.9 update file. I'll try to send a problem report to ASRock to see if they can suggest anything.

What has been decided are the best BIOS settings? Adriangb, would you mind taking photos of each BIOS page? That would be really beneficial.


And, Joeboxer, you might be able to use the Lifehacker Snow Leopard Guide as an idea for booting without Empire. Specifically, the last paragraph:

Quote:

As things stand on your system right now, you need to have your thumb drive plugged in every time you reboot in order to load the bootloader that allows your Hackintosh to load OS X. There are certain benefits to this (for example, right now you could quite likely unplug this hard drive from your Hackintosh, plug it into a Mac Pro, and it would work just fine), but it can also be a bit of a hassle. At this point, though, you can load the bootloader and other necessary components onto the Snow Leopard hard drive and change that drive to your primary boot drive in your BIOS. All you've got to do is head back to the step-by-step bootloader guide above and repeat every step, except this time you're applying each step to your hard drive rather than your thumb drive.

Stephen.Eidson 03-19-2010 05:18 PM

Hot CPU
 
Also, adriangb, you said your CPU was running really hot... Did you ever resolve that? If you're not running it, you might want to check out NullCPUPowerManagement.kext. I've downloaded it from the myHack download page, and they have this to say about it:
Quote:

Disables AppleIntelCPUPowerManagement.kext – this extension is required until you have built a proper dsdt for your system. Without this or the dsdt your system will not boot (kernel panic). IMPORTANT NOTE: It is suggested that everyone use this kext for now even if your system runs fine without it. There is an unresolved issue with the way AppleIntelCPUPowerManagement.kext handles HPET on non-apple hardware that causes the CPU to run much hotter than normal.

adriangb 03-19-2010 09:06 PM

Quote:

you said your CPU was running really hot... Did you ever resolve that? If you're not running it, you might want to check out NullCPUPowerManagement.kext
What that kext does is it returns power manegment to the BIOS. I have resolved the temperature issue: without NullCPUPowerManagement.kext and OS X native power manegment I get the same temps as in Windows 7. I do however get +10ºC if I use MacPro4,1 (which is a common problem, and althou there are some fixes, I haven't tried them).
So no, the answer is NullCPUPowerManagement.kext is no use to us since we already have native power manegment for our board.

joeboxer 03-20-2010 10:56 AM

Stephen.Eidson thank you for the help, actually I have some trouble with the boot.plist file, I think my need some more command.
Best

adriangb 03-20-2010 03:24 PM

com.apple.boot.plist and NullCPUPowerManagement.kext are unrelated, but if you post your com.apple.boot.plist I'll be glad to se if I can find any obvious errors.
It might help if you point out what problems you think you have.

adriangb 03-22-2010 12:15 PM

Could any of you post the SSDT's for out motherboard? I'm trying to work on sleep, but it's hard without my rig.
You can get them using DSDTSE.

joeboxer 03-22-2010 12:42 PM

That's my com.apple.boot.plist

joeboxer 03-22-2010 12:45 PM

1 Attachment(s)
try again, sorry

adriangb 03-22-2010 01:45 PM

Well, for starters why did you put all the GPU info like that? Why not just use GraphicsEnabler or a regular hex string? I'd remove busratio=20 if you have native power management (it shouldn't be needed), and try booting with -x32 in case there are some kexts that are 32bit only. If you use AsereBLN's booter there is no need to use boot-uuid=613727BA-68E6-3459-AAC0-852C47FF8A45.
What I see that could be a major problem is that there is no DSDT or SMBIOS specified, these two are needed to boot OS X right.
What boot-loader are you using?

joeboxer 03-22-2010 02:43 PM

Hi
well, I can boot with the Empire EFI CD only.
It's possible for you to adjust the .plist so that I can just use?

I do not know AsereBLN's booter.
If you have any suggstion is welcome.

adriangb 03-23-2010 12:12 AM

No, there is no "correct" playlist, it all depends on what boot-loader, kexts, etc you use (so I'd have to "guess" your setup). Do you have chameleon on a USB drive? If you do, just send me a copy of that and your chameleon files (or version at least) and I'll get it going (or at least I'll try). Or you can just use an installer and files I can give you.
AsereBLN's booter is a modified chameleon RC4, which is supposed to have cleaner code (I haven't looked at it thou), has no embedded theme (and therefore should load faster), and has other fixes like restart, UUID and memory detection, etc. If you haven't, you should give it a try.

joeboxer 03-23-2010 09:05 AM

There is a way to rebuild a new .plist? That's because i have accidentally deleted the original one. At the moment my config is X58 with Chameleon 2 on a first drive. On the second I have X.6.2 but i can boot with the Empire CD inside only. Concerning AsereBLN I have the files, I have no idea to install. I have lizard 0.60 but no way. Thanks

adriangb 03-23-2010 12:51 PM

Are Leopard and Snow leopard are on separate drives or partitions?

joeboxer 03-23-2010 03:57 PM

Two separate drive 500

joeboxer 03-23-2010 06:42 PM

plist
 
1 Attachment(s)
Adriangb, I have re-write a new com.apple.Boot.plist file, as you can see from the attached file. But at the boot, off course I need some kind of bootloader. How to proceed in order to boot with out the Empire CD? Or: how to install ASERE BLN? I have the 1.1.8 version.

adriangb 03-24-2010 01:10 AM

I think that's my com.apple.boot.plist ;) . If you need to re-write it "like that one" why not use that one?
Download this package http://www.tonymacx86.com/Public/Cha...eBLN-1.1.9.zip and select your snow leopard disk (partition) and install. ATENTION: IF YOU HAVE A OTHER OS (LIKE LEOPARD OR WINDOWS) ON THAT DRIVE IT WILL BE MODIFIED AND YOU PROBABLY WONT BE ABLE TO BOOT IT!
Then put a "good" DSDT in and the right kexts and your ready to go!

joeboxer 03-24-2010 04:17 PM

Hi adrian,
now I have a new interesting situation.
After soo many try, i have bee able to boot my X.6.2 using chameleon rc4.
But only if at the boot I promt: cpus=1 busratio=20 arch=i386.

The boot process is very speedy, about 8-10 seconds. Off course I have only one core enabled, but I have:

- full working bluetooth (USB)
- full working airport extreme WiFi (Dlink 547)
- full working Nvidia 9500 GT
- monitor recognised (Eizo CG19)

And finally.. sleep just work!


Now, I have to understand so many things that maybe is too much for me, but I hope to learn a bit this setup.

Adriangb, now I surely try to install AsereBLN 1.1.9, and I let you know.

adriangb 03-24-2010 04:35 PM

cpus=1 busratio=20 has a very easy DSDT fix.
If you don't want to mess with DSDT, you can use mine or use DSDTSE. All you have to do is transform Scope (_PR) into something like this:
Scope (_PR)
{
Processor (P001, 0x01, 0x00000810, 0x06) {}
Processor (P002, 0x02, 0x00000000, 0x00) {}
Processor (P003, 0x03, 0x00000000, 0x00) {}
Processor (P004, 0x04, 0x00000000, 0x00) {}
Processor (P005, 0x05, 0x00000000, 0x00) {}
Processor (P006, 0x06, 0x00000000, 0x00) {}
Processor (P007, 0x07, 0x00000000, 0x00) {}
Processor (P008, 0x08, 0x00000000, 0x00) {}
}
All you have to do is delete all the lines that start with "Alias" in that section.
Ex: "Alias (P002, CPU2)"
If there are other lines:
Processor (P010, 0x0A, 0x00000000, 0x00) {}
Processor (P011, 0x0B, 0x00000000, 0x00) {}
Processor (P012, 0x0C, 0x00000000, 0x00) {}
Processor (P013, 0x0D, 0x00000000, 0x00) {}
Processor (P014, 0x0E, 0x00000000, 0x00) {}
Processor (P015, 0x0F, 0x00000000, 0x00) {}
Processor (P016, 0x10, 0x00000000, 0x00) {}
Leave them there. If you want to delete them, it should be harmless but I'd leave it like this:
Code:

Scope (_PR)
{
Processor (P001, 0x01, 0x00000810, 0x06) {}
Processor (P002, 0x02, 0x00000000, 0x00) {}
Processor (P003, 0x03, 0x00000000, 0x00) {}
Processor (P004, 0x04, 0x00000000, 0x00) {}
Processor (P005, 0x05, 0x00000000, 0x00) {}
Processor (P006, 0x06, 0x00000000, 0x00) {}
Processor (P007, 0x07, 0x00000000, 0x00) {}
Processor (P008, 0x08, 0x00000000, 0x00) {}
Processor (P009, 0x09, 0x00000000, 0x00) {}
Processor (P010, 0x0A, 0x00000000, 0x00) {}
Processor (P011, 0x0B, 0x00000000, 0x00) {}
Processor (P012, 0x0C, 0x00000000, 0x00) {}
Processor (P013, 0x0D, 0x00000000, 0x00) {}
Processor (P014, 0x0E, 0x00000000, 0x00) {}
Processor (P015, 0x0F, 0x00000000, 0x00) {}
Processor (P016, 0x10, 0x00000000, 0x00) {}
}


joeboxer 03-24-2010 04:45 PM

1 Attachment(s)
Ok, about DSDT I have your with out CPU alias.
Now, after Asere BLN119 install, I have the same situation as before. I post the picture, maybe you understand better than me..

adriangb 03-24-2010 05:10 PM

Ok, I've heard of that error with aserebln's booter.
Did you get that before with Chameleon RC4 or is it new?
What kexts are you using?

joeboxer 03-24-2010 07:44 PM

I get that error with all asereBLN boot-loaders, but chameleon.
About kext I have only the 4 kext you suggest.
In order to boot without prompt cpus=1 ecc.. can I put some text in the boot.plist?
Thanks

adriangb 03-25-2010 01:02 AM

Quote:

I get that error with all asereBLN boot-loaders, but chameleon.
I'll interpret that as "I don't get it with plain Chameleon" ;).
You can't fix that with the com.apple.boot.plist, it must go in the DSDT.

adriangb 03-25-2010 01:24 AM

Quote:

Originally Posted by Stephen.Eidson (Post 46426)
As others have said, great thread. I've got the ASRock X58 Extreme / i7 920 combo like the rest of you.

I've been messing with this for a couple of weeks and have learned a lot, but I still don't have a working rig. Taking all of what I've just read into mind, though, I think I should be able to use adriangb's dsdt file with myHack to give it another shot today.

With the dsdt file, I've looked at it with DSDTE but I really have no idea what I'm looking at. It should basically work me, but I'm wondering about my Graphics card. How can I insert the EFI string for it? The graphics card is a BFG 8800 GTS.

Right now I'm running 1.8 BIOS because I simply cannot update using InstantFlash. I've formatted my thumbdrive with FAT32 like ASRock recommends, but InstantFlash refuses to recognize the 1.9 update file. I'll try to send a problem report to ASRock to see if they can suggest anything.

What has been decided are the best BIOS settings? Adriangb, would you mind taking photos of each BIOS page? That would be really beneficial.


And, Joeboxer, you might be able to use the Lifehacker Snow Leopard Guide as an idea for booting without Empire. Specifically, the last paragraph:

Hey Stephen, I'm really sorry I never responded to this post -I think. I guess I just missed it.

Quote:

How can I insert the EFI string for it? The graphics card is a BFG 8800 GTS.
Put GraphicsEnabler=yes into the com.apple.boot.plist. If that doesn't work I'll give you a EFI string, but I need to know if you have the G80 640MB model, the G80 320 or the G92 512MB.

Quote:

Right now I'm running 1.8 BIOS
Have you tried the Windows updater, if you have windows? That should be easier than the DOS based one. BIOS 2 is out, try that.

Quote:

What has been decided are the best BIOS settings? Adriangb, would you mind taking photos of each BIOS page? That would be really beneficial.
I would love to! It's easy for me, and great for you, but unfortunately I can't use my rig now (I got back, but my crappy CoolMax PSU burnt it out! I got replacements, but I still need a new PSU, and living in South America and all I cant just stroll out to MicroCenter and buy one (if I even had the cash, donations accepted gladly ;) ).

joeboxer 04-08-2010 09:17 PM

Hi there,
just to report that I'm on a working X.6.3.

I have followed a different way, using the EFI partition as boot.
I have used the terminal just to mount the EFI on the desktop, than every files manually.
I think this Munky can be still interesting, even if he deprecated the method.
http://www.insanelymac.com/forum/ind...owtopic=127330

At the moment, I have no audio & no sleep, but with some free day I hope to have soon all working.
Just 3 kext on the extra folder: fakesmc, IOAHCIBlockStorageInjector & JMicronATA.
The dsdt from adriangb and that's all.

My only (BIG) problem is the incompatibility between my PCI atheros based wifi card (dlink DWA-547) and the core i7 cpu.

The card work perfectly only if I boot with cpus=1, one core only.
This problem is very common on Atheros / core i5 or i7 users.
The point is the IO80211family.kext. Only the last version from 3.0 to 3.1 work with snow, but not with all core enabled.

Help is welcome!

adriangb 04-09-2010 01:54 AM

What you say about the atheros card an i7's is interesting: I used to have trouble connecting to a network with mine.
Ah, people, it appears that even if using a other persons DSDT might work, it is not ideal as the DSDT may contain calls to RAM addresses that might exist on a board with 6GB but not with 2GB, for example. So to make things short, using someone else's DSDT is OK but you can expect errors or more frequent KP, so it's best to build your own with tutorials.
I've been working on sleep, and with the little understanding I have I think that the two basic things are C-States and S-States in the DSDT. S-States are there, and should be functional, but C-States on the other hand must me extracted in conjunction with P-States and whatnot, modified and only then inserted in the DSDT. I have made a DSDT that compiles, just for the fun of it, but when I do get my rig again (tomorrow, I hope!) I'll build one ground up and a tutorial. If I do make progress with sleep to work, I may delay it until I can do it all at once (with sleep).

joeboxer 04-09-2010 07:43 AM

Adriangb
thank you for your work, waiting for your sleep progress and dsdt-tutorial.

Concerning atheros the problem is that is some way the IO80211family.kext do not accept multicore (or multithread) as the new cpu's do. I'm not able to find where to look inside the kext, but for sure here is the place where to look.

But, how you can do all your work with out psu? Do you buy a new one ??

adriangb 04-09-2010 01:22 PM

Na, I had a cheap CoolMax one that went out one day and took all but my CPU with it. Serves me luck, for buying a cheapy brand like that. Luckily I was able to get replacements for evereything, and got a refund on my PSU. Now I got a OCZ, which I trust much more.
I didn't do any work without a PSU, the sleep stuff I did over email with a "victim", who did all the testing and dumping for me (great guy, he deserves a medal).
The atheros kext problem may be because new mac's lack atheros cards (they use brodcom) and therefore it hasn't been updated.

joeboxer 04-09-2010 06:59 PM

ok, understand
for atheros I have read about new iMacs with i7, they have also some problem, so let's hope in some solution, as it's very frustrating boot with one core only... with this machine.

joeboxer 04-10-2010 07:46 AM

Restart and shutdown fixed, I'm still not understand why my audio do not work, with Hda enabler and legacy HDA... ?!

by the way, I can use the system even if, the 2 BIG not solved problems are: WiFi (only one core working) and Sleep.

Actually I have cloned my first sata in order to have 2 startup disk with 2 different boot.plist, one with arch=1386 and cpus=1 in order to surf, the second with all cores enabled.

Need time to test again...

joeboxer 04-16-2010 08:53 AM

sound
 
hi adriangb, i have now all working in 64bit with x.6.3.
But, audio do not work.. even if i put your attached files: DSDT and LegacyAppleHDA. Off course I have HDA enabler also. Why ???

For the atheros - i7 problem, I have connected my fonera with ddwrt in ethernet, the fonera is setted as client, so it's like a wireless card.
I can now drop the DLink dwa-547 atheros based, waiting some good news on this topic.

For the rest, all work great :D eccept audio and sleep.

Restart, shutdown, 64bit boot, time machine ecc.. geekbench is about 8000!

adriangb 04-16-2010 02:09 PM

If you use my DSDT fix, you DONT NEED HDAENABLER. Actually, it will make the whole thing not work.

joeboxer 04-16-2010 02:29 PM

Ok, can you please confirm what kext I need for audio? LegacyHDA, LegacyAppleHDA or some other? Thank you.

adriangb 04-16-2010 02:35 PM

The DSDT edit and the kext I uploaded some time ago... an ONLY that. What HDAEnabler does is it tries to "insert audio into the DSDT" (this is technically incorrect, but it works as an explanation), so the problem is that then you would need a modified LegacyHDA (or AppleHDA) to work with what HDAEnabler injects. So by using the DSDT edit you need 1 kext less, and audio works easier.

joeboxer 04-16-2010 05:08 PM

In my case, still no sound. LegayHDA and DSDT from page 3, but no way. Maybe some other kext in the extension folder need to be removed?

adriangb 04-17-2010 04:31 AM

You need to have NO AUDIO KEXTS except the Legacy HDA I posted. Have you repacked you .mkext (or removed the old one?)

joeboxer 04-17-2010 08:24 AM

Hi, I have ONLY Legacy HDA with 6 other kext that I need.
In order to build a mkext file, I have used MkextTool.app. Than I have manually put Extension.mkext file on the extra folder. Still no sound. I have also try to boot with -f, still no.
Some last suggestion?

clavieramolette 04-21-2010 05:08 PM

Asrock 58 Extreme Leo working without DSDT ??
 
Hi everybody, after about a month of struggle, here is the best and quick way i found to make this work :

Instal OSX snow with Empire EFI CD (about 45mn)
Boot with Empire EFI CD and now select your drive with fresh Snow Leopard
OSX Leo first startup......setup your password and information, (don't worry about the screen resolution at this point....)

Download multibeast installer from tonymacx86 thank's Tony!!!

option that i checked : kext : NVEnabler / JMicronSATA /
IOAHCIBlockStorageInjector

Chameleon : PC-EFI 10.6 by netkas

com.apple.boot.plist : 64-bit apple boot screen

Multibeast install takes about 3mn

Software update => 10.6.3 (about 15mn, it depends on your internet conection^_^)

Before to Reboot open your extra Folder and copy your com.boot.plist on your desktop, open it with text editor, and add this line


<key>Kernel Flags</key>
<string>-force64 GraphicsEnabler=Yes</string>



Save it then copy (overwrite it in your extra folder, (takes about 2mn)


Reboot without empire EFI CD and smile!!!! you should now see the full resolution and then your desktop with fresh Snow Leopard 10.6.3 !!!!

I didn't bother with audio ( i already have an great USB external sound interface with drivers for snow leopard)
I didn't bother with the (sleep) yet, it's not too important to me but i would like to give a try later on

PS : Don't ever try or bother installing OSX on a Hard drive bigger than 1TB
you will face some serious issues installing your bootloader, it's a waste of time


My only question is :

Why should i need a Patched DSDT ? my system is running 24/7 without a crash, my applications run in 32 or 64-bit with 12GB of RAM....
I would love to hear your input as i'm a newbie ;)


Here are my rig

intel i7 920
Asrock X58 Extreme
EVGA 8800gt
12GB OCZ RAM (6 X 2GB)
WD 1TB caviar Leo, WD 2TB, WD 1.5TB
WD 500G (i use carbon copy cloner to backup my leo drive once a week)
Edirol UA-1000 USB
Apple bluetooth Mouse and Keyboard :-d

joeboxer 04-22-2010 12:22 AM

Great! Are you using all core or just one? I only need a DSDT for that.

adriangb 04-22-2010 12:23 AM

Just a few questions/comments
Apart from sleeping, you probably cant restart or shutdown.
Do you have all cores enabled?
Do you have good temps?
Why would you boot in 64b (I doubt you have >32GB of RAM) and doesn't PCEFI 10.6 boot in 64b by default?
Whats the point of NVEnabler and GraphicsEnabler=Yes?
I'm pretty sure we don't need JMicronSATA, since the JMicron chip powers the back eSATA port and maybe something else... I think all the SATA ports are ICH10R. We do have a VIA ATA/Firewire chip thou. This last thing isn't well documented, so I may be wrong.

joeboxer 04-22-2010 03:03 PM

adrian, what kind of kernel are you using? I just drop the mach_kernel from the empirecd.

adriangb 04-22-2010 10:42 PM

Vanilla, that's the whole point of an Intel build... just install OS X and DON'T replace any kernel. If you do, your system may not boot since if the empireEFI cd contains one (I doub't, but can't check right now) it probably also needs its System.kext, which you don't mention copying.
So to make it short: don't mess with kernels on an i7, you don't gain anything and loose a lot.