Skip to content

4rgon4ut/auton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AUTON

This is a pet project to write a small Kernel in Rust for the RISC-V 64GC architecture, targeting the QEMU virt machine.

Dependencies

A minimal dependency approach is used in this project. The following dependencies are used:

  • fdt: Used for parsing the device tree to avoid the redundant work of parsing it manually (boring).
  • embedded-io: This crate provides Hardware Abstraction Layer (HAL) traits for I/O operations, which are used for convenience.

Nightly Features

This project uses nightly Rust features. You will need to use a nightly toolchain to build and run it.

Setup

  1. Install a nightly Rust toolchain. You can do this using rustup:
    rustup toolchain install nightly
    rustup default nightly
  2. Add the riscv64gc-unknown-none-elf target:
    rustup target add riscv64gc-unknown-none-elf
  3. Install QEMU. On macOS, you can use Homebrew:
    brew install qemu

Running

To run the OS in QEMU, use the following command:

cargo run

About

Toy OS Kernel for the QEMU virt RISC-V 64GC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published