Sorry for the late reply, but I didn't have anything to contribute before.

Now that Scarthgap-next is available, the hdf-examples has completely changed in the way it works.

We now recommend that you place your configuration within your machine.conf file. If you use gen-machine-conf this will already be done for you, but if you are manually writing them you would add:

# Add system XSA
HDF_URI = "https://petalinux.xilinx.com/sswreleases/rel-v2024.2/hdf-examples/2024.2/2024.2_1104_1_11050118/external/zcu102-zynqmp/zcu102-zynqmp-2024.2_1104_1.xsa"; HDF_URI[sha256sum] = "4fcd33f790484f0e6dde5ea32aa04a82a37eea5be4ca0ccf10c3f627b2cbf57f"

NOTE the URI can be a file, if you do specify a file, then no sha256sum is required (but we do recommend it).

This is a generated file for 2024.2 based Vivado:

https://github.com/Xilinx/meta-xilinx-tools/blob/scarthgap-next/conf/machine/zcu102-zynqmp-2024.2.conf


(For other versions of Vivado we have other generated examples.)


--Mark

On 11/5/24 1:14 PM, David Babich wrote:
Hi,
I recently ported from honister to langdale and I'm now working on scarthgap.  I use a local hdf file.  I noticed that when I switch the meta-xilinx-tools from the "honister" tag to "langdale" or "scarthgap" the mechanism to pull a local hdf fails.  I believe its due to this code right here starting on line 86 (in external-hdf_2024.1.bb):

        elif d.getVar('HDF_BASE') == 'file://':
             # file:// default to the full path
             hdf_name = "${S}/${HDF_PATH}"

The Example for using a local file starting on line 44 shows:

     # Example (local file):
     #  HDF_BASE = "file://"
     #  HDF_PATH = "${TOPDIR}/conf/my_example.xsa
     # The recipe will use the XSA from ${TOPDIR}/conf/my_example.xsa

Using the above pattern implements an absolute path in HDF_PATH, but when the code at line 86 executes, it ends up making a path from ${S} in the working dir with the entire absolute path embedded in it.  This ends up with the following error:

"
ERROR: external-hdf-2024.1-r0 do_check: Unable to find /home/engineer/my-proj/regression-2024.1/oe-scarthgap/builds/distro/tmp/work/zcu104_zynqmp-linux/external-hdf/2024.1//home/engineer/my-proj/regression-2024.1/oe-scarthgap/builds/distro/conf/system.xsa.  Verify HDF_BASE, HDF_PATH and HDF_NAME.
"

If I dig down into the tempdir I see that do_fetch or do_unpack did not or could not create that directory within ${S} for the recipe.

Could you please verify that the functionality is working correctly and/or that the instructions match the implementation?
Thanks

-David




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

Reply via email to