Skip to content

Installation

This guide covers installing ELMOS and its prerequisites on macOS.

ELMOS requires macOS Sequoia (15.0+) or later. Install these dependencies via Homebrew:

Terminal window
brew install llvm lld gnu-sed make libelf git qemu fakeroot e2fsprogs coreutils go-task wget

Install Xcode Command Line Tools for SDK headers:

Terminal window
xcode-select --install

!!! note If you encounter “gmake not found”, use brew install make and alias gmake to make.

Clone the repository and build the binary:

Terminal window
git clone https://github.com/NguyenTrongPhuc552003/elmos.git
cd elmos
task build # Builds to build/elmos

Create a workspace with sparse image and config:

Terminal window
./build/elmos init

This generates:

  • build/elmos.sparseimage - Workspace disk image
  • build/elmos.yaml - Configuration file

Run the environment doctor to check dependencies:

Terminal window
./build/elmos doctor

If issues arise, see Troubleshooting.

For full functionality, install crosstool-ng toolchains:

Terminal window
./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.