OpenBoot
Draft: this page is not reviewed yet.

DriversDraft

OpenBoot hands most of a machine's hardware to the guest operating system instead of emulating it. The guest needs drivers for that hardware, and Windows on Arm has none for Apple silicon, so the project writes them. The upper half of each driver is generic: it binds by ACPI or PCI id and reads its device through the firmware's tables. The lower half, the hardware it reaches, the firmware it needs and the values that apply, belongs to a hardware generation. This section therefore has two kinds of page per stream: a thin generic page here (what the driver is to the operating system: binding, layering, registry values, build, host tests) and one page per generation that has a descriptor (the hardware reality and the results), linked from the "Generations" table at the end of each generic page.

Every driver on these pages is experimental. None is released, none is signed for general use, and the only hardware results the project publishes are on the hardware results page (how a run is made: Hardware runs), not here. A page says "no published hardware result" when there is none; that is not a statement that the driver works or fails. The per-device view of the same information is the status page of each generation, reached from Supported hardware.

Streams#

Page Hardware Code
Input built-in keyboard and trackpad win/obhid
Storage internal NVMe disk win/obans, UEFI drivers under uefi/OpenBootPkg/Drivers
USB-C USB-C port glue win/obusbc
Wi-Fi built-in wireless function win/obwlan
Bluetooth built-in Bluetooth function win/obbt
GPU Apple GPU win/agxkmd, win/agxumd
Display panel output firmware framebuffer, win/agxkmd/dod
Secure Boot firmware trust set uefi/OpenBootPkg/Drivers/OpenBootSecureBootDxe

USB4 and Thunderbolt: not working; no support is built, so there is no switch to turn on.

Per-device values#

No Windows driver reads a device descriptor. The descriptor table in devices/ is linked into the boot image only; its consumers are the CPU start code (smp.c), the layout code (ob_layout.c), the CPU frequency code (cpuspeed.c), the identification code (devident.c) and the analysis code (devanalyze.c). The Windows side gets its per-device information from the firmware's ACPI tables, from PCI ids and from constants in the driver source. Those constants, such as the hardware ids a driver binds to and the layout of a register block, were taken from the one machine the drivers have been written against; each generation page says which values apply to it. Moving them under the descriptors, so that a new device needs no driver edit, is open work (see Help wanted).

How the pieces fit#

A Windows driver here is usually the second half of a pair. The EL2 layer (see Architecture) hides or reshapes the real device, and the firmware's ACPI tables describe the result to Windows with a hardware ID such as ACPI\OBHD0001 or ACPI\OBNV0001 (the IDs ACPI\OBUC0001 and ACPI\OBUC0002 of the USB-C driver have no table in this tree that publishes them). The driver's INF binds to that ID. The table generator is uefi/OpenBootPkg/Drivers/OpenBootAcpiDxe. Two streams (Wi-Fi and Bluetooth) bind to PCI IDs instead, because EL2 passes the function through as a PCI device.

Most drivers keep their logic in a core/ directory of freestanding C that touches hardware only through a small table of function pointers, and a thin Windows layer in kmdf/ (or wddm/, storport/) that supplies those functions. The core is compiled for the host by the test directories tests/<driver>_host, with fake devices, so the logic runs on Linux without Windows. Host tests do not prove anything about hardware.

Build, sign and load#

The repository documents one path, the test-signed contributor path, and nothing else. It produces drivers for a machine that has been told to trust a certificate you generated yourself; the result is not for distribution.

  1. Get a Windows build environment. Most scripts assume the Enterprise WDK (EWDK) for ARM64 at a fixed location on a Windows machine that the Linux host reaches over SSH. The default host name and location are set in each script under tools/win/ and can be overridden with an environment variable named in the script. tools/win/build-obhid.sh is the exception: it builds on the Linux host. tools/win/fetch-wdk.sh and tools/win/fetch-wdk26100.sh fetch the NuGet WDK and SDK packages that some builds need, with pinned versions and checksums.
  2. Run the stream's script. tools/win/build-<stream>.sh copies the sources to the Windows machine, runs the build there (compiler, linker, INF check, catalogue) and fetches the result.
  3. Signature. A self-signed code-signing certificate is generated for the build, and the driver and catalogue are signed with it. The certificate is never in the repository. A catalogue made this way is accepted only by a Windows that trusts that certificate and permits test-signed code.
  4. Allow test-signed code. tools/win/bcd-testsigning.sh turns the test signing option on in the boot configuration store of a Windows Setup medium, from Linux. For an installed Windows the repository does not provide a step; use the Windows documentation.
  5. Install. The repository does not give an install command. Windows installs a driver package by matching the INF's hardware ID against the device, so a package for a device that OpenBoot's firmware does not expose does nothing.

The signed Secure Boot path (drivers trusted without test mode) is described only in outline on the Secure Boot page.

What is not documented#

The build scripts under tools/win/ and the per-driver build.cmd, mktestcert.ps1 and sign.ps1 are in the tree, but some carry assumptions of the original build machine (host name, EWDK path, output directory), and wrappers that drive a build on a private virtual machine are not part of the public tree. Where a stream has a build.cmd, run that in your own EWDK environment. The pages describe what the scripts do; they were not re-run for the documentation.

Not covered#

Vendor firmware is never part of the repository. Where a driver needs firmware (the trackpad, Bluetooth), the page names the file the driver expects and states that you supply it from your own machine.