Open main menu

DAVE Developer's Wiki β

Changes

Creating and building example Vivado project (BELK/BXELK)

627 bytes added, 13:15, 7 January 2020
Command line based procedure
==Command line based procedure==
{{ImportantMessage|text=The following procedure is detailed for Bora boardmake use of ambient variables to address all our boards.<br>Define the correct ones according the target SoM.<br>For BoraX board please replaceBora SoM use:*<code>export RECREATE_PRJ recreate_prj_bora_BASE.tcl</code>*<code>export PRJ_FOLDER bora</code> with *<code>boraxexport BITSTREAM_FILE bora_wrapper</code>*<code>recreate_project_bora_BASEexport PS7_FOLDER bora_processing_system7_0_0</code> with *<code>recreate_project_borax_BASEexport U-BOOT_PS7_FOLDER bora</code>For BoraLite board please replaceSoM use:*<code>export RECREATE_PRJ recreate_prj_boralite_BASE.tcl</code>*<code>export PRJ_FOLDER boralite</code>*<code>export BITSTREAM_FILE boralite_wrapper</code>*<code>export PS7_FOLDER boralite_processing_system7_0_0</code>*<code>export U-BOOT_PS7_FOLDER bora</code> with For BoraX SoM use:*<code>export RECREATE_PRJ recreate_prj_borax_BASE.tcl</code>*<code>boraliteexport PRJ_FOLDER borax</code>*<code>export BITSTREAM_FILE borax_wrapper</code>*<code>recreate_project_bora_BASEexport PS7_FOLDER borax_processing_system7_0_0</code> with *<code>recreate_project_boralite_BASEexport U-BOOT_PS7_FOLDER borax</code>
}}
<pre>
. /opt/Xilinx/Vivado/<Vivado_version>/settings64.sh
vivado -mode tcl -source scripts/recreate_project_bora_BASE.tcl ${RECREATE_PRJ} -notrace -tclargs "gen_bitstream"
</pre>
*At the end of the bitstream build process, the <code>build_project_build_prj_*</code> script allows to automatically export hardware and lauch SDK.*The bitstream file is now present in <code><bora_repo>/vivado/${PRJ_FOLDER}.runs/impl_1/${BITSTREAM_FILE}.bit</code> and <code>.bin</code> format at <code><bora_repo>/vivado/bora${PRJ_FOLDER}.runs/impl_1/bora_wrapper${BITSTREAM_FILE}.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/bora${PRJ_FOLDER}/ip/bora_processing_system7_0_0${PS7_FOLDER}/ps7_init_gpl.* <U-boot_src_dir>/board/dave/bora/bora${U-BOOT_PS7_FOLDER}/</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