RISC-V (“risk five”) and the Rust programming language both start with an R, so naturally they fit together. In this blog, we will write an operating system targeting the RISC-V architecture in Rust (mostly). If you have a sane development environment for RISC-V, you can skip the setup parts right to bootloading. Otherwise, it’ll be fairly difficult to get started.
This tutorial will progressively build an operating system from start to something that you can show your friends or parents — if they’re significantly young enough. Since I’m rather new at this I decided to make it a “feature” that each blog post will mature as time goes on. More details will be added and some will be clarified. I look forward to hearing from you!
Always wanted to to code your own operating system? This tutorial series shows how to create a simple operating system for RISC-V using Rust as your programming language. Currently the two first chapters are available. The code is also available on Github.
While I think it would be an interesting tutorial, there’s nothing there. Chapter 0 is an intro to the project and Chapter 1 only includes assembly code, which is all boilerplate. I’ll be impressed when they get to, at least, Chapter 7.
I guess a good start would be to port an existing tutorial, like this: http://www.jamesmolloy.co.uk/tutorial_html/.