/unix_os_rs

A toy Unix-like OS on RISC-V in Rust

Primary LanguageRust

Unix-like OS on RISC-V in Rust

This is a toy project referencing the rCore OS tutorial and their github page for learning purpose.

Environment Setup

The OS runs with qemu-system-riscv64 simulator on Mac M1 and check the prerequisite for detailed environment setup.

Build and run

Run directly

$ cd os/
$ make run

asciicast

Run with GDB

$ cd os/
# In the current terminal, run
$ make gdbserver
# Open another terminal, still in os folder, run
$ make gdbclient

Or instead:

$ cd os/
# Start a tmux session which hold client/server on two sides.
$ make debug

Check this gdb cheatsheet in case you need help :)