Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
resources:tools-software:linux-software:build-the-zynq-boot-image [14 Feb 2018 11:40] – fixup Michael Hennerichresources:tools-software:linux-software:build-the-zynq-boot-image [31 Jan 2023 08:10] – Replaced the obsolete Kuiper Linux page link Joyce Velasco
Line 16: Line 16:
 ===== Use script to build BOOT.BIN ===== ===== Use script to build BOOT.BIN =====
  
-For ease of use we provide a bash shell script which allows building BOOT.BIN from system_top.hdf u-boot.elf+For ease of use we provide a bash shell script which allows building BOOT.BIN from system_top.hdf and u-boot.elf 
 + 
 +==== Download ====
  
 The script can be downloaded from here:  The script can be downloaded from here: 
Line 22: Line 24:
   * [[https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/zynq_boot_bin/build_boot_bin.sh|build_boot_bin.sh]]   * [[https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/zynq_boot_bin/build_boot_bin.sh|build_boot_bin.sh]]
  
-  * After downloading the script you need to make it executable:+ 
 + <WRAP left tip round box 100%>**NOTE: After downloading the script you need to make it executable**\\ 
 +<xterm> 
 +$ chmod +x build_boot_bin.sh 
 +</xterm> 
 +</WRAP> 
 + 
 +==== Usage ====
  
 <code> <code>
-#chmod +x build_boot_bin.sh+usage: build_boot_bin.sh system_top.xsa u-boot.elf [output-archive]
 </code> </code>
 +  * Path to ''system_top.xsa'' and ''u-boot.elf'' are required parameters.
 +  * An optionally 3rd ''name'' parameter can be given to tar.gz the output directory. (''name''.tar.gz)
 +  * Build output is located in a local directory named: output_boot_bin.
 +  * This script requires Xilinx Vitis and bootgen in the PATH.\\
 +    * A simple way is to source vivado settings[32|64].sh:
  
 <code> <code>
-usage: build_boot_bin.sh system_top.hdf u-boot.elf [output-archive]+$ source /opt/Xilinx/Vivado/202x.x/settings64.sh
 </code> </code>
  
-  This script requires Xilinx XSDK and bootgen in the PATH.\\ +     When using **cygwin**, you can add the following in the ~/.bashrc configuration file:
-    * A simple way is to source vivado settings:+
  
 <code> <code>
-#source /opt/Xilinx/Vivado/201x.x/settings64.sh+export PATH=$PATH:/cygdrive/c/Xilinx/Vivado/202x.x/bin 
 +export PATH=$PATH:/cygdrive/c/Xilinx/SDK/202x.x/bin
 </code> </code>
 +There is also a version of script that works in Windows Powershell: [[ https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/zynq_boot_bin/build_boot_bin.ps1 | build_boot_bin.ps1 ]]
  
-  Build output is located in a local directory namedoutput_boot_bin. + <WRAP left tip round box 100%>**NOTEu-boot.elf**\\ 
-  Path to system_top.hdf u-boot.elf are required parameters. +For those who don't want to build u-boot themselves.\\  
-  An optionally 3rd parameter can be given to tar.gz the output directory.+The **u-boot.elf*can be extracted from the project folder on the [[:resources:tools-software:linux-software:kuiper-linux |SD Card image]], **bootgen_sysfiles.tgz** 
  
-  +</WRAP>
resources/tools-software/linux-software/build-the-zynq-boot-image.txt · Last modified: 20 Mar 2023 12:38 by Iulia Moldovan