OpenBoot
Draft: this page is not reviewed yet.

M5 Series boot and bring-upDraft

The generic flow is on Boot flow. This page holds what is specific to this generation. What works is on the status page.

Recognising the board#

The firmware reads chip-id and board-id from /chosen and looks the pair up in the compiled-in descriptor table. The M5 Pro MacBook Pro reports chip id 0x6050 and board id 0xc; the descriptor for it has tier supported. A second descriptor claims chip id 0x6051 on the same board id; it has tier experimental and no machine that reports it has been used. See the device pages for the values.

Early memory layout#

The early layout (DRAM window, the end of the first-stage carveout, the lifeline log ring and the debug region) is derived from the live device tree. The descriptor holds the same values as a fallback; on the M5 Pro they equal what the derivation produces, and a host test checks that against a device-tree fixture. The firmware says on the console when it falls back.

Starting the cores#

  • The secondary cores are started through per-chip start registers. The chip switch in openboot/src/smp.c gives the M5 Pro and the experimental SoC the same start offset.
  • The descriptor holds the start-mask stride (6 bits per cluster). When the CPU topology in the device tree can be read, the code takes the stride from it instead and uses the descriptor value only as a fallback.

What the hardware results record#

Area Result
Boot image at EL2 Loaded as a raw EL2 image; a 48 MiB image was sideloaded and started over the debug link.
UEFI and Windows Setup Windows PE reaches Setup.
Guest SMP All 16 guest CPUs start.

The same rows, with the evidence area each is recorded under, are in the status matrix.

Not verified or unknown#

  • Nothing here applies to the experimental SoC: it has never been run, and the start-mask stride it uses is shared with the M5 Pro descriptor.
  • No other SoC of this generation has a descriptor or a result.