跳到主要內容

FRESH INSTALLING MACOS HIGH SIERRA ON AMD RYZEN HACKINTOSH GUIDE (10.13)

This guide will show you the steps to install Sierra on a AMD Ryzen PC using a VMWare Virtual Machine. I’m making this guide for those who don’t have access to a Mac and need macOS to either try out for a bit or create a macOS boot loader installer for a AMD hackintosh build. There is another VMWare Sierra guide on this site, but  with AMD system a modified VMWare image is required to even be able to boot macOS so this AMD VMWare guide has to be used instead.

WHY NOT A HIGH SIERRA VM?

So getting High Sierra running as a virtual machine in Windows or Linux is actually pretty difficult with a Ryzen PC. Some will manage to get it working, butt not for others with there being all sorts of errors that can potentially popup on the screen. I actually spent half a day trying to get High Sierra working on VMWare player and wasn’t able to do it, so I had to resort to using Sierra, which I posted the steps for here. You can still use a Sierra VM to download High Sierra and create a High Sierra boot loader if you are trying to create a hackintosh.

AMD RYZEN SIERRA VMWARE GUIDE

Understand that even after you get macOS running, virtual performance with macOS  is going to bad. There wont be able acceleration and on AMD machines it runs pretty pretty laggy, which is why it’s best to make a hackintosh if you want a smooth experience

STEP 1: DOWNLOAD SIERRA AMD VMWARE IMAGE

Credit goes to Shamme for providing the hackintosh community with this modified VMWare image. Unfortunately mega.nz will require you to download there app and signup with email veritification inorder 
to download this file.

This guide will show you the steps to install Sierra on a AMD Ryzen PC using a VMWare Virtual Machine. I’m making this guide for those who don’t have access to a Mac and need macOS to either try out for a bit or create a macOS boot loader installer for a AMD hackintosh build. There is another VMWare Sierra guide on this site, but  with AMD system a modified VMWare image is required to even be able to boot macOS so this AMD VMWare guide has to be used instead.

WHY NOT A HIGH SIERRA VM?

So getting High Sierra running as a virtual machine in Windows or Linux is actually pretty difficult with a Ryzen PC. Some will manage to get it working, butt not for others with there being all sorts of errors that can potentially popup on the screen. I actually spent half a day trying to get High Sierra working on VMWare player and wasn’t able to do it, so I had to resort to using Sierra, which I posted the steps for here. You can still use a Sierra VM to download High Sierra and create a High Sierra boot loader if you are trying to create a hackintosh.

AMD RYZEN SIERRA VMWARE GUIDE

Understand that even after you get macOS running, virtual performance with macOS  is going to bad. There wont be able acceleration and on AMD machines it runs pretty pretty laggy, which is why it’s best to make a hackintosh if you want a smooth experience

STEP 1: DOWNLOAD SIERRA AMD VMWARE IMAGE

Credit goes to Shamme for providing the hackintosh community with this modified VMWare image. Unfortunately mega.nz will require you to download there app and signup with email veritification inorder to download this file.
  1. Click Download
  2. Click Download Mega app
  3. Install, signup & verify email address
  4. Sign in after email verification
  5. Right click Mega on the toolbar and select Import Links
  6. Paste https://mega.nz/#!pzZk3bRB!7jOTXUq0lDRyOAvFzvT11cjEmsOZ-8N7x5-kJjSLVCY
  7. Import & download will begin…
  8. Unzip after download is complete

STEP 2: INSTALL VMWARE PLAYER

  1. Download VMWare Player
  2. Install VMWare Player

