This layer provides support for using Xilinx tools on supported architectures MicroBlaze, Zynq and ZynqMP.
Please send any patches, pull requests, comments or questions for this layer to the meta-xilinx mailing list with ['meta-xilinx-tools'] in the subject:
Maintainers:
Manjukumar Harthikote Matha
This layer depends on:
- **You'll need
xlsclients
andXvfb
to satisfy the XSCT dependence on it. You may install these byapt-get install -y xvfb x11-utils
or the like.
XSCT being installed somewhere the yocto build can access. You must define this path by specifying the XILINX_SDK_TOOLCHAIN variable globally, typically in your local.conf (or site.conf).
The supported tool version is indicated in XILINX_VER_MAIN which defaults to the current release that is checked out.
It would be wise then to define XILINX_SDK_TOOLCHAIN like so: XILINX_SDK_TOOLCHAIN = "/full/path/to/xilinx/SDK/${XILINX_VER_MAIN}"
Each release is dependent on the Xilinx XSCT release version. Please note that xsct tools may not be backward compatible with embeddedsw repo. Meaning 2016.3 xsct tools might not work with older version on embeddedsw repo
URI: git://git.openembedded.org/bitbake
URI: git://git.openembedded.org/openembedded-core
URI: git://git.openembedded.org/meta-xilinx-bsp
meta-xilinx-tools recipes depends on HDF to be provided.
HDF_BASE can be set to git:// or file://
HDF_PATH will be git repository or the path containing HDF
This layer can be used via dependencies while creating the required Boot.bin.
Basically the goal to build FSBL or PMU etc will depend on the use-case and Boot.bin will indicate these dependencies. Boot.bin is created using bootgen tool from Xilinx. Please refer to help files of bootgen.
Executing bootgen -bif_help will provide some detailed help on BIF attributes.
BIF file is required for generating boot.bin, BIF is partitioned into Common BIF attributes and Partition BIF attributes. Attributes of BIF need to be specified in local.conf while using xilinx-bootbin recipe for generating boot.bin
Use IMAGE_INSTALL_append = " xilinx-bootbin" in local.conf
- Example to include dependency for zc702-zynq7 board
See https://github.com/Xilinx/meta-xilinx-tools/blob/master/recipes-bsp/bootbin/machine-xilinx-zynq.inc
BIF_PARTITION_ATTR= "fsbl u-boot"
BIF_PARTITION_ATTR[fsbl]="bootloader"
BIF_PARTITION_IMAGE[fsbl]="${DEPLOY_DIR_IMAGE}/fsbl-${MACHINE}.elf"
BIF_PARTITION_DEPENDS[fsbl]="virtual/fsbl:do_deploy"
BIF_PARTITION_IMAGE[u-boot]="${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.elf"
BIF_PARTITION_DEPENDS[u-boot]="virtual/bootloader:do_deploy"
- Example to include dependency for zcu102-zynqmp board
BIF_PARTITION_ATTR= "fsbl pmu atf u-boot"
BIF_PARTITION_ATTR[fsbl]="bootloader, destination_cpu=a53-0"
BIF_PARTITION_IMAGE[fsbl]="${DEPLOY_DIR_IMAGE}/fsbl-${MACHINE}.elf"
BIF_PARTITION_DEPENDS[fsbl]="virtual/fsbl:do_deploy"
BIF_PARTITION_ATTR[pmu]="destination_cpu=pmu"
BIF_PARTITION_IMAGE[pmu]="${DEPLOY_DIR_IMAGE}/pmu-firmware-${MACHINE}.elf"
BIF_PARTITION_DEPENDS[pmu] ?= "virtual/pmu-firmware:do_deploy"
BIF_PARTITION_ATTR[atf]="destination_cpu=a53-0,exception_level=el-3,trustzone"
BIF_PARTITION_IMAGE[atf]="${DEPLOY_DIR_IMAGE}/arm-trusted-firmware-${TUNE_PKGARCH}.elf"
BIF_PARTITION_DEPENDS[atf]="arm-trusted-firmware:do_deploy"
BIF_PARTITION_ATTR[u-boot]="destination_cpu=a53-0,exception_level=el-2"
BIF_PARTITION_IMAGE[u-boot]="${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.elf"
BIF_PARTITION_DEPENDS[u-boot]="virtual/bootloader:do_deploy"
This layer provides additional configurations through YAML
- Example YAML based configuration for uart0 setting in PMU Firmware
YAML_SERIAL_CONSOLE_STDIN = "psu_uart_0"
YAML_SERIAL_CONSOLE_STDOUT = "psu_uart_0"
- Example YAML based configuration for device tree generation
YAML_MAIN_MEMORY_CONFIG = "psu_ddr_0"
YAML_CONSOLE_DEVICE_CONFIG = "psu_uart_0"
- YAML_DT_BOARD_FLAGS has board specific dtsi in DTG code base this can be enabled by using See https://github.com/Xilinx/device-tree-xlnx/tree/master/device_tree/data/kernel_dtsi/2018.1/BOARD
YAML_DT_BOARD_FLAGS = "{BOARD zcu102-rev1.0}"
Note only Xilinx eval boards have the dtsi in DTG, for custom board one needs to patch DTG to include the custom board dtsi and enable it using YAML configuration