ARM64 EL2 · Apache-2.0 · Mainline 27.04-dev

Open-Source ARM64 Type-1 Hypervisor & RTOS Foundation

Runs a from-scratch SMP RTOS (VM0) and upstream Linux 6.6 (VM2) side-by-side on one machine — with hardware Stage-2 isolation, fail-closed cross-VM windows, and 173+ replayable QEMU verification gates.

底层之光,守护生命 · The light beneath, guarding life.

~24K LOC
Freestanding C & AArch64 ASM built clean-room from public specs
RTOS + Linux 6.6
Identical static musl ELF binaries verified across both worlds
173 / 173 CI Green
3-shard fixture suite on GitHub Actions in 6.7 min
Apache-2.0
100% SPDX headers & explicit GPL boundary isolation

60-Second Live Demo & Quick Start

Captured from a single QEMU ARM64 session: EL2 hypervisor boot → VM0 SMP RTOS running musl /bin/hello → VM2 Linux 6.6 running the same ELF binary simultaneously.

Terminal demo showing eshine-os booting at EL2 on QEMU ARM64, launching VM0 RTOS and VM2 Linux 6.6, and running the same musl /bin/hello binary in both VMs

Real serial output on QEMU virt (4× Cortex-A57): VM0 and VM2 remain simultaneously VM_RUNNING under EL2 Stage-2 isolation.

Option A — Pinned Docker Image (No Local Toolchain)
git clone https://github.com/eshine-os/eshine-os.git
cd eshine-os
# Ubuntu 24.04 + cross-gcc + QEMU 8.2.2
scripts/container.sh build
scripts/container.sh run
Supports Podman via ESHINE_CONTAINER_ENGINE=podman. Set ESHINE_CONTAINER_NETWORK=bridge to bootstrap Linux guest artifacts inside the container.
Option B — Native Linux (ARM64 GCC + QEMU)
git clone https://github.com/eshine-os/eshine-os.git
cd eshine-os
# Build binaries & run boot smoke gates (1..18)
make && make verify-fast
make run
Run make verify for the full non-heavy green suite, or scripts/bootstrap.sh --adopt for offline artifact reuse under .work/.

System Architecture

One machine, three domains — structured along functional safety (ISO 26262) and cybersecurity (ISO/SAE 21434) isolation boundaries.

eshine-os system architecture: Type-1 hypervisor at EL2 isolating VM0 management RTOS, VM1 reserved cockpit domain, and VM2 Linux 6.6 guest
Layer / Domain Design Targets Status Implemented & Planned Capabilities
Type-1 Hypervisor (EL2) ASIL-D / CAL-4 Implemented Direct EL2 hardware control with no host OS; per-VM Stage-2 isolation, vGICv3, vtimer, virtio-blk/net, DTB injection, PSCI VM lifecycle, CPU/memory quotas, and fail-closed cross-VM shared windows.
VM0 · Management RTOS ASIL-D / CAL-3 Implemented From-scratch 2-vCPU SMP RTOS with 32-priority preemptive bitmap scheduler, per-process Stage-1 MMU + ASID, Send/Recv/Reply IPC, futex/signals, ramfs/procfs, HAM health monitor, and musl ELF loader.
VM1 · Cockpit Slot QM / CAL-2 Reserved Currently runs a bare-metal fault-isolation test guest; slot reserved for a future Android cluster / center-console cockpit domain.
VM2 · Linux Domain ASIL-A/B / CAL-2 Implemented Real upstream Linux 6.6 SMP kernel + busybox initramfs + musl userland for perception, planning, and intelligent-driving workloads.
Honest Boundary Statement: ASIL (ISO 26262) and CAL (ISO/SAE 21434) levels are architectural design targets; formal third-party safety certification has not yet started. All automated gates currently execute on QEMU virt (ARM64) — see KNOWN-ISSUES.md for open defects, QEMU 10.2.1 compatibility tracking, and the current security boundary.

AI-Pair Engineering & Evidence Discipline

Initiated by Julian Chu and built in pair with AI models (Claude Code, GLM-5.3, DeepSeek V4.1) — where AI writes code, but deterministic QEMU gates decide truth.

68-Station Playbook

Every feature lands as one vertical slice with a written design spec, replayable verification gates, clean SPDX headers, and an engineering devlog recording real pitfalls and refuted hypotheses.

Read STATION-PLAYBOOK.md →

173/173 Fixture Gates

Ordinary gates boot a fresh QEMU session; stateful families run isolated scenario fixtures. Currently 173 green gates pass across 3 GitHub Actions shards in 403 s (4 quarantined gates openly tracked).

Read CI.md →

Transparent Attribution

Commits declare actual participating models via Model: / Assisted-by: trailers enforced in CI, separating high-invariant architecture review from implementation throughput.

Read MODEL-ROUTING.md →

Roadmap

Ordered strictly by engineering risk and defect-budget rules: hardware invariants and security boundaries before new surface area.

  1. Next
    EL2 Stage-1 MMU, Security Boundary Hardening & Quarantine Zero Enable EL2 MMU & alignment safety (unblocking QEMU 10.2+), enforce strict RTOS access_ok / W^X / SMP TLB invalidation, align 64-bit spinlock widths, and close the 4 quarantined gates (177/177).
  2. In Progress
    Functional Safety Architecture (ISO 26262) Close remaining SMP dual-core fault families under quiet-window double-green criteria, strengthen fault containment, and formalize traceability from safety requirements to gates.
  3. In Progress
    Cybersecurity Hardening (ISO/SAE 21434) Fuzz the EL2 virtualization and RTOS syscall boundaries, add negative Stage-2 ACL tests, and enforce strict user-copy exception fixups.
  4. Planned
    Real-Hardware Bring-up (Board HAL → SoC) Extract QEMU virt constants into a Board HAL and bring up low-cost ARM64 hardware (Raspberry Pi 5 / RK3588) en route to automotive SoCs with SMMU and GIC-ITS.
  5. Planned
    Sub-Tick Deterministic Real-Time & VM1 Cockpit Domain Add oneshot hrtimer wake-ups with real-hardware wake-up latency histograms, and bring up Android in the reserved VM1 cockpit slot.

Releases & Source Mirrors

Semi-annual YY.MM release cadence (April & October) with weekly -Nw development tags.

Versions

Track Version Date Artifacts
mainline 27.04-dev Active [browse master]
stable 26.10 2026-10-21 [tarball] · [notes]

Git Repositories

Role Clone URL
GitHub (Primary) github.com/eshine-os/eshine-os.git
Gitee (China Mirror) gitee.com/eshine-os/eshine-os.git