Open main menu

DAVE Developer's Wiki β

Changes

Creating and building example Vivado project (BELK/BXELK)

454 bytes removed, 13:42, 7 January 2020
Command line based procedure
Define the correct ones according the target SoM.<br>
For Bora SoM use:
*<code>export RECREATE_PRJ recreate_prj_bora_BASE.tcl</code>*<code>export PRJ_DIR BASE_NAME bora</code>*<code>export BITSTREAM_FILE bora_wrapper</code>*<code>export PS7_DIR bora_processing_system7_0_0</code>
*<code>export U-BOOT_PS7_DIR bora</code>
For BoraLite SoM use:
*<code>export RECREATE_PRJ recreate_prj_boralite_BASE.tcl</code>*<code>export PRJ_DIR BASE_NAME boralite</code>*<code>export BITSTREAM_FILE boralite_wrapper</code>*<code>export PS7_DIR boralite_processing_system7_0_0</code>
*<code>export U-BOOT_PS7_DIR bora</code>
For BoraX SoM use:
*<code>export RECREATE_PRJ recreate_prj_borax_BASE.tcl</code>*<code>export PRJ_DIR BASE_NAME borax</code>*<code>export BITSTREAM_FILE borax_wrapper</code>*<code>export PS7_DIR borax_processing_system7_0_0</code>
*<code>export U-BOOT_PS7_DIR borax</code>
}}
<pre>
. /opt/Xilinx/Vivado/<Vivado_version>/settings64.sh
vivado -mode tcl -source scripts/recreate_prj_${RECREATE_PRJBASE_NAME} _BASE.tcl -notrace -tclargs "gen_bitstream"
</pre>
*At the end of the bitstream build process, the <code>build_prj_*</code> script allows to automatically export hardware and lauch SDK.
*The bitstream file is now present in <code><bora_repo>/vivado/${PRJ_DIRBASE_NAME}.runs/impl_1/${BITSTREAM_FILEBASE_NAME}_wrapper.bit</code> and <code><bora_repo>/vivado/${PRJ_DIRBASE_NAME}.runs/impl_1/${BITSTREAM_FILEBASE_NAME}_wrapper.bin</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/${PRJ_DIRBASE_NAME}/ip/${PS7_DIRBASE_NAME}_processing_system7_0_0/ps7_init_gpl.* <U-boot_src_dir>/board/dave/bora/${U-BOOT_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.
a000298_approval, dave_user
551
edits