Jump to content

Patch for using NVMe under macOS Sierra is ready.


  • Please log in to reply
1317 replies to this topic

#1301
Boomish

Boomish

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Thanks Vpac unfortunately this is for an existing Mac Pro 5.1 so not a Hackintosh, If I try the patch I get 

Creating patched HackrNVMeFamily-10_12_6.kext from /System/Library/Extensions/IONVMeFamily.kext

WARNING: Vanilla MD5 (1b712ac1b6e56f846a7e5d0056cdea20) does not match expected MD5 (c506f1fc40026c0262a736f0be318223)

ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!

 

I tried editing the patch to point to a vanilla IONVMeFamily.kext, I used Pacifist to extract from the Apple Combo installer but even that didn't work. So it must be me.. :(

 

I can see from below it can't see a certain DIR, but thats in the patch..I have a feeling it's something obvious I'm missing here

 

xxxxs-Mac-Pro:patch-nvme-master xxxxxxxx$ cd ~/Downloads/patch-nvme-master

xxxxs-Mac-Pro:patch-nvme-master xxxxxxxx$ ./patch_nvme.sh 10_12_6

./patch_nvme.sh: line 10: /Users/xxxxxxxx/Downloads/ComboKext/IONVMeFamily.kext: is a directory

Creating patched HackrNVMeFamily-10_12_6.kext from 

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file

       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory

mv: rename HackrNVMeFamily-10_12_6.kext/Contents/MacOS/IONVMeFamily to HackrNVMeFamily-10_12_6.kext/Contents/MacOS/HackrNVMeFamily: No such file or directory

md5: HackrNVMeFamily-10_12_6.kext/Contents/MacOS/HackrNVMeFamily: No such file or directory

WARNING: Vanilla MD5 () does not match expected MD5 (c506f1fc40026c0262a736f0be318223)

ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!



#1302
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

It looks like it can't find the file to me, but again... I am very, very, very far from an expert.



#1303
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Thanks Vpac unfortunately this is for an existing Mac Pro 5.1 so not a Hackintosh, If I try the patch I get 
Creating patched HackrNVMeFamily-10_12_6.kext from /System/Library/Extensions/IONVMeFamily.kext[/size]
WARNING: Vanilla MD5 (1b712ac1b6e56f846a7e5d0056cdea20) does not match expected MD5 (c506f1fc40026c0262a736f0be318223)
ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!
 
I tried editing the patch to point to a vanilla IONVMeFamily.kext, I used Pacifist to extract from the Apple Combo installer but even that didn't work. So it must be me.. :(
 
I can see from below it can't see a certain DIR, but thats in the patch..I have a feeling it's something obvious I'm missing here
 
xxxxs-Mac-Pro:patch-nvme-master xxxxxxxx$ cd ~/Downloads/patch-nvme-master[/size]
xxxxs-Mac-Pro:patch-nvme-master xxxxxxxx$ ./patch_nvme.sh 10_12_6
./patch_nvme.sh: line 10: /Users/xxxxxxxx/Downloads/ComboKext/IONVMeFamily.kext: is a directory
Creating patched HackrNVMeFamily-10_12_6.kext from 
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
mv: rename HackrNVMeFamily-10_12_6.kext/Contents/MacOS/IONVMeFamily to HackrNVMeFamily-10_12_6.kext/Contents/MacOS/HackrNVMeFamily: No such file or directory
md5: HackrNVMeFamily-10_12_6.kext/Contents/MacOS/HackrNVMeFamily: No such file or directory
WARNING: Vanilla MD5 () does not match expected MD5 (c506f1fc40026c0262a736f0be318223)
ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!


It was only just today that I added the plist for security update 2018-001.
You need to update your patch-nvme github copy.

#1304
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

I wonder if changing the patches to this would also fix my issue. I'm kind of doubtful that the release package has the update. I don't know. I'll keep plugging away on mine, but sounds like maybe you have an answer for yours Boomish!



#1305
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

I wonder if changing the patches to this would also fix my issue. I'm kind of doubtful that the release package has the update. I don't know. I'll keep plugging away on mine, but sounds like maybe you have an answer for yours Boomish!


The patch_nvme.sh script will automatically choose the correct plist based on the md5 sum of the IONVMeFamily.kext in /S/L/E.

#1306
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

I read that RehabMan and I am going to try it. Thanks for responding. I think I am making an even more basic mistake. Can you tell me if I am doing this right?

 

I put the patches for the 10_12_6 into my Clover Kernel and Kext Patches. That allowed me to finally see my SSD and install Sierra to it. When I rebooted, I changed out the config file with the patches to the same file without the patches and inserted the HackrNVMeFamily-10_12_6.kext

 

I thought I understood you to say that the correct Sierra IONVMeFamily.kext file would be installed with the Sierra install so I would not need the patches any more. I got the HackrNVMeFamily-10_12_6 from the internet since I was not able to execute the script. 

 

I can only boot into my El Capitan backup from my USB. If I run the patch_nvme.sh script, won't it run it against the IONVMeFamily.kext that is in El Capitan?

 

Should I be trying to boot my Sierra install with the same patches I used to boot the Sierra install and then assuming I get it booted, run the script on the IONVMeFamily.kext that is on my Sierra SSD which I would finally be able to get to? Or will a patched version of the El Capitan version workto boot my SIerra SSD? I'm also confused as to exactly how to implement the spook patch and when to do that.

 

I'm really sorry. I know these are pretty basic for you but I think what I have happening is a few stupid basic procedural issues. I hope I have stated it clearly enough for you to be able to follow it up.

 

And many thanks for putting in the time to make all these patches for everyone. I wish I was able to do that!



#1307
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

I put the patches for the 10_12_6 into my Clover Kernel and Kext Patches.


May not be safe, as the patches needed may change after a system update (although it is less likely now), and if you have the patches in config.plist, such patches may be partially applied, resulting in a crash, or worse (data corruption).
You should really read the spoof guide that is linked from my patch-nvme README.

I thought I understood you to say that the correct Sierra IONVMeFamily.kext file would be installed with the Sierra install


The macOS Sierra installer will install an IONVMeFamily.kext that works only with certain non-Apple devices (usually those with 4k LBA).

I got the HackrNVMeFamily-10_12_6 from the internet


I wouldn't trust it.
Generate your own from native IONVMeFamily with the patch_nvme.sh script.

I can only boot into my El Capitan backup from my USB. If I run the patch_nvme.sh script, won't it run it against the IONVMeFamily.kext that is in El Capitan?


There are plists for 10.11.6 in the patch-nvme repo.

Should I be trying to boot my Sierra install


My guide recommends using spoofed HackrNVMeFamily from the very beginning... even for the installer.

#1308
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

Rehabman

 

Boy, I really appreciate your response. I just tried to run the spoof version of the script with no name specified 

 

./patch_nvme.sh --spoof

 

It seems it is not able to match it up 

 

ERROR: no patch name specified, and unable to determine a suitable patch automatically

 

I am running this off of EL Capitan booted from a USB drive. It is my backup OS since I can't boot from the SSD

 

Seems like it should have found the correct file in S/L/E


This is what the terminal session looks like

 

 

Last login: Thu Feb  1 19:06:45 on console

Vitos-Mac-Pro:~ vitop$ cd ~/Downloads/patch-nvme-master

Vitos-Mac-Pro:patch-nvme-master vitop$ ./patch_nvme.sh --spoof

ERROR: no patch name specified, and unable to determine a suitable patch automatically

Vitos-Mac-Pro:patch-nvme-master vitop$ ./patch_nvme.sh --spoof 10_11_6

Creating patched HackrNVMeFamily-10_11_6.kext from /System/Library/Extensions/IONVMeFamily.kext

WARNING: Vanilla MD5 (797c351dfd535b6bc19d32d7cef2f1ed) does not match expected MD5 (c236c91f4f20c1f2fb9f828f3ffc0a6c)

ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!

Vitos-Mac-Pro:patch-nvme-master vitop$ 

Vitos-Mac-Pro:patch-nvme-master vitop$ 



#1309
Boomish

