Skip to content
@kernelite

kernelite

⚡ Kernelite

From raw C drivers to bare-metal C++20 microkernels.

Kernelite builds foundational systems software and developer tooling designed for bare-metal clarity, strict memory safety, and deterministic hardware control. Whether you are booting a custom AArch64 kernel or translating legacy Linux drivers into structured specifications, our tools keep low-level systems work fast, verifiable, and clean.

🚧 Active Development: Kernelite, Milo, and Prism are actively under development—APIs, schemas, and workflows may evolve rapidly as new features and subsystems land.

🧩 Core Repositories

🛡️ Milo

A freestanding C++20 microkernel and Linux AArch64 ABI compatibility layer built for bare-metal execution.

  • What it does: Brings up AArch64 hardware (EL3 → EL2 → EL1), sets up 4-level MMU page tables with Copy-on-Write (CoW) and demand-zero paging, runs a preemptive scheduler and POSIX-style signal/syscall layer, and includes a VFS (ext2, tmpfs, devfs, cpio), VirtIO block transport, and an interactive milo> shell.

  • Why it stands out: Enforces strict C++20 RAII ownership, zero exceptions, and zero RTTI in a freestanding environment—backed by host-native unit tests (ASan/UBSan/coverage) alongside QEMU virt runtime suites.

💎 Prism

An AI-assisted static analysis and specification pipeline that turns Linux C driver source code into structured hardware and C++ porting artifacts.

  • What it does: Parses .c and .h driver sources with tree-sitter-c (ASTPreProcessor), extracts register offsets, bitmasks, probe/interrupt flows, and concurrency primitives, and produces schema-validated JSON/YAML specs (driver_spec.json) alongside Markdown documentation (DRIVER_SPEC.md) with Mermaid sequence diagrams and C++20 driver skeletons.

  • Why it stands out: Grounds model outputs against AST constants, isolates dynamic register offset expressions, and supports local quantized models (transformers/outlines) as well as API backends (openai/instructor).

🔄 Better Together

Prism and Milo are built to complement each other across the systems engineering workflow:

  • Inspect & Model (Prism): Extract register maps, initialization sequences, interrupt lifecycles, and porting notes from existing C driver code.

  • Build & Verify (Milo): Implement, boot, and test bare-metal C++20 drivers and kernel subsystems against real hardware/QEMU targets and automated test suites.

🚀 Getting Started

  • Explore the code: Jump into kernelite/milo to build and boot the AArch64 kernel in QEMU, or kernelite/prism to run kprism analyze on driver sources.

  • Share feedback & contribute: Since everything is actively evolving, bug reports, edge cases, and pull requests are especially helpful—open an issue or PR in the relevant repository.

📜 License

Unless noted otherwise in an individual repository's LICENSE file, projects in the Kernelite organization are open source under the GNU General Public License v3.0 (GPL-3.0).

Pinned Loading

  1. prism prism Public

    Refractoring Linux driver source code into structured, machine-readable specifications.

    Python 1

  2. milo milo Public

    Microkernel Interface for Linux Operations

    C++ 1

Repositories

Showing 3 of 3 repositories

Top languages

Loading…

Most used topics

Loading…