How to create u boot spl.bin.normal.out - starfive-tech/edk2 GitHub Wiki
How to create u-boot-spl.bin.normal.out from scratch
- Setup environment
export ARCH=riscv
export CROSS_COMPILE= <RISCV_tool_chain>
<RISCV_tool_chain> - version 10.0.2
- Git clone VisionFive2 U-Boot repository
> git clone https://github.com/starfive-tech/u-boot.git
> cd u-boot
> git checkout VF2_v2.11.5
- Apply patch to U-Boot
Download patch(uboot_spl_patch.zip)from here
> cd u-boot
> git apply < 0001_u-boot_spl_edk2.patch
- Compile U-Boot code
Please refer to this link
- Create U-Boot SPL
Please refer to this link