Creating a RISC-V Emulator with Scratch to Run Linux Kernel

Produced by | OSC Open Source Community (ID: oschina2013)
Recently, I was amazed by a project I stumbled upon online — an emulator that successfully runs the Linux kernel, entirely written in Scratch code.

Scratch is a visual programming language development platform based on blocks, allowing programming to be completed visually through clicking and dragging.

Creating a RISC-V Emulator with Scratch to Run Linux Kernel

The author claims to have written the RISC-V (rv32ima) instruction set in Scratch and then ran the Linux 6.1 kernel as an emulator. This emulator is built on the mini-rv32ima emulator implemented in pure C.
Creating a RISC-V Emulator with Scratch to Run Linux Kernel
via https://scratch.mit.edu/projects/892602496
Below are screenshots of the project’s operation:
Creating a RISC-V Emulator with Scratch to Run Linux Kernel
Related links: https://github.com/cnlohr/mini-rv32ima

Previous recommendations

Removing the Logitech USB receiver caused the Linux kernel to crash
M2 Ultra can run 128 Llama 2 7B streams in parallel
A 23-year-old PhD student fixed a 22-year-old “ghost bug” in Firefox
Here you can find the latest open source news, software updates, technical insights, and more

Click here ↓↓↓ Remember to follow ✔ and star ⭐

Leave a Comment