Jul 1, 2024
Linux Kernel
kernel.org (use version 5.x).make defconfig and compile with make -j8.BusyBox
busybox.net (version 1.34.1 recommended).make defconfig.CONFIG_STATIC=y).make -j8.Preparation
busybox.sh and temp.sh) for step-by-step compilation.Downloading and Extracting Sources
src directory to download and extract files.Kernel Compilation
BusyBox Compilation
sed for modifying .config).musl and kernel-headers-musl.musl-gcc to compile BusyBox.File Structure
initrd, bin, dev, proc, sys.bin.bin.Init Script
bin/sh).poweroff -f to avoid kernel panic on exit.Packaging
cpio to create an initial RAM file system (initrd.img).QEMU Configuration
qemu-system-x86_64 to boot the system.-kernel for the kernel image, -initrd for the initial ramdisk image.-nographic to run without a graphical window.Debugging Tips
init script.