Contribute
Register

[Guide] Installing macOS Mojave (10.14.2) on Intel NUCi5BEH using Clover UEFI + updating to Mojave (10.14.6) on post#2

Status
Not open for further replies.
Joined
Dec 23, 2018
Messages
33
Motherboard
NUC8BEB
CPU
i5-8259U
Graphics
Iris Plus Graphics 655
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Caveat: read first!
This guide has become outdated and no longer works as is.
Jump to post #2: updating to Mojave (10.14.6) or Catalina.



Overview

The purpose of this guide is to provide a step-by-step procedure to install Mojave (10.14.2) on an Intel NUCi5BEH, it is a simplified version of the 2 guides by @RehabMan which can be found [Guide] Booting the OS X installer on LAPTOPS with Clover and [Guide] Intel NUC7NUC8 using Clover UEFI (NUC7i7Bxx,NUC8i7Bxx,etc).


What I own / use

- Intel NUCi5BEH mini computer with a NUC8BEB Desktop board
- 16GB USB3 stick
- Samsung EVO 970 500GB SSD
- 16GB (2*8GB) Crucial RAM
- DELL ST2210 Full HD (1920*1080) monitor with HDMI
- macOS Mojave (10.14.2) downloaded from the Mac App Store
- Ethernet for Network (I don’t use BT, my keyboard and mouse being wired).

Note:
- BIOS was updated to version 0056 (latest version when these lines were written)
- An APFS partition was chosen on the SSD

Note: iWork (Pages, Numbers…) need to be installed manually at the end of installation.

[PART 1] Preparing USB

Installing Clover to USB


It is best to use a simple USB3 16GB drive for this purpose: MBR USB with a FAT32 partition for Clover and a separate HFS+J partition for the OS X installer.

Before you can partition the USB, you must determine what the disk identifier is. With the USB plugged in to the computer, use 'diskutil list':

In Terminal:

Code:
diskutil list

In Rehabman's case, it provides this output:

Code:
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS 10.10.x                 80.0 GB    disk0s2
   3:                  Apple_HFS 10.11.gm1               80.0 GB    disk0s3
   4:       Microsoft Basic Data Win10_TP                79.4 GB    disk0s4
   5:                  Apple_HFS 10.10.test              80.0 GB    disk0s5
/dev/disk1 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                                                   *16.0 GB     disk1[/B]

So I can see that the USB is at /dev/disk1. Be careful with diskutil as you can lose data without a mechanism for recovery if you repartition the wrong disk.

MBR, two partitions:

Code:
# repartition /dev/disk1 MBR, two partitions
# first partition, "CLOVER EFI" FAT32, 200MiB
# second partition, "install_osx", HFS+J, remainder
diskutil partitionDisk /dev/disk1 2 MBR FAT32 "CLOVER EFI" 200Mi HFS+J "install_osx" R

The output of the operation looks like this:

Code:
Started partitioning on disk1
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk1s1 as MS-DOS (FAT32) with name CLOVER EFI
512 bytes per physical sector
/dev/rdisk1s1: 403266 sectors in 403266 FAT32 clusters (512 bytes/cluster)
bps=512 spc=1 res=32 nft=2 mid=0xf8 spt=32 hds=32 hid=2 drv=0x80 bsec=409600 bspf=3151 rdcl=2 infs=1 bkbs=6
Mounting disk
Formatting disk1s2 as Mac OS Extended (Journaled) with name install_osx
Initialized /dev/rdisk1s2 as a 7 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk1
/dev/disk1 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *8.0 GB     disk1
   1:                 DOS_FAT_32 CLOVER EFI              209.7 MB   disk1s1
   2:                  Apple_HFS install_osx             7.8 GB     disk1s2

Download the Clover installer. use Rehabman own build/fork of Clover: https://github.com/RehabMan/Clover
After obtaining the Clover installer, unzip it and run Clover pkg.
First task is to install to the USB "CLOVER EFI" partition.

Installing Clover UEFI on USB

Run the Clover Installer package:
- select the target of the install to "CLOVER EFI" using "Change Install Location"
- select "Customize" (the default is a legacy install -- we need to change it)
- check "Install for UEFI booting only", "Install Clover in the ESP" will automatically select
- check "BGM" from Themes (the config.plist files I provide use this theme)
- the defaults for Drivers64UEFI are recommended

