PDA

View Full Version : 10.4.0 XNU Kernel for INTEL/AMD by qoopz/nawcom/AnV/BlackKnight/mucha


Imkantus
06-18-2010, 10:46 PM
10.4.0 XNU Kernel for INTEL/AMD by qoopz/nawcom/AnV/BlackKnight/mucha


Standard fixes are included, plus a few extra stuff:

* Built-in kernel blacklister automatically blacklists bad kexts from loading. Therefore you don't need to use a disabler to disable it manually
* bigger dmesg Which translates to a larger log file so that you can troubleshoot easily
* uuid patching/fix Eliminates the need of UUID kext or specifying manually
* fsb detection
* cpu cache detection
* reboot fix- Eliminates the need of OpenHaltRestart and fixes shutdown/reboot issue
* sse3emu -SSE3 emulator for SSE2 processors . Bear in mind that most of the applications in Snow Leopard run fine with this emulator.
* For people wanting to use XCode apps, I decided to add all the CHUD kexts to the kext blacklist. This means no more kp hell when installing and dealing with the development tools. If anyone thinks this is something that shouldn't be added, let me know.

Added stuff:

* Some of AnVs patches from the 10.6.2 diff
* BlackKnight's fsb fix
* mucha's lapic fix (common issues with new HP laptops, meklort plans on including a fix for this in Chameleon)
Features in this specific package:

* If you have SleepEnabler installed, your SleepEnabler kext will get updated. If you don't use it, don't worry about it - it won't get installed.
* All of the CPUIDs in the new versions of programs from the 10.6.4 update will get patched. this means you don't need to deal with the hell regarding iTunes, etc.

(The actual patcher program also gets installed (/usr/local/bin/patcher, you can run from anyware via Terminal) as well as the CPUID text file (/Library/CPUIDs/*) Though this is only important to people who love control and want to be able to run it themselves :-P - this is all automated in the installer regardless. Unfortunately we still havent gotten on the fly patching working, so this is a reasonable fix for it for now.)

I do make cpuid files for updates and keep them online http://nawcom.com/osx86/cpuids/ for AMD people to use regarding updates as well as a nice frontend to Maxxuss' patcher app, drag and drop a cpuid.txt file onto the app to launch it - just like Taruga's HDA Patcher.

Good luck to all. Source diffs are always available. -> http://nawcom.com/osx86/files/10.6/Kernels...l-1504.7.4.diff (http://nawcom.com/osx86/files/10.6/Kernels/10.4.0/legacy_kernel/legacy_kernel-1504.7.4.diff)

Remember the voodoo xnu project?

I believe that we can get many developers together once again and make this a reality once more. Sadly many of the original devs are gone, yet there are many who are willing to improve this code a ton. Many people can create their own fixes and improvements, but there's no way we have a kernel like there was in 10.5 without us coming together as a group.

I have messaged AnV and BlackKnight as well as a few others who I know can help contribute to this and revive the xnu project for AMD and legacy Intel (perhaps we will revive the voodoo name) and I am looking for anyone who can contribute code-wise who can work together to make this a reality once again.

Probably our 2 main goals as of now is:
* sysenter emulation to make 64 bit userspace work with 32 bit apps
* correctly port on the fly cpuid patching, so no manual cpuid patching is needed again

For anyone who can help code-wise, join #xnu-chat on irc.voodooprojects.org. Once we get this together we can create a google code project and make this easily available. My personal plan is, if this succeeds this won't be the final version of the 10.6.4 kernel at all.

As I said, we can get this project in an organized state once again, and hopefully within the next month it can happen.

External link: http://nawcom.com/osx86/files/10.6/Kernels...-10.4.0.pkg.zip (http://nawcom.com/osx86/files/10.6/Kernels/10.4.0/legacy_kernel-10.4.0.pkg.zip)
Another External link: http://www.mediafire.com/file/dhxx1ytrnoz/...-10.4.0.pkg.zip (http://www.mediafire.com/file/dhxx1ytrnoz/legacy_kernel-10.4.0.pkg.zip)

Many thanks to qoopz, AnV, BlackKnight, mucha, and everyone in the original voodoo-xnu team - mercurysquad, Galaxy, kaitek, Turbo. I'm probably missing some names. Yell at me if I am.http://www.insanelymac.com/forum/index.php?showtopic=221599&start=0&#entry1492469

Wow... just a few hours after Apple has released the src... :)

eMatoS
06-19-2010, 01:24 AM
working great here, just like the previous one. My gratitude to all the people involved in this.

m28ew
06-19-2010, 08:46 AM
Thanks a lot for the update :)

Even, unfortunately, there's still no good news for all AMD users :'(

But we're still waiting for this one : (Y)

I am working on full 32 + 64 bit amd xnu


Keep the spirit guys

acik84
06-19-2010, 02:25 PM
I got KP when try to run my guest OS on vmware fusion 3(darwin 10.4) with lot of hex code just like anv said "bigger dmseg" and followed by self restart.It run fine on blacknight darwin 10.2 and i can run w7 64bit even i boot in 32bit snow.Maybe someone could use the kernel memory management just like vmware did.

Safari 5 keep crash when finished play flash video(html5 video is ok)-darwin 10.4 but on 10.2 is ok.

should i post a picture when KP? but it generate too fast and restart.

spec:
amd phenom 9850 be
4gb ddr2
gtx260
770 chipset.

TheVamp
06-19-2010, 03:13 PM
Work's fine with amd. Great work

toanbk
06-19-2010, 05:37 PM
It's work for me, but I can't shutdown my computer after update :(

timberwolf5
06-19-2010, 06:26 PM
Do you still need platformuuid.kext and evoreboot.kext?

toanbk
06-19-2010, 10:14 PM
Ok, after I replace OpenhaltRestart.kext by EVoreboot.kext, everything worked fine :)

Imkantus
06-19-2010, 10:53 PM
Shutdown & Restart are working wihtout OHR or EvOReboot kext, when using this Kernel in my case... :)

eMatoS
06-20-2010, 12:04 AM
Will try removing evoreboot kext and see if I can reboot.

pαuℓzurrr.
06-20-2010, 12:04 PM
Works fine here! Thanks for the quick update! ;)

eMatoS
06-20-2010, 05:01 PM
Reboot is not working here, back to evoreboot... Everything else is fine.

mammoth
06-23-2010, 05:09 AM
Tried it on my HP DV8t-1100 (VF836AV) after using legacy_kernel 10.3.0 and saw a quick flash of the gray apple screen and then reboot. :(

Any suggestions would be great.

Thanks

pαuℓzurrr.
06-23-2010, 09:21 PM
All was good, but then i removed AppleUpStreamUserClient.kext
And everything went craazzzy
Instant kernel panic on boot...
Anyone with the same problem?

Imkantus
06-24-2010, 12:26 AM
Have you ensured, that the Extensions Cache was beeing rebuild correctly after deleting that kext? Maybe tried to use -f Flag for that?

pαuℓzurrr.
06-24-2010, 10:06 AM
Yeah i think that was the problem indeed. It boots again :)
Now i have a other problem, it seems that the machine gets a lot slower when playing HD movies, with 10.6.3 everything was fine. Did the drivers change? Anyone else with the same problem?

Edit: Found this... (http://discussions.apple.com/thread.jspa?threadID=2467019&start=0&tstart=15)

"It appears to be 'only' happening on Macs with an nvidia graphics card or chipset, and is an apparent problem with certain OpenGL routines (not all) and the NV50HAL Graphics Driver that ships with 10.6.4
It also render CUDA (3.0.14) unusable).
nvidia are aware of the problem, and there is a bug report with Apple.
What they are doing, and time frame is a question only they can answer... "

Imkantus
06-24-2010, 10:28 AM
You could try out using NV50HAL + NVDAResman from 10.6.3 - maybe it will cause compatibility problems with 10.6.4 frameworks - maybe it'll work... ;)

gipo
06-24-2010, 11:02 PM
Perfectly updated to 10.6.4 then installed this kernel.
All seems to be perfect, only issue some strange crash in apps like iphoto or SL Ntfs.

tomi
06-26-2010, 01:02 AM
Hi Imkantus,
My congrats to the entire team who worked so hard in making this kernel for us AMD peeps. I have an AMD Phenom x955 on a Gigabite ga-ma785gnt-ud2h motherboard.

I will say that previous legacy kernels didn't work for me at all, and this is the first one to do so, probably because of the fsb detection. So now the
legacy kernel is usable on the Phenom II platform.

3 noticeable things, and ones which however still make me revert back to black knight's 10.3.0 kernel:

1. I spent 10 re-installs to get everything back up again, because it appears that with this kernel there is no way to use a USB modem (like a cell phone
which is what I use for internet access) to connect to the internet with. Whenever I use this kernel in combonation with any data card (I've tested with
a Huawei modem and a pantech one), I get a message telling me that the connection failed. No matter what I do I can't use a USB datacard/modem for the
internet.

When using 10.6.4 with Black Knight's 10.3.0 kernel, however, the USB modem works fine.

2. Cache detection doesn't work for me. At all-System profiler does not show my caches whereas with Black Knight's kernel it does.

3. This is just a suggestion, but I see that the kernel edits chemelion to use legacy_kernel instead of mach_kernel . Wouldn't it be more practical to just
back up the mach_kernel and use that instead of a legacy_kernel file?

Thanks for everything, and keep up the great work!

All the best,
Tomi

scififan68
06-28-2010, 02:09 AM
Thanks for all your hard work, but this kernel this still has Tsc skrew on my AMD X2 5600+ and the only way to get rid of it is to boot with cpus=1 and that slows down my computer alot. Another problem it doesn't detect my cpu speed in Mhz, it only detects my fsb, which could be the root of the problem. Well I'd appcreaite if someone could look into it and thanks again everyone for the work on this kernel. :)

kocoman
06-28-2010, 04:08 AM
So does this one fix the spinning beachball on sse2 cpus?

ie:

The Disk Utility will keep freezing (and also the Checking Available disks in the installer, or stuck at 0%-x% during install) in the SL installer because of lack of sse3. It seems the sse3 emulation is missing something/loop/hangs when a certain instruction is used.

My only way to install it was from other Leopard system.. but then after boot it gives the 100% cpu, md5/quickloop worker stuck, safari crash, xcode freezes.. system not usable..

If xcode did work I could disable the spotlight stuff, forgo safari with firefox/chrome... but I need xcode

pαuℓzurrr.
06-28-2010, 05:33 PM
You could try out using NV50HAL + NVDAResman from 10.6.3 - maybe it will cause compatibility problems with 10.6.4 frameworks - maybe it'll work... ;)

Yes i tried that but got a kernel panic, restored the 10.6.4 kexts and for some reason it works good now...

scififan68
06-29-2010, 04:01 AM
Yes i tried that but got a kernel panic, restored the 10.6.4 kexts and for some reason it works good now...

You could try these: http://www.nvidia.com/object/geforce-macosx-19.5.8f03-driver.html They work for my 9500GT and I can now play TF2!

RetroRen
07-01-2010, 09:14 AM
>It's great to see developmnet for an AMD kernel. Hope to see more progress on 64bit for AMD and on the fly opcode patcher.

Keep up the good work guys ;)

blackknight
07-04-2010, 06:29 AM
Thanks for all your hard work, but this kernel this still has Tsc skrew on my AMD X2 5600+ and the only way to get rid of it is to boot with cpus=1 and that slows down my computer alot. Another problem it doesn't detect my cpu speed in Mhz, it only detects my fsb, which could be the root of the problem. Well I'd appcreaite if someone could look into it and thanks again everyone for the work on this kernel. :)

About the CPU speed, I've tried my kernel and this one on a few different CPUs including an atom D410 and none of them show the CPU speed (it's just 0 MHz). It all started in 10.3.0 kernel and I can't find where it changed. My 10.2.0 kernel shows CPU speed just fine.

kocoman
07-04-2010, 01:52 PM
I have used the 10.4.0 kernel on the 10.6.2 system, thinking it would fix the sse3 emu problem (older p4). but still no changes, safari, xcode, mds, QuickLook helper, still use 100%

When I try to install the 10.6.3 updater. its still stuck at "Examining Additional Disks"
I was able to install the 10.6.4 accidentally, but the GMA900 would not work, so I could not go to the desktop.

Has anyone expect me tried the new kernel on the sse2 system? I don't think anything has changed for the sse3 emu since the 10.2.0 kernel. but yet the description says its a rewrite..

Has anyone tried it on an AMD system with sse2 only?

XPbIM3
07-08-2010, 12:35 AM
Reporting the same thing, same symptoms on sse2 (dothan) machine:
-it seems that sse3 emu is not working since first release of legacy kernel for SnowLeo.
-distorted graphics
-safari hangs
-openGL and other sse3 software fails.
-the most annoying thing: system cannot umount disks successfully. (anyway manual umount from console works.)

I don't know if that matters - no HPET in my machine.
10.5.8 works almost fine with "avakov" kernel, but no OpenGl sse3 support anyway.
I think our older machines needs stable sse3emus, so serious revision of sse3emu code is required, there is something wrong inside.

j71rivera
07-23-2010, 04:27 AM
Not sure this is related but i have a Pheonom X2 550 unlocked as a Pheonom X4 b50 and it shows my FSB as 400 when its 200. and oh yea. my videos are running at double time lol So if it is not someone please let me know.

RayFlower
08-06-2010, 12:40 AM
Hey, i don't mean to nag or anything but, has there been any progress in the kernel development for amd?
It would just be great to have Snow Leopard to perform at the same level that Leopard is with the 10.5.8 kernel, specially now that the ati 5x series are supported.

Cheers!

mousex888
09-09-2010, 12:18 PM
Great work! Thanks

Andrea3000
09-14-2010, 10:12 PM
Do someone knows how can I get rid of this kernel panic? It happens completely random every 7-10 days more or less.
I'm using 10.6.4 legacy kernel without the latest diff posted by AnV.
Here's my pc specs:
Pentium D820
Motherboard: MSI p4m890m
Snow Leopard 10.6.4 running 32bit with everything working through DSDT
Thank you

ptesone
09-28-2010, 03:51 PM
It's beautiful man, thanx for all the hard work!