Skip to content

ADRV9371 Platform Build uboot

skravats edited this page May 21, 2020 · 13 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/adrv9371x/mitysom_a10s_gen2 folder to the VM.
     Caution : Do not link from the VM to the Windows file system.
     Navigate to the 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 - adrv9371x_mitysom_a10s.rbf. 
     Select "Generate" to create the uboot project. Select "Exit" to close bsp-editor.
    
  1. Apply custom uboot patch

     $ cd <copy location>/mitysom_a10s_gen2/software/uboot_bsp
     $ make patch-apply
    
  2. Build uboot

     $ make  
    
  3. 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

     Copy <install path>/hdl/projects/adrv9371x/mitysom_a10s_gen2 folder from the Windows build machine to the Linux host         
     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 - adrv9371x_mitysom_a10s.rbf. 
     Select "Generate" to create the uboot project. Select "Exit" to close bsp-editor.
    
  1. Apply custom uboot patch

     $ cd <copy location>/mitysom_a10s_gen2/software/uboot_bsp
     $ make patch-apply
    
  2. Build uboot

     $ make  
    
  3. 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 ADRV9371 Platform User Guide

Clone this wiki locally