After making your selections you can continue to "Install" the Clover bootloader to your USB.

Installing Mojave to an SSD, keep in mind that the file system will be APFS. APFS support is automatic with ApfsDriverLoader*.efi+AppleImageLoader*.efi. Both are default selections.

Finally, we need two EFI driver not included in the Clover installer, HFSPlus.efi and EmuVariableUefi-64.efi.

HFSPlus.efi can be downloaded from here: https://github.com/JrCs/CloverGrowerPro/raw/master/Files/HFSPlus/X64/HFSPlus.efi.
- copy it to /EFI/Clover/drivers64UEFI

EmuVariableUefi-64.efi can be downloaded from here: https://sourceforge.net/p/edp-osxla...s/clover/drivers64UEFI/EmuVariableUefi-64.efi

- copy it to /EFI/Clover/drivers64UEFI

Now you have the Clover bootloader on the USB, but you still need to configure it correctly.

The resulting drivers64UEFI should look like this:

USB drivers64UEFI.png


Drivers64UEFI's pack can be downloaded at the bottom of this post.

Preparing essential kexts

Copy essential kexts to the 'Other' directory. You only need the kexts that allow you to boot and operate the installer. Other kexts that you might use in the final installation can wait.

I always use my own versions of these kexts:
FakeSMC.kext: https://github.com/RehabMan/OS-X-FakeSMC-kozlek
USBInjectAll.kext: https://github.com/RehabMan/OS-X-USB-Inject-All
Lilu.kext: https://github.com/acidanthera/Lilu/Releases
WhateverGreen.kext: https://github.com/acidanthera/WhateverGreen/Releases
IntelMausiEthernet.kext: https://github.com/RehabMan/OS-X-Intel-Network

For EFI/Clover/kexts/Other, it is simple copy/paste with Finder.

A typical EFI/Clover/kexts would look like this:

USB kexts Other.png


kexts's pack can be downloaded at the bottom of this post.

Choosing config.plist

The Clover installer places a default config.plist at /EFI/Clover/config.plist. It is almost universally wrong and most likely will not work at all.

Download config_install_nuc8_bc.plist from this repository:

https://github.com/RehabMan/Intel-NUC-DSDT-Patch

Note: Clover cannot read HTML (config.plist is a plist/xml), so make sure to download from the "Raw" link: hit the « Raw » link + « File->Save as » and save config_install_nuc8_bc.plist on your Drive.

Make sure to re-named this file as config.plist and copy/paste it to /EFI/Clover USB key.

Building the OS X installer with createinstallmedia method


This is the same mechanism you would use to create a USB installer for a real Mac.

It is a single line, executed in Terminal:

Code:
# copy installer image
sudo "/Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia" --volume  /Volumes/install_osx --nointeraction

Then change the name to be less unwieldy...

Code:
# rename
sudo diskutil rename "Install macOS Mojave" install_osx

BIOS settings

First of all, update BIOS to latest version (version 0056 when these lines are written).

Follow this link https://downloadcenter.intel.com/download/28394/BIOS-Update-BECFL357-86A-?product=126147, download BE0056.bio and copy it on a USB stick.

To update BIOS, press F7 after booting when « NUC » appears on the screen.

Once updated, the boot menu and BIOS setup can be accessed by mashing the F2 key during BIOS startup.

To start, choose "Load Defaults" (choose from the menu or press F9 in the BIOS setup).

In order to boot the Clover from the USB, you should visit your BIOS settings:
- « Inter VT for directed I/VO (VT-d) » should be disabled
- « Secure Boot » should be disabled
- « Legacy Boot » should be enabled
- « Fast Boot » should be disabled
- Boot->Boot Devices-> « USB » should be enabled
- SATA mode should be AHCI

- Boot->Boot Configuration-> « Boot Network Devices Last » should be disabled
- Power->Secondary Power Settings, « Wake on LAN from S4/S5 », set to « Stay Off »

These settings are important but are already set as needed by « Load Defaults »
- Devices->Video, « IGD Minimum Memory » set to 64mb
- Devices->Video, « IGD Aperture Size » set to 256mb



[PART 2] Booting the macOS installer on NUC with Clover UEFI

Using the macOS Installer


Now you have your USB installer, you need to use it on the target computer.

1. Plug the flashdrive to one of the USB ports. Boot your computer to that USB device.

