Jump to content

Haswell-E mach_kernel patch (5960X, 5830K and 5820K) 10.10 - 10.10.1 Yosemite


  • Please log in to reply
674 replies to this topic

#1
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools

EDIT 12/5/2015:

I created a new guide with speedstep working

http://www.insanelym...edstep-working/

 

EDIT 9/16/2015:

In the 10.10.2 and newer, Apple added native support for Haswell-E Thanks maleorderbride for test

 

At this moment it is possible compile a XNU kernel with the necessary change for a Haswell-E works, it is easy all you need is to add CPUID_MODEL_HASWELL_SVR in cpuid.c. But the problem is, the open source XNU kernel doesn't have the same code that the vanilla kernel. They share most of the code but another part is replaced by open source code and other parts simply not are available such as XCPM. It seems that the code that performs the work of the iMessage and other things neither it is available. For this reason is better to use the vanilla kernel but the problem is that it does not yet support the Haswell-E and for that we need patch.

 

Here is a quick and dirty patch for the mach_kernel to let it run Haswell code on Haswell-E

 

1.

Patch the vanilla kernel using a Haswell code(Use only with 10.10.0 or 10.10.1 in the newer versions it is not necessary):

sudo perl -pi -e 's|\x74\x11\x83\xF8\x3C|\x74\x11\x83\xF8\x3F|g' /System/Library/Kernels/kernel

This work would not have been possible without the patch of PikerAlpha for 10.8.4, I just used otool to find the new Haswell-E patch for 10.10

 

2.

If to boot you need to use the kernel flag (cpus=1) is necessary to use the VoodooTSCSync.kext, that you put in /System/Library/Extensions/ (Download VoodooTSCSync.kext)

Open the info.plist of the VoodooTSCSync.kext and edit the IOCPUNumber.

 

If you have a 5830K or 5820K(six core) use the number 11

            <key>IOPropertyMatch</key>
            <dict>
                <key>IOCPUNumber</key>
                <integer>11</integer>
            </dict>

If you have a 5960X (eight core) use the number 15

            <key>IOPropertyMatch</key>
            <dict>
                <key>IOCPUNumber</key>
                <integer>15</integer>
            </dict>

3.

Add npci=0x2000 -v -f to kernel flags.

 

4.

For the installer you need use nv_disable=1

 

 

Speedstep

For Haswell it is impossible getting speedstep. The information necessary to work not exist on the XCPM because this information will not be available until receive official support from apple.
 
Solution:
 
You can use (NullCPUPowerManagement.kext) for get a little speedstep using state C1E. It can vary from two states to three states. The problem with this solution is that it can not use the turbo boost.

 

 

Sata (GenericAHCI):

I made a AHCI injector for X99 motherboard. To change the IOClass AppleAHCI into the IOClass AppleIntelPchSeriesAHCI(On the system profiler appears as X99 instead GenericAHCI)

 

Attached File  AHCIPortInjector.kext.zip   7.75KB   213 downloads

 

 

Audio:

I suggested the idea to patch the audio to work with X99 boards on toleda's Mavericks Realtek ALC AppleHDA thread.

 

I post a patch with the x99 & series 9 chipset in the official voodoohda thread, Slice merged the patch with the voodoohda source.

voodoohda 2.8.7 or newer thanks to Slice.



#2
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

Thanks Stinga!

 

i think have correctly patched the kernel but i have PCIconfiguration begin.

What's wrong?

 

Thx



#3
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools
Add npci=0x2000

#4
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

Add npci=0x2000

i did.

 

ok i do it again..

 


no, always PCI configuration begin.

plugged the usb key on the usb2 port.

I added -f -v cpus=1 npci=0x2000 nv_disable=1

 

My config: asus x99 5960x



#5
XLR

XLR

    2cores1cpu.mov

  • Donators
  • 953 posts
  • Location:חולון

Same here, 5960x on X99UD4.

 

Tried npci=0x2000 and npci=0x3000, but always stuck on "PCI configuration begin"...



#6
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools

i did.

 

ok i do it again..

 


no, always PCI configuration begin.

plugged the usb key on the usb2 port.

I added -f -v cpus=1 npci=0x2000 nv_disable=1

 

My config: asus x99 5960x

Which of the patch you are using ?? the a,b or both ????



#7
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

lool

 

both  :P



#8
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools

Hey guys try only the a patch, I post the b patch because someone x86 told that the second patch is necessary. I always said that the second patch is not necessary. Not use both, use the first if not work copy a new kernel and them use the second.



#9
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

Hey guys try only the a patch, I post the b patch because someone x86 told that the second patch is necessary. I always said that the second patch is not necessary. Not use both, use the first if not work copy a new kernel and them use the second.

first patch "haswell" doesn't work = PCiconfigurationbegin



#10
Japortie

Japortie

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Same Problem here, it doesn't make a difference if i use both patches or only the first one....

Always stops at PCI configuration begin

 

Running Gigabyte UD-4 and 5820k



#11
NOTNlCE

NOTNlCE

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:DMV Area

Unsuccessful with both patches/just Haswell/just Ivybridge on my end.



#12
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools

is a weird situation because I used the first patch on a friend computer a works great.



#13
XLR

XLR

    2cores1cpu.mov

  • Donators
  • 953 posts
  • Location:חולון

Which system identifiers are you guys using during installation, mp3,1 or 6,1?



#14
stinga11

stinga11

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 317 posts
  • Gender:Male
  • Location:Puerto Rico
  • Interests:Music teacher in public schools

Some time ago I had a computer that did exactly the same and I solved it by deleting the USB 3.0 controller


  • XLR likes this

#15
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

sorry but how you delete usb 3 controller? is it a .kext?   i didn't see it on usb installer.

thx



#16
NOTNlCE

NOTNlCE

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:DMV Area

Make sure you're booting with npci=0x2000 and using either VoodooTSCSync or CPUS=1. That should fix the PCI Configuration issue. 



#17
Japortie

Japortie

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Its working for me just fine now, I can't really tell you what i did different than the last times.... but it works so im happy :P

5820k with Gigabyte X99 UD-4

with boot options npci=0x2000 cpus=1 -f -v

 

 

heading now to Post Installation



#18
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

Oh C*** i don't know why it doesn't work ?! of course i write every time this bootflags npci=0x2000 and cpus=1 since i have a x79 :blink:

 

i'm making a other usb key to see..



#19
Japortie

Japortie

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

did you use -f also?

refused to work without it... although i don't understand that, -f only forces a rebuild of the kext cache, doesn't it?



#20
samtimbaud

samtimbaud

    InsanelyMac Protégé

  • Members
  • PipPip
  • 72 posts

did you use -f also?

refused to work without it... although i don't understand that, -f only forces a rebuild of the kext cache, doesn't it?

yes i did

i used many bootflags, i used usb 2 port &usb 3, i used different usb key, i stoped overclok to stock cpu.

AAAALWAYS: Pci configuration begin

:wallbash:

 

maybe is a issue with Asus motherboard..

 

 

thanks guys for your help :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy