How-to-create-u-boot-spl.bin.normal.out
johnchewyy edited this page 11 months ago

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

  1. Setup environment

    export ARCH=riscv 
    export CROSS_COMPILE= <RISCV_tool_chain>
    

    - version 10.0.2

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

    Download patch(uboot_spl_patch.zip)from here

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

    Please refer to this link

  5. Create U-Boot SPL

    Please refer to this link