I just found the error. In the bif configuration for xilinx-bootbin we were referring to the DEPLOY directory, not RECIPE_SYSROOT as we should have been. (So my description below was how it's implemented, but that is the bug.. we're looking in the wrong location!)

I should have a fix at some point today.

Note, likely won't fix the rel-v2022.2 branch. But honister and other community branches will get fixed. You can either backport the fix or use the workaround I mentioned below (once it's available).

--Mark

On 10/25/22 1:56 PM, Mark Hatle wrote:
We are aware of this issue.  It seems to happen fairly rarely, and we don't know
what is triggering it.

What is supposed to be happening:

xilinx-bootbin parses, and sees 'bitstream' in the BIF_PARTITION_ATTR.  This
should add 'virtual/bitstream' to the xilinx-bootbin DEPENDS.

The recipe "bitstream-extraction" (meta-xilinx-tools) provides
'virtual/bitstream' and should extract the bitstream from the XSA and place a
copy into the DEPLOY directory 
(tmp/deploy/images/<machine>/download-<machine>.bin).

Then when xilinx-bootbin do_configure runs, it is supposed to verify the file
exists and process it, but it doesn't exist and it crashes out.

I need to fix the crash, should check for existence and error if the file is
missing.

But we still don't understand why the bitstream-extraction isn't running.  The
only thing I can think of is that it SHOULD be running the do_deploy step and
isn't yet.

For now, I would recommend running:

bitbake virtual/bitstream

then restarting your build, this should resolve it for now.

--Mark

On 10/24/22 9:25 PM, Livius wrote:
Hi,

I would like to build the newest Yocto Xilinx v2022.2 release for ZCU104 board
and i think it still has the same "No such file or directory for bit file" issue
in xilinx-bootbin recipe. Please fix it, this has been wrong for a long time.

ERROR: xilinx-bootbin-1.0-r0 do_configure: Error executing a python function in
exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:

File: 'exec_func_python() autogenerated', lineno: 2, function: <module>

       0001:

   *** 0002:do_configure(d)

       0003:

File:
'/ssd_240GB/Zynq-2022.2/sources/meta-xilinx/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb',
 lineno: 120, function: do_configure

       0116:        if bifpartition:

       0117:            attrflags = d.getVarFlags("BIF_PARTITION_ATTR") or {}

       0118:            attrimage = d.getVarFlags("BIF_PARTITION_IMAGE") or {}

       0119:            ids = d.getVarFlags("BIF_PARTITION_ID") or {}

   *** 0120:            biffunc[arch](bifpartition, attrflags, attrimage, ids, 
0,
biffd, d)

       0121:

       0122:        biffd.write("}")

       0123:        biffd.close()

       0124:    else:

File:
'/ssd_240GB/Zynq-2022.2/sources/meta-xilinx/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb',
 lineno: 47, function: create_bif

       0043:                if cfg not in attrimage:

       0044:                    error_msg = "%s: invalid or missing elf or 
image"
% (cfg)

       0045:                    bb.error("BIF atrribute Error: %s " % 
(error_msg))

       0046:                imagestr = d.expand(attrimage[cfg])

   *** 0047:                if os.stat(imagestr).st_size == 0:

       0048:                    bb.warn("Empty file %s, excluding from bif file"
%(imagestr))

       0049:                    continue

       0050:                if cfg in attrflags:

       0051:                    cfgval = d.expand(attrflags[cfg]).split(',')

Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/ssd_240GB/Zynq-2022.2/build/tmp/deploy/images/zcu104-zynqmp/download-zcu104-zynqmp.bit'









-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5066): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5066
Mute This Topic: https://lists.yoctoproject.org/mt/91152600/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to