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
resources:tools-software:linux-drivers:platforms:zynq [05 Apr 2021 10:47] Ioana Chelaruresources:tools-software:linux-drivers:platforms:zynq [31 Jan 2023 09:40] (current) – Replaced the obsolete Kuiper Linux page link Joyce Velasco
Line 75: Line 75:
 ===== Alternative method of building the Zynq boot image ===== ===== Alternative method of building the Zynq boot image =====
  
-{{page>resources/tools-software/linux-software/build-the-zynq-boot-image&noheader&noeditbtn}}+{The boot image BOOT.BIN is build using the bootgen tool which requires several input files.\\ 
 + 
 +Instructions on how to build the Hardware Description File (HDF) handover file can be found here: 
 + 
 +  * [[resources/fpga/docs/build|Building HDL]] 
 + 
 + 
 +All further steps are lengthy explained on the [[http://www.wiki.xilinx.com|Xilinx Wiki Page]] 
 + 
 +  * [[http://www.wiki.xilinx.com/Build+U-Boot|Build u-boot]] 
 +     * Make sure you checkout the proper git tag matching your Vivado Version (xilinx-v2018.2, xilinx-v2017.4, ...) 
 +  * [[http://www.wiki.xilinx.com/Build+FSBL|Build FSBL]] 
 +  * [[http://www.wiki.xilinx.com/Build+PMU+Firmware|Build PMU Frimware]] 
 +  * [[http://www.wiki.xilinx.com/Build+Arm+Trusted+Firmware+%28ATF%29|Build Arm Trusted Firmware (ATF)]] 
 +  * [[http://www.wiki.xilinx.com/Prepare+Boot+Image|Build BOOT image]] 
 + 
 +===== 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 and either bl31.elf or a path to the Arm Trusted Firmware repository 
 + 
 +==== Download ==== 
 + 
 +The script can be downloaded from here:  
 + 
 +  * [[https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/zynqmp_boot_bin/build_zynqmp_boot_bin.sh|build_zynqmp_boot_bin.sh]] 
 + 
 + 
 + <WRAP left tip round box 100%>**NOTE: After downloading the script you need to make it executable**\\ 
 +<xterm> 
 +$ chmod +x build_zynqmp_boot_bin.sh 
 +</xterm> 
 +</WRAP> 
 + 
 + 
 + 
 +==== Usage ==== 
 + 
 + 
 +<code> 
 +usage: build_zynqmp_boot_bin.sh system_top.xsa u-boot.elf (download | bl31.elf | <path-to-arm-trusted-firmware-source>) [output-archive] 
 +</code> 
 +  * Path to ''system_top.xsa'' and ''u-boot.elf'' are required parameters. 
 +  * The 3rd argument must either be ''download'' (which will git clone the ATF repository), ''bl31.elf'' or the file system ''path'' to the Arm Trusted Firmware source code repository 
 +  * An optionally 4th ''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 for Linux: 
 +<code> 
 +$ source /opt/Xilinx/Vivado/202x.x/settings64.sh 
 +</code> 
 + 
 +    * When using **cygwin**, you can add the following in the ~/.bashrc configuration file: 
 + 
 +<code> 
 +export PATH=$PATH:/cygdrive/c/Xilinx/Vivado/202x.x/bin 
 +export PATH=$PATH:/cygdrive/c/Xilinx/Vitis/202x.x/bin 
 +export PATH=$PATH:/cygdrive/c/Xilinx/Vitis/202x.x/gnu/microblaze/nt/bin 
 +</code> 
 + 
 +<WRAP left tip round box 100%>**NOTE: u-boot.elf**\\ 
 +For those who don't want to build u-boot themselves.\\  
 +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>
 ===== Build and install the kernel image ===== ===== Build and install the kernel image =====
  
resources/tools-software/linux-drivers/platforms/zynq.txt · Last modified: 31 Jan 2023 09:40 by Joyce Velasco