- # Создание установщика в macOS
- # Скачивание macOS: современные версии
- # Скачивание macOS: устаревшие версии
- # Настройка установщика
- # Настройка Legacy
- # Настройка EFI окружения OpenCore
- # Installation Process
- # Double checking your work
- # Booting the OpenCore USB
- # macOS Installer
- # Making the installer in macOS
- # Downloading macOS: Modern OS
- # Downloading macOS: Legacy OS
- # Setting up the installer
- # Legacy Setup
- # Setting up OpenCore’s EFI environment
# Создание установщика в macOS
В то время как вам не нужна чистая установка macOS чтобы использовать OpenCore, некоторые пользователи предпочитают иметь свежую версию ОС с обновлением их Boot Manager.
Для начала, мы захотим получить себе копию macOS. Вы можете пропустить этот шаг и перейти к форматированию USB, если вы просто делаете загрузочную флешку с OpenCore, а не установщик. Для всех остальных, вы можете загрузить macOS из App Store или с помощью скрипта от Munki.
# Скачивание macOS: современные версии
- Этот метод позволяет вам загрузить macOS 10.13 и новее, для 10.12 и старее, смотрите Скачивание macOS: устаревшие версии
С компьютера macOS, отвечающего требованиям версии ОС, которую вы хотите установить, перейдите в App Store и загрузите желаемый релиз ОС и продолжайте настройку установщика.
Для компьютеров, которым нужен конкретный релиз ОС или не удается загрузить из App Store, вы можете использовать утилиту InstallInstallMacOS от Munki.
Чтобы запустить его, просто скопируйте и вставьте следующую команду в терминал:
Как вы видите, мы получаем большой список установщиков macOS. Если вам нужна определенная версия macOS, вы можете выбрать её, набрав её номер. Для этого примера, мы выберим 10:
- Примечание к macOS 11, Big Sur: Так как эта ОС совершенна новая, есть некоторые проблемы с определенными системами, которые нужно решить. Для получения дополнительной информации, смотрите здесь: OpenCore и macOS 11: Big Sur
- Для начинающих пользователей, мы рекомендуем macOS 10.15, Catalina
- Примечание к GPU Nvidia: напоминание о том, чтобы проверить, поддерживает ли ваше оборудование новые ОС, смотрите Аппаратные ограничения
Это займёт некоторое время, поскольку мы загружаем установщик macOS весом 8Гб+, поэтому мы настоятельно рекомендуем прочитать остальную часть руководства, пока вы ждёте.
По завершению, вы найдёте в папке
/macOS-Installer/ файл DMG содержащий установщик macOS, и названный, например Install_macOS_11.1-20C69.dmg . Смонтируйте его и вы найдёте приложение-установщик.
- Примечание: Мы рекомендуем переместить приложение Установка macOS.app в папку /Applications , поскольку мы будем выполнять команды в этой директории.
- Примечание 2: Нажатие сочетания клавиш Cmd+Shift+G в Finder позволит вам легче перейти к папке
Начиная отсюда, перейдите к Настройке установщика чтобы закончить свою работу.
# Скачивание macOS: устаревшие версии
- Устаревшие версии macOS: автономный метод
- Поддерживаются 10.10-10.12
- Устаревшие версии macOS: онлайн метод
- Поддерживаются 10.7-11
- Устаревшие версии macOS: образы дисков
- Поддерживаются 10.4-10.6
# Настройка установщика
Теперь мы форматируем USB, чтобы подготовить его как к установщику macOS, так и к OpenCore. Мы хотим использовать macOS Extended (HFS+) с таблицей разделов GUID. Это создаст два раздела: основной MyVolume и второй под названием EFI , который используется как загрузочныйц раздел, где ваш firmware будет проверять загрузочные файлы.
- Примечание: По умолчанию, Дисковая Утилита показывает только разделы — нажмите Cmd/Win+2 , чтобы показать все накопители (или же можете нажать на кнопку Вид (View))
- Примечание 2: Пользователи следовавшие разделу «Устаревшая macOS: онлайн метод» могут перейти к Настройке EFI окружения OpenCore
Затем запустите команду createinstallmedia предоставленную Apple
(opens new window) . Обратите внимание на то, что эта команда используется для отформатированного USB с названием MyVolume :
Это займёт некоторое время, так что вы можете взять чашечку кофе или продолжить читать руководство (честно говоря, вам не стоит следовать этому руководству шаг за шагом, не прочитав это всё сначала).
Также вы можете поменять путь createinstallmedia на тот, где находится ваш установщик (то же самое с названием накопителя)
Устаревшие createinstallmedia команды
# Настройка Legacy
Для систем, не поддерживающих UEFI загрузку, смотрите ниже:
Настройка Legacy загрузки
Для начала, вам понадобится следующее:
- BootInstall_IA32.tool или BootInstall_X64.tool
- Может быть найдено в OpenCorePkg по пути /Utilties/LegacyBoot/
- Установочная USB флешка(создана выше)
В папке OpenCore, перейдите к Utilities/LegacyBoot . Здесь вы найдете файл названный BootInstall_ARCH.tool . Он устанавливает DuetPkg на нужный накопитель.
Теперь запустите эту утилиту в терминале в sudo(В противном случае, эта утилита, скорее всего, потерпит неудачу):
Это покажет вам список доступных дисков, выберите нужный, и вам будет предложено записать новый MBR. Выберите yes [y] , и на этом вы закончите.
Это даст вам EFI раздел с bootia32 или bootx64 файлом
# Настройка EFI окружения OpenCore
Настроить EFI окружение OpenCore просто — всё что вам нужно сделать, это смонтировать наш системный EFI раздел. Это автоматически делается, когда мы форматируем в GUID, но по умолчанию размонтируется, так что появляется наш друг MountEFI
Вы заметите, что как только мы откроем EFI раздел — он будет пуст. Вот здесь и начинается самое интересное.
Источник
# Installation Process
Now that you’ve finished setting up OpenCore, you’re finally able to boot, main things to keep in mind:
- Enable BIOS settings optimal for macOS
- Read up on the OpenCore Multiboot Guide
(opens new window)
- Mainly relevant for those running a single drive for multiple OSes
- Can help first time installers better understand where they may be getting stuck
# Double checking your work
One last thing we should go over before booting is how your EFI is setup:
Good EFI | Bad EFI |
---|---|
EFI folder found on EFI partition | EFI folder missing |
ACPI Files are compiled(.aml) | ACPI Files are not compiled(.dsl) |
DSDT is not included | * DSDT is included |
Removed unneeded Drivers(.efi) | Leaves default Drivers |
Removed unneeded Tools(.efi) | Leaves default Tools |
All files in the Kexts folder end in .kext | Includes source code and folders |
config.plist found under EFI/OC | Neither renamed or placed the .plist in right location |
Only uses kexts that are needed | Downloaded every kext listed |
# Booting the OpenCore USB
So you’re now ready to finally put the USB stick into your computer and boot off of it. Remember that most laptops and some desktops will still default to the internal drive with Windows, and you’ll need to manually select OpenCore in the BIOS boot options. You’ll need to check in the user manual or use a bit of google to find out what Fn key accesses the BIOS and boot menu(ie. Esc, F2, F10 or F12)
Once you boot the USB, you’ll likely be greeted to the following boot options:
- Windows
- macOS Base System (External) / Install macOS Big Sur (External) / USB drive name (External)
- OpenShell.efi
- Reset NVRAM
For us, Option 2. is the one we want. Depending how the installer was made, it may report as either «macOS Base System (External)», «Install macOS Big Sur (External)» or «Your USB drive’s name (External)»
# macOS Installer
So you’ve finally got the installer booted, got through the verbose and hit the installer! Now that you’ve gotten this far, the main things to keep in mind:
- Drives you wish to install macOS on must be both of GUID partition Scheme and APFS
- High Sierra on HDD and all Sierra users will need to use macOS Journaled(HFS+)
- The drive must also have a 200MB partition
- By default, macOS will setup freshly formatted drives with 200MB
- See the Multiboot Guide
(opens new window) for more info on partitioning a Windows Drive
Once you start the installation, you will want to wait until the system restarts. You will once again want to boot into OpenCore, but rather than selecting your USB installer/recovery — you will want to select the macOS installer on the hard drive to continue installation. You should get an apple logo, and after a few minutes you should get a timer at the bottom saying «x minutes remaining». This may be a good time to get a drink or snack as this will take a while. It may restart a couple more times, but if all goes well, it should finally plop you at the «Setup your Mac screen»
You’re in! 🎉 You will want to go through the Post-Installation pages to finish setting up your system.
Источник
# Making the installer in macOS
While you don’t need a fresh install of macOS to use OpenCore, some users prefer having a fresh slate with their boot manager upgrades.
To start we’ll want to grab ourselves a copy of macOS. You can skip this and head to formatting the USB if you’re just making a bootable OpenCore stick and not an installer. For everyone else, you can either download macOS from the App Store or with Munki’s script.
# Downloading macOS: Modern OS
- This method allows you to download macOS 10.13 and newer, for 10.12 and older see Downloading macOS: Legacy OS
From a macOS machine that meets the requirements of the OS version you want to install, go directly to the App Store and download the desired OS release and continue to Setting up the installer.
For machines that need a specific OS release or can’t download from the App Store, you can use the Munki’s InstallInstallMacOS utility.
In order to run it, just copy and paste the below command in a terminal window:
As you can see, we get a nice list of macOS installers. If you need a particular versions of macOS, you can select it by typing the number next to it. For this example we’ll choose 10:
- macOS 11, Big Sur Note: As this OS is quite new, there’s still some issues with certain systems to resolve. For more information, see here: OpenCore and macOS 11: Big Sur
- For first time users, we recommend macOS 10.15, Catalina
- CAUTION: With macOS 11.3 and newer, XhciPortLimit is broken resulting in boot loops
(opens new window) . We advise users either install an older OS(ie. macOS 10.15, Catalina) or find a 11.2.3 or older Big Sur installer
- For education purposes, we have a copy provided here: macOS 11.2.3 InstallAssistant(macOS)
(opens new window) and disabled XhciPortLimit , you can boot macOS 11.3+ without issue
This is going to take a while as we’re downloading the entire 8GB+ macOS installer, so it’s highly recommended to read the rest of the guide while you wait.
Once finished, you’ll find in your
/macOS-Installer/ folder a DMG containing the macOS Installer, called Install_macOS_11.1-20C69.dmg for example. Mount it and you’ll find the installer application.
- Note: We recommend to move the Install macOS.app into the /Applications folder, as we’ll be executing commands from there.
- Note 2: Running Cmd+Shift+G in Finder will allow you to easily jump to
From here, jump to Setting up the installer to finish your work. If you want to check the integrity of your download, you can check this repository of checksums
(opens new window) , although do note that these are crowdsourced checksums and may not be a reliable way to check for authenticity.
# Downloading macOS: Legacy OS
This method allows you to download much older versions of OS X, currently supporting all Intel versions of OS X(10.4 to current)
# Setting up the installer
Now we’ll be formatting the USB to prep for both the macOS installer and OpenCore. We’ll want to use macOS Extended (HFS+) with a GUID partition map. This will create two partitions: the main MyVolume and a second called EFI which is used as a boot partition where your firmware will check for boot files.
- Note: By default, Disk Utility only shows partitions – press Cmd/Win+2 to show all devices (alternatively you can press the View button)
- Note 2: Users following «Legacy macOS: Online method» section can skip to Setting up OpenCore’s EFI environment
Next run the createinstallmedia command provided by Apple
(opens new window) . Note that the command is made for USB’s formatted with the name MyVolume :
This will take some time so you may want to grab a coffee or continue reading the guide (to be fair you really shouldn’t be following this guide step by step without reading the whole thing first).
You can also replace the createinstallmedia path with that of where your installer’s located (same idea with the drive name).
Legacy createinstallmedia Commands
# Legacy Setup
For systems not supporting UEFI boot, see below:
Setting up Legacy Boot
To start, you need the following:
- BootInstall_IA32.tool or BootInstall_X64.tool
- This can be found in OpenCorePkg under /Utilties/LegacyBoot/
- Install USB(Created above)
Within your OpenCore build folder, navigate to Utilities/LegacyBoot . Here you’ll find a file called BootInstall_ARCH.tool . What this does is install DuetPkg to your desired drive.
Now run this tool in terminal with sudo(This tool will likely fail otherwise):
This will give you a list of available disks, choose yours and you will be prompted to write a new MBR. Choose yes [y] and you’ll be finished.
This will provide you with an EFI partition with either a bootia32 or bootx64 file
# Setting up OpenCore’s EFI environment
Setting up OpenCore’s EFI environment is simple – all you need to do is mount our EFI system partition. This is automatically made when we format with GUID but is unmounted by default, this is where our friend MountEFI
You’ll notice that once we open the EFI partition, it’s empty. This is where the fun begins.
Источник