Site Search


Creating busybox from scratch

mkdir initrd_from_scratch

cd initrd_from_scratch/


bzip2 -d busybox-1.19.3.tar.bz2 && tar -xf busybox-1.19.3.tar && rm busybox-1.19.3.tar

cd busybox-1.19.3/

make menuconfig

“enable static build in the menuconfig dialog”

“standalone shell” in shells is important, too

.config gets created


make install

chmod 4755 ./_install/bin/busybox

all lib directories can be emptied as busybox doesn’t require any lib nor does init needs them.

This way it’s easier to deploy new “apps” for the initrd image.

cp -R _install/* /root/kwort-development/kwort32/isolinux/initrd_tree/


statifier only works when the following is set:

sysctl -w kernel.randomize_va_space=0

also the kernel has to be compiled with Disable heap randomization

this has to be set in the initrd as well.

statified binaries can be compressed with upx:

upx -9 --force-execve $binary