Skip to content

MerlionOS v4.0.0 — Real I/O, ELF Loading, Full Demo

Choose a tag to compare

@lai3d lai3d released this 15 Mar 14:14
· 154 commits to main since this release

MerlionOS v4.0.0 — Real I/O

Born for AI. Built by AI. — 生于AI,成于AI

Stats

  • 58 source modules, ~9,700 lines of Rust
  • 90+ shell commands
  • Real hardware I/O: virtio-blk, virtio-net, ELF loading

What's New

Real Virtio-blk Disk I/O

Actual sector read/write through QEMU's virtio-blk device:

  • PCI BAR0 → I/O port discovery
  • Virtqueue with descriptor chains
  • diskread / diskwrite commands
  • make run-disk to attach a real disk image

Real ELF Loading

Build, store, load, and execute real ELF-64 binaries:

  • mkelf hello → builds ELF, writes to disk
  • loadelf 100 174 → reads from disk, maps segments, executes in ring 3
  • Full ELF-64 parser + program header mapping

Real Virtio-net

Ethernet frame construction and transmission:

  • PCI probe, BAR0, RX/TX virtqueues
  • Real MAC address from device config
  • arpreq sends real ARP frames
  • rawping sends real ICMP echo with IP checksums
  • make run-full for disk + network

Full System Demo

Type demo to see an automated walkthrough of all capabilities:
system info → hardware → memory → VFS → multitasking → modules →
AI features → networking → diagnostics → self-tests.

Quick Start

make build && make run-full    # disk + network

Then type: demo