STEP 3: MODIFY VMWARE VMX FILE FOR SIERRA

  1. Open VMWare Player
  2. Click Create a New Virtual Machine
  3. Click I will install the operating system later and click Next
  4. Select Other under Guest Operating System
  5. Select Other 64-bit under version and click Next
  6. Change the default name if you want and click Next
  7. Select Store virtual disk as a single file
  8. Click Finish
  9. Highlight Memory column and change memory to atleast 2GB+ or 2048
  10. Highlight CD/DVD (IDE) and uncheck Connect at power on
  11. Click on Hard Disk (IDE) 
  12. Click Remove at the bottom
  13. Click Add…
  14. Select Hard Disk and click Next
  15. Select SCSI and click Next
  16. Select Use an existing virtual disk and click Next
  17. Find whever you unzipped SierraAMD_VM from the download in Step 1
  18. Open SierraAMD_VM and double click macOS HD or click Open
  19. Click Finish
  20. Click Keep Existing Format
  21. Click OK
  22. Click Play virtual machine
  23. Press Enter
  24. Press Enter
  25. Virtual machine with macOS will now slowly boot..
  26. Related:
    Now that you have your virtual machine setup you are ready for the real deal if your goal is to make a working hackintosh. With an actual hackintosh you wont have any the of the performance drawbacks as a Virtual machine such as the lag or lack of video acceleration.


This is a basic guide that can be used to get a Ryzen desktop PC running macOS High Sierra 10.13.x. Installing macOS on an AMD build has more steps involved and harder to get working for beginners so I tried to simplify that process as much as possible and make it as easy to understand with this guide as I could.
If you have an Intel based system see: Guide to fresh installing macOS High Sierra on a Hackintosh (10.13 Update) as this guide is for Ryzen only.
Using the steps in this very basic Ryzen High Sierra guide I was able to get the following working:
  • Sound
  • Ethernet
  • All USB Ports
  • USB 3 Speeds
  • Nvidia GPU
  • AMD GPU
  • Wake from Sleep
RYZEN HIGH SIERRA HACKINTOSH OVERVIEW
With a little extra effort Ryzen can be made working in a hackintosh, although it wont be as smooth of an experience as a Intel machine would be since that is afterall what Mac’s are based on.
This guide is based off the Clover method and uses a custom Ryzen kernel that’s applied during the installation for Ryzen compatibility. The install will also take significantly longer to perform compared to an Intel machine.
All you need is a spare flash drive, hard drive, and a Mac or Windows/Linux machine capable of running a virtual machine to complete this. I’ve included an EFI folder aswell as the PreInstall & PostInstall folders necessary to do the installation. Sound should work after the install is completed I used VoodooHDA.kext was used to get sound working, USB 2/3 ports were gotten working using USBInjectAll.kext/GenericUSBXHCI.kext, while for Ethernet I included all the kext files I could think of that Ryzen motherboards use, so that should work too after the install is complete.
Using the steps and files contained within this guide I was able to get both AMD RX and Nvidia GTX graphic cards functioning. With a Ryzen CPU there will be some graphical performance degradation. Newer AMD graphic cards suffer about a 10-15% performance drop while for Nvidia the performance just isn’t there, suffering around a 50% drop in performance/fps.
Also sleep works for me whether I have an AMD or Nvidia graphics card plugged in. Getting sleep to work on Ryzen + Nvidia has caused other people to have restart issues instead of waking normally, but it appears to have been resolved as of  High Sierra 10.13.1 build (17B1003) and 10.13.2 (Beta) as I haven’t experienced this issue with my GTX 1050 Ti using the files contained in this guide.
One sigificant issue of Ryzen hackintosh is not being able to install macOS updates. For example when I tried I was unable to run the update installer to go from 10.13.1 to 10.13.2. Small updates do work for example when Apple had that root issue with macOS 10.13.1 I was able to update to a newer build version of 10.13.1. However to upgrade tp 10.13.2 my only option is to do a fresh install of High Sierra after downloading the updated version on the app store, then creating another USB Installer.
This and slower graphical performance especially when paired with an Nvidia graphics card in my opinion has been the most inconvenient part of using a Ryzen hackintosh. If you haven’t bought your computer parts yet and plan to use macOS as your main operating system I recommend going with Intel instead only for a more smoother experience, but if you already have a Ryzen PC like I do lets get started…

PART 1 – CREATING A RYZEN INSTALLER

