Repository navigation
MerlionOS v4.0.0 — Real I/O, ELF Loading, Full Demo
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/diskwritecommandsmake run-diskto attach a real disk image
Real ELF Loading
Build, store, load, and execute real ELF-64 binaries:
mkelf hello→ builds ELF, writes to diskloadelf 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
arpreqsends real ARP framesrawpingsends real ICMP echo with IP checksumsmake run-fullfor 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 + networkThen type: demo