tosc-rs / mnemos

An Operating System for Building Small Computers
https://mnemos.dev
Apache License 2.0
260 stars 18 forks source link
MnemOS

MnemOS (mnɛːmos) is a hobby-grade, experimental operating system for small computers (and bigger ones, too). The MnemOS kernel and userspace use a design based on asynchronous message passing, inspired by Erlang and microkernels, although MnemOS is not a true microkernel.

This repository contains the cross-platform core of the MnemOS kernel, which is implemented as a Rust library crate, platform-specific implementation for supported hardware and simulator targets, development tools for working on MnemOS, and reusable libraries which the kernel, tools, and platform implementations depend on.

Folder Layout

The project layout contains the following folders:

Getting Started

Currently, the primary supported hardware platform for MnemOS is the Allwinner D1, a RISC-V system-on-chip (SOC). Instructions for running MnemOS on D1 single-board computer can be found in platforms/allwinner-d1/README.md.

If you don't have access to a supported D1 board, or want a quicker development workflow for testing cross-platform changes, MnemOS also has a software simulator, called Melpomene. Melpomene runs as a userspace application binary on a development machine, and runs the MnemOS kernel with simulated hardware. Melpomene can be run using the just melpomene just recipe, or using cargo run --bin melpomene.

Pomelo is a web-based simulator, which runs the MnemOS kernel in the browser using WebAssembly. A hosted version of Pomelo can be found at https://anatol.versteht.es/mlem/.

[!NOTE]

Some just recipes in the Justfile have additional build-time dependencies which must be installed on the user's system in order to run those recipes.

In order to automate installing (most of) these dependencies, the manganese tool provides a wrapper for just recipes that depends on all Rust build dependencies from crates.io as normal cargo deps. To run a just recipe using manganese, run:

cargo mn $RECIPE

rather than

just $RECIPE

where $RECIPE is the name of the desired just recipe.

Learn More

Development and API Docs

rustdoc output for the current main branch can be built locally with cargo doc --open.

Development Blogs

We've written a series of development blogs following the story of MnemOS' implementation. You can find them here:

Getting Involved

Join us on Matrix: #mnemos-dev:beeper.com

License

MIT + Apache 2.0.

Code of Conduct

The MnemOS project follows the Contributor Covenant Code of Conduct.