Last week, I built a tiny Linux system from scratch, and booted it on my laptop!
Here’s what it looked like:
Let me tell you how I got there.
I wanted to learn more about how the Linux kernel works, and what’s involved in booting it. So I set myself the goal to cobble together the bare neccessities required to boot into a working shell.
In the end, I had a tiny Linux system with a size of 2.5 MB, which I could boot from a USB stick on my laptop!
What you’ll get out of this article:
- A better understanding of what happens when your computer boots Linux.
- What terms like bzImage, initrd and UEFI mean.
- Ideas for how to deal with the problems that I encountered.
- And if you haven’t used Nix, it might be interesting to see how I used it to manage the tools and libraries I needed.