Boomish

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

It was only just today that I added the plist for security update 2018-001.
You need to update your patch-nvme github copy.

Ahhh no wonder I couldn't get it working, thank Rehabman,

 

I've just tried the new script and it still fails :(

 

Creating patched HackrNVMeFamily-10_12_6.kext from /System/Library/Extensions/IONVMeFamily.kext

WARNING: Vanilla MD5 (1b712ac1b6e56f846a7e5d0056cdea20) does not match expected MD5 (c506f1fc40026c0262a736f0be318223)

 

ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!

 

I'm using following command:

cd ~/Downloads/patch-nvme-master

./patch_nvme.sh 10_12_6
 
I tried - but same error
cd ~/Downloads/patch-nvme-master
./patch_nvme.sh --spoof
 
I also tried leaving no version number but it said unable to find a suitable patch,  I managed to get it working last night after doing a fresh Sierra install to 10.12.4 on a spare disk, this gave me a HackrNVMeFamily-10_12_4.kext file that worked! Can I use the 10.12.4 kext in 10.12.6 it works in the Fresh install. I'm kinda stuck not sure what else to do. I reinstalled OSX on my system so the kext should be fine. I've read every forum and note I can find on getting the script to work. I'm sorry to ask but am stuck


#1310
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

Hey Boomish

 

I've got a question. Did you use the spoof command to create the 10.12.4 kext?

 

And just so I understand. Once you create the kext (10.12.4) it does or does not work in the newly installed 10.12.6?

 

If it does have the spoof, can I have a copy? I can't seem to create anything at all. It does not match up my version either. I am trying to get straight in my mind if once a Sierra version (10.12) gets created, if it will continue to work for SIerra or if after an update, the system has the potential to stop booting.



#1311
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Ahhh no wonder I couldn't get it working, thank Rehabman,
 
I've just tried the new script and it still fails :(
 
Creating patched HackrNVMeFamily-10_12_6.kext from /System/Library/Extensions/IONVMeFamily.kext
WARNING: Vanilla MD5 (1b712ac1b6e56f846a7e5d0056cdea20) does not match expected MD5 (c506f1fc40026c0262a736f0be318223)
 
ERROR: Vanilla MD5 does not match and --override not specified.  No kext generated!
 
I'm using following command:
cd ~/Downloads/patch-nvme-master
./patch_nvme.sh 10_12_6
 
I tried - but same error
cd ~/Downloads/patch-nvme-master
./patch_nvme.sh --spoof
 
I also tried leaving no version number but it said unable to find a suitable patch,  I managed to get it working last night after doing a fresh Sierra install to 10.12.4 on a spare disk, this gave me a HackrNVMeFamily-10_12_4.kext file that worked! Can I use the 10.12.4 kext in 10.12.6 it works in the Fresh install. I'm kinda stuck not sure what else to do. I reinstalled OSX on my system so the kext should be fine. I've read every forum and note I can find on getting the script to work. I'm sorry to ask but am stuck


You are not using the script correctly.
Make sure you are NOT specifying a patch file (I think you are specifying 10_12_6).
The script will automatically find the appropriate plist file...

edit: Note github update... I may have forgotten to 'git add' the right file.

#1312
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

Rehabman

 

It looks my file has a different MD5 also. Does that need to be added in order to allow me to process the file I have?

 

WARNING: Vanilla MD5 (797c351dfd535b6bc19d32d7cef2f1ed) does not match expected MD5 (c236c91f4f20c1f2fb9f828f3ffc0a6c)



#1313
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Rehabman
 
It looks my file has a different MD5 also. Does that need to be added in order to allow me to process the file I have?
 
WARNING: Vanilla MD5 (797c351dfd535b6bc19d32d7cef2f1ed) does not match expected MD5 (c236c91f4f20c1f2fb9f828f3ffc0a6c)


md5 797c351dfd535b6bc19d32d7cef2f1ed matches no known (vanilla) build of IONVMeFamily.kext.

#1314
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

md5 797c351dfd535b6bc19d32d7cef2f1ed matches no known (vanilla) build of IONVMeFamily.kext.

