BusyBox is pinned to upstream 1.38.0. Needs a
riscv32-unknown-linux-musl- cross-toolchain.
From the repository root:
git submodule update --init --recursive
cp configs/busybox.config busybox-1.38.0/.config
make -C busybox-1.38.0 oldconfig
make -C busybox-1.38.0 -j"$(nproc)"The saved configuration builds a statically linked RV32 executable using musl.
The binary is busybox-1.38.0/busybox.
To create the kernel's rootfs image (requires mkfs.ext4 from e2fsprogs):
./kernel/mkrootfs.shThis installs BusyBox with hard-linked applets, as required by the kernel's current filesystem implementation.
make -C busybox-1.38.0 menuconfig
cp busybox-1.38.0/.config configs/busybox.config