MMC=/dev/mmcblk0 git clone https://github.com/riscv-software-src/opensbi pushd opensbi* PLATFORM=generic FW_PIC=y make $NUMJOBS popd git clone https://github.com/smaeul/u-boot -b d1-wip pushd u-boot* make $NUMJOBS nezha_defconfig make $NUMJOBS OPENSBI=../opensbi*/build/platform/generic/firmware/fw_dynamic.bin dd if=u-boot-sunxi-with-spl.bin of=$MMC bs=8192 seek=1 # Primary location, incompatible with GPT #dd if=u-boot-sunxi-with-spl.bin of=$MMC bs=8192 seek=16 # Backup location popd #git clone https://github.com/smaeul/linux -b d1-wip