Contribute
Register

[Guide] Booting The USB Installer Using OpenCore

Well, I thought I was well beyond this step. I have created my specific SSDT's with SSDTTime, and adapted my config.plist according to the guide for coffee lake with ProperTree, also used the mimum kexts required. I have read also the laptop specifics and this is not my first installation. I have reviewed the faq's again...it seems my problem must be a very basic one, but I don't see it.
well beyond this step? your hardware profile needs to be filled out with your current hardware you are using.....
 
A guide in setting up your USB installer using OpenCore,

To start:
A USB stick / flash drive or whatever you want to call them, USB2.0 16GB is preferred, possibly a USB3.0 *may* work. Sandisk makes a good USB installer, no I don’t have shares in them, they just seem to work well.

Kexts Required
These are just going to be the basic kexts to get your machine up and running, you can add your audio and any other kexts after installation

VirutalSMC:
https://github.com/acidanthera/VirtualSMC/releases

Lilu:
https://github.com/acidanthera/Lilu/releases

Whatevergreen:
https://github.com/acidanthera/WhateverGreen/releases

VoodooPS2Controller:
https://github.com/acidanthera/VoodooPS2/releases

Network card:
https://www.tonymacx86.com/resources/categories/kexts.11/

Creating the USB installer

If using a mac to create your installer, a nice video can be found here:

As we will be using Windows to create the installer, we are going to need to download and install Python before we start the USB installation:

After installing Python, we will be using gibMacOS. A nice handy tool that can create your USB installer using Windows or a Mac machine. Head over to https://github.com/corpnewt/gibMacOS and click the green "Clone or download" button and then choose Download as Zip.

We will be using Windows for this tutorial

Open up the gibMacOS-master folder and find gibMacOS batch file, right click and Run As Administrator

This will download a 6mb or so file and you will be presented with the following:
View attachment 464050

We will be downloading the Recovery, so press r and then enter and you should see something like this:
View attachment 464049
Now, this is important, we will be needing to find the latest Catalina that ends with FULL install, in this case it is option 4. In later versions of macOS, this number may change. So choose 4 and then press enter and wait for the download to complete, depending on your internet speed, this could take awhile. After the download has finished, press enter and you will be back to the main menu.

As we have finished with this command, we can now close this window.

Now we have the files we need, we can now create the USB, right click Makeinstall and Run as Administrator. This will download a small file and you will be presented with the following:
View attachment 464052

This is important, do not format your wrong drive!

As above, the program has detected the USB stick as drive 2 (your machine may list this as drive 1 or 3 etc) As we are going to be installing OpenCore, we will type in 2o
2: being the selected USB stick
o: being OpenCore boot loader

Then you will see this:
View attachment 464055
Yes! we will continue. This will now format the USB installer for us and then ask us:
View attachment 464056
Now we navigate back to our gibMacOS-master folder and go to the macOS Downloads folder that was generated when we downloaded the recovery above. Navigate through the folders until you find RecoveryHDMetaDmg.pkg file.

Hold shift button and right click the file and choose "copy as path" Then right click in the cmd windows and the full path to the file will be populated:
View attachment 464057
Then press enter and wait for the files to be copied to your USB. We have now finished with this tool and now close it.

Under Windows Explorer, you should have a new drive called BOOT with a folder called EFI

Now, important, delete the EFI folder and use the one attached in this post instead.

This setup if for a Skylake system, you will need to change a few details if you do not own a Skylake

You will need to download a copy of ProperTree from here:

Click the Clone or Download green button and Download ZIP, extract and then run ProperTree

Click File -> Open and find your config.plist and scroll down to DeviceProperties:

View attachment 464175

You will be wanting to change:
AAPL,ig-platform-id
device-id
model

I don't really want to list them all here, but if you navigate your way to:

You can then find your setup and change accordingly

Or you can check over Rehabman's config.plist's if that is easier:

Next, you may need to change the network kext, scroll down to Kernel and change name of the ExecutablePath to the name of your network kext:
View attachment 464179
(Making sure you have the correct kext in your kexts folder)

Then scroll further down until you find SystemProductName. This is currently set to MacBookPro13,1 which is for a Skylake laptop, you can go back to Rehabman's config.plist's to determine the correct model name for your laptop.

Once you have made those changes, save your config.plist and reboot your machine into your BIOS.

You will want to make some changes here, if you can change these options:

Turn off Secure Boot
Turn the TPM off
Disable VT-D
Graphics DVMT-Prealloc set to 64MB or 128MB (You may not have this option, but the config.plist has a patch for this)
SATA - Set to AHCI
Disable Fast Boot
Disable Wake on Lan
Disable any fingerprint or sdcards if possible

Booting

Now, boot with your USB stick, the config.plist has verbose enabled so you can see what is going on. It may look like it has frozen in some places, but boot from USB can be slow, so please be patient.

Once you have reached the installer, choose Disk Utility and then click on view and then show all devices

Then you want to erase the drive and start the installation

Leave the USB plugged in as you will need to reboot from this a few times while macOS is installing

Once you have reached the macOS desktop, you will need to mount your EFI partition to then copy over your EFI folder from your USB disk.

Download and run Hackintool:

and navigate to Disks and click the icon to mount your EFI partition:
View attachment 464196

Once the EFI has been mounted, delete the EFI folder within and then copy your EFI folder from your USB installer.

Reboot your laptop..... Done......
FEARTECH This is awesome and a great tool. I encountered an error in the early stage of the creation of the bootable USB that I cannot seem to resolve. The issue is that the USB isn't bootable. Attached is a picture of the command prompt screen that shows the error. Can you please take a look and advise. The boot file in the boot section is ~265KB and seems low compared to others who used the same tool to create the USB bootable.

Thanks!
 

Attachments

  • MakeinstallBat error.PNG
    MakeinstallBat error.PNG
    48.3 KB · Views: 56
FEARTECH This is awesome and a great tool. I encountered an error in the early stage of the creation of the bootable USB that I cannot seem to resolve. The issue is that the USB isn't bootable. Attached is a picture of the command prompt screen that shows the error. Can you please take a look and advise. The boot file in the boot section is ~265KB and seems low compared to others who used the same tool to create the USB bootable.

Thanks!
MBR is the problem, needs to be formatted GPT
 
It seems that formatting a USB to GPT isn't possible with the limited tool in win 10 or diskpart?

Can you recommend a method?
 
It seems that formatting a USB to GPT isn't possible with the limited tool in win 10 or diskpart?

Can you recommend a method?
you can use diskpart to select the disk and then use clean command

then in windows you can initialise the disk again, choosing a gpt scheme
 
I attempted to do that using the gibmacOS.bat file of opencore which resulted in the boot partition of the USB still being formatted as MBR with FAT32 and the remaining portion of the USB unknown, needing format. So this is not a solution I could adapt. It seems that there is no way around this where the MBR section is formatted FAT32 as this seems to be the preferred method for OpenCore. Given the number of folks that have it working there is something else causing the USB to not boot. My Lenovo BIOS is pretty simple, other than to select the desired drive or device to boot. Windows recovery USB boots fine so it's something else as I have expected regarding the creation of the boot file.
 
I attempted to do that using the gibmacOS.bat file of opencore which resulted in the boot partition of the USB still being formatted as MBR with FAT32 and the remaining portion of the USB unknown, needing format. So this is not a solution I could adapt. It seems that there is no way around this where the MBR section is formatted FAT32 as this seems to be the preferred method for OpenCore. Given the number of folks that have it working there is something else causing the USB to not boot. My Lenovo BIOS is pretty simple, other than to select the desired drive or device to boot. Windows recovery USB boots fine so it's something else as I have expected regarding the creation of the boot file.
diskpart is a windows command you can try and use and then use gib to create the recovery
 
you can use diskpart to select the disk and then use clean command

then in windows you can initialise the disk again, choosing a gpt scheme
Thanks for your reply. I did exactly that in diskpart but the win 10 lame disk utility would have nothing to do with the USB except format it as NTFS, FAT32, ext fat no GPT option offered. I have created all my Kexts, EFI drivers and fully prepared the plist for my Katy Lake Lenovo and hate not to be able to move forward with opencore but no boot from the MBR is preventing me from doing much else.
 
Thanks for your reply. I did exactly that in diskpart but the win 10 lame disk utility would have nothing to do with the USB except format it as NTFS, FAT32, ext fat no GPT option offered. I have created all my Kexts, EFI drivers and fully prepared the plist for my Katy Lake Lenovo and hate not to be able to move forward with opencore but no boot from the MBR is preventing me from doing much else.
just went through the process on an old usb stick, using diskpart -> select disk # -> clean and right click my pc, manage -> disk management and yes, no option for the gpt or mbr option when right clicking on the partition to create a new partition

not sure what i can suggest at the moment though....
 
just went through the process on an old usb stick, using diskpart -> select disk # -> clean and right click my pc, manage -> disk management and yes, no option for the gpt or mbr option when right clicking on the partition to create a new partition

not sure what i can suggest at the moment though....


Doesn't DiskPart have a "convert gpt" command? Select the disk and after the "clean" command try the above.
 
Back
Top