This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-build:generic:zynq [09 Jun 2021 12:51] – Change source path Iulia Moldovan | resources:tools-software:linux-build:generic:zynq [30 Mar 2023 12:51] (current) – Remove mentioning of SDK and add 2021_R1 release branch Iulia Moldovan | ||
---|---|---|---|
Line 54: | Line 54: | ||
| 2019_R1 | | | 2019_R1 | | ||
| 2019_R2 | | | 2019_R2 | | ||
+ | | 2021_R1 | | ||
< | < | ||
- | dave@hal9000: | + | dave@hal9000: |
- | Branch | + | Branch |
- | Switched to a new branch '2019_R2' | + | Switched to a new branch '2021_R1' |
</ | </ | ||
==== Setup cross compile environment variables ==== | ==== Setup cross compile environment variables ==== | ||
+ | |||
There are a few toolchains that can be used. The Xilinx toolchain is recommended, | There are a few toolchains that can be used. The Xilinx toolchain is recommended, | ||
Line 70: | Line 72: | ||
=== Using the Xilinx toolchain === | === Using the Xilinx toolchain === | ||
- | ^ Release names and Branches ^ Required Vivado/SDK versions ^ | + | ^ Release names and Branches ^ Required Vivado/Vitis versions ^ |
| 2014_R2 | Vivado 2014.2 | | | 2014_R2 | Vivado 2014.2 | | ||
| 2015_R2 | Vivado 2015.2 | | | 2015_R2 | Vivado 2015.2 | | ||
Line 80: | Line 82: | ||
| 2019_R1 | Vivado 2018.3 | | | 2019_R1 | Vivado 2018.3 | | ||
| 2019_R2 | Vivado 2019.1 | | | 2019_R2 | Vivado 2019.1 | | ||
- | + | | 2021_R1 | Vivado | |
- | Vivado | + | |
< | < | ||
- | dave@hal9000: | + | dave@hal9000: |
</ | </ | ||
Line 94: | Line 95: | ||
<note important> | <note important> | ||
- | Find the path to the Xilinx installation folder, and then use it to replace this string: **$PATH_to_Xilinx** that is written above. Same goes for the **$SDK_version**, where you choose the SDK version. | + | Find the path to the Xilinx installation folder, and then use it to replace this string: **$PATH_to_Xilinx** that is written above. Same goes for the **$Vitis_version**, where you choose the Vitis version. |
</ | </ | ||
Line 100: | Line 101: | ||
Alternatively, | Alternatively, | ||
- | Linaro compilers (that work with Zynq) can be downloaded from: https:// | + | Linaro compilers (that work with Zynq) can be downloaded from: |
+ | https:// | ||
Example: | Example: | ||
< | < | ||
- | wget https:// | + | wget https:// |
- | tar -xvf gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi.tar.xz | + | tar -xvf gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi.tar.xz |
</ | </ | ||
< | < | ||
export ARCH=arm | export ARCH=arm | ||
- | export CROSS_COMPILE=$(pwd)/ | + | export CROSS_COMPILE=$(pwd)/ |
</ | </ | ||
==== Configure the kernel ==== | ==== Configure the kernel ==== | ||
+ | Inside the repository, generate the configuration file before building the kernel tree. The command shown below is generic and is not project specific. As long as the board is a ZYNQ FPGA, use the configuration below. | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 121: | Line 124: | ||
dave@hal9000: | dave@hal9000: | ||
</ | </ | ||
- | ==== Build the kernel ==== | ||
+ | ==== Build the kernel ==== | ||
+ | Build the kernel via ' | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 150: | Line 154: | ||
=== Build the one that fits your FPGA carrier and FMC card === | === Build the one that fits your FPGA carrier and FMC card === | ||
+ | ^ device tree ^ board ^ chip ^ | ||
| zynq-adrv9361-z7035-bob | [[adi> | | zynq-adrv9361-z7035-bob | [[adi> | ||
| zynq-adrv9361-z7035-bob-cmos | [[adi> | | zynq-adrv9361-z7035-bob-cmos | [[adi> | ||
Line 158: | Line 163: | ||
| zynq-adrv9364-z7020-bob-cmos | [[adi> | | zynq-adrv9364-z7020-bob-cmos | [[adi> | ||
| zynq-adrv9364-z7020-packrf | [[adi> | | zynq-adrv9364-z7020-packrf | [[adi> | ||
+ | | zynq-coraz7s | [[https:// | ||
| zynq-mini-itx-adv7511 | [[http:// | | zynq-mini-itx-adv7511 | [[http:// | ||
| zynq-mini-itx-adv7511-ad9361-fmcomms2-3 | [[http:// | | zynq-mini-itx-adv7511-ad9361-fmcomms2-3 | [[http:// | ||
Line 189: | Line 195: | ||
| zynq-zed-imageon | [[http:// | | zynq-zed-imageon | [[http:// | ||
+ | Building the device tree uses ' | ||
< | < | ||
Line 197: | Line 204: | ||
==== Copy the generated files to your SD Card ==== | ==== Copy the generated files to your SD Card ==== | ||
+ | The output files for building the kernel and device tree are **uImage** and **< | ||
< | < | ||
dave@hal9000: | dave@hal9000: |