This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:tools-software:linux-build:generic:zynq [16 Apr 2019 15:30] – [Checkout the Release branch] Michael Hennerich | resources:tools-software:linux-build:generic:zynq [06 Feb 2023 04:15] – Updated linaro tool details. Added a few lines in each section to help clarify each step ALEXIS CZEZAR TORRENO | ||
---|---|---|---|
Line 21: | Line 21: | ||
</ | </ | ||
+ | |||
+ | ===== Building using Petalinux ===== | ||
+ | |||
+ | Please see here: [[resources: | ||
===== On the development host ===== | ===== On the development host ===== | ||
Line 37: | Line 41: | ||
<note tip> | <note tip> | ||
- | If not otherwise required always use the latest release! | + | Use the latest release, if not required otherwise! |
</ | </ | ||
Line 48: | Line 52: | ||
| 2018_R1 | | | 2018_R1 | | ||
| 2018_R2 | | | 2018_R2 | | ||
+ | | 2019_R1 | | ||
+ | | 2019_R2 | | ||
< | < | ||
- | dave@hal9000: | + | dave@hal9000: |
- | Branch | + | Branch |
- | Switched to a new branch '2015_R2' | + | Switched to a new branch '2019_R2' |
</ | </ | ||
==== 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 71: | Line 78: | ||
| 2017_R1 | Vivado 2016.4 | | | 2017_R1 | Vivado 2016.4 | | ||
| 2018_R1 | Vivado 2017.4 | | | 2018_R1 | Vivado 2017.4 | | ||
+ | | 2018_R2 | Vivado 2018.2 | | ||
+ | | 2019_R1 | Vivado 2018.3 | | ||
+ | | 2019_R2 | Vivado 2019.1 | | ||
- | Vivado | + | Vivado |
< | < | ||
- | dave@hal9000: | + | dave@hal9000: |
</ | </ | ||
Line 81: | Line 91: | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
- | dave@hal9000: | + | dave@hal9000: |
</ | </ | ||
+ | |||
+ | <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**, | ||
+ | </ | ||
=== Using the Linaro toolchain === | === Using the Linaro toolchain === | ||
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 108: | Line 124: | ||
dave@hal9000: | dave@hal9000: | ||
</ | </ | ||
- | ==== Build the kernel ==== | ||
+ | ==== Build the kernel ==== | ||
+ | Build the kernel via ' | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 137: | 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> | ||
- | | zynq-adrv9361-z7035-box | [[adi>ADRV1CRR-BOX]] | [[adi> | + | | zynq-adrv9361-z7035-packrf |
| zynq-adrv9361-z7035-fmc | [[adi> | | zynq-adrv9361-z7035-fmc | [[adi> | ||
| zynq-adrv9361-z7035-fmc-rfcard-tdd | [[adi> | | zynq-adrv9361-z7035-fmc-rfcard-tdd | [[adi> | ||
| zynq-adrv9364-z7020-bob | [[adi> | | zynq-adrv9364-z7020-bob | [[adi> | ||
| zynq-adrv9364-z7020-bob-cmos | [[adi> | | zynq-adrv9364-z7020-bob-cmos | [[adi> | ||
- | | zynq-adrv9364-z7020-box | [[adi>ADRV1CRR-BOX]] | [[adi> | + | | zynq-adrv9364-z7020-packrf |
- | | zynq-mini-itx-adv7511 | [[http:// | + | | zynq-coraz7s | [[https:// |
- | | zynq-mini-itx-adv7511-ad9361-fmcomms2-3 | [[http:// | + | | zynq-mini-itx-adv7511 | [[http:// |
- | | zynq-mini-itx-adv7511-ad9364-fmcomms4 | [[http:// | + | | zynq-mini-itx-adv7511-ad9361-fmcomms2-3 | [[http:// |
+ | | zynq-mini-itx-adv7511-ad9364-fmcomms4 | [[http:// | ||
| zynq-zc702-adv7511 | [[xilinx> | | zynq-zc702-adv7511 | [[xilinx> | ||
| zynq-zc702-adv7511-ad9361-fmcomms2-3 | [[xilinx> | | zynq-zc702-adv7511-ad9361-fmcomms2-3 | [[xilinx> | ||
Line 176: | Line 195: | ||
| zynq-zed-imageon | [[http:// | | zynq-zed-imageon | [[http:// | ||
+ | Building the device tree uses ' | ||
< | < | ||
Line 184: | 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: |