Skip to content

AD FMCDAQ2 Platform Build uboot

nnaufel edited this page Apr 28, 2020 · 6 revisions

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

     $ ./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

     If compiling the HDL on Windows, copy <install path>/hdl/projects/daq2/iwg24d/hps_isw_handoff folder to the VM.
     Caution : Do not link from the VM to the Windows file system.
     Navigate to the hdl project hps_isw_handoff sub directory. Select "Open", then select "OK".
    
  1. Specify the rbf file

     uboot will read the FPGA image Raw Binary File (RBF) from the FAT partition of the SD card. Enter the filename 
     exactly as shown in the image below - socfpga.rbf. 
     Select "Generate" to create the uboot project. Select "Exit" to close bsp-editor.
    
  1. Build uboot

     $ cd <folder where bsp-editor invoked from>/software/uboot_bsp/
     $ make  
    
  2. uboot_w_dtb-mkpimage.bin is located in the uboot_bsp 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 hps_isw_handoff sub directory. Select "Open", then select "OK". 
    
  1. Specify the rbf file

     uboot will read the FPFA image Raw Binary File (RBF) from the FAT partition of the SD card. Enter the filename 
     exactly as shown in the image below - socfpga.rbf. 
     Select "Generate" to create the uboot project. Select "Exit" to close bsp-editor.
    
  1. Build uboot

     $ cd <hdl repository>/hdl/project/daq2/iwg24d/software/uboot_bsp
     $ make  
    
  2. uboot_w_dtb-mkpimage.bin is located in the uboot_bsp directory



Next - Update the SD Card

Return to Build the Example Design
Return to AD-FMCDAQ2 Platform User Guide

Clone this wiki locally