You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

6 years ago
# RustOS
8 years ago
## Port to RISCV (WIP)
6 years ago
2018年THU计算机系统综合实验
[Project Wiki](http://os.cs.tsinghua.edu.cn/oscourse/csproject2018/group05)
[Documents](./docs/RISCV.md)
6 years ago
### Environment
[Dockerfile](./riscv-env/Dockerfile) (Can not build directly. Just for reference)
Available on DockerHub: `wangrunji0408/riscv-rust`
### How to run
```bash
6 years ago
git clone https://github.com/wangrunji0408/RustOS.git --recursive
6 years ago
cd RustOS
6 years ago
# Pull docker image and enter docker interactive shell
make docker_riscv
# Inside docker ...
6 years ago
cd kernel
# Patch the atomic mod of core lib
make patch-core
6 years ago
make run
6 years ago
```
## Summary
[![Build Status](https://travis-ci.org/wangrunji0408/RustOS.svg?branch=master)](https://travis-ci.org/wangrunji0408/RustOS)
A project of THU OS2018 spring.
8 years ago
[Project Wiki](http://os.cs.tsinghua.edu.cn/oscourse/OS2018spring/projects/g11)
[MidReport](./docs/MidReport.md)
[FinalReport](./docs/FinalReport.md)
The goal is to write a mini OS in Rust with multicore supporting.
It will start from the post of the [Writing an OS in Rust](http://os.phil-opp.com) series. Then reimplement [xv6-x86_64](https://github.com/jserv/xv6-x86_64) in Rust style.
8 years ago
## Building
You need to have `nasm`, `grub-mkrescue`, `xorriso`, `qemu`, a nightly Rust compiler, and `xargo` installed. Then you can run it using `make run`.
8 years ago
A docker image is available and recommanded. Read [this](docker/README.md) for details.
8 years ago
## License
8 years ago
The source code is dual-licensed under MIT or the Apache License (Version 2.0).