Build an arm64 OS in Rust: what vibeOS is made of
10 steps · about 18 h 20 min · Intermediate
- Operating Systems: Three Easy Pieces (reference, Arpaci-Dusseau, University of Wisconsin-Madison, 3 h)
Gives you the core vocabulary (virtualization, concurrency, persistence) that every kernel, vibeOS included, is built on.
- The smallest #![no_std] program - The Embedonomicon (guide, Rust Embedded Resources team, 20 min)
Shows how Rust runs with no standard library, which is the starting point for any kernel.
- Writing an OS in Rust (tutorial, Philipp Oppermann, 4 h)
A step-by-step small Rust kernel covering exceptions, paging and heap allocation. It targets x86, but the ideas carry over to arm64.
- Operating System development tutorials in Rust on the Raspberry Pi (repo, rust-embedded on GitHub, 4 h)
Brings the same ideas to AArch64 with serial output, virtual memory and hardware exceptions, so you see the arm64 specifics.
- Learn the Architecture - A-profile (reference, Arm, 20 min)
Arm's official hub for the instruction set, memory model and exception guides you will need next.
- Learn the architecture - AArch64 Memory Management Guide (guide, Arm, 45 min)
Explains how the MMU, translation tables and TLBs work, which is the hardest part of an arm64 kernel.
- Learn the Architecture: Memory Management Examples (guide, Arm, 40 min)
Walks through real assembly that sets up MAIR and translation tables and drops to EL1, which turns the theory into working code.
- xv6: a simple, Unix-like teaching operating system (reference, Cox, Kaashoek, Morris (MIT), 3 h)
A compact, readable monolithic kernel that shows how syscalls, processes, locking and a file system fit together.
- The Illustrated TLS 1.3 Connection: Every Byte Explained (interactive, Michael Driscoll, 45 min)
vibeOS ships its own TLS 1.3 and crypto, and this page explains every byte of the handshake it must implement.
- vibeOS: From-scratch arm64 OS in Rust with a desktop, written entirely by LLMs (repo, DimitriFourny on GitHub, 1 h 30 min)
With the background in place, read the kernel, runtime and compositor layout of a complete LLM-written OS and compare it with what you have learned.