Skip to content
msjtwPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Hello, World of {os_name}!

Building BusyBox (RISC-V 32-bit, musl)

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.sh

This installs BusyBox with hard-linked applets, as required by the kernel's current filesystem implementation.

Changing the configuration

make -C busybox-1.38.0 menuconfig
cp busybox-1.38.0/.config configs/busybox.config

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages