#operating-system #risc-v #teaching

app tychoos

A teaching operating system designed for RISC-V

1 unstable release

0.0.1 Jan 24, 2025

#8 in #teaching

Download history 59/week @ 2025-01-18 45/week @ 2025-01-25 5/week @ 2025-02-01 3/week @ 2025-02-08

112 downloads per month

MPL-2.0 license

9KB
192 lines

TychoOS

A teaching operating system designed for RISC-V

Setup

This project currently uses unstable features that require the nightly channel. Run the following commands:

rustup default nightly
rustup target add riscv64gc-unknown-none-elf

Building

The kernel should build by running:

cargo build

Running

Ensure you have qemu installed, and run the following command:

qemu-system-riscv64 -machine virt -bios none -smp 1 -nographic -kernel target/riscv64gc-unknown-none-elf/debug/tychoos-kernel

Debugging

Run the kernel with debugging support:

qemu-system-riscv64 -machine virt -bios none -smp 1 -nographic -kernel target/riscv64gc-unknown-none-elf/debug/tychoos-kernel -s -S

After, run the debugger:

lldb target/riscv64gc-unknown-none-elf/debug/tychoos-kernel

In the debugger run the following:

gdb-remote localhost:1234

This should connect you to the debugging session.

No runtime deps