2. Clover bootloader screen shows up, you need to change FakeID (use spacebar to chose the menu): go to Clover Options -> Graphics Injector -> FakeID
Press « Enter » and change it to 0x12345678.
Press « Return » twice to go back to the Clover boot loader screen.
Press spacebar select « Boot macOS Install from install_osx ». This is the partition on the USB you created earlier.

3. Install screen will appear, use Disk Utility to partition your drive, select your SSD, erase it and create an « APFS » partition (rename it to « macOS » for example).
Close Disk Utility.
Then install macOS to your formatted partition (« macOS » in the previous example).
The 'createinstall media' installer will extract necessary files and verify them against the USB. This took about 3 minutes in my case.
This will end PHASE 1.

4. Restart and again boot to your USB as you did in step 1.

5. Clover bootloader screen shows up, again you need to change FakeID (use spacebar to chose the menu): go to Clover Options -> Graphics Injector -> FakeID
Press « Enter » and change it to 0x12345678.
Press « Return » twice to go back to the Clover boot loader screen.
Once done, select "Boot macOS Install from ..." (« macOS » in previous example) entry in Clover (third entry on the right) and chose your target partition.

6. Install screen will appear and continue installation. This time, installer will install files to your target partition and create Recovery HD partition.
If after a few seconds, your NUC boots again and you’re back to Clover, don’t panic!
Change FakeID as usual to 0x12345678 and select "Boot macOS Install from ..." (« macOS » in previous example) entry in Clover again.
This time, you should get a « About 13 minutes remaining » which will go to the end (« The computer will restart » will appear at the end of installation).
This will end PHASE 2.

7. Restart and again boot to your USB.
Since you have IntelMausiEthernet.kext already injected by Clover, you should have internet access simply by using an Ethernet cable to your router. Plug it in.

8. Clover bootloader screen shows up, again, you need to change FakeID (use spacebar to chose the menu): go to Clover Options -> Graphics Injector -> FakeID
Press « Enter » and change it to 0x12345678.
Select « Boot macOS from "YourPartition" » (« Boot macOS from macOS » if you followed previous example). "YourPartition" will be named depending on what you chose in Disk Utility in step 3.
If you change default Language to another one, the computer will restart to make changes. Don’t forget to change FakeID as usual to 0x12345678 and select "Boot macOS Install from ..." (« macOS » in previous example) entry in Clover again.

9. If everything goes well, you will finish up the installation process and arrive at the macOS desktop.
Make sure you have internet access before continuing.

Note: I skipped any connection to Apple Cloud at this point and went to post installation instead.

Post Installation

10. You are ready for "Post Installation", you first step should be to install the Clover bootloader to your HDD. Installing Clover to your HDD is very similar to installing to the USB installer.
Download the Clover installer. Use Rehabman own build/fork of Clover: https://github.com/RehabMan/Clover
After obtaining the Clover installer, unzip it and run Clover pkg.

Installing Clover UEFI on SSD

Run the Clover Installer package:
- select the target of the install to « macOS » using "Change Install Location"
- select "Customize" (the default is a legacy install -- we need to change it)
- check "Install for UEFI booting only", "Install Clover in the ESP" will automatically select
- check "BGM" from Themes (the config.plist files I provide use this theme)
- the defaults for UEFI Drivers are recommended

After making your selections you can continue to "Install" the Clover bootloader to your SSD.

11. After installing the bootloader, you need to copy the kexts and efi files from your USB stick to your newly created EFI bootloader.
All kext files should go to EFI/CLOVER/kexts/Other
All efi files should go to EFI/CLOVER/drivers64UEFI

Installation of the tools and patching is easy provided the scripts and tools at the repository: https://github.com/RehabMan/Intel-NUC-DSDT-Patch

To start, the developer tools must be installed. Run Terminal, and type:

Code:
xcode-select --install

You will be prompted to install the developer tools. Since you have internet working, you can choose to have it download and install them automatically. Do that before continuing.

After the developer tools are installed, we need to make a copy of the project on github.

In Terminal:

Code:
mkdir ~/Projects
cd ~/Projects
git clone https://github.com/RehabMan/Intel-NUC-DSDT-Patch nuc.git

Note: All commands for Terminal that follow will assume you have set the current working directory to ~/Projects/nuc.git (unless otherwise stated).

To change the current working directory in Terminal:

Code:
cd ~/Projects/nuc.git

