Quick Start
Prerequisites
Section titled “Prerequisites”- Rust nightly (managed automatically via
rust-toolchain.toml) - rust-src:
rustup component add rust-src --toolchain nightly - llvm-tools:
rustup component add llvm-tools --toolchain nightly - cargo-bootimage:
cargo install bootimage - QEMU:
brew install qemu(macOS) orapt install qemu-system-x86(Linux)
Clone and Run
Section titled “Clone and Run”git clone https://github.com/MerlionOS/merlion-kernel.gitcd merlion-kernelmake runThis boots MerlionOS in QEMU with VGA display and serial output.
Build Targets
Section titled “Build Targets”| Command | Description |
|---|---|
make build | Build bootable image |
make run | Boot in QEMU (VGA + serial) |
make run-serial | Headless mode (serial only) |
First Commands
Section titled “First Commands”Once the shell appears, try:
info # System informationps # List running tasksls # List filesystem rootcat /proc/meminfo # Heap statisticsspawn # Spawn a demo taskneofetch # System info displayReal Hardware
Section titled “Real Hardware”Want to boot MerlionOS on your laptop? See the UEFI Boot & Real Hardware guide.