PrerequisitesDraft
This page lists what you need to build OpenBoot on a host computer and what you need before the result can run on a real machine.
Hardware overview#
OpenBoot targets Apple silicon machines. The machines that have a descriptor are listed in the Device List; the only generation that has been run is the M5 series. What works on it is on its status page.
| Item | Detail |
|---|---|
| Target machine | a machine with a descriptor in devices/ (see the Device List) |
| Debug link | a USB cable from the target to a second computer; the link is OBLink, a CDC-ACM serial link over plain USB |
| Second computer | any machine that runs Python 3 and can open a serial device; used for the debug daemon and for pushing test images |
| Windows guest | Windows 11 ARM64 installation media, which you supply |
The image is loaded by the machine's own boot firmware as a custom boot object. Installing a custom boot object changes the boot configuration of the machine. This documentation does not yet contain an installation guide, so do not install an image on a machine whose data you cannot lose.
What you do not need to build#
- No Apple hardware is needed to build the image or to run the host tests. The tests were run on a Linux computer.
- No Apple firmware is distributed with the project. A build that needs a firmware file, such as the trackpad firmware, takes it from your own machine or leaves the feature out.
Software for a host build#
| Software | Used for |
|---|---|
| Clang and LLD with AArch64 support, and the LLVM utilities | compiling and linking the image |
GNU make |
the build system |
Cargo, and the Rust target aarch64-unknown-none-softfloat |
the Rust parts of the image |
| Python 3.11 or newer | build utilities, device descriptor generator, host tests, documentation builder |
pytest, Pillow, CairoSVG, fontTools and pyserial |
the UI host tests, the asset tools and the OBLink host tests (pyserial) |
mtools and dosfstools |
FAT32 and GPT test images |
| Git, with submodule support | only for the UEFI firmware, which uses the EDK II submodule |
Install the Rust target with:
rustup target add aarch64-unknown-none-softfloat
The makefiles run python3 -I, isolated mode, which ignores per-user
package directories. The Python packages must therefore be installed in
the first python3 found on PATH. A virtual environment does that:
python3 -m venv ~/venv-openboot
~/venv-openboot/bin/pip install cairosvg pillow fonttools pytest pyserial
export PATH=~/venv-openboot/bin:$PATH
Verified status of this page#
The package list comes from the project's README and makefiles. It has not been re-checked on a clean machine for this release, so the page is a draft. The next page, Build and host tests, says which commands were run.