Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/crates/aienos-boot/Cargo.toml # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / crates / aienos-boot / Cargo.toml` 83 lines · 4048 bytes Raw Blame History 1 [package] 2 name = "aienos-boot" 3 version.workspace = true 4 edition.workspace = true 5 authors.workspace = true 6 license.workspace = true 7 repository.workspace = true 8 description = "AArch64 UEFI entry diagnostic for AIENOS native boot bring-up" 9 10 [features] 11 default = [] 12 uefi-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. 16 firmware = ["uefi-base", "uefi/panic_handler"] 17 handoff = ["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. 20 usb-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. 23 nvme-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. 26 nvme-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. 29 store-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. 33 continuity-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. 38 recovery-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. 43 seed0b-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. 47 hardware-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. 56 unsafe-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. 63 unsafe-debug-nvme-dma-without-smmu = ["nvme-read"] 64 65 [dependencies] 66 uefi = { version = "0.41", default-features = false, optional = true } 67 aienos-kernel = { path = "../aienos-kernel", default-features = false, optional = true } 68 aienos-accel = { path = "../aienos-accel", optional = true } 69 70 [[bin]] 71 name = "aienos-boot" 72 path = "src/main.rs" 73 required-features = ["firmware"] 74 75 [[bin]] 76 name = "aienos-handoff" 77 path = "src/handoff.rs" 78 required-features = ["handoff"] 79 80 [[bin]] 81 name = "aienos-rollback-mock" 82 path = "src/rollback_mock.rs" 83 required-features = ["handoff"]