A minimal Kernel written in Rust
A micro Kernel written in Rust. The goal is to have a small number of syscall with a strong emphasis on IPC
The project is divided in 2 components, the kernel and the drivers. Most of the drivers runs in userland, but some are required to run in kernel just to provide the basic kernel functionalities (UART, interrupt hardware, ...) :warning: At the moment userland drivers are not implemented
Choose your desired board:
riscv_qemuvirt
aarch64_qemuvirt
Then just run:
$ cargo run
For qemu target it will launch Qemu. For other targets the hope is to flash them instead
If you use Nix you can run nix develop
to get a shell with everything needed
to test GoOSe
Go to a board project (ex. riscv_qemuvirt) and then:
$ cargo build
When building, you need to specify which target triplet to use with
--target <triplet_here>
. Here is the list of triplet to use depending on the
targeted architecture:
riscv64gc-unknown-none-elf
aarch64-unknown-none
Go to the component folder and then:
$ cargo build --target <triplet_here>
GoOSe also comes with unit tests that run directly on hardware and output the result over serial. When using Qemu, you can also have an exit code != 0 on failure.
$ make -C kernel/fixtures <triplet_here>
...
$ cargo tests --bin <bin_here> --target <triplet_here>
...
:warning: Tests might be slow to run as GoOSe is not really optimized. You can
append --release
to the previous cargo command line to boost performance but
please be aware that some test might pass in debug and not in release. Feel
free to open an issue if you encounter such a case