You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Epic: bootable kernel image from the workspace (x86_64 + riscv64 + aarch64) #48
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.
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):
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.
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
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
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.
Activity
xaviercallens commentedon Sep 27, 2026
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):
-kernelRISCV_BOOT_TELEMETRY.mddemo_kernel32-bit trick)X86_64_BOOT_TELEMETRY.md-kernelELF load, EL3/EL2→EL1 descent, PSCISYSTEM_OFFshutdownAARCH64_BOOT_TELEMETRY.mdx86_64 and AArch64 both also call real
kernel_types::SafePageFramelogic (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)
.github/workflows/boot-tests.ymlon branchci/wire-real-boot-tests) but blocked on aworkflow-scope token issue on the push side -- purely a credentials problem, not a content one. Should land shortly.kernel_imagecrate -- each arch is its ownexamples/*_qemu_harness, not yet consolidated per this epic's original ask.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.
[-]Epic: bootable kernel image from the workspace (x86_64 + riscv64)[/-][+]Epic: bootable kernel image from the workspace (x86_64 + riscv64 + aarch64)[/+]xaviercallens commentedon Sep 27, 2026
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):
RISCV_BOOT_TELEMETRY.md)X86_64_BOOT_TELEMETRY.md)arch/aarch64with real EL3/EL2→EL1 descent and PSCI shutdown (v11.3.8,AARCH64_BOOT_TELEMETRY.md)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):vfio-pcibinding and AMD-Vi IOMMU presence —GCE_TPU_PCI_TOPOLOGY_TELEMETRY.mdv5litepod-1) syscall traces, captured and replayed through this repo's own unmodifiedebpf_firewall/ai_detector—ML_WORKLOAD_SYSCALL_TRACES.md,ML_WORKLOAD_FIREWALL_REPLAY.md1.8.2-google), root cause narrowed but not fixed —M5_GCE_CUSTOM_BOOT_ATTEMPT.mdGPUS_ALL_REGIONSquota, confirmed empirically across 3 regions —GCP_AI_KERNEL_MILESTONE_PLAN.mdCost
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.