TEI0022 Build uboot - ArrowElectronics/data-storm-daq GitHub Wiki

Table of Contents

As a prerequisite the hdl must be built and referenced when creating a custom version of uboot.

  1. Build with provided Virtual Machine
  2. Build with user Linux Host

Build with provided Virtual Machine

  1. Open an embedded command shell from the root directory

     $ ./intelFPGA/18.0/embedded/embedded_command_shell.sh  
    
  2. Launch bsp-editor

     $ bsp-editor 
    
  3. Create a new BSP

     File --> New HPS BSP  
    
  4. Reference the Preloader settings directory

     Copy the hps_isw_handoff folder from the Windows PC where the hdl project was compiled to the VM.
    
     Navigate to the hdl project's hps_isw_handoff/system_bd_sys_hps sub directory. Select "Open", then select "OK".
    
  1. Generate the Preloader

     Select "Generate" to create the Preloader project. Select "Exit" to close bsp-editor.
    
  2. Build Preloader

     $ cd <where bsp-editor was invoked from>/software/spl_bsp
     $ make  
    
  3. preloader-mkpimage.bin is located in the spl_bsp directory

  4. Build uboot

     $ cd <where bsp-editor was invoked from>/software/spl_bsp
     $ make uboot
    
  5. u-boot.img is located in the spl_bsp/uboot-socfpga directory

Build with user Linux Host

a - Setting up the tool chain

  1. Download the Intel SoC FPGA Embedded Development Suite

  2. Follow the download and install instructions

b - Building uboot

  1. Open an embedded command shell

     $ ./intelFPGA/18.0/embedded/embedded_command_shell.sh  
    
  2. Launch bsp-editor

     $ bsp-editor 
    
  3. Create a new BSP

     File --> New HPS BSP  
    
  4. Reference the Preloader settings directory

     Navigate to the hdl project's hps_isw_handoff/system_bd_sys_hps sub directory. Select "Open", then select "OK".
    
  1. Generate the Preloader

     Select "Generate" to create the Preloader project. Select "Exit" to close bsp-editor.
    
  2. Build Preloader

     $ cd <where bsp-editor was invoked from>/software/spl_bsp
     $ make  
    
  3. preloader-mkpimage.bin is located in the spl_bsp directory

  4. Build uboot

     $ cd <where bsp-editor was invoked from>/software/spl_bsp/
     $ make uboot
    
  5. u-boot.img is located in the spl_bsp/uboot-socfpga directory





Next - Update the SD Card
Return to Build GHRD

⚠️ **GitHub.com Fallback** ⚠️