InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Blackknight (AnV/Qoopz-based) kernel w/corrected Phenom FSB detection (http://infinitemac.com/showthread.php?t=5112)

blackknight 01-03-2010 06:50 PM

Blackknight (AnV/Qoopz-based) kernel w/corrected Phenom FSB detection
 
Hi guys,

I am making available a kernel that I modified from the 10.2.0 AnV/Qoopz diff file that includes a corrected FSB detection specifically for Phenoms. I did not alter the diff in any other way, so they deserve most of the credit for this one. Basically, my change checks for whether the processor is a Phenom or Shanghai and if it is, doubles the detected FSB speed. If it isn't, the kernel is then the same as AnV/Qoopz's. I've included the diff file in case anyone wants to use what I've done in other kernels.

The reason it doubles the FSB is that the busratio is then detected as the actual CPU multiplier set in the BIOS and not double it. This means that you are no longer capped to 3.0 GHz as a maximum CPU clock speed since the kernel has a busratio cap of 30. Now, you can be able overclock your Phenom to up to 6GHz (theoretically) and the kernel won't panic due to the cap.

I hope this benefits all you Phenom users out there!!

http://www.innovativecinemasystems.c.../10.2.0-BK.zip

*EDIT*
Had to remove Shanghai support. I'll keep working on adding it and post an update when I think it'll work. I don't have one so I can't test, but when I added it to the kernel, it broke the Phenom support. When I get that fixed, I'll re-upload so people with Shanghais can test it.

*UPDATE 03/23/2010*
I changed the patch a little to try to add Shanghai support back in and I think it's working, but I don't have a Shanghai to test (please test if you have one and let me know). Also, the kernel has been updated using Andy's new Release2. I need to know if this still works with Intel (any) and Athlon (older than Athlon 2 and Phenoms). Please test and let me know.

Also, I have updated the diff file to only apply to xnu-1486.2.11 that has already been patched by one of the other methods. This should really just help Andy incorporate it into his future kernels and doesn't really apply to others unless they are already patching the kernel using the Voodoo methods. All it does is add the Phenom/Shanghai detection.

*UPDATE* now available for 10.6.3
Here's the new kernel and diff file for 10.3.0:http://www.innovativecinemasystems.c.../10.3.0-BK.zip

Let me know if it works for you. Also, -force64 is still not working correctly for AMD and I think it has something to do with one of Andy's mods, but I don't know for sure.

toanbk 01-04-2010 06:09 AM

does it work well with fly - cpuid and AMD ATHLON ?

blackknight 01-04-2010 06:19 AM

No, all it does is correctly identify the FSB in addition to all of the other AnV features. You can read about AnV's kernel in his thread.

RetroRen 01-05-2010 12:19 AM

Thanks for thre kernel but It doesnt work for me yet, same as with Andys kernel:

I put system.kext that Andy provided with kernel in S/L/E and installed thekernel but my boot just stops. When I try to boot to safe mode i get KP.

This is where my boot stops:
http://www.imagesforme.com/thumb/thumb_b2e5d91c.jpg

blackknight 01-05-2010 02:30 AM

I just use the vanilla System.kext. I actually don't have any modified Apple kexts in my system. Try that and see if it works. Also, make sure you're using PC_EFIv10.5 as it seems to work the best.

RetroRen 01-05-2010 08:27 AM

Quote:

Originally Posted by blackknight (Post 42424)
I just use the vanilla System.kext. I actually don't have any modified Apple kexts in my system. Try that and see if it works. Also, make sure you're using PC_EFIv10.5 as it seems to work the best.

I knew it was a bad idea to use a modified kext.
Will replace it as soon as a find vanilla System.kext, because I was stupid enough not to back it up :D

I guess it's that modified kext, I'm using PC_EFIv10.5.

andyvand 01-23-2010 09:10 PM

Thanks Black Knight for the fixes to Shanghai/Phenom.
Feel free to redistribute the patches etc...
Anybody may use my code as they see fit ;)
Keep up the great work. :)

blackknight 01-23-2010 10:12 PM

Quote:

Originally Posted by andyvand (Post 43649)
Thanks Black Knight for the fixes to Shanghai/Phenom.
Feel free to redistribute the patches etc...
Anybody may use my code as they see fit ;)
Keep up the great work. :)

Glad I could help. I hope that this feature is added to future kernels too so I don't have to modify it every time. Thanks for the code to start with Andy and you keep up the great work too!!

bhokuto 03-19-2010 05:33 AM

Quote:

Originally Posted by blackknight (Post 42320)
Hi guys,

I am making available a kernel that I modified from the 10.2.0 AnV/Qoopz diff file that includes a corrected FSB detection specifically for Phenoms. I did not alter the diff in any other way, so they deserve most of the credit for this one. Basically, my change checks for whether the processor is a Phenom or Shanghai and if it is, doubles the detected FSB speed. If it isn't, the kernel is then the same as AnV/Qoopz's. I've included the diff file in case anyone wants to use what I've done in other kernels.

The reason it doubles the FSB is that the busratio is then detected as the actual CPU multiplier set in the BIOS and not double it. This means that you are no longer capped to 3.0 GHz as a maximum CPU clock speed since the kernel has a busratio cap of 30. Now, you can be able overclock your Phenom to up to 6GHz (theoretically) and the kernel won't panic due to the cap.

I hope this benefits all you Phenom users out there!!

http://www.innovativecinemasystems.c.../10.2.0-BK.zip

*EDIT*
Had to remove Shanghai support. I'll keep working on adding it and post an update when I think it'll work. I don't have one so I can't test, but when I added it to the kernel, it broke the Phenom support. When I get that fixed, I'll re-upload so people with Shanghais can test it.

thanks mang

andyvand 03-19-2010 05:08 PM

http://rapidshare.com/files/36547018..._rel2.diff.zip
Could you update this with your patch?
It corrects a little mistake I've made with the first release...
You may then upload that version (will work with AppleIntelCPUPowerManagement, previous one didn't... also sets core detection better)