OpenBoot
Draft: this page is not reviewed yet.

GlossaryDraft

Each entry says what the word means in this project and where the code that defines it lives.

Processor and memory terms#

Term Meaning here
EL2, EL1 Exception levels of the ARM64 processor. EL2 is the level that is meant for a hypervisor and is the highest level OpenBoot gets. OpenBoot, its menu and its debug monitor run at EL2 (openboot/src/main.c); the guest operating system runs at EL1 under it.
EL2 layer, supervisor The resident EL2 code that starts the guest and keeps watching it: stage 2 tables, the virtual interrupt controller, virtual devices, CPU start (openboot/src/el2_*.c).
Stage 2 The second translation stage that EL2 controls. The guest's physical addresses go through it, so EL2 decides which real addresses the guest can reach. The guest runs on an identity map with some regions left out or redirected (openboot/src/el2_stage2.c).
Guest The operating system that EL2 starts at EL1, Windows 11 ARM64 first.
Guest CPUs The CPU cores handed to the guest. Cores kept back for OpenBoot itself, such as the one running the debug core, are temporary.

Apple platform terms#

Term Meaning here
iBoot Apple's boot firmware stage. It loads OpenBoot as a custom boot object and hands over a device tree and boot arguments.
ADT Apple Device Tree. The description of the machine's hardware that iBoot passes on: nodes with properties such as compatible and reg. OpenBoot parses it with openboot/src/adt.c. Drivers bind to nodes by compatible.
DART Apple's device address translation unit, an IOMMU. A device that does DMA reaches memory only through its DART's tables (openboot/src/dart.c).
ANS Apple's NVMe storage controller, a coprocessor that sits between the CPU and the internal disk. See Storage.
AIC Apple's interrupt controller. Windows expects a GIC, so EL2 presents a virtual one; see the architecture overview.
Debug USB port The USB-C port that carries the debug link.

OpenBoot terms#

Term Meaning here
Boot object The image that iBoot loads in place of macOS: the OpenBoot raw image openboot/build/openboot.bin.
Hold window The short period at start-up in which OpenBoot decides whether a debug host is waiting. The result is a verdict, dark (no host, boot continues) or debug (host drives the boot). See Boot overview.
OBLink The debug link over plain USB: a CDC-ACM serial link that carries the console, monitor commands and image push. See OBLink.
Debug core, monitor The command monitor that runs on a separate core when a host is present (openboot/src/dbg/).
Lifeline The persistent log ring kept in memory across resets, so that the tail of a previous boot can be printed after a hang (openboot/src/lifeline.c, lifeline_ring.h). Related code under the same name reads and syncs a log partition on the disk (lifeline_gpt.c).
Descriptor A devices/<soc>/<board>.toml file that tells the code which machine it runs on. See Device configuration.
Quirk A workaround that belongs to one board, named in devices/quirks.toml.
Tier supported, experimental or unknown: how much the project verified a descriptor.

Board, machine and target#

These four words are used with fixed meanings:

  • Board is the identifier pair the firmware reads from the device tree: the chip ID and the board ID (see the J716s descriptor of the M5 Pro). A descriptor is written per board.
  • Machine is the product, for example the MacBook Pro Mac17,8 (J716s). The Device List lists the known ones.
  • SoC family is a generation such as the M5 Series; a Supported hardware page exists per family.
  • Target is the particular machine that OpenBoot is being started on, as opposed to the host, the second computer used for the debug link, builds and tests.