Wonderful. What in the world do I have then? Let me see what I have in my real Mac.

 

Thanks for letting me know.



#1315
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

I decided to completely switch gears since I could not get this to boot into Sierra. I just decided to go all the way to High Sierra since it has the NVMe driver as part of the OS.

 

I just can't seem to make this work either.

 

I created an install USB of High Sierra. I booted this USB and installed to the SSD. After the install I rebooted once more from the USB said to boot the SSD and finished the install. I was never able to get to this point on Sierra and I thought I was home free.

 

Then on the third boot attempt from the USB, I again told it to boot from the SSD. This is the boot where I was going to copy the working EFI from the USB to the SSD and try and tweak it. It just ends up going to a black screen and it loses signal to the monitor. I am running a Rampage V (X99) motherboard with an AMD RX480 video board. I believe I have the option to turn off NVidia enabled and I tried all of the video options that the Clover booter would let me. None worked.

 

Once again I am stymied because on my second boot, I booted from the USB and told it to boot the SSD and it did not have an issue. Now doing the very same thing, I have an issue. I have no idea how to get past this. 

 

Is there anyone that can help with this?

 

Thanks



#1316
Boomish

Boomish

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

You are not using the script correctly.
Make sure you are NOT specifying a patch file (I think you are specifying 10_12_6).
The script will automatically find the appropriate plist file...

edit: Note github update... I may have forgotten to 'git add' the right file.

Nice one Rehabman...it works now!

Determined patch automatically from vanilla IONVMeFamily: 10_12_6_sec2018-001

Creating patched HackrNVMeFamily-10_12_6_sec2018-001.kext from /System/Library/Extensions/IONVMeFamily.kext

Vanilla MD5 matches expected MD5 entry (1b712ac1b6e56f846a7e5d0056cdea20)

Patched MD5 matches expected MD5 entry (cde08888426959748a7c1e01f990643e)

 

For those following this I used the following command, I put no patch file no, it didn't work previously because patch needed updating.

 

cd ~/Downloads/patch-nvme-master

./patch_nvme.sh

 

Vpac I'm afraid I don't know enough about Clover & Hackintoshes to help but grab the GitHub file now & use the above command that works, as for High Sierra & getting t to boot I've not gone there.



#1317
RehabMan

RehabMan

    InsanelyMacaholic

  • Developers
  • 3,264 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

I decided to completely switch gears since I could not get this to boot into Sierra. I just decided to go all the way to High Sierra since it has the NVMe driver as part of the OS.
 
I just can't seem to make this work either.
 
I created an install USB of High Sierra. I booted this USB and installed to the SSD. After the install I rebooted once more from the USB said to boot the SSD and finished the install. I was never able to get to this point on Sierra and I thought I was home free.
 
Then on the third boot attempt from the USB, I again told it to boot from the SSD. This is the boot where I was going to copy the working EFI from the USB to the SSD and try and tweak it. It just ends up going to a black screen and it loses signal to the monitor. I am running a Rampage V (X99) motherboard with an AMD RX480 video board. I believe I have the option to turn off NVidia enabled and I tried all of the video options that the Clover booter would let me. None worked.
 
Once again I am stymied because on my second boot, I booted from the USB and told it to boot the SSD and it did not have an issue. Now doing the very same thing, I have an issue. I have no idea how to get past this. 
 
Is there anyone that can help with this?
 
Thanks


Graphics related problems are off-topic here. This topic is for NVMe.

#1318
vpac

vpac

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

Graphics related problems are off-topic here. This topic is for NVMe.

ok, thanks ReHabMan.

 

I actually think that now that I have gone to High Sierra, my NVMe problems are behind me.

 

I was able to boot it last night by adding two Kexts. The screen blanks after sleep and won't come back, but as you say, that is not an issue for this forum.

 

I appreciate your help in trying to get me going, but IMO with Apple changing their NVMe driver to be able to see smaller block sizes, the way to go to just avoif all this NVMe stuff is High Sierra. I never could get my system to boot properly in Sierra other than to do the install itself.

 

Thanks again 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