# Bringing Up Linux on a New Platform: A Minimal RISC-V Emulator

Original title: How to bring up the Linux Kernel on a new platform

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

▲ 89 · by [WerWolv](<https://news.ycombinator.com/user?id=WerWolv>) · 💬 8
[original](<https://werwolv.net/posts/linux_bringup/>) · [HN discussion](<https://news.ycombinator.com/item?id=49553988>)

## Summary

WerWolv details the process of getting Linux to boot on a custom platform, using a minimal RISC-V emulator written in C++ as an example. The post covers the essential hardware requirements (CPU with MMU, RAM, timer), compiling a cross-toolchain with crosstool-ng, configuring and building the Linux kernel for RV32IMA, creating a static init program and initramfs, and writing a device tree to describe the emulated hardware. The result is a bootable Linux system in about 2000 lines of code.

## Key quote

> Even though Linux is a very complex piece of software, it doesn’t actually have that many requirements to run.

## HN discussion (8 comments)

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

> I've done this for a cortex-m in qemu (meaning I wrote the chip and peripheral emulation code too for the timer, uart, sd controller with dma, and rcc). But I used buildroot. So much easier to keep track of everything and it's very easy to start with (unlike yocto). I recommend taking a look at buildroot.
>
> You also don't need an MMU to run Linux. Just helps compatibility.
>
> Good work

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

> Excellent post. Your file format RE looks like an additional one to add to the reading queue as well: https://werwolv.net/posts/file_format_reverse_engineering/

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

> Great post, so neat to see it running in the browser!  One question: why not thin the config a little? USB, SOUND, VGA, etc. are all slowing down the boot but don't have hardware to control.

---

## Cite

- Page: https://zeli.app/story/49553988
- Date: 2026-09-03
- Source: werwolv.net (https://werwolv.net/posts/linux_bringup/)
- Hacker News: https://news.ycombinator.com/item?id=49553988

## Other languages

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