interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / crates / aienos-boot / Cargo.toml

83 lines · 4048 bytes Raw Blame History
1[package]
2name = "aienos-boot"
3version.workspace = true
4edition.workspace = true
5authors.workspace = true
6license.workspace = true
7repository.workspace = true
8description = "AArch64 UEFI entry diagnostic for AIENOS native boot bring-up"
9
10[features]
11default = []
12uefi-base = ["dep:uefi"]
13# The diagnostic image uses the uefi crate's panic handler. The handoff image
14# defines its own, which reports through the screen, firmware variable and
15# UART after boot services exit, so the two features must not be combined.
16firmware = ["uefi-base", "uefi/panic_handler"]
17handoff = ["uefi-base", "dep:aienos-kernel", "dep:aienos-accel", "uefi/alloc"]
18# SEED-0A candidate: polled USB keyboard after firmware exit (ADR 0012).
19# Only the QEMU keyboard test enables it; hardware staging never does.
20usb-keyboard = ["handoff"]
21# P3 candidate: polled native NVMe read after firmware exit. Only
22# scripts/qemu_nvme_test.sh enables it; hardware staging never does.
23nvme-read = ["handoff"]
24# P3 candidate: native NVMe write + flush qualification on top of nvme-read.
25# Only scripts/qemu_nvme_rw_test.sh enables it; hardware staging never does.
26nvme-write = ["nvme-read"]
27# P3 candidate: Store-over-NVMe qualification (test-only). QEMU only.
28# scripts/qemu_store_crash_test.sh enables it; hardware staging never does.
29store-qual = ["nvme-write"]
30# M4 continuity qualification (ADR 0016, test-only, QEMU only): provision /
31# resume / remember / crash modes over the Store-over-NVMe path.
32# scripts/qemu_continuity_test.sh enables it; hardware staging never does.
33continuity-qual = ["store-qual"]
34# Recovery Core qualification (ADR 0006, test-only, QEMU only): inspect /
35# operator-authorised repair / operator-authorised provisioning, with a
36# TEST-ONLY operator key. scripts/qemu_recovery_test.sh enables it; hardware
37# staging never does.
38recovery-qual = ["continuity-qual"]
39# SEED-0B qualification build (ADR 0014 ยง6): the kernel trusts the public,
40# TEST ONLY RFC 8032 qualification key in addition to the (empty) production
41# set, and every report says so. Without it, every artifact candidate is
42# rejected with UntrustedSigner. scripts/qemu_artifact_test.sh enables it.
43seed0b-qualification = ["handoff", "aienos-kernel/seed0b-test-anchor"]
44# Marks an image built for Machine 1 (native hardware) staging.
45# scripts/stage_one_time_boot.sh builds with it. It adds no code; it exists so
46# unsafe debug features refuse to compile into a hardware image.
47hardware-staging = ["handoff"]
48# UNSAFE. DEBUG ONLY. QEMU ONLY. Lets the xHCI keyboard run DMA straight to
49# physical memory, with NO SMMU confinement, when the platform has no SMMU
50# at all. It breaks the M3 rule "no SMMU confinement means no DMA" and exists
51# only to debug the xHCI driver in a QEMU machine without iommu=smmuv3. It
52# never applies when an SMMU exists but failed to initialise, it prints a
53# warning on every boot, and it is a compile error together with
54# `hardware-staging`. Reach it only through AIENOS_UNSAFE_DMA_BYPASS=1 in
55# scripts/qemu_keyboard_test.sh.
56unsafe-debug-dma-without-smmu = ["usb-keyboard"]
57# UNSAFE. DEBUG ONLY. QEMU ONLY. Same bypass for the NVMe read candidate:
58# it lets the NVMe function DMA to physical memory with NO SMMU confinement
59# when the platform has no SMMU. It never applies when an SMMU exists but
60# failed to initialise, prints a warning on every boot, and is a compile
61# error together with `hardware-staging`. Reach it only through
62# AIENOS_UNSAFE_DMA_BYPASS=1 in scripts/qemu_nvme_test.sh.
63unsafe-debug-nvme-dma-without-smmu = ["nvme-read"]
64
65[dependencies]
66uefi = { version = "0.41", default-features = false, optional = true }
67aienos-kernel = { path = "../aienos-kernel", default-features = false, optional = true }
68aienos-accel = { path = "../aienos-accel", optional = true }
69
70[[bin]]
71name = "aienos-boot"
72path = "src/main.rs"
73required-features = ["firmware"]
74
75[[bin]]
76name = "aienos-handoff"
77path = "src/handoff.rs"
78required-features = ["handoff"]
79
80[[bin]]
81name = "aienos-rollback-mock"
82path = "src/rollback_mock.rs"
83required-features = ["handoff"]