Small OS for RaspberryPi 3 written in Rust
Switch branches/tags
Nothing to show
Clone or download
Sh4d1 Update to new alloc
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
Latest commit 207bdb8 Jul 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update to new alloc Jul 18, 2018
.gitignore Add Console struct and kprint macros Jul 9, 2018
Cargo.lock Bump dependencies Jul 18, 2018
Cargo.toml Bump dependencies Jul 18, 2018
LICENSE.md Add License Jul 12, 2018
Makefile Add timer and scheduling Jul 14, 2018
README.md Update target and README Jul 18, 2018
aarch64-none-elf.json Update target and README Jul 18, 2018
layout.ld First commit Jul 9, 2018

README.md

Rustberry OS

This is a WIP kernel for RaspberryPi 3 written in Rust. Some code is taken from this Stanford class.

Requirements

You will nedd a nightly Rust installation. The fastest way is to use rustup. You will also need some tools, you can install the whole toolchain with:

$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ rustup component add rust-src llvm-tools-preview
$ cargo install cargo-xbuild cargo-binutils

Building

  • To build a debug kernel: DEBUG=1 make
  • To build a release kernel: make

Running

QEMU

To run the kernel in QEMU you can either run (you will need QEMU):

  • make run
  • qemu-system-aarch64 -kernel build/kernel8.img -M raspi3 -serial null -serial mon:stdio

Testing (WIP)

make test