Open main menu

DAVE Developer's Wiki β

Changes

Creating and building example Vivado project (BELK/BXELK)

42 bytes removed, 13:37, 7 January 2020
Command line based procedure
For Bora SoM use:
*<code>export RECREATE_PRJ recreate_prj_bora_BASE.tcl</code>
*<code>export PRJ_FOLDER PRJ_DIR bora</code>
*<code>export BITSTREAM_FILE bora_wrapper</code>
*<code>export PS7_FOLDER PS7_DIR bora_processing_system7_0_0</code>*<code>export U-BOOT_PS7_FOLDER BOOT_PS7_DIR bora</code>
For BoraLite SoM use:
*<code>export RECREATE_PRJ recreate_prj_boralite_BASE.tcl</code>
*<code>export PRJ_FOLDER PRJ_DIR boralite</code>
*<code>export BITSTREAM_FILE boralite_wrapper</code>
*<code>export PS7_FOLDER PS7_DIR boralite_processing_system7_0_0</code>*<code>export U-BOOT_PS7_FOLDER BOOT_PS7_DIR bora</code>
For BoraX SoM use:
*<code>export RECREATE_PRJ recreate_prj_borax_BASE.tcl</code>
*<code>export PRJ_FOLDER PRJ_DIR borax</code>
*<code>export BITSTREAM_FILE borax_wrapper</code>
*<code>export PS7_FOLDER PS7_DIR borax_processing_system7_0_0</code>*<code>export U-BOOT_PS7_FOLDER BOOT_PS7_DIR borax</code>
}}
</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_FOLDERPRJ_DIR}.runs/impl_1/${BITSTREAM_FILE}.bit</code> and <code><bora_repo>/vivado/${PRJ_FOLDERPRJ_DIR}.runs/impl_1/${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/${PRJ_FOLDERPRJ_DIR}/ip/${PS7_FOLDERPS7_DIR}/ps7_init_gpl.* <U-boot_src_dir>/board/dave/bora/${U-BOOT_PS7_FOLDERBOOT_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