Welcome to the official repository of the MOS-Rust project, where we are actively porting the MOS operating system, originally designed for the MIPS architecture and written in C, to Rust. This repository is the core hub for all development activities related to this project.
MOS-Rust aims to recreate the MOS operating system in Rust, focusing on educational use to teach operating system concepts and Rust programming. The project is divided into several phases, each focusing on a specific aspect of the operating system.
The project is completed, and we are making effort to improve its functionality and readability.
Before you begin, ensure you have the following installed:
- Rust toolchain (latest nightly release) with these components:
rust-src
,llvm-tools
,rust-docs
,clippy
- QEMU
- Git (for version control)
To build the MOS-Rust project, follow these steps:
-
Clone the repository:
git clone https://github.com/MOS-Rust/mos.git --recursive cd mos
-
Build the kernel:
cd kernel cargo build
-
Run the operating system:
cargo run
Phase 1: Bootstrapping and basic IO
Phase 2: Memory management
Phase 3: Exception handling
Phase 4: Process management
Phase 5: File system
Phase 6: Pipe and shell