[meta-xilinx] ZynqMP: default bootflow

Adrian Fiergolski adrian.fiergolski at fastree3d.com
Fri Oct 18 09:44:47 PDT 2019


Hi,

I have a custom board with ZynqMP. I am working on warrior branch.
Basing on zcu104 machine configuration, I created my configuration:

    SOC_VARIANT ?= "eg"

    require conf/machine/include/tune-zynqmp.inc
    require conf/machine/include/machine-xilinx-overrides.inc
    require conf/machine/include/machine-xilinx-default.inc

    MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget"

    # u-boot configuration
    UBOOT_MACHINE = "zynqmp_my_defconfig"
    SPL_BINARY ?= "spl/boot.bin"

    SERIAL_CONSOLE = "115200 ttyPS0"
    SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"

    KERNEL_DEVICETREE = "xilinx/zynqmp-my.dtb"

    PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx"
    PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx"

    PMU_FIRMWARE_IMAGE_NAME ?= "pmu-firmware-zynqmp-pmu"
    PMU_FIRMWARE_DEPLOY_DIR ?= "${TOPDIR}/pmutmp/deploy/images/zynqmp-pmu"

    EXTRA_IMAGEDEPENDS += " \
            u-boot-zynq-uenv \
            arm-trusted-firmware \
            virtual/boot-bin \
            virtual/bootloader \
            "

    IMAGE_BOOT_FILES += " \
            uEnv.txt \
            atf-uboot.ub \
            "
    MACHINE_HWCODECS = "libomxil-xlnx"

I patched u-boot and xilinx-linux with my device tree. I enabled
multiconfig in order to build PMU and added a dependency in the image
recipe. My custom image base builds properly. However, when I create SD
card image using WIC, there is no boot.bin file on the boot partition. I
can find boot.bin in the deploy directory. I enforced adding it to the
image, by adding boot.ini to IMAGE_BOOT_FILES in the above configuration
file. However, any bootloader starts: I don't have any printout on UART
output.

Am I missing something in the above configuration? Is there any up to
date guide how to make it work under meta-xilinx? I understand, that
this default configuration follows U-Boot SPL bootflow, right? In this
case, I don't need to use xilinx-bootgen from meta-xilinx-tools layer
correct?

Regards,

Adrian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20191018/7d9cc431/attachment.html>


More information about the meta-xilinx mailing list