To build a bootable SD card
Step 1: Build spl-mmc binary (there is a compiled binary in repo, can skip build and use our version as-is)
$ make CROSS_COMPILE=riscv64-unknown-elf- p=sun20iw1p1 mmc
Step 2: Format SD card with FAT 32 filesystem.
Step 3: Write mmc image to boot sector of SD card. We have a script to do this (works for macOS only).
$ jz-write-bootsector.sh
See README-sdcard.txt for rest of instructions about using the SD card for boot.