Prebuilt binaries of busybox for embedded platforms.
- Install musl toolchain for the corresponding platform, see its README
- Install libncurses
- Add the toolchain above to PATH
- Download and unpack busybox source
- export
ARCH
andCROSS_COMPILE
to your platorm (for example,riscv
andriscv64-linux-musl
) - Run
make defconfig
- Run
make menuconfig
, enable static binary, then choose the applets you need - Run
make -j${NCPUS}
You will get busybox
and busybox_unstripped
binaries. Put them in corresponding directories.
Verify:
$ file busybox_unstripped
busybox_unstripped: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped