![]() |
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. |
does it work well with fly - cpuid and AMD ATHLON ?
|
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.
|
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 |
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.
|
Quote:
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. |
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. :) |
Quote:
|
Quote:
|
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) |
bump for an update
|
thank you, works great, jus wondering, its suppose to work faster, than previous version? what is the main differences between this and older?
|
Quote:
|
any new patched mach_kernel 10.3.0 ?
@ blackknight :
could you build a new patched mach_kernel 10.3.0 for the AMD system ? fyi, now I'm running the Snow Leo Server 10.6.3 with your latest patched kernel (the blackknight's darwin 10.2.0) http://i39.tinypic.com/2a66z6d.jpg thanks for your great efforts :) |
Quote:
Also, the darwin 10.3.0 kernel sources haven't been posted yet, so we can't make new kernels yet. |
Quote:
and here is my specs : - AMD Phenom II x4 965 BE c3 - Biostar TA790GX A3+ - 2X2GB OCZ AMD Platinum DDR3 PC12800 Dual Channel 7-7-7-24 - ATI HD3300 onboard (no QE/CI support) :D |
Hey, this didn't work for me after upgrading to 10.6.3 and replacing the mach_kernel with this one i get the following kernel panic:
http://img62.imageshack.us/img62/8563/dsc02060a.th.jpg Using a Phenom II X4 945 Gigabyte GA-MA790X-UD3P |
Quote:
|
Over insanelymac there's a release by qoopz/nawcom of the new 10.3.0 kernel.
|
Quote:
|
Quote:
|
Can you please build a 10.6.3 kernel?
The patches go in cleanly... I've checked... |
andyvand,
what kind of file is this AnV_Qoopz_snow_leopard_xnu_rel2.diff, what do you do with it. |
m28we,
How did you get 64bit enable. are the apps running. |
I've built the a new kernel based on 10.3.0 and added the link and diff to the first post. So far it's working for my Phenom 9950, though -force64 still doesn't work and I now think it might have to do with one of Andy's mods. When I made my change to the 10.3.0 legacy kernel by nawcom/qoopz, -force64 sort of worked, but now I can't boot into the GUI with Andy's.
Enjoy! -BK |
works great with my phenom II x4 and now without the busratio flag.
thx |
Glad to hear it jazZbaR!
|
vmware fusion 3.0.2 is not working with 10.3.0 of this kernel - always get kp on launch... with 10.3.0 Legacy Kernel for INTEL/AMD by qoopz/nawcom everything is ok, currently running win xp... don't know maybe reinstalling vmware will help? didn't try...
ps phenom II x4 925 ddr3 4gb, latest 10.6.3 osx |
Running great for me... very smooth.
My mouse run perfectly without lags... that were present with 10.3 by nawcom/qoopz Xbench even raised up. |
32-bits applications: quit unexpectedly
@ blackknight :
thanks for the new patched kernel :) 1. in 32-bits mode (using flag: arch=i386) : all kexts & applications run OK 2. in 64-bits mode (using flag: -force64) : + both 32 & 64-bits kexts run OK + only 64-bits applications run OK - all 32-bits application crash & quit unexpectedly with these errors : Code:
Exception Type: EXC_BAD_INSTRUCTION (SIGILL) |
It has to do with the sysenter instruction being unavailable on AMD.
We need sysenter emu / replacement code in custom dyld... |
Thanks, this kernel works fine for me with the exception of 64bit of course, however about the dyld fix, was this something that worked in leopard and can be backwards engineered or is this something completely different that will be hard to implement?
SL is still not an option to me because the experience is too unstable but i always keep a partition of it on a old ide drive to play around with, my main issue now is that some AudioUnit plugins(from ikmultimedia only) kills /usr/bin/avaltool which is the tool Logic and Logic Express uses to verify AudioUnits, this wasn't a problem with my previous SL install but i have no idea what causes this. Otherwise SL on amd is now pretty stable after removing the necessary cpuids, so a big thumbs up for everyone who are involved with the development of this kernel and the kernels its based on:) |
I am sure both Andy and I are glad to help. Andy definitely knows more about the kernel than I do.
As far as the on-the-fly CPUID patcher, is anyone working on this? Did the Voodoo team die or something? This is one thing that makes AMD installs so difficult. If it wasn't for the fact that my Radeon HD 4550 won't work in Leopard, I would be using it exclusively as it is rock-solid and easy to setup. If someone would give me some help in building a kernel for 10.5, I would have my Phenom patch working with it too. At least with Leopard, I can get my ALC889a working with 7.1 analog surround sound whereas I can't get any sound to work in SL. I wonder if it has something to do with the kernel though. |
A phenom optimized leopard kernel would be most welcome!
|
@ m28ew : Hi, how did you manage to install SL? I have the same motherboard as yours but mine gets stuck at " controller will be unloaded across sleep ".
Thanks in advance! |
This evening I'll make a full and complete kernel with otf patcher (cpuid + sysenter patcher). I'll post it when done... keep you posted ;)
update: voodoobuild.sh 60 procent done dyld patch ready |
I'll be waiting to test that :)
|
Great, thats lovely news!
|
Me, too! :)
Can't wait to try this... :cool: Quote:
So even with having that dyld Patch - I would still need to patch CPUIDs? And CPUID means that the software is checking if the machine is using a GenuineIntel CPU? Sorry for that many (dumb?) questions & if I might be totally wrong - but I would realy appreciate to get some help with understanding things better. :) |
sysenter is used by dyld to map the app and then run it.
the custom dyld uses syscall 8 (used to be old creat call in Tiger and older, customized to map segment). Here is an update: voodoobuild about 85 procent done fixed Libc build issue, it now builds correct fixed libsyscall, added dependencies from iokit and the required headers which were missing from IOUSBFamily and IOFireWireFamily, it now builds too. Now all that is left is libsystem static libc build, dyld and then I can work on the kernel. dyld will thus be finished today ;) |
Awesome Andy!!! I am so happy that someone even attempted to get this working and I pretty much knew it had to be you. Also, thanks for the updates. I can't stand it when someone promises to do something that everybody has been waiting for and it ends up being vaporware because they don't let people know what's going on with it. Thanks man.
|
hows the progress andy?
|
progress:
fixed voodoobuild.sh for sl fixed dyld, it now builds correct with patches applied fixed libkld build (optional since sl) still to do: xnu I will first implement custom amd dyld + syscall 8 (for mapping the segment, required by amd dyld), then I'll focus on the cpuid + sysenter patcher. just 2 more things to do on the checklist ;) I'll keep you posted on progress |
Awesome, can't wait!
Considered making a sourceforge account with svn/cvs/git or something when its done so people can easier contribute to the project opposed to rapidsharing thing? Just a suggestion anyway, glad to see that someone is dedicated to make osx available and more accessible to all x86/64 users! |
Hey Andy,
I'm wondering if my AMD CPU FSB detection is now implemented as standard in your code. Also, is there any work by anyone on getting full 64-bit mode working on AMD? |
I am working on full 32 + 64 bit amd xnu
@blackknight: can you post a diff (your patch only, diff between my patch and yours) |
Quote:
Code:
- busFreq = EFI_FSB_frequency(); |
groundbreaking stuff i'm really excited been search ages for work like this on kernels I feel bad that i'm not as capable if there is any way i can help andy, please let me know.
Regards, Ash |
Thanks, Andy! I'm very excited to hear the news :)
I'm using 10.3.0 Blackknight kernel. So far, everythings works wonderful, of course, i still can't run 32bit app in 64bit mode. However, I have a problem with installing After Effect CS5. It keep on asking for 64bit system for it to be installed. I've tried to install it in x64 mode, but I cant even run the installer in this mode. I dont know if it's a kernel's problem or something else, and I really need After Effect. Here is my specs: AMD PHENOM II X4 B50 @3.6ghz (It's originally X2 but I unlocked it to X4. I still feel lucky! ) Mainboard BIOSTAR A3+ Thanks Andy and Blackknight for everything you guys have done so far! It's so meaningful to the OSX86 community :) |
Thanks for the update Andy! Cant wait!
|