OpenBoot
Draft: this page is not reviewed yet.

Storage driverDraft

Maturity: experimental. The hardware, the way the code reaches it and the results are on the page of each generation; the table at the end links them.

Two ways to the disk#

The internal disk sits behind a storage coprocessor, not behind a standard NVMe controller. OpenBoot offers the guest two ways to reach it, and the code for both is in the tree.

Windows: win/obans#

obans.sys is a boot-start Storport miniport (StartType 0, load order group "SCSI miniport", class SCSIAdapter). The package binds to ACPI\OBNV0001, the register window that EL2 shows in place of the real controller. It is built from a portable core in core/ and one file, storport/obans_storport.c, that is the only place that includes storport.h.

  • The core turns SCSI commands into NVMe commands, builds PRP lists, tracks command tags, and runs the controller start and reset sequence.
  • A second transport, selected at build time, drives the real coprocessor directly (ACPI\OBNV0002; the core files ans_rtkit.c and obans_native.c).
  • A write guard in core/obans_guard.c refuses a write before it is built unless it lies inside the window of blocks that EL2 allows. EL2 enforces the same window independently.
  • Read-only by default. Builds define NVME_NO_WRITE, and the core then has no write or flush command builder at all. A write-capable package is the release profile (obans-profile=release in the binary, one package for every machine, no gate identifier); whether it ever writes is decided at run time by the window EL2 allows. The per-run gate identifier is retired. The repository documents no routine use of the write build.

UEFI: uefi/OpenBootPkg/Drivers#

Driver Purpose, from its source
OpenBootNvmeDxe the firmware's read-only view of the disk through the same EL2 register window; commands are polled one at a time, a write is refused
OpenBootAnsDxe the read-only view when the guest owns the real coprocessor; reuses the obans core files; hands the controller back in the state Windows expects at ExitBootServices
OpenBootStorageDxe a bounded BlockIo binding to the raw EL2 storage driver

All three refuse writes in firmware.

Build and host tests#

  • Host tests: make -C tests/obans_host test.
  • Windows package: tools/win/build-obans.sh builds, catalogues and test-signs on a Windows machine as described in the overview. It builds the read-only package by default. It was not re-run for this page; its defaults (build host, output directory) belong to the original build machine.
  • UEFI drivers: part of ./uefi/build.sh; see Build and host tests.

Generations#

The hardware reality of this stream, per generation:

Generation Page
M5 Series M5 Series