# WerWolv's RISC-V Emulator Boots Linux from Scratch

Original title: RISC-V Emulator and Linux System from Scratch

> Hacker News story 49603397 · language: en · submitted 2026-09-07
> Web version: https://zeli.app/story/49603397
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 62 · by [Bluestein](<https://news.ycombinator.com/user?id=Bluestein>) · 💬 8
[original](<https://github.com/WerWolv/riscv-emulator>) · [HN discussion](<https://news.ycombinator.com/item?id=49603397>)

## Summary

WerWolv's riscv-emulator is an rv32ima emulator written from scratch that can boot Linux. The repo holds the full emulator and minimal emulated devices in /lib, machine configuration and WebAssembly-facing functions in /main, and the build configs in /boot: a crosstool-ng toolchain config, a Linux kernel defconfig, a minimal device tree, an init program, and an initramfs generated with gen_init_cpio. It accompanies a blog post on bringing up Linux.

## Key quote

> A RISC-V rv32ima emulator capable of booting Linux

## HN discussion (8 comments)

### [kvemkon](<https://news.ycombinator.com/item?id=49657071>)

> Discussion of the corresponding blog post: https://news.ycombinator.com/item?id=49553988

### [Flex247A](<https://news.ycombinator.com/item?id=49662798>)

> Slight tangent: I made a similar but simpler project that runs DOOM on a custom RISC-V emulator: https://github.com/lalitshankarch/rvcore

### [westurner](<https://news.ycombinator.com/item?id=49666351>)

> Emulation of RISC-V in software;
>
> container2wasm has TinyEmu for RISC-V.
>
> dearchap/tinyemu: https://github.com/dearchap/tinyemu
>
> Qemu also supports 32bit and 64bit RISC-V: "RISC-V System emulator — QEMU documentation"  https://www.qemu.org/docs/master/system/target-riscv.html
>
> Emu86 emulates RISC-V in Python and also WASM now IIRC: 
>
> https://news.ycombinator.com/item?id=41899475 .. 
>
> https://github.com/gcallah/Emu86/blob/master/assembler/virtu... :
>
> class RISCVMachine(VirtualMachine):
>
> Also:
>
> (Box96/Box64 emulates x86 on ARM64 and RISC-V; e.g. Portal)
>
> From 
>
> https://news.ycombinator.com/item?id=44979868 :
>
> \> openhwgroup has open Verilog implementations of RISC-V cores from 2 stages through 6 stages that will boot Linux: https://github.com/openhwgroup

---

## Cite

- Page: https://zeli.app/story/49603397
- Date: 2026-09-07
- Source: github.com (https://github.com/WerWolv/riscv-emulator)
- Hacker News: https://news.ycombinator.com/item?id=49603397

## Other languages

- zh: https://zeli.app/zh/story/49603397 · markdown: https://zeli.app/zh/story/49603397.md
- ja: https://zeli.app/ja/story/49603397 · markdown: https://zeli.app/ja/story/49603397.md
- ko: https://zeli.app/ko/story/49603397 · markdown: https://zeli.app/ko/story/49603397.md
- de: https://zeli.app/de/story/49603397 · markdown: https://zeli.app/de/story/49603397.md
- es: https://zeli.app/es/story/49603397 · markdown: https://zeli.app/es/story/49603397.md
- ru: https://zeli.app/ru/story/49603397 · markdown: https://zeli.app/ru/story/49603397.md
