TEI0022 Build uboot - ArrowElectronics/data-storm-daq GitHub Wiki
As a prerequisite the hdl must be built and referenced when creating a custom version of uboot.
-
Open an embedded command shell from the root directory
$ ./intelFPGA/18.0/embedded/embedded_command_shell.sh
-
Launch bsp-editor
$ bsp-editor
-
Create a new BSP
File --> New HPS BSP
-
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".

-
Generate the Preloader
Select "Generate" to create the Preloader project. Select "Exit" to close bsp-editor.
-
Build Preloader
$ cd <where bsp-editor was invoked from>/software/spl_bsp $ make
-
preloader-mkpimage.bin is located in the spl_bsp directory
-
Build uboot
$ cd <where bsp-editor was invoked from>/software/spl_bsp $ make uboot
-
u-boot.img is located in the spl_bsp/uboot-socfpga directory
-
Download the Intel SoC FPGA Embedded Development Suite
-
Follow the download and install instructions
-
Open an embedded command shell
$ ./intelFPGA/18.0/embedded/embedded_command_shell.sh
-
Launch bsp-editor
$ bsp-editor
-
Create a new BSP
File --> New HPS BSP
-
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".

-
Generate the Preloader
Select "Generate" to create the Preloader project. Select "Exit" to close bsp-editor.
-
Build Preloader
$ cd <where bsp-editor was invoked from>/software/spl_bsp $ make
-
preloader-mkpimage.bin is located in the spl_bsp directory
-
Build uboot
$ cd <where bsp-editor was invoked from>/software/spl_bsp/ $ make uboot
-
u-boot.img is located in the spl_bsp/uboot-socfpga directory