Open main menu

DAVE Developer's Wiki β

Changes

Creating and building example Vivado project (BELK/BXELK)

221 bytes added, 15:14, 29 October 2015
GUI based procedure
**Click on Finish
**Apply the patch, right-clicking on bora_FSBL in Project Explorer and then clicking on Team -> Apply Patch..
*From Browse... open the file <code><bora_repo>/patch/belk-sd-boot.patch**Click NextSelect Apply the patch to the selected file, folder or project: and select main.c from bora_FSBL -</code> src
**Click Next
**Select ''Apply the patch to the selected file, folder or project'': and select <code>main.c</code> from ''bora_FSBL -> src''
**Click ''Next''
**Check that the patch is correctly applied to the source code and click on ''Finish''
*the FSBL (ELF file) is built automatically
*create the binary from the FSBL ELF chosing one of the following options:
**manually launch the command: <code>arm-xilinx-eabi-objcopy -v -O binary $PROJ_DIR/bora.sdk/SDK/SDK_Export/bora_FSBL/Debug/bora_FSBL.elf $PROJ_DIR/bora.sdk/SDK/SDK_Export/bora_FSBL/Debug/bora_FSBL.bin</code>**configure the automatic binary generation on project build. In ''Project Explorer'', right-click on “bora_FSBL” <code>bora_FSBL</code> project and select ''C/C++ Build Settings '' and add the command <code>arm-xilinx-eabi-objcopy -v -O binary ${ProjName}.elf ${ProjName}.bin </code> on ''Post-build steps''*create the <code>BOOT.bin </code> image (single file including FSBL, FPGA and U-boot for uSD boot:**select the <code>bora_FSBL </code> project in ''Project Explorer''**click on ''Xilinx Tools -> Create Zynq Boot Image''
*if the project is correctly configured, the tool builds automatically all the component listed in the form, so just add U-Boot to the list.
*otherwise, select ''Create new BIF file '' and set the output path and in ''Boot image partitions '' add the following files:**bora_FSBL.elf, which can be found in the project <code>Debug </code> directory. N.B. check that the ''Partition Type '' for FSBL is ''bootloader''**<code>bora_wrapper.bit</code>, which is the bitstream generated by the Vivado project (''Partition Type '' must be ''Datafile'')**<code>u-boot.elf</code>, which is the compiled U-Boot with <code>.elf </code> extension (''Partition Type '' must be ''Datafile'')*in ''Output path'', select the path for the <code>BOOT.bin </code> file
4,650
edits