Busybox-based Linux distro from scratch
re-ws.pl
re-ws.pl
Sadly this guide skips all the "fun parts" of bootstrapping your own compiler toolchain first, and instead downloads a pre-built one from a third party.
Based on my project, I also decided to write a small guide similar to this one, for the Raspberry Pi 3 as a target[1], but also included the toolchain bootstrapping process[2].
[1] https://github.com/AgentD/diy-linux-guide
[2] https://github.com/AgentD/diy-linux-guide/blob/master/crossc...
https://linuxdevices.org/turning-the-sega-dreamcast-into-a-l...
I might just give it a try for shits and giggles; I remember trying "Linux From Scratch" a decade or so ago and it took hours / days to get to a "bootable" state.
But anything beyond that is a maze of vaguely specified dependencies. LFS was a good starting point, but i havent checked it for a while and I'm not sure it kept up with all the recent(ish) developments in distro building.
Hmm I remember it being that easy back in the early 2000s. IIRC it was enough to copy the kernel to a floppy disk and have it boot. Well, back then the Kernel and Busybox fit easily on a single 1.5MB disk...
It was surprisingly capable for being so tiny and eventually led me to install Slackware (https://en.wikipedia.org/wiki/Slackware) on a better machine that had a CD-ROM drive.
This stackoverflow question suggests support for this was explicitly dropped from the linux kernel: https://superuser.com/questions/415429/how-to-boot-linux-ker...
But the later convention was to create a loopback device tied to a disk image, mkfs.minix it, mount it, copy the kernel and an initrd, and run lilo on the loopback device. Then unmount and decouple the loopback from the disk image and dd that to the floppy. It didn't really take up any extra space and made it easier to update your initrd or kernel.
[1] https://k1ss.org
On one of my less-featured ARM boards zImage can get down to < 6MiB.
This brings back memories of when Linux was far more experimental. LILO was the new hotness in booting Linux (the much friendlier GRUB came later).
Also, (much) later, when Gentoo came along and you had to basically bootstrap your whole system...