IBoot
iBoot is the stage 1 and stage 2 bootloader for iPhones, iPads, Apple silicon-based Macs, and the T2 chip in Intel-based Macs with such a chip. Compared with its predecessor, iBoot improves authentication performed in the boot chain.
For Intel-based Macs with a T2 chip, the boot process starts by running code on the T2 chip from the boot ROM. That boot ROM loads and runs iBoot onto the T2 chip; iBoot loads the bridgeOS operating system onto the T2 chip and starts it; bridgeOS loads the UEFI firmware; UEFI firmware starts the main Intel processor and completes the Power-On Self Test process. The UEFI firmware loads boot.efi, which loads and starts the macOS kernel. For Intel-based Macs with a T2 chip, the UEFI firmware may be called iBoot UEFI.
For iPhones, iPads, and Apple silicon-based Macs, the boot process starts by running the device's boot ROM, which is integrated into the device's SoC. On iPhones and iPads with A9 or earlier A-series processors, the boot ROM loads the , which is the stage 1 bootloader and loads iBoot, and LLB is stored on an EEPROM; on iPhones and iPads with A10 or later processors, as well as Apple silicon Macs, the boot ROM loads iBoot, and LLB and iBoot are stored on NAND flash or internal SSD, which is a NOR-less boot flow. If all goes well, iBoot will then proceed to load the iOS, iPadOS or macOS kernel as well as the rest of the operating system. If iBoot fails to load or fails to verify iOS, iPadOS or macOS, the bootloader jumps to DFU mode; otherwise it loads the remaining kernel modules. For arm64 devices with iBoot, it will "jump" to the kernelcache, and boot off of it.
Once the kernel and all drivers necessary for booting are loaded, the boot loader starts the kernel's initialization procedure. At this point, enough drivers are loaded for the kernel to find the root device.
Build styles
According to the leaked iBoot source code, in apps/iBoot/iBoot.mk, defines the valid build styles as "RELEASE", "DEVELOPMENT", "DEBUG", and "SECRET" when building a copy of iBoot. These build styles define specific information when the bootloader is compiled, such as adding more debugging commands for finding issues on a developmental device, or performing hardware tests using the iBoot command prompt over serial.Meanings
RELEASE - A release versionDEVELOPMENT - A build that is used on developmental hardware, allows access to some developmental tools, such as the 'diags' command.
DEBUG - A build used for debugging iOS and other lower-level components
Features
iBoot features a command prompt when in recovery, DFU, or restore mode. Command availability depends on the type of iBoot being used, especially the build style.When using iBoot's command prompt, the included commands are used to manage the behaviour, such as its boot arguments, or if the startup command should be used when iBoot is automatically loaded.