To create a Ryzen hackintosh you will need a to create a spare 8GB+ flash drive to put the High Sierra installer on. I also recommend the flash drive be a USB 2.0 drive instead of USB 3.0 as especially if you don’t have have any usb 2.0 ports as the installer may not load.
Also a mac is needed or for those without a Mac, you need to create a Virtual Machine running macOS
This is a written guide, however if you prefer to follow a video guide check out this video created by XLNC

STEP 1. CREATE A HIGH SIERRA USB INSTALLER

To install macOS the first thing you need to do is configure a flash drive with a macOS installer.
To create a macOS installer you first need access to a mac or a virtual machine running macOS.
Step 1.1 Create a Ryzen macOS Virtual Machine
Step 1.2 Create a flash drive installer

STEP 2. RYZEN KERNEL SETUP

Now that we have the High Sierra Installer in our hands we need to configure it to be more Ryzen friendly by placing in a modified kernel created by Bronya@InsanelyMac and PreInstall/PostInstall scripts created by XLNC:
2.1. FOLDER VISIBILITY
The AMD kernel files are added to folders that hidden by default on macOS, so lets unhide those folders:
  1. Open Terminal
  2. Enter the following two lines:
    defaults write com.apple.Finder AppleShowAllFiles true
    killall Finder
  3. Restart macOS so that the hidden files will show after editing defaults.
  4. Open the flash drive you made in Step 1 Install macOS High Sierra you to see a bunch of semi transparent folders. These are the hidden folders we will be making changes to.
    Take note of the folders .IABootFiles and System for this is where you will be adding things into.
