1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-25 09:26:17 +04:00
Rust version of THU uCore OS. Linux compatible.
Go to file
2020-06-30 13:05:38 +08:00
.github/workflows Use prebuilt image correctly 2020-06-26 22:11:56 +08:00
crate Some code cleanup 2020-06-30 13:05:38 +08:00
docs move libc-test doc out of README 2020-06-15 12:26:23 +08:00
kernel Some code cleanup 2020-06-30 13:05:38 +08:00
modules/hello_rust Bugfix: x86_64 module compilation failure (#20) 2019-10-10 01:43:37 +08:00
rboot@e610182ba0 Bump to nightly-2020-06-04 and use llvm_asm instead of asm 2020-06-15 16:56:21 +08:00
tests Fix riscv32 testing 2019-05-03 15:17:06 +08:00
tools Bump rboot and user commit, update Cargo.lock and fix addr2line.py 2020-01-29 10:59:39 +08:00
user@291df7f66e Move arch specific code to arch 2020-06-30 12:27:29 +08:00
.gitignore add utimensat, fix touch 2020-04-25 23:05:40 +08:00
.gitmodules x86_64: switch from legacy BIOS to UEFI. use rboot as new bootloader 2019-09-04 10:37:31 +08:00
LICENSE update LICENSE 2020-02-01 13:26:38 +08:00
README.md Move arch specific code to arch 2020-06-30 12:27:29 +08:00
rust-toolchain Bump to nightly-2020-06-04 and use llvm_asm instead of asm 2020-06-15 16:56:21 +08:00

rCore

CI

Rust version of THU uCore OS Plus.

Going to be the next generation teaching operating system.

Supported architectures and boards:

  • x86_64(Tier 1): QEMU, PC (i5/i7)
  • RISCV32/64(Tier 2): QEMU, HiFive Unleashed
  • AArch64(Tier 2): QEMU, Raspberry Pi 3B+
  • MIPS32(Tier 3): QEMU, TrivialMIPS

demo

What's included

rCore has the following features:

  • Linux compatible syscall interface: run Linux userspace programs
  • Network stack
  • Simple file system
  • Signal system
  • Async IO
  • Kernel module

Building

Environment

Setup on Linux or macOS:

$ rustup component add rust-src llvm-tools-preview

Or use Docker container:

$ docker run -it -v $PWD:$PWD -w $PWD wangrunji0408/rcore

How to run

$ git clone https://github.com/rcore-os/rCore.git --recursive
$ cd rCore/user
$ make sfsimg PREBUILT=1 ARCH=x86_64
$ cd ../kernel
$ make run ARCH=x86_64 LOG=info

See Makefile for more usages.

Maintainers

Module Maintainer
x86_64 @wangrunji0408
RISC-V @jiegec
AArch64 (Raspi3) @equation314
MIPS @Harry_Chen @miskcoo
Memory, Process, File System @wangrunji0408
Network with drivers @jiegec
GUI @equation314

History

This is a project of THU courses:

Reports and Dev docs (in Chinese)

It's based on BlogOS , a demo project in the excellent tutorial Writing an OS in Rust (First Edition).

License

The source code is dual-licensed under MIT or the Apache License (Version 2.0).