A hands-on guide to building a minimal Linux distribution from scratch on RISC-V architecture using QEMU. Covers compiling the Linux kernel, creating an initramfs filesystem, writing init processes in C and Go, and using u-root to build a functional userspace with networking capabilities. Explains core OS concepts including kernel responsibilities, user space vs kernel space, the boot process, and how distributions layer infrastructure on top of the kernel.
Table of contents
Table of contentsWhat is an OS kernel?What is a Linux distribution?How does “infrastructure on top of infrastructure” run?The init process (and its “children”)Building our almost useless Linux micro distrbibutionPackage managersThe monster of initGitHub repo3 Comments
Sort: