If you are building an outdoor camera trap or an offline acoustic sensor, you cannot wait 45 seconds for systemd to start audio servers, Bluetooth daemons, and package managers before capturing an event.
By using Buildroot to compile a minimal BusyBox root filesystem with a tailored Linux 6.6 LTS kernel, we reduced image size to just 36.8 megabytes.
02 / KERNEL SLICING
Removing 90% of the kernel drivers.
Most generic kernels include drivers for 4,000 legacy PCI devices, floppy disk controllers, and audio chipsets you will never use on an embedded IoT board. Here is our stripped-down config file:
buildthatcrazy_defconfig
# Buildroot Configuration for Ultra-Fast IoT Boot
BR2_arm=y
BR2_cortex_a53=y
BR2_ARM_FPU_VFPV4=y
# Strip init system down to BusyBox
BR2_INIT_BUSYBOX=y
# Disable all display and sound subsystems
# CONFIG_DRM is not set
# CONFIG_SOUND is not set
# Enable read-only squashfs root with zstd compression
BR2_TARGET_ROOTFS_SQUASHFS=y
BR2_TARGET_ROOTFS_SQUASHFS_ZSTD=y