Skip to content

Epic: bootable kernel image from the workspace (x86_64 + riscv64 + aarch64) #48

Open

Description

@xaviercallens

Track: T3 · Plan: RUNUX_V12_VERIFIED_CORE_PLAN.md WS5

Today only examples/demo_kernel (i686) boots; the translated crates are never linked into a bootable image. Goal: kernel_image crate, riscv64 via OpenSBI first, then x86_64; QEMU boot test with ordered banners and a syscall smoke test in CI.

See ROADMAP.md and CONTRIBUTING.md. Evidence rules: AGENTS.md.

Activity

  1. added
    help wanted
    area:boot
    type:epic
    on Sep 27, 2026
  2. xaviercallens commented on Sep 27, 2026

    @xaviercallens
    OwnerAuthor

    Update: all three architectures now have a real, independently-verified boot path

    This epic asked for riscv64 first, then x86_64. Landed both, plus AArch64 as a bonus third arch, each with an honest, script-backed oracle and independent re-verification on a fresh GCP VM (not just my dev machine):

    Arch PRs Boot mechanism n=30 mean latency Telemetry
    riscv64 #69, #70 OpenSBI → S-mode, direct -kernel 0.0617s RISCV_BOOT_TELEMETRY.md
    x86_64 #71, #72 GRUB Multiboot2 → genuine 64-bit long mode (not the old demo_kernel 32-bit trick) 0.5518s X86_64_BOOT_TELEMETRY.md
    aarch64 #73, #74 Direct -kernel ELF load, EL3/EL2→EL1 descent, PSCI SYSTEM_OFF shutdown 0.0392s AARCH64_BOOT_TELEMETRY.md

    x86_64 and AArch64 both also call real kernel_types::SafePageFrame logic (valid-pointer and null-rejection paths) instead of only printing banners -- the first boot paths in this repo to exercise actual workspace code at boot time, not just serial output.

    Release with downloadable artifacts + raw CSVs: v11.3.8 (also see v11.3.4, v11.3.6).

    What's still open (this epic is not done)

    • Not wired into CI yet. A workflow adding all three boot jobs is prepared (.github/workflows/boot-tests.yml on branch ci/wire-real-boot-tests) but blocked on a workflow-scope token issue on the push side -- purely a credentials problem, not a content one. Should land shortly.
    • Subsystem init is still stub-only on all three: riscv64's PLIC/Sv39, x86_64's IDT/APIC/drivers, aarch64's GIC/page-tables all print a banner and return rather than doing real hardware setup.
    • No unified kernel_image crate -- each arch is its own examples/*_qemu_harness, not yet consolidated per this epic's original ask.
    • No syscall smoke test yet on any arch.
    • QEMU only -- none of this has run on physical hardware of any architecture.

    No Linux performance or feature comparison was made or is implied anywhere in this work -- none of these harnesses have a scheduler, drivers, filesystem, or userspace, so there's no comparable workload yet.

    Given the real progress, updating this issue's title to include aarch64.

  3. changed the title [-]Epic: bootable kernel image from the workspace (x86_64 + riscv64)[/-] [+]Epic: bootable kernel image from the workspace (x86_64 + riscv64 + aarch64)[/+] on Sep 27, 2026
  4. xaviercallens commented on Sep 27, 2026

    @xaviercallens
    OwnerAuthor

    Final wrap-up: three-arch boot, public reproducible images, GPU/TPU accelerator investigation

    All three legs of this epic now boot for real, each independently re-verified on a fresh GCP VM (30/30 boots):

    Reproducible boot images, public, no account needed (re-verified in-session before upload, checksummed): https://storage.googleapis.com/socrateai-datalake-gen-lang-client-0625573011/runux-boot-images/README.md

    Beyond this epic: real accelerator-hardware investigation

    Following on from the boot work, this also drove a real (not simulated) Google Cloud TPU/accelerator hardware investigation — full writeup: TPU_ACCELERATOR_IMPROVEMENT_PLAN.md (M0-M5):

    • Real PCIe config-space I/O + BAR-size probing verified against a real TPU-accelerator VM, n=30, independent sysfs oracle, plus a same-CPU-family control VM proving vfio-pci binding and AMD-Vi IOMMU presence — GCE_TPU_PCI_TOPOLOGY_TELEMETRY.md
    • Real ML-workload (JAX on v5litepod-1) syscall traces, captured and replayed through this repo's own unmodified ebpf_firewall/ai_detector — ML_WORKLOAD_SYSCALL_TRACES.md, ML_WORKLOAD_FIREWALL_REPLAY.md
    • A real, reproducible recipe for a custom GCE boot image from this repo's kernel, reaching real SeaBIOS firmware execution on real GCE hardware — partial result, honestly disclosed: GRUB's first multi-sector read doesn't complete on Google's SeaBIOS fork (1.8.2-google), root cause narrowed but not fixed — M5_GCE_CUSTOM_BOOT_ATTEMPT.md
    • Real NVIDIA GPU (T4/L4/RTX-class) access was blocked by an exhausted project-wide GPUS_ALL_REGIONS quota, confirmed empirically across 3 regions — GCP_AI_KERNEL_MILESTONE_PLAN.md

    Cost

    Every GCP resource created for this work (VMs, custom images, dedicated buckets) has been confirmed deleted via a full project-wide sweep — no ongoing compute cost from any of this. Only the ~5MB of public boot-image artifacts above remain.

    Remaining open work (not this epic, tracked separately)

    Subsystem init (PLIC/Sv39 on riscv64; IDT/APIC/drivers on x86_64; GIC/pgtables on aarch64) is still stub work; none of the three boot harnesses is wired into CI yet; the GCE SeaBIOS-fork boot issue is unresolved; T4 "Secure AI hardware" real work (IOMMU isolation/VRAM zeroization proofs) has not started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:boothelp wantedtype:epic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions