Skip to content

How to create u boot spl.bin.normal.out

johnchewyy edited this page Jun 1, 2023 · 3 revisions

How to create u-boot-spl.bin.normal.out from scratch

  1. Setup environment
export ARCH=riscv 
export CROSS_COMPILE= <RISCV_tool_chain>

<RISCV_tool_chain> - version 10.0.2

  1. 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
  1. Apply patch to U-Boot

Download patch(uboot_spl_patch.zip)from here

> cd u-boot
> git apply < 0001_u-boot_spl_edk2.patch
  1. Compile U-Boot code

Please refer to this link

  1. Create U-Boot SPL

Please refer to this link