Starry OS
An experimental monolithic OS based on ArceOS
Supported Architectures
- RISC-V 64
- LoongArch64
- AArch64
- x86_64 (work in progress)
Features
TODO
Quick Start
1. Clone repo
Or if you have already cloned it without --recursive option:
2. Install Prerequisites
A. Using Docker
We provide a prebuilt Docker image with all dependencies installed.
For users in mainland China, you can use the following image which includes optimizations like Debian packages mirrors and crates.io mirrors:
For other users, you can use the image hosted on GitHub Container Registry:
Note: The --rm flag will destroy the container instance upon exit. Any changes made inside the container (outside of the mounted /workspace volume) will be lost. Please refer to the Docker documentation for more advanced usage.
B. Manual Setup
i. Install System Dependencies
This step may vary depending on your operating system. Here is an example based on Debian:
Note: Running on LoongArch64 requires QEMU 10. If the QEMU version in your Linux distribution is too old (e.g. Ubuntu), consider building QEMU from source.
ii. Install Musl Toolchain
-
Download files from setup-musl releases
-
Extract to some path, for example
/opt/riscv64-linux-musl-cross -
Add bin folder to
PATH, for example:
iii. Setup Rust toolchain
# Install rustup from https://rustup.rs or using your system package manager
# Automatically download components via rustup
3. Prepare rootfs
# Default target: riscv64
# Explicit target
This will download rootfs image from Starry-OS/rootfs and set up the disk file for running on QEMU.
4. Build and run on QEMU
# Default target: riscv64
# Explicit target
# Run on QEMU (also rebuilds if necessary)
Note:
- Binary dependencies will be automatically built during
make build. - You don't have to rerun
buildevery time.runautomatically rebuilds if necessary. - The disk file will not be reset between each run. As a result, if you want to switch to another architecture, you must run
make rootfswith the new architecture beforemake run.
What next?
You can check out the GUI guide to set up a graphical environment, or explore other documentation in this folder.
If you're interested in contributing to the project, please see our Contributing Guide.
See more build options in the Makefile.
License
This project is now released under the Apache License 2.0. All modifications and new contributions in our project are distributed under the same license. See the LICENSE and NOTICE files for details.