2.2. ADDING THE AMD PATCHED KERNEL
Now we are going to start copy pasting files from a downloadable folder to the USB Flash dri`ve
  1. Download Ryzen_Kernel_10.13.zip
  2. Unzip Ryzen_Kernel_10.13
  3. Navigate to Ryzen_Kernel_10.13/PreInstall/Prelinkedkernel/
  4. Copy prelinkedkernel (The file not folder)
  5. We are going to use this patched version of prelinkedkernel to replace the existing Apple ones on the Install macOS High Sierra. Paste & replace prelinkedkernel in the following locations:
    1.  /Volumes/Install macOS High Sierra/.IABootFiles/
    2. /Volumes/Install macOS High Sierra/System/Library/PrelinkedKernels/
  6. Navigate back to the Ryzen_Kernel_10.13 folder
  7. Copy PreInstall & PostInstall folders
  8. Paste them on the flash drive /Volumes/Install macOS High Sierra/

STEP 3. EFI PARTITION CONFIGURATION

Now the boot partition of the flash drive must be configured by adding a preconfigured EFI folder.
  1. Mount EFI Partition:
    1. Download Clover Configurator
    2. Open Clover Configurator
    3. Select Mount EFI under TOOLS
    4. Click Mount Partition for Install macOS….
    5. Click Open Partition
  2. Delete the folder called EFI if it exists in the mounted partition.
  3. Download Ryzen_High_Sierra_10.13_EFI.zip
  4. Unzip Ryzen_High_Sierra_10.13_EFI.zip
  5. Copy the unzipped EFI folder
  6. Paste the copied EFI into the mounted EFI partition or /Volumes/EFI

PART 2 – INSTALLING HIGH SIERRA ON RYZEN

Installing High Sierra on Ryzen is more difficult to perform compared to an Intel based system, mainly because of how slow various parts of the installer take to load in comparison and the patience it takes dealing with failed boots.
As you go through the macOS installer on Ryzen you may frequently encounter this famous screen:
Not to worry, when this happen just reboot the system and try again. The slashed circle/failed boot icon can also appear every now and then during normal booting after having macOS installed on the Ryzen Hackintosh, although it should happen less frequently than when the install is taking place.
This is one of the compromises you’ll have to make with a Ryzen hackintosh. For me this isn’t as big of an issue as I prefer to sleep the machine when I’m done using it instead of shutting down and turning on.

STEP 4. BIOS SETTINGS

Now that the USB Installer has been finished it’s time to configure the BIOS for macOS compatibility.
  1. Restart your machine and enter BIOS, the hotkey will either be F8, F10, F11 or F12
  2. Head over the Exit section and reset the BIOS settings back to Default
  3. I recommend setting the flash drive’s UEFI: partition as the Boot #1 which can’t be found under the Boot section of BIOS
  4. Set the following BIOS settings: (You may not have all these settings and that’s okay)
    1. AMD-V / SVM = Disabled (Can be re-enabled after
      installation if needed)
    2. SATA Ports = AHCI
    3. IOMMU = Disabled
    4. APU = Disabled
    5. HPET = Enabled
    6. EHCI Hands-off = Enabled
    7. XHCI Hands-off = Enabled
    8. Serial Port = Disabled
    9. Parallel Port = Disabled

STEP 5. BOOTING THE USB INSTALLER

Plug in the flash drive, preferably to a USB 2.0 port if you have one. Boot up your computer and select the UEFI: partition of the flash drive from the list of boot devices.
Boot into the UEFI of the macOS USB flash drive installer to load the Clover Boot Menu.
If the USB drive isn’t set as the default boot volume change the temporary boot device when the boot screen appears the button that needs to be pressed to do this is usually F10, F11, or F12. When the temporary selection screen appears Select UEFI : (USB Device Name).
  1. You are now in the Clover Menu. Use the arrow keys to verify Boot OS X Install from Install macOS High Sierra is selected
  2. Press Enter
  3. Installer will now slowly load… If you get the cigarette cross sign instead of the image below just restart and try it again. I had this happen a couple times as I went through the steps of the installer and simply trying again let me get around that.
When the installer loads we will want to properly format the disk as GUID for hackintosh usability before beginning the install.
  1. Press Continue when the installer appears
  2. Select your language
  3. Select Disk Utility  from the install menu
  4. Select Show All Devices from the drop down menu by pressing the View button at the top left top left corner. (Note: NVME drive not showing?)
  5. Select the disk you will be installing macOS and erase it with the following settings:
    • Name: (It can be named anything you want)
    • Format: Mac OS Extended (Journaled)
    • Scheme: GUID Partition Map
    It’s important to remember the drive name you choose for the AMD Kernel and or disabling APFS conversion.
  6. Press Erase
  7. Close Disk Utility  
  8.  Install macOS High Sierra
Note: While macOS is being installed the screen may go black the display is just sleeping you cap press a key on your keyboard or wiggle a mouse to wake screen
After the installer is finished the computer will restart and you’ll want to get back into the Clover Menu.

STEP 6. AMD PREINSTALL KERNEL EXECUTION

There is now a second option in Clover, but before we can do that we must first do the preinstall portion of the AMD Kernel
  1. Select Boot OS X Install from Install macOS High Sierra again
  2. Open Terminal through Utilities at the Top Menu Bar once installer finishes loading.
  3. (Optional) Disable APFS with Terminal 
  4. If you forgot the name of your drive type the following:
  5. ls -1 /Volumes
    ls -1 /Volumes will list the available volumes. We want the name of the drive  set in step 4.2  for the line below
  6. Type the following into Terminal:
    /Volumes/Image\ Volume/PreInstall/pre
  7. Press Enter
  8. Volume Name: is what you named your drive when you formatted it. So type it in and press enter.
  9. Let it run…
  10. Restart computer from the Top Silver Menu Bar when it prompts you to do so in Terminal

STEP 7. FINISH THE INSTALLER

  1. Reenter the Clover Menu on restart
  2. Select Boot macOS Install from “Hackintosh”
  3. Setup will finish the High Sierra install… If you are stuck at a grey screen reboot and try again until it loads the bottom image successfully.  Also this part took me a long time to finish I was stuck at “About 18 minutes remaining” for like 10 minutes. 
Note: On High Sierra 10.13.3 I had to do Step 4  as the installer restarted with partway through and then finally completed when I ran it the second time.
Check out High Sierra fix – “macOS could not be installed on your computer” if you get a restart error prompt instead of this pic.

STEP 8. AMD POST INSTALL KERNEL EXECUTION

  1. Select Boot OS X Install from Install macOS High Sierra again
  2. Open Terminal through Utilities at the Top Menu Bar once installer finishes loading.
  3. Type the following into Terminal:
    /Volumes/Image\ Volume/PostInstall/post
  4. Press Enter
  5. Type in drive name for Volume Name:
  6. Let it run…
  7. Restart computer from the Top Silver Menu Bar when it prompts you to do so in Terminal

STEP 9. RYZEN FINAL SETUP & FIRST BOOT

After install is finished computer will automatically restart.
  1. Select Boot macOS from “Hackintosh”
  2. Select Language
  3. Select Keyboard
  4. Select My computer does not connect to the Internet
  5. Select Don’t transfer any information
  6. Agree to the Terms and Conditions
  7. Fill out Login information
  8. (Optional) Choose Customize Settings at Express Set Up if you don’t want to be tracked.
  9. macOS High Sierra will boot for the first time…

PART 3 – RYZEN HACKINTOSH POST-INSTALL

There are still an number of things left like being able to boot from the hard drive instead of flash drive and getting proper video acceleration from graphic cards that have to be done.

STEP 10. CONFIGURING THE EFI PARTITION

Now that we’re in macOS we want to be able to load macOS without the USB flash drive plug. To be able to boot macOS from the drive it’s installed on the folder in the EFI partition of the flash drive needs to be copied over to the EFI partition of the boot drive. You should also have internet access.
  1. Open Clover Configurator
  2. Mount the EFI of the Flash Drive
  3. Press Open EFI or navigate to the EFI location in finder
  4. Copy the EFI Folder onto your desktop
  5. Open Finder and Eject the Flash Drive
  6. Using Clover Configurator Mount the EFI of the Disk you just installed Mac OS on
  7. Press Open EFI or navigate to the EFI location in finder
  8. Paste the EFI over the existing EFI on the disk
  9. Select Merge when it prompts you with a menu saying that the folder EFI already exists
You will now be able to boot macOS without the USB Flash Drive
Recommendation: Delete the Folder called APPLE in your EFI Folder if it exists. This folder is created automatically on EFI partition of the flash drive during the install and may cause issues for the hackintosh.  The folder will eventually be recreated, however you only need to delete it once after installing macOS.

STEP 11. REMOVE USB KEXTS

While the EFI partition is still mounted from Step 10. it’s a good idea to remove the USB kexts in your EFI folder as they’re no longer needed after the post install patch which modified S/L/E. Having these kexts in both locations will interfere with one another and may cause some USB ports to not work on Boot or Wake so we should remove these kexts from our EFI folder.
  1. Navigate to /Volumes/EFI/EFI/Clover/kexts/Other of your mounted EFI partition
  2. Delete DummyUSBXHCIPCI.kextDummyUSBEHCIPCI.kext and GenericUSBXHCI.kext
  3. You’ll need to restart for these changes to take affect

 STEP 12. AMD CPU SPEED ENHANCEMENT

There is about a 20% CPU performance drop running an AMD Ryzen Hackintosh by default. This can be fixed by setting the busratio bootflag to match your Ryzen CPU.
Bus Ratio is calculated by:  CPU Speed Clock (MHz) / Bus Speed (MHz) = BusRatio.
CPU Speed Clock (MHz) = CPU Speed (GHz) x 1000
Bus Speed (Mhz) = 100MHz for all Ryzen CPU’s
Examples:
  • Ryzen 1800X 3.6GHz; busratio=36
  • Ryzen 1700x 3.4GHz; busratio=34
  • Ryzen 1700 3.0GHz; busratio=30
  • Ryzen 1600X 3.6GHz; busratio=36
  • Ryzen 1600 3.2GHz; busratio=32
  • Ryzen 1500X 3.5GHz; busratio=35
  • Ryzen 1400 3.2GHz; busratio=32
SET BUS RATIO:
  1. Mount EFI partition
  2. Navigate to /Volumes/EFI/EFI/CLOVER/
  3. Open config.plist in Clover Configurator
  4. Select Boot on left-side column
  5. Under Custom Flags add the proper busratio=xx for your CPU:
    I’m using a Ryzen 1700 CPU so my busratio is 30 because of the 3.0GHz clock speed.

STEP 13. DEDICATED GPU ACCELERATION

For your specific motherboard you may need to add NVRAM detection fix to dGPU acceleration. I didn’t need it on my AMD RX 560, but needed it when I slotted in my Nvidia GTX 1050 Ti which I thought was weird.
To add EmuVariableUefi-64.efi:
  1. Open Clover Configurator
  2. Mount your EFI Partition
  3. Open config.plist using Clover Configurator
  4. Click Install Drivers on left column of Clover Configurator
  5. Click EmuVariableUefi in bottom left box.
  6. Verify EmuVariableUefi-64.efi exists in /Volumes/EFI/EFI/Clover/Drivers64UEFI/
AMD:
I included the files to get AMD RX cards working excluding the Vega 56/64 which will require more work. If you have an RX 560 add the boot flag -rad4200 to prevent freezing as detailed here.
NVIDIA:
In addition to EmuVariableUefi-64.efi if you are using one of the more recently released Nvidia GPU’s you will to install the web drivers. There shouldn’t be anything else you need to do I already set the proper CsrActivateConfig and added the ncessary kexts. If it doesn’t work for some reason after installing the web drivers you may need to disable CMS in BIOS.
Head over to the driver page to get the web drivers:
Note: May have to reinstall the Nvidia web drivers if they don’t successfully install the first time due to privacy settings.

STEP 14. ETHERNET

I included all the Ethernet kexts I could think of that would work with Ryzen, but I recommend removing the kexts you don’t need.

STEP 15. SOUND

Sound is enabled using the VoodooHDA.kext.
Ryzen Hackintosh VoodooHDA Sound
Change the output device to get sound. Your options are the Line-out (Rear IO) front Headphones and SPDIF-out (Digital Output)

HDMI audio is a little tricky to get working, but if you want it try following: Hackintosh HDMI Audio + DisplayPort GFX Card Sound Guide

STEP 15. RYZEN SENSOR MONITORING

If you would like to get temperature, fanspeed & voltage monitoring follow: AMD Hackintosh Tempature Monitoring Guide

留言

這個網誌中的熱門文章

第八代『黑蘋果』主機全部安裝教程

HIGH SIERRA GUIDE  For  ASUS  STRIX Z370 -G  ROG ( Micro-ATX ) ** UPDATE   5th Jan 2018  /   Clover v2.4k r4359 ** 硬體配置規格 Asus ROG Strix Z370-G Gaming (Wi-Fi AC) ( Micro ATX )  i7 8700 3.2GHz  Corsair Vengeance LPX 8GB (1 x 8GB) DDR4 DRAM 2400MHz (PC4-19200) C14 Memory Kit - Black  Samsung Evo 960 250GB NVMe SSD  NVIDIA GeForce GTX 1080ti (or a GTX 1050 / 1060 / 1070 will work  ) ABWB 802.11AC WI-FI with Bluetooth 4.0 PCI-Express  BitFenix Phenom – Tower – micro ATX  Noctua NH-L9x65 - NH-L9x65 Low Profile Performance CPU Cooler  EVGA SuperNOVA 750 G3, 80 Plus Gold 750W  Corsair UK K65 Rapidfire Cherry MX Speed Performance Multi-Colour RGB Backlit 10 Keyless  Samsung 850 EVO 500GB  Dell UltraSharp U2717D (2560x1440DP) IPS LED 27-Inch Infinity Edge 成功運行的功能 Wi-Fi ( Onboard WiFi card was replaced, see components list above )   Bluetooth Ethernet ...

雖然我沒有4K螢幕,但卻可以4K輸出(4K)