This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
resources:tools-software:linux-build:generic:zynqmp [30 Jun 2021 16:06] – [DisplayPort - no picture?] Stefan-Robert Raus | resources:tools-software:linux-build:generic:zynqmp [06 Feb 2023 04:42] (current) – Updated linaro tool details. Added linaro as a cross compiler option. Added a few lines in each section to help clarify each step ALEXIS CZEZAR TORRENO | ||
---|---|---|---|
Line 28: | Line 28: | ||
===== On the development host ===== | ===== On the development host ===== | ||
+ | Create a local copy of ADI's kernel tree | ||
< | < | ||
git clone https:// | git clone https:// | ||
</ | </ | ||
- | or do a git pull in the existing repository. | + | or do a git pull in an existing repository. |
==== Checkout the master development/ | ==== Checkout the master development/ | ||
Line 42: | Line 42: | ||
Your branch is up-to-date with ' | Your branch is up-to-date with ' | ||
</ | </ | ||
+ | |||
==== Add aarch64-linux-gnu-gcc to PATH ==== | ==== Add aarch64-linux-gnu-gcc to PATH ==== | ||
Line 50: | Line 51: | ||
</ | </ | ||
+ | Other toolchains/ | ||
+ | |||
+ | === Using the Linaro toolchain === | ||
+ | |||
+ | Alternatively, | ||
+ | Linaro compilers (that work with ZYNQMP) can be downloaded from: | ||
+ | https:// | ||
==== Setup cross compile environment variables ==== | ==== Setup cross compile environment variables ==== | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
- | dave@hal9000: | + | dave@hal9000: |
</ | </ | ||
+ | |||
==== Configure the kernel ==== | ==== Configure the kernel ==== | ||
+ | Inside the repository, generate the configuration file before building the kernel tree. | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 64: | Line 74: | ||
dave@hal9000: | dave@hal9000: | ||
</ | </ | ||
- | ==== Build the kernel ==== | ||
+ | ==== Build the kernel ==== | ||
+ | Build the kernel via ' | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 86: | Line 97: | ||
dave@hal9000: | dave@hal9000: | ||
</ | </ | ||
+ | |||
==== Build the devicetree FCMOMMS2/3 ==== | ==== Build the devicetree FCMOMMS2/3 ==== | ||
=== 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 ^ | ||
| zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dts | [[xilinx> | | zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dts | [[xilinx> | ||
| zynqmp-zcu102-rev10-ad9364-fmcomms4.dts | [[xilinx> | | zynqmp-zcu102-rev10-ad9364-fmcomms4.dts | [[xilinx> | ||
| zynqmp-zcu102-revB-ad9361-fmcomms2-3.dts | [[xilinx> | | zynqmp-zcu102-revB-ad9361-fmcomms2-3.dts | [[xilinx> | ||
| zynqmp-zcu102-revB-ad9364-fmcomms4.dts | [[xilinx> | | zynqmp-zcu102-revB-ad9364-fmcomms4.dts | [[xilinx> | ||
+ | The device tree **zynqmp-zcu102-revA.dts** can also be used for any ZCU102 FPGA that uses an SD card for boot up. | ||
+ | Building the device tree uses ' | ||
< | < | ||
dave@hal9000: | dave@hal9000: | ||
Line 101: | Line 115: | ||
==== 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 **Image** and **< | ||
< | < | ||
dave@hal9000: | dave@hal9000: |