rust-embedded/rust-raspberrypi-OS-tutorials ? reverse-engineered prompt

Reverse engineered prompt

Build me a Rust based tutorial project that teaches how to write a simple operating system kernel for the Raspberry Pi 3 and 4.

I want it to start from the absolute basics and then grow step by step into a working bare metal kernel, with each lesson being bootable on its own and showing the changes from the previous one. It should cover things like printing to the serial console, setting up the runtime, handling exceptions, interrupts, virtual memory, a heap, backtraces, and a few useful debugging tools along the way.

Please make it friendly for someone new to ARM64 and embedded OS development, and set it up so it can be tested in QEMU and on real hardware. If useful, use Docker or other setup help so the build process is not a pain. Also include clear README files for each tutorial so I can follow along and understand what changed in each step.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab