Installation
This guide covers installing ELMOS and its prerequisites on macOS.
Prerequisites
Section titled “Prerequisites”ELMOS requires macOS Sequoia (15.0+) or later. Install these dependencies via Homebrew:
brew install llvm lld gnu-sed make libelf git qemu fakeroot e2fsprogs coreutils go-task wgetInstall Xcode Command Line Tools for SDK headers:
xcode-select --install!!! note
If you encounter “gmake not found”, use brew install make and alias gmake to make.
Build ELMOS
Section titled “Build ELMOS”Clone the repository and build the binary:
git clone https://github.com/NguyenTrongPhuc552003/elmos.gitcd elmostask build # Builds to build/elmosInitialize Workspace
Section titled “Initialize Workspace”Create a workspace with sparse image and config:
./build/elmos initThis generates:
build/elmos.sparseimage- Workspace disk imagebuild/elmos.yaml- Configuration file
Verify Setup
Section titled “Verify Setup”Run the environment doctor to check dependencies:
./build/elmos doctorIf issues arise, see Troubleshooting.
Optional: Install Toolchains
Section titled “Optional: Install Toolchains”For full functionality, install crosstool-ng toolchains:
./build/elmos toolchains install # Install crosstool-ng./build/elmos toolchains list # List targets./build/elmos arch riscv # Select architecture./build/elmos toolchains build # Build toolchain (~30-60 min)See Toolchains for details.
Next Steps
Section titled “Next Steps”- Get Started with your first kernel build
- Explore the Interactive TUI