Installing

Congratulations, you have made your installer! Now how do you install with it?

BIOS

For the best results you should set your BIOS to the following settings:

  • Execute Virtual Bit: Enabled

  • Secure Virtual Machine(SVM): Disabled (Enable if needed, but untested and may lead to issues.)

  • Cool 'n Quiet = Enabled

  • APU = Disabled (May also be denoted as Integrated Graphics)

  • Spread Spectrum = Auto

  • Serial & Parallel = Disabled

  • HPER = Enabled

  • EHCI Handoff = Enabled

  • XHCI Handoff = Enabled

  • Sata Mode = AHCI

  • IDE = Disabled

  • IOMMU = Disabled

  • HPC = Enabled

The settings denoted in bold and italic are absolutely required, as without them basic functionality such as HDD access will not be available.

Settings in bold are highly recommended though you may experience issues with them set incorrectly.

All other settings are best set as advised, but are not crucial.

*Make sure you have Legacy disabled. If your machine is not set to be UEFI only you may experience issues!*

Booting the installer

First boot

When you first boot your computer you will be prompted with the Clover screen. Chose the OS X Base System entry. When this is finally booted you will be greeted by a screen to chose your language. Do just that and a menu of options will be shown.

Drive setup

We will need to setup our HDD/SSD first before we can install macOS on it.

You will need to launch the option called Disk Utility. You will be greeted by the following screen:

Chose the drive you want to install macOS to and press Erase from the top bar.

A popup will appear with 3 fields. In the first one you enter the name you want your drive to have. I am naming mine "macOS", and so all the commands used further on in this guide will be for a drive named "macOS". For Format I recommend choosing Mac OS Extended (Journaled) for an HDD and APFS for an SSD. Make sure Scheme is set to GUID Partition Map

NOW MAKE SURE THAT ALL THE DATA ON THIS DRIVE IS BACKED UP AND THAT YOU HAVE SELECTED THE CORRECT DRIVE!! WE ARE ABOUT TO ERASE IT!

Now press Erase and our disk setup is completed!

First phase of install

Now that our drive has been set up you can exit disk utility and launch Reinstall macOS and hit Continue. When you are prompted to select what drive you want to install to select your previously configured drive, in my case "macOS". This part of the installer does not actually install the OS, but only copies the files needed to do so to the drive.

When this part is done the installer will automatically reboot.

Pre-Install modification

During the previous phase of the install a prelinkedkernel was copied over to the drive. This is the default prelinkedkernel containing the native Intel kernel, and thus cannot be booted by our AMD system. We will have to replace it.

To do so boot back in to the OS X Base System, in Clover, instead of what is automatically selected. Wait for the installer to boot again, chose your language and you will again be prompted by the window with multiple choices. This time we won't be using those.

On the bar on top of your screen press Utilities and from the dropdown menu that shows up launch Terminal. Now enter the following command to copy the prelinkedkernel from our USB to the installer on the drive.

cp -Rf /System/Library/PrelinkedKernels/prelinkedkernel /Volumes/macOS/macOS\ Install\ Data/Locked\ Files/Boot\ Files/prelinkedkernel

You can now reboot your computer by typing

reboot

Installing macOS

Once your computer reboots and you are back in Clover select the option named Boot macOS Install from macOS. This will launch the installer. This process takes a while.

Post-Install modifications

When the system boots back up macOS will be installed, but it will be using the default prelinkedkernel and kernel, making it unbootable on AMD systems. Because of that we need to copy over some files.

First launch Terminal as instructed previously in Pre-Install modification. From here we will be executing a few commands. First the most important: Copying the kernel.

cp -Rf /System/Library/Kernels/kernel /Volumes/macOS/System/Library/Kernels/kernel

Ryzen Instructions

Now that the kernel has been copied you are almost done on Ryzen. You will need to copy over one kext and then you will only have to rebuild the prelinkedkernel aka kextcache. This is done in the same way as when we were setting up the USB drive.

cp -rf /System/Library/Extensions/IONetworkingFamily.kext /Volumes/macOS/System/Library/Extensions/IONetworkingFamily.kext
chown -R 0:0 /Volumes/macOS/System/Library/Extensions
chmod -R 755 /Volumes/macOS/System/Library/Extensions/*.kext
touch /Volumes/macOS/System/Library/Extensions

rm -rf /Volumes/macOS/System/Library/PrelinkedKernels/prelinkedkernel
kextcache -u /Volumes/macOS

Again we first delete the old prelinkedkernel just in case, and with the second command we rebuild the kextcache on the macOS volume. Once again it will probably spit out a lot of text, but so long as you get the cache ID in the end the rebuild succeeded.

FX Instructions

If you are on FX and have used the aforementioned DummyUSB kexts you will need to copy them over to the new install, you will also need to copy the IONetworking kext. You can do that with the following command:

cp -rf /System/Library/Extensions/Dummy*.kext /Volumes/macOS/System/Library/Extensions/
cp -rf /System/Library/Extensions/IONetworkingFamily.kext /Volumes/macOS/System/Library/Extensions/IONetworkingFamily.kext

Since we are adding kexts to S/L/E we will have to fix their permissions. This is done just like before with the following commands:

cd /Volumes/macOS/System/Library/
chown -R 0:0 Extensions
chmod -R 755 Extensions/*.kext
touch Extensions

Now we can finally rebuild our prelinkedkernel. This is done in the same way as when we were setting up the USB drive.

rm -rf /Volumes/macOS/System/Library/PrelinkedKernels/prelinkedkernel
kextcache -u /Volumes/macOS

Again we first delete the old prelinkedkernel just in case, and with the second command we rebuild the kextcache on the macOS volume. Once again it will probably spit out a lot of text, but so long as you get the cache ID in the end the rebuild succeeded.

After installing

Set up macOS to your linking, but do not sign in to AppleID when prompted. You can do this later in the settings.

Last updated