Fetch Sources
This how-to describes how sources are obtained from internet resources. The sources are required if the Xilinx released images have to be modified to fit a use case. E.g. Adding a new driver the the Linux kernel, adding custom applications or kernel modules to the ramdisk, etc.
Fetch Sources is a part of the Xilinx design flow described in Xilinx Open Source Linux.
Table of Contents
Tools Required
Output Files Produced
- Several source trees will be created on the hard disk
When to Execute
Xilinx provides prebuilt images with every software release and additionally Targeted Reference Designs. Those are created to address a broad range of customer use cases and as long as those fit your needs, you do not have to work with sources.You have to work with the sources when:
- the prebuilt images are missing features/functionality. E.g. the Linux kernel might be compiled missing a driver required for your platform.
- You want to contribute in development to these project. E.g. adding a new driver to Linux.
- You want to run Linux on a (new) platform which is not yet supported
Task Description
All sources are kept under version control using git. These repositories are publicly available through https://github.com/xilinx.The following table gives an overview of the relevant repositories:
Repository Name | Content |
https://github.com/Xilinx/linux-xlnx.git | The Linux kernel with Xilinx patches and drivers |
https://github.com/Xilinx/u-boot-xlnx.git | The u-boot bootloader with Xilinx patches and drivers |
https://github.com/Xilinx/device-tree-xlnx.git | Device Tree generator plugin for xsdk |
https://git.kernel.org/pub/scm/utils/dtc/dtc.git | Device Tree compiler (required to build U-Boot) |
https://github.com/Xilinx/arm-trusted-firmware.git | ARM Trusted Firmware (required for Zynq UltraScale+ MPSoC and Versal platforms) |
https://github.com/Xilinx/xen.git | Xilinx Xen branch for Zynq UltraScale+ and Versal platforms |
https://github.com/Xilinx/embeddedsw.git | Xilinx embeddedsw repository for bare-metal applications such as FSBL, PMU Firmware, PLM |
bash$ git clone <Repository Name>
In case you're behind a firewall please have a look at using Git.
Build Steps
- (You are here) Fetch Sources
- Build FSBL
- Build Device Tree Compiler (DTC)
- Build PMU Firmware
- Build Arm Trusted Firmware (ATF)
- Build U-Boot
- Build and Modify a Root File System
- Build Device Tree Blob
- Build Linux Kernel
- Prepare Boot Image
- Prepare Boot Medium
- Setup a Serial Console
- Additional Information: Build Qt and Qwt Libraries
Related Links
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy