Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building MesaOS: A 64-bit Hybrid Kernel written in Rust from Scratch

说明与用途

MesaOS 是一个用 Rust 从零开始编写的 64 位混合内核,支持 Linux 驱动、定制网络栈、音频流和交互式 shell,可在 QEMU 和真实硬件上运行。

问题

Developing a 64‑bit hybrid operating system from scratch to learn low‑level systems programming and driver integration.

结果

MesaOS demonstrates a complete 64‑bit hybrid kernel written in Rust, capable of running Linux drivers, providing networking, audio, storage, and shell functionality, and operating on both virtual and real hardware.

工作流

  • Define kernel architecture and feature set
  • Implement Rust core and bootloader (Limine)
  • Create Linux driver shim with 400+ exported symbols
  • Develop custom networking stack (Ethernet, ARP, IPv4, ICMP, DHCP, DNS, UDP/TCP parsing)
  • Add audio streaming using WAV files and storage model for initrd
  • Build interactive shell with 80+ commands and ELF execution
  • Test kernel in QEMU and on HP 15s laptop
  • Iterate on driver development and state machine design
  • Invite contributors for xHCI/USB and Wi‑Fi driver work

证据

The system implements than 400 exported kernel symbols such as kmalloc, printk, pci_* and dma_* so that Linux drivers can be loaded.

来源

The project has a custom network stack that supports Ethernet, ARP, IPv4 ICMP and allows header parsing for UDP and TCP. It also includes DHCP and DNS support.

来源

  • 记录日期: 2026-09-07T07:38:42.896Z