[meta-xilinx] ['meta-xilinx-tools'] dependency issue building FSBL: cant read file ${DEPLOY_DIR_IMAGE}/fsbl-${MACHINE}.elf

Manjukumar Harthikote Matha manjukumar.harthikote-matha at xilinx.com
Mon May 1 13:58:43 PDT 2017

From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-bounces at yoctoproject.org] On Behalf Of Brett R. Nicholas
Sent: Monday, May 01, 2017 8:32 AM
To: meta-xilinx at lists.yoctoproject.org
Subject: [meta-xilinx] ['meta-xilinx-tools'] dependency issue building FSBL: cant read file ${DEPLOY_DIR_IMAGE}/fsbl-${MACHINE}.elf

Hi there,

I'm trying to build a custom Yocto image for the Zedboard using the meta-xilinx and meta-xilinx-tools layers. I'm trying to use meta-xilinx-tools to generate an FSBL as part of the core-image-full-cmdline target, however the build fails with the output below:

NOTE: Executing RunQueue Tasks
ERROR: core-image-full-cmdline-1.0-r0 do_xilinx_bootbin: Function failed: do_xilinx_bootbin (log file is located at /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.2239)
ERROR: Logfile of failure stored in: /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.2239
Log data follows:
| DEBUG: Executing shell function do_xilinx_bootbin
| [ERROR]  : Can't read file - /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/deploy/images/zedboard-zynq7/fsbl-zedboard-zynq7.elf

FSBL for zedboard did not get built. Can you check the logs for fsbl?
Also you can do bitbake fsbl and see there are any error.


/home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/run.do_xilinx_bootbin.2239:1 exit 1 from 'bootgen -image /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/core-image-full-cmdline-1.0/bootgen.bif -arch zynq -w -o BOOT.bin'
| ERROR: Function failed: do_xilinx_bootbin (log file is located at /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.2239)
ERROR: Task (/home/brett/Thesis/Zynq_Linux/Yocto/poky/meta/recipes-extended/images/core-image-full-cmdline.bb:do_xilinx_bootbin) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3819 tasks of which 3818 didn't need to be rerun and 1 failed.

It seems that the task depends on fsbl-zedboard-zynq7.elf, however this file does not exist. Should this file be generated in bootgen? Or am I misunderstanding something. My local.conf modifications to support the meta-xilinx-tools are below:

# Define path to xsct tools (needed for bitfile generation)
XILINX_VER_MAIN = "2016.4"

# Define path to HDF (TODO: we should be using our project hosted on GIT)
HDF_BASE = "file://"
HDF_PATH = "/home/brett/Thesis/Vivado_WS/sha256test/sha256test.sdk/design_1_wrapper.hdf"

#add Boot.bin dependency
IMAGE_CLASSES += " xilinx-bootbin"

#specify BIF partition attributes required for BOOT.bin
BIF_PARTITION_ATTR= "fsbl bitstream u-boot"

# specify BIF partition attributes for bitstream
# enable bitstream-Note this is not enabled by default (missing in BIF_PARTITION_ATTR)
# TODO: do we need to get rid of download preface?
BIF_PARTITION_IMAGE[bitstream] ?= "${DEPLOY_DIR_IMAGE}/download-${MACHINE}.bit"
BIF_PARTITION_DEPENDS[bitstream] ?= "virtual/bitstream"

# specify BIF partition attributes for FSBL
# bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL

# specify BIF partition attributes for u-boot
# Location where u-boot binary is present

Am I improperly configuring something?



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

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

More information about the meta-xilinx mailing list