Xilinx / meta-petalinux

meta-petalinux distro layer supporting Xilinx Tools
MIT License
84 stars 48 forks source link

Race condition with do_image_wic and u-boot-xlnx in petalinux/core-image-minimal #3

Open lamidar opened 6 years ago

lamidar commented 6 years ago

If petalinux/core-image-minimal do_image_wic is executed this function depends on u-boot.bin (u-boot-xlnx). This issue occurs with DISTRO=petalinux/poky.

**DEBUG: Executing shell function do_image_wic INFO: Creating image(s)...
WARNING: bootloader config not specified, using defaults
ERROR: _exec_cmd: install -m 0644 -D [...]/build/tmp/deploy/images/zcu102-zynqmp/u-boot.bin [...]/build/tmp/work/zcu102_zynqmp-xilinx-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-zcu102-zynqmp-20180916102735/tmp.wic.n67gi0vv/boot.1/u-boot.bin returned '1' instead of 0
output: install: cannot stat '[...]/build/tmp/deploy/images/zcu102-zynqmp/u-boot.bin': No such file or directory**

Suggested solution/workaround, add following line to local.conf or distro config: WKS_FILE_DEPENDS="virtual/bootloader"