DOCUMENTATION / V1.0.0 LTS
Installation and Usage Guide
A single, practical path from toolchain setup to a working kernel session.
Audience: new contributors, testers, and operators who want a reliable way to build, run, and validate OrbitOne OS.
What This Guide Covers
- Install the required Rust and QEMU tooling
- Build the boot image
- Run the kernel in interactive or headless mode
- Verify that the shell and filesystem are alive
- Find the right follow-up guide when you need more detail
Prerequisites
Make sure the following tools are available:
rustup- QEMU (
qemu-system-x86_64) - A recent Linux, macOS, or Windows environment
Quick check:
rustc --version
cargo --version
qemu-system-x86_64 --versionInstall the Toolchain
cargo install bootimageBuild the Kernel
Run the build from the repository root:
cargo bootimageExpected image:
target/x86_64-OrbitOne/debug/bootimage-OrbitOne.bin
Run the Kernel
Option 1: Standard workflow
cargo runOption 2: Interactive QEMU session
cargo bootimage
qemu-system-x86_64 -drive format=raw,file=target/x86_64-OrbitOne/debug/bootimage-OrbitOne.bin -serial stdioOption 3: Headless serial-only session
qemu-system-x86_64 -drive format=raw,file=target/x86_64-OrbitOne/debug/bootimage-OrbitOne.bin -serial stdio -display noneNote: The shell is interactive only when QEMU has keyboard focus. The
-display nonemode is useful for logs and automation, but not for direct console input.
First Boot Checklist
When the system starts, look for:
[orbitone] booting minimalist headless kernel[orbitone] timer IRQ online[orbitone] keyboard IRQ online- A visible shell prompt
If all four are present, the kernel is ready for commands.
First Commands
Use this sequence to verify the main interaction path:
help
explain status
status
health
info
ls /
waiThen validate the filesystem quickly:
cd /tmp
mkdir demo
cd demo
touch note.txt
write note.txt hello
ls
cat ./note.txt
rm note.txt
cd ..
rmdir demoCommand Families
For a strict lookup with exact syntax and examples, see Command Reference and Pseudo-Files Reference.
Navigation and shell
help,help shell,help system,help allcommands,explain <command>,explain <command> --json,explain all --jsonaliases,history,clear,echoexport [KEY=VAL],env,unset <KEY>,source <script>(aliassh)- Dynamic variable expansion:
$VAR,${VAR},$?,$$ cd <path>,wai,pwd
System visibility
version,about,bannerchostname [name],hostname [name],cn [name]bootlog,cpu,memory,sysinfo,infouptime,ticks,status,health,diagnosetasks,logs,outputs
cn <name> gives the machine a persistent computer
name. Names accept ASCII letters, digits, and -, up to 32
characters, and are mirrored by /etc/hostname.
Filesystem & Storage
ls [path],cat <path>,stat <path>,tree [path],mount,umountmkdir <path>,touch <path>,write <path> <content>,append <path> <content>rm <path>,rm -r <path>,rm -f <path>,rm -rf <path>,rmdir <path>ext2,disk,fsdisk,fdisk,partitions,quota,repquotafsck <device> [-y] [-v] [--json],cryptfs [status|test|verify]
Audio & Multimedia
playwav <file.wav> [--test],mixer [status|set|mute],sound [status|beep|play]
Power control
power statuspower simpower realrebootshutdown
Safe Power Testing
Use simulation mode when you want to test behavior without touching hardware side effects:
power sim
reboot
shutdownReturn to real behavior only when needed:
power real
power statusTroubleshooting
bootimageis missing
- Run
cargo install bootimage
- QEMU is missing
- Install QEMU and verify it is on the
PATH
- The shell does not accept input
- Make sure QEMU has keyboard focus
- Avoid
-display nonewhen you want to type commands
- QEMU from snap/core20 reports a symbol lookup error
- Use the package manager version of QEMU or the project-provided runner
Useful Scripts
Reference entry points:
scripts/test_regression_all.sh— everything, including QEMU boot. This is the script CI runs; prefer it before pushing.scripts/test_lib_unit.sh— host unit tests only (pure logic, no QEMU, fast)
Individual suites, all called by
test_regression_all.sh:
scripts/test_regression_full.sh— structural checks (presence of hardening markers)scripts/test_vfs_regression.sh,scripts/test_vfs_stress.shscripts/smoke_boot_hw_vm.sh— boot, hardware self-test, survives a provoked page faultscripts/test_allocator_stress.sh,scripts/test_paging_stress.shscripts/test_persistence.sh,scripts/test_nvram_persistence.sh,scripts/test_disk_persistence.sh,scripts/test_quota_enforcement.shscripts/test_host_coverage.sh— ratchet: fails if the host unit test count dropsscripts/test_long_mixed_stress.sh— optional long run (scheduler + ring3 + FD), enabled from full suite withLONG_STRESS=1
Diagnostics and tooling:
scripts/test_vfs_dynamic.sh— VFS suite not included in the full run; invoke it directlyscripts/compare_serial.sh <git-ref> <scenario>— builds two images and diffs their serial output; scenarios live inscripts/scenarios/scripts/baremetal_validation_report.sh,scripts/capture_baremetal_logs.shscripts/deploy_usb.sh,scripts/deploy_interactive.sh,scripts/create_iso.sh