Now it is time to install some more tools and all the kexts that are required...

In Terminal:

Code:
./download.sh
./install_downloads.sh

The download.sh script will automatically gather the latest version of all tools (patchmatic, iasl, MaciASL) and all the required kexts from bitbucket. The install_downloads.sh will automatically install them to the proper locations.

To finish the setup, we need a correctly patched ACPI.

In Terminal:

Code:
make
make install_nuc8bc

The 'make' causes the patched files to be compiled (with iasl), the results placed in ./build.

Finally, 'make install_nuc8bc’, mounts the EFI partition, and copies the built files where they can be loaded by Clover (to EFI/Clover/ACPI/patched).

Final config.plist

Up to now, you've been using the same config.plist we were using for installation. After all the APCI files are in place (previous two steps), you're ready to use the final config.plist from the NUC repo.
First, mount the EFI partition:

Code:
./mount_efi.sh

Then copy the file:

Code:
cp config_nuc8_bc.plist /Volumes/EFI/EFI/Clover/config.plist

If this last command fails (which happened to me), you can install is manually:
- Download config_nuc8_bc.plist from this repository: https://github.com/RehabMan/Intel-NUC-DSDT-Patch
- Note: Clover cannot read HTML (config.plist is a plist/xml), so make sure to download from the "Raw" link: hit the « Raw » link + « File->Save as » and save config_nuc8_bc.plist on your Drive.
- Make sure to re-named this file as config.plist and copy / paste this file to /EFI/Clover SSD Drive.


Note: I chose not to customize the SMBIOS (SMBIOS is used to have a unique serial) so I skipped this part go the guide.

Eject USB stick and restart computer. There should be just one Clover selection to boot macOS on your SSD, and voilà!

Updates to the patch repositories

From time to time, updates may become available to the NUC repository. In the event of such updates, you may want to update your copies, and re-patch ACPI with the updates.

Note: not tested yet!

Geekbench CPU score

Capture d’écran 2018-12-31 à 19.58.44 V2.png
 

Attachments

  • drivers64UEFI.zip
    71.8 KB · Views: 2,593
  • kexts.zip
    354.9 KB · Views: 2,572
Last edited:
Keeping your system up to date
  • Updating the BIOS
  • Updating Clover EFI
  • Updating Mojave to version 10.14.6 (latest version before Catalina)
Updating the BIOS
Don't forget to keep track of the settings (see post #1).
The latest BIOS from Intel can be downloaded here: https://downloadcenter.intel.com/product/126148/Intel-NUC-Kit-NUC8i5BEH
Copy the .BIO file on a USB stick and flash the BIOS by hitting F7 when the NUC powers on.

Updating Clover EFI
The files provided by Leesureone and attached in this post just needs to be unzipped and copied in the EFI folder of the USB stick used in post #1.
To do so:
  • Mount the EFI partition on your USB Boot Drive by plugging it on your Mac
  • Delete the EFI folder on it
  • Empty the trash
  • Copy the entire EFI folder previously unzipped
Leave the USB Drive inserted into the NUC and restart the computer. Boot from USB Drive by pressing F10 at start and you should be able to see your hard drive at the Clover Boot Screen.
Choose it and boot normally.

Then repeat the process on your hard drive:
  • Mount the EFI partition on your hard drive
  • Delete the EFI folder
  • Copy the entire EFI folder from your USB Boot Drive
  • Restart the NUC and voilà!
Note: the files provided by Leesureone are also compatible with Catalina.

Updating Mojave to version 10.14.6 (latest version before Catalina)
The combo update can download here if software update isn't showing it and follow installation as usual (the NUC will restart several times during the process).
Download macOS Mojave 10.14.6 Combo Update

Note that Catalina works as well.

More information provided by Leesureone (from post #430)
With recent bios updates being pushed out by Intel above version 56 as well as updates by Apple to Mojave beyond 14.2 the guide has become outdated and no longer works as is.

Two things additional things are needed at a minimum to be able to reach the Mojave install window.

1. An updated version of the Clover bootloader must be installed, I suggest version 4290 or higher, although slightly older versions will probably work but have not been tested. Rehabman’s version available through the terminal commands in his original guide on Github will cause the installer to halt.

2. An updated config.plist containing an ACPI/DSDT/Patch for an RTC issue that will also cause the installer to stall if your bios is a version higher than 56

***Some users are also apparently unaware that their Samsung 970 EVO plus SSD will also cause install failure if the firmware is not updated first. Visit the Samsung Website for instructions on how to create a bootable USB drive for firmware updates.

The attached EFI folder has all of the above as well as some fixes for onboard Audio and USB C functionality.

If you decide to use it it’s as simple as creating a bootable USB drive using UniBeast and then replacing the EFI folder with the attached.

Once Mojave install is complete and you have then installed an updated version of Clover to your hard drive replace the EFI folder on your hard drive with the same attached folder should finish the job. Afterwards I highly suggest you use Clover Configurator to create a unique serial number (although “continuity” is not an issue unless you have gone the route of adding a Wireless/ Bluetooth card in the one available M2 slot with the appropriate adapter mentioned in various NUC posts). Cheers

Edit: If you have issues with crackling sound from the headphone jack several users have reported success installing all kexts, with the exception of FakeSMC.kext, to the Library/Extensions folder. Audio over HDMI and the headphone jack both should work. (You can probably install all of kexts there, including FakeSMC.kext, if you prefer).

Updated EFI with Clover Version 5100 Catalina ready 12/13/19.
 

Attachments

  • CATNUC8EFI.zip
    29.7 MB · Views: 1,333
Last edited:
Hi Cric,
1) Does your USB3.0 work? Mine is detected as USB2.0.
2) Does your bluetooth work? If I am not wrong, only external bluetooth dongle is working but I need to disable the internal bluetooth. However, I don't know how to do it.
3) Does your audio work?

Please let me know how you fix them if you make them work. Thanks.
 
Hi Cric,
1) Does your USB3.0 work? Mine is detected as USB2.0.
2) Does your bluetooth work? If I am not wrong, only external bluetooth dongle is working but I need to disable the internal bluetooth. However, I don't know how to do it.
3) Does your audio work?

Please let me know how you fix them if you make them work. Thanks.
Hello hackappleSG,

1) Yep, and much quicker than a USB2.0 stick
2) Nope, as I wrote, I use a wired KB and mouse
3) Yep, through HDMI (I have an "audio out" on my monitor)
 
Thank you for you guide. Everything works here except obviously wifi/bluetooth. Thunderbolt not tested yet. I have NUC7I7BEH I am going to try to install the wifi module into m2 slot and use 2.5 as my ssd. I will sacrifice speed of NVME but 2.5 ssd is fast enough for me
 
I followed your guide and now have my nuc8i7beh up and running. So far I have 2 issues:
1. I use a 2k monitor(1440p) and the color shows as purple until I change the scaling to 1080p in system preferences, then I can turn scaling back off again and the color will remain correct until the next boot.
2. System hangs on shutdown/reboot forcing me to do a hard shutdown.

Also a comment on the guide, while i was relative successful on a first hackintosh, it would have been much esier if the links to the kext and clover installer would include linkes to prebuilt binaries as well (though now i see you have added the zip archives which wasn't there when i did this last night)
 
Last edited:
How did you got the internal mics working?

Greetings
schlotterp
 
Instead of changing the graphics ID with every reboot, you can just edit the config file using Clover Configurator (or xcode or any other plist editor) before you copy to USB. Or you can update it to the correct ID (0x3EA50000).

Also, any luck getting the 3.5 audio jack to work?
 
Last edited:
So....first hackintosh in a while (been in the legit mac game for a minute)

anyways....I have a NUC8i7BEH I am using here and following your guide. Tried 3x and I am in the same place. Get all the way to Phase 3 and system seems to hang.

I get to Clover, select Boot macOS from macOS and then it moves to the boot screen. First 50% of progress bar fills up quick then slowly the rest fills up (roughly 60secs) then nothing. Seems to hang forever. Been 15mins and nothing.

Any insights/tips?
 
So....first hackintosh in a while (been in the legit mac game for a minute)

anyways....I have a NUC8i7BEH I am using here and following your guide. Tried 3x and I am in the same place. Get all the way to Phase 3 and system seems to hang.

I get to Clover, select Boot macOS from macOS and then it moves to the boot screen. First 50% of progress bar fills up quick then slowly the rest fills up (roughly 60secs) then nothing. Seems to hang forever. Been 15mins and nothing.

Any insights/tips?
Can you boot with verbose mode on and upload a pic where it hangs?
 
Status
Not open for further replies.
Back
Top