我用 https://linux-sunxi.org/Allwinner_Nezha#U-Boot 这个文档里面的
git clone https://github.com/smaeul/u-boot -b d1-wip
pushd u-boot
make CROSS_COMPILE=riscv64-linux-gnu- nezha_defconfig
make CROSS_COMPILE=riscv64-linux-gnu- OPENSBI=../opensbi/build/platform/generic/firmware/fw_dynamic.bin
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=8192 seek=1
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=8192 seek=16
编译后烧写到sd卡后, 板子直接进入usb 下载模式了