1. Dependencies
Ensure you have the required toolchains installed:
riscv64-unknown-elf-gcc, qemu-system-riscv64, mkimage (u-boot-tools), make, and cpio.
2. Build & Run
# Build the kernel, initramfs, and boot in QEMU (8 CPU cores)
make qemu
# --- Other useful commands ---
make # Build kernel.fit for real board (tested on OrangePi RV2)
make debug # Boot in QEMU and pause for GDB connection (-S -s)
make clean # Remove all build artifacts