UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
2,530 Views
Registered: ‎07-08-2016

failure to build boot.bin

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
| WARNING: /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:

##########################
# Xilinx specific configs
##########################
# Define path to xsct tools (needed for bitfile generation) XILINX_VER_MAIN = "2016.4" XILINX_SDK_TOOLCHAIN = "/opt/Xilinx/SDK/${XILINX_VER_MAIN}" # 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 BIF_PARTITION_IMAGE[fsbl]="${DEPLOY_DIR_IMAGE}/fsbl-${MACHINE}.elf" BIF_PARTITION_DEPENDS[fsbl]="virtual/fsbl" # specify BIF partition attributes for u-boot # Location where u-boot binary is present BIF_PARTITION_IMAGE[u-boot]="${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.elf"


I was told that meta-xilinx-tools supports building an FSBL from the hdf format. Is this not true? Am I improperly configuring something?

Thanks,

-Brett

0 Kudos