Open main menu

DAVE Developer's Wiki β

Changes

Creating and building example Vivado project (BELK/BXELK)

8 bytes removed, 15:53, 21 February 2020
no edit summary
Define the correct ones according the target SoM.<br>
For Bora SoM use:
*<code>export BASE_NAME =bora</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=bora</code>
For BoraLite SoM use:
*<code>export BASE_NAME =boralite</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=bora</code>
For BoraX SoM use:
*<code>export BASE_NAME =borax</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=borax</code>
}}
*By default FSBL is not used anymore in the boot process. U-Boot SPL (first-stage bootloader) is used instead. PS configuration files are used to build U-boot binaries.
**Copy the <code>ps7_init_gpl.c</code> and <code>ps7_init_gpl.h</code> source files into U-boot source code directory using the following command example for Bora:
:<code>cp <bora_repo>/bd/${BASE_NAME}/ip/${BASE_NAME}_processing_system7_0_0/ps7_init_gpl.* <U-boot_src_dir>/board/dave/bora/${U-BOOT_PS7_DIRUBOOT_PS7_DIR}/</code>
:*Follow [[Building_U-Boot_(BELK/BXELK) | U-boot build instructions]] to build U-boot using new PS configurations. '''Please note that the U-Boot binary images released along with BELK/BXELK were already built upon the <code>ps7_init_gpl.c</code> and <code>ps7_init_gpl.h</code> source files generated by the Vivado project described in this article'''. As such, it is not generally required to rebuild U-Boot.
:**The PS configurations are the same for Bora and BoraLite boards.
Define the correct ones according the target SoM.<br>
For Bora SoM use:
*<code>export BORA_SOM =Bora</code>*<code>export BASE_NAME =bora</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=bora</code>
For BoraLite SoM use:
*<code>export BORA_SOM =BoraLite</code>*<code>export BASE_NAME =boralite</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=bora</code>
For BoraX SoM use:
*<code>export BORA_SOM =BoraX</code>*<code>export BASE_NAME =borax</code>*<code>export U-BOOT_PS7_DIR UBOOT_PS7_DIR=borax</code>
}}
*The bitstream file is now present in <code><project_directory>/<prj_name>.runs/impl_1/${BASE_NAME}_wrapper.bit</code> and <code><project_directory>/<prj_name>.runs/impl_1/${BASE_NAME}_wrapper.bin</code>.
*Copy the <code>ps7_init_gpl.c</code> and <code>ps7_init_gpl.h</code> source files into U-boot source code directory using the following command example for Bora:
:<code>cp <project_directory>/<prj_name>.srcs/sources_1/bd/${BASE_NAME}/ip/<prj_name>_processing_system7_0_0/ps7_init_gpl.* <U-boot_src_dir>/board/dave/bora/${U-BOOT_PS7_DIRUBOOT_PS7_DIR}/</code>Follow [[Building_U-Boot_(BELK/BXELK) | U-boot build instructions]] to build U-boot using new PS configurations. '''Please note that the U-Boot binary images released along with BELK/BXELK were already built upon the <code>ps7_init_gpl.c</code> and <code>ps7_init_gpl.h</code> source files generated by the Vivado project described in this article'''. As such, it is not generally required to rebuild U-Boot.
-----
{{notelist}}
a000298_approval, dave_user
551
edits