This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
resources:eval:user-guides:ad-fmcomms2-ebz:software:linux:zynqmp [19 Oct 2017 11:14] Michael Hennerich [Build the devicetree FCMOMMS2/3] |
resources:eval:user-guides:ad-fmcomms2-ebz:software:linux:zynqmp [11 Jan 2018 10:20] Alexandru Ardelean create symlink to generic new linux-build zynqmp page |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Building the ZynqMP / MPSoC Linux kernel and devicetrees from source ====== | + | {{page>:resources:tools-software:linux-build:generic:zynqmp}} |
- | + | ||
- | ===== On the development host ===== | + | |
- | + | ||
- | <code> | + | |
- | git clone https://github.com/analogdevicesinc/linux.git | + | |
- | </code> | + | |
- | + | ||
- | or do a git pull in the existing repository. | + | |
- | + | ||
- | ==== Checkout the xcomm_zynq development/master branch ==== | + | |
- | + | ||
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ git checkout xcomm_zynq | + | |
- | Already on 'xcomm_zynq' | + | |
- | Your branch is up-to-date with 'origin/xcomm_zynq'. | + | |
- | </code> | + | |
- | ==== Add aarch64-linux-gnu-gcc to PATH ==== | + | |
- | + | ||
- | Vivado 2016.2 SDK may be installed into a different directory | + | |
- | + | ||
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ export PATH=$PATH:/opt/Xilinx/SDK/2017.2/gnu/aarch64/lin/aarch64-linux/bin | + | |
- | </code> | + | |
- | + | ||
- | ==== Setup cross compile environment variables ==== | + | |
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ export ARCH=arm64 | + | |
- | + | ||
- | dave@hal9000:~/github-linux-build/linux$ export CROSS_COMPILE=aarch64-linux-gnu- | + | |
- | </code> | + | |
- | ==== Configure the kernel ==== | + | |
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ make adi_zynqmp_defconfig | + | |
- | # | + | |
- | # configuration written to .config | + | |
- | # | + | |
- | dave@hal9000:~/github-linux-build/linux$ | + | |
- | </code> | + | |
- | ==== Build the kernel ==== | + | |
- | + | ||
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ make -j5 Image UIMAGE_LOADADDR=0x8000 | + | |
- | CHK include/config/kernel.release | + | |
- | CHK include/generated/uapi/linux/version.h | + | |
- | HOSTCC scripts/basic/fixdep | + | |
- | HOSTCC scripts/basic/bin2c | + | |
- | + | ||
- | + | ||
- | [ -- snip --] | + | |
- | + | ||
- | CC init/version.o | + | |
- | LD init/built-in.o | + | |
- | KSYM .tmp_kallsyms1.o | + | |
- | KSYM .tmp_kallsyms2.o | + | |
- | LD vmlinux | + | |
- | SORTEX vmlinux | + | |
- | SYSMAP System.map | + | |
- | OBJCOPY arch/arm64/boot/Image | + | |
- | dave@hal9000:~/github-linux-build/linux$ | + | |
- | </code> | + | |
- | ==== Build the devicetree FCMOMMS2/3 ==== | + | |
- | + | ||
- | === Build the one that fits your FPGA carrier and FMC card === | + | |
- | | zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dts | [[xilinx>ZCU102]] **Rev. 1.0** and the [[/resources/eval/user-guides/ad-fmcomms2-ebz|AD-FMCOMMS2-EBZ]] or [[/resources/eval/user-guides/ad-fmcomms3-ebz|AD-FMCOMMS3-EBZ]] board | | + | |
- | | zynqmp-zcu102-rev10-ad9364-fmcomms4.dts | [[xilinx>ZCU102]] **Rev. 1.0** and the [[/resources/eval/user-guides/ad-fmcomms4-ebz|AD-FMCOMMS4-EBZ]] or [[/resources/eval/user-guides/ad-fmcomms3-ebz|AD-FMCOMMS4-EBZ]] board | | + | |
- | | zynqmp-zcu102-revB-ad9361-fmcomms2-3.dts | [[xilinx>ZCU102]] Rev.B and the [[/resources/eval/user-guides/ad-fmcomms2-ebz|AD-FMCOMMS2-EBZ]] or [[/resources/eval/user-guides/ad-fmcomms3-ebz|AD-FMCOMMS3-EBZ]] board | | + | |
- | | zynqmp-zcu102-revB-ad9364-fmcomms4.dts | [[xilinx>ZCU102]] Rev.B and the [[/resources/eval/user-guides/ad-fmcomms4-ebz|AD-FMCOMMS4-EBZ]] board | | + | |
- | + | ||
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ make xilinx/zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtb | + | |
- | DTC arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtb | + | |
- | dave@hal9000:~/github-linux-build/linux$ | + | |
- | </code> | + | |
- | + | ||
- | ==== Copy the generated files to your SD Card ==== | + | |
- | + | ||
- | <code> | + | |
- | dave@hal9000:~/github-linux-build/linux$ cp arch/arm64/boot/Image /media/michael/BOOT/ | + | |
- | dave@hal9000:~/github-linux-build/linux$ cp arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revB-ad9361-fmcomms2-3.dtb /media/michael/BOOT/system.dtb | + | |
- | </code> | + |