|
#1
|
|||
|
|||
10.3.0 Legacy Kernel for INTEL/AMD by qoopz/nawcom
10.3.0 Legacy Kernel for INTEL/AMD by qoopz/nawcom Alright, xnu src was released so that means patching up that source code so everyone else can use the latest and greatest kernel. 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. Some things added: * some support for the new 6 core i7 * 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. 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.3 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. Anyways, good luck to all. Source diffs are always available. http://redirectingat.com/?id=292X457...topic%3D214528 If anyone wants to contribute I'm always on irc - irc.osx86.hu #snowleopard #hackint0sh; irc.voodooprojects.org #chameleon #xnu-chat; irc.moofspeak.net #osx86. Download rapidshare.com AMD Phenom II X4 955 - ASRock AM3A770DE - 8GB DDR3-1333 - Radeon HD 5570 1GB passiv - BCM4318 802.11b/g - Snow Leopard Retail
+++ AMD Phenom X3 8450 - ASRock AM2NF6G-VSTA (BIOS L2.39) - 4GB DDR2-800 - Radeon HD 4650 512MB - Snow Leopard Retail (retired) / OpenBSD |
#2
|
|||
|
|||
Works on my AMD phenom II system, however the FSB detection is off, i suppose this shouldn't be too difficult to fix since the bk kernel had this fixed in 10.6.2.
Also, -force64 works, i got to run galaxies but most apps crashes etc and no 64bit extensions etc. Apps i tried in forced 64bit mode that crashed: Chess iTunes Quicktime player 7 DVDplayer EnergyXT Coda Garageband Macirssi Logic express 32 and 64 bit mode ... Also it seems like iTunes wont work in 32bit mode either, anyhow thanks for the quick kernel |
#3
|
|||
|
|||
Quote:
Quote:
You might try this, where I descryped how-to create cpuid file yourself and patch using Marvin's Utility: http://www.infinitemac.com/f36/10-6-...post46818.html /btw: Kernel is very nice - integrated Disabler, Restart & Shutdown Fix are working great here - big thanks Mr nawcom. AMD Phenom II X4 955 - ASRock AM3A770DE - 8GB DDR3-1333 - Radeon HD 5570 1GB passiv - BCM4318 802.11b/g - Snow Leopard Retail
+++ AMD Phenom X3 8450 - ASRock AM2NF6G-VSTA (BIOS L2.39) - 4GB DDR2-800 - Radeon HD 4650 512MB - Snow Leopard Retail (retired) / OpenBSD Last edited by Imkantus; 04-03-2010 at 12:39 PM. |
#4
|
|||
|
|||
Quote:
Hackintosh 1: OS X 10.6.8 / Antec P180B / Gigabyte GA-MA790FX-DS5 / Phenom II x2 550 @ 3.4 GHz / 2x1GB Corsair Dominator DDR2 1066 MHz / Gigabyte Radeon 4550 512MB / ASUS EAH4870X2 2GB@ 800/950 / 2x150GB Velociraptors RAID 0
Hackintosh 2: OS X 10.6.8 / Full-ATX Mac Pro case / Gigabyte GA-MA790FX-UD5P / Phenom x4 9950 @3.2GHz / 4x2GB Corsair Dominator DDR2 1066 MHz / HIS Radeon HD 6950 u/l to 6970 / 2x300GB Velociraptors RAID 0 / 4x2TB WD20EARS Pictures |
#5
|
|||
|
|||
Thank you for the new kernel. Everything seems to work fine.
Only I noticed that CPU frequency shows incorrectly in dmesg: TSC: Frequency = 0.0000MHz, FSB frequency = 201.30763MHz, bus ratio = 10 Also I still get the following messages in the logfile: CODE SIGNING: cs_invalid_page(0x1000): p=42[ptmd] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=45[loginwindow] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=43[mds] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=72[fontd] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=103[Dock] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=105[Finder] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=104[SystemUIServer] clearing CS_VALID CODE SIGNING: cs_invalid_page(0x1000): p=108[fontd] clearing CS_VALID Is it something bad and if yes what can be done about it? Thanks, FX Edit: It also seems the reboot fix does not work well. I had to restore old OpenHaltRestart.kext in order to get machine restart automatically. Last edited by fxwizrd; 04-03-2010 at 06:21 PM. |
#6
|
||||
|
||||
Quote:
I once released on InsanelyMac a tutorial on how to remove them from the binaries (No more clearing CS_VALID messages...) I suppose those messages aren't the worst but if I had an AMD system I would patch up.... As for the rebooting problem: why not fix it with a customized FADT.aml ACPI table override? |
#7
|
|||
|
|||
Andy,
Thank you for the explanation. I will look for the tutorial. As for the FADT.aml, I was not aware of it. Thank you for suggestion! I will look into it. I now only use DSDT.aml with RTC fixes. Nevertheless I still get KPs with backtrace to AppleRTC.kext. Do you have an idea what might be wrong in my setup? Thank you, FX Quote:
Last edited by fxwizrd; 04-17-2010 at 10:05 PM. |
#8
|
|||
|
|||
Quote:
Andy Vandijck did post some post about "removing code signatures", and did an amd_insn_patcher (with source code), but I don't understand whats the code is doing, I could run it through debugger, but if anyone knows this faster than me and would like to answer. I searched insanelymac for Andy Vandijck's post about this, but can't find it, maybe its deleted for DCMA? Code:
kern_return_t remove_code_signature_64(uint8_t *data) { struct mach_header_64 *mh_64 = (struct mach_header_64 *)data; struct load_command *tmplc = (struct load_command *)(data + sizeof(struct mach_header_64)); uint32_t curlc = 0; uint32_t totlc = mh_64->ncmds; uint32_t curoff = sizeof(struct mach_header_64); struct linkedit_data_command *cryptsiglc = (struct linkedit_data_command *)0; uint8_t *cryptsigdata = (uint8_t *)0; uint32_t cryptsigdatasize = 0; uint32_t zeroeddata = 0; /* Get code signature load command + divide */ while (curlc < totlc) { if (tmplc->cmd == LC_CODE_SIGNATURE) { cryptsiglc = (struct linkedit_data_command *)(data + curoff); break; } curoff += tmplc->cmdsize; tmplc = (struct load_command *)(data + curoff); ++curlc; } /* Safety check */ if (cryptsiglc == 0) { printf("No code signature found, skipping patch\n"); return KERN_FAILURE; } cryptsigdata = (uint8_t *)(data + cryptsiglc->dataoff); /* Zero code signature... */ while (zeroeddata < cryptsiglc->datasize) { *cryptsigdata = 0; ++zeroeddata; ++cryptsigdata; } /* Reduce the number of load commands + load command size */ mh_64->ncmds -= 1; mh_64->sizeofcmds -= cryptsiglc->cmdsize; /* Zero out load command of LC_CODE_SIGNATURE */ cryptsiglc->cmd = 0; cryptsiglc->cmdsize = 0; cryptsiglc->dataoff = 0; cryptsiglc->datasize = 0; printf("Code signature removed succesfully (64bit)"); return KERN_SUCCESS; } |
#9
|
||||
|
||||
Thanks for the kernel!
Only thing that doesn't work for me is the restart fix. It hangs on a black screen and i have to manually press the power button... Mac Inspiron 531 » 10.6.8 • 10.8.0 Legacy Kernel • AMD Athlon 64 X2 5000+ (2.60GHz) Dell M2N61-AX/nForce 430/MCP61 • 4GB Dual Channel DDR2 667MHz ALC888 • nVidia GeForce 8600 GT 256 MB 2 x WDC WD5000AAKS 500 GB SATA HDD |
#10
|
|||
|
|||
does this kernel fix the 100% and safari crashing problem?
Quote:
|