Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
resources:tools-software:linux-software:build-the-zynqmp-boot-image [06 Feb 2023 07:06] – Added details in the usage of the script to lessen plausible troubleshooting. ALEXIS CZEZAR TORRENOresources:tools-software:linux-software:build-the-zynqmp-boot-image [20 Mar 2023 12:41] (current) – Mention .xsa instead of .hdf Iulia Moldovan
Line 3: Line 3:
 The boot image BOOT.BIN is build using the bootgen tool which requires several input files.\\ 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:+Instructions on how to build the Xilinx Shell Archive (XSA) handover file can be found here:
  
-  * [[resources/fpga/docs/build|Building HDL]]+  * [[resources/fpga/docs/build|Building HDL]] projects
  
  
Line 11: Line 11:
  
   * [[http://www.wiki.xilinx.com/Build+U-Boot|Build u-boot]]   * [[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, ...)+     * Make sure you checkout the proper git tag matching your Vivado Version (xilinx-v2022.2, xilinx-v2021.2, ...)
   * [[http://www.wiki.xilinx.com/Build+FSBL|Build FSBL]]   * [[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+PMU+Firmware|Build PMU Firmware]]
   * [[http://www.wiki.xilinx.com/Build+Arm+Trusted+Firmware+%28ATF%29|Build Arm Trusted Firmware (ATF)]]   * [[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]]   * [[http://www.wiki.xilinx.com/Prepare+Boot+Image|Build BOOT image]]
Line 19: Line 19:
 ===== 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 and either bl31.elf or a path to the Arm Trusted Firmware repository+For ease of use we provide a bash shell script which allows building BOOT.BIN from system_top.xsa, u-boot.elf and either bl31.elf or a path to the Arm Trusted Firmware repository
  
 ==== Download ==== ==== Download ====
Line 33: Line 33:
 </xterm> </xterm>
 </WRAP> </WRAP>
- 
  
  
Line 42: Line 41:
 usage: build_zynqmp_boot_bin.sh system_top.xsa u-boot.elf (download | bl31.elf | <path-to-arm-trusted-firmware-source>) [output-archive] usage: build_zynqmp_boot_bin.sh system_top.xsa u-boot.elf (download | bl31.elf | <path-to-arm-trusted-firmware-source>) [output-archive]
 </code> </code>
-  * Make sure that Vivado and Vitis is included in the path and a cross compiler for arm64 exist before running the script. For more information about cross compilers, see [[:resources:tools-software:linux-build:generic:zynqmp]].+  * Make sure that Vivado and Vitis is included in the path and a cross compiler for arm64 exists before running the script. For more information about cross compilers, see [[:resources:tools-software:linux-build:generic:zynqmp | Building the ZynqMP / MPSoC Linux kernel and devicetrees from source]].
   * Path to ''system_top.xsa'' and ''u-boot.elf'' are required parameters.   * Path to ''system_top.xsa'' and ''u-boot.elf'' are required parameters.
      * To find ''system_top.xsa'', see [[resources/fpga/docs/build|Building HDL]]. After building a project in the HDL repository, it can be found inside a **<project>_<board>.sdk** folder.      * To find ''system_top.xsa'', see [[resources/fpga/docs/build|Building HDL]]. After building a project in the HDL repository, it can be found inside a **<project>_<board>.sdk** folder.
Line 51: Line 50:
   * **BOOT.BIN** and other build output files are located at the newly created local directory named: output_boot_bin.   * **BOOT.BIN** and other build output files are located at the newly created local directory named: output_boot_bin.
   * This script requires Xilinx Vitis and bootgen in the PATH.\\   * This script requires Xilinx Vitis and bootgen in the PATH.\\
-    * A simple way is to source vivado settings[32|64].sh for Linux:+    * A simple way is to source Vivado settings[32|64].sh for Linux:
 <code> <code>
 $ source /opt/Xilinx/Vivado/202x.x/settings64.sh $ source /opt/Xilinx/Vivado/202x.x/settings64.sh
resources/tools-software/linux-software/build-the-zynqmp-boot-image.txt · Last modified: 20 Mar 2023 12:41 by Iulia Moldovan