A micro Kernel written in Rust. The goal is to have a small number of syscall with a strong emphasis on IPC
- Virtual Memory Manager (in progress)
- Basic in-kernel filesystem
- Device-tree handling
- In-kernel ELF loader
- Userland process (in progress)
- IPC implementation
- Drivers
- Driver API
- Kernel API
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:
- Qemu RISC-V (virt) -->
riscv_qemuvirt
- Qemu AArch64 (virt) -->
aarch64_qemuvirt
Then just run:
$ cargo run
For qemu target it will launch Qemu. For other targets the hope is to flash them instead
- A rust nightly toolchain
- Clang compiler (for tests)
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:
- RISC-V -->
riscv64gc-unknown-none-elf
- AArch64 -->
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>
...
--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