This project provides a step-by-step guide to building a compact Linux operating system by customizing and compiling the Linux kernel and Busybox from source code.
Overview
The goal is to build a simplified Linux distro from scratch that boots directly to a shell prompt. This allows maximum flexibility to tweak and configure your own Linux OS for specific use cases like running containers, IoT devices, or other embedded systems.
Key features:
Custom compiled Linux 5.x kernel
Busybox for lightweight system utilities
Tiny initramfs instead of full root filesystem
Syslinux bootloader
Build Instructions
The guide contains detailed build and configuration steps including:
Setting up build dependencies
Downloading Linux and Busybox source code
Configuring kernel via make menuconfig
Compiling the kernel and busybox
Creating initramfs
Configuring Syslinux boot files
In the end you will have a ~5MB Linux system image ready to boot on x86_64.
Usage Examples
This minimal Linux distro is highly customizable for uses like:
Embedded systems development
Low resource devices like IoT
Container hosts
Appliances or network devices
Education and learning
Contributing
Contributions to improve build steps, customize configurations, and expand documentation are welcomed through pull requests.