This is a project to port the popular 32-bit learner's OS, xv6, over to the Rust programming language. This project is forked from the original work by connerkuehl
.
Original documentation for xv6 can be found at: https://pdos.csail.mit.edu/6.828/2012/xv6.html
The original work is a read-only repo dated back in 2019. Evan Older (CSC525 Fall 2021) provided the corrected version of Cargo dependencies to make the project runs.
One of the motivating academic factors behind this project (which has played a huge role in making this project possible for school credit) is assessing Rust's viability as a low level systems language.
Prerequisites:
-
A linux environment.
-
The QEMU simulator.
-
The
gcc
compiler suite. -
The Rust compiler.
-
A nightly override for the cloned repository (
rustup override set nightly
). -
The Rust source (
rustup component add rust-src
).
Building:
- Run
make
.
Running:
- Run
make run
. - To quit, first hit
Ctrl-A
, thenC
to get to qemu's terminal. Typequit
and hitEnter
to quit.
Debugging:
-
Run
make debug
; QEMU will expose a debugging port for GDB to attach to. -
In another terminal session, run
rust-gdb target/kernel/kernel
. -
In rust-gdb run
target remote localhost:1234