opensbi
sudo apt install gcc-riscv64-linux-gnugit clone https://github.com/riscv-software-src/opensbi.git
cd opensbi
make CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generic FW_PIC=y -j$(nproc)
uboot
主线未支持
sudo apt install bison swig flex libpython3.11-dev python3-setuptoolshttps://github.com/smaeul/u-boot/releases/tag/d1-2022-10-31 下载 .zip
或
git clone https://github.com/smaeul/u-boot.git -b allwinnermake nezha_defconfig
make CROSS_COMPILE=riscv64-linux-gnu- OPENSBI=../opensbi/build/platform/generic/firmware/fw_dynamic.bin -j$(nproc)
测试
sudo sgdisk /dev/sdc -o
sudo dd if=./u-boot-sunxi-with-spl.bin of=/dev/sdc seek=16