Post Go back to editing

Using JESD204 Analog Drivers for a custom board

Category: Software
Software Version: 2021.1

Hi everyone,

I am using AD JESD204 IP's to implement the interface on a custom board. I have tested the design with a baremetal program and everything works fine.

Now, I want to integrate my design with an embedded Linux to use the JESD204 drivers, I use petalinux to generate the image. I've tried to follow the guidelines described in https://github.com/analogdevicesinc/meta-adi/tree/master/meta-adi-xilinx, but it's not clear enough for me.

In the project I have 4 layers:

  • Layer 0: meta-adi-core
  • Layer 1: meta-adi-xilinx
  • Layer 2: board related layer, contains the device tree for the custom board
  • User layer

I do not want to use any of the available devicetrees in the adi kernel, but as I need to specify one to compile the project I selected KERNEL_DTB="zynqmp-zcu102-rev10-fmcdaq2". At this point I am stuck, as I do not need to use this device tree, do I need to create a "pl-delete-nodes-xxx.dtsi" to remove the nodes from the selected device tree? , in which layer? 

At this point, I think it is a better option to use Xilinx's Linux Kernel and add Analog's drivers from the source code. Which is the best option?

Thank you.

EDIT:

EDIT: I created a custom device tree and a pl-delete-nodes in the meta-adi-xilinx, and selected it as KERNEL_DBT, but the device tree do_config is failing, I have added the following lines to meta-adi-xilinx device-tree.bbappend

SRC_URI_append = " \
    file://pl-delete-nodes-custom-board.dtsi \
    file://custom-board.dts \
"

 KERNEL_DTB_PATH = "${WORKDIR}"
USE_KERNEL_SOURCES = "n"

Error message is:
ERROR: Execution of '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/temp/run.do_configure.1082188' failed with exit code 1:
MISC_ARG is  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/device-tree.yaml
APP_ARG is  -app "device-tree"
Using xsct from: /opt/Xilinx/PetaLinux/2021.2/tools/xsct//bin/xsct
cmd is: xsct -sdx -nodisp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/dtgen.tcl -ws /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/git -processor_ip psu_cortexa53 -hdf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/deploy/images/zynqmp-generic/Xilinx-zynqmp-generic.xsa -arch 64   -app "device-tree"  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/device-tree.yaml



Update
[edited by: dd969c at 8:35 PM (GMT -5) on 28 Nov 2022]
  • Hi,

    I do not want to use any of the available devicetrees in the adi kernel, but as I need to specify one to compile the project I selected KERNEL_DTB="zynqmp-zcu102-rev10-fmcdaq2". At this point I am stuck, as I do not need to use this device tree, do I need to create a "pl-delete-nodes-xxx.dtsi" to remove the nodes from the selected device tree? , in which layer? 

    Yes, you do need to create your own devicetree + a pl-delete-nodes-xxx. Ideally, this should be in your layer and you would further append devicetree.bbappend to include your files.

    Unfortunately, your error message is not showing nothing related with the error... You should have a log.do_configure file under "/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/temp/". That one should reveal the problem...

    However, one thing that might be already broken is 'KERNEL_DTB_PATH="${WORKDIR}"'. Internally this command is done which means "cp -rf "${WORKDIR}/"* "${WORKDIR}/"" and this should fail and IIRC, these bitbake tasks are run with 'set -e'. Hmm, this support did not took into account that one could just copy all custom dts to the WORKDIR with the typical SRC_URI way so it assumes 'KERNEL_DTB_PATH' is just some external path. Hence you can just set 'KERNEL_DTB_PATH' to the real path where you have your devicetree. 

    I can also see that the README needs to be updated as it misled you (and is wrong)... In fact, that command needs to be fixed. Either to `[ ${KERNEL_DTB_PATH} != ${DTS_INCLUDE_PATH} ] && [ ${KERNEL_DTB_PATH} != ${WORKDIR} ] && cp -rf "${KERNEL_DTB_PATH}/"* "${WORKDIR}/"` or to just not support yocto external paths and remove that line.

    - Nuno Sá

  • Hi! Thank you for your answer, this is the content of the log:

    DEBUG: Executing python function extend_recipe_sysroot
    NOTE: Direct dependencies are ['virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/python/python3_3.8.5.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/dtc/python3-dtc_1.5.1.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/meta-openembedded/meta-python/recipes-devtools/python/python3-pyyaml_5.3.1.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.35.1.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/gcc/libgcc_10.2.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-bsp/u-boot/u-boot-tools_2020.07.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-extended/xz/xz_5.2.5.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-kernel/dtc/dtc_1.6.0.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', 'virtual:default:/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/core/meta/recipes-devtools/bison/bison_3.7.2.bb:do_populate_sysroot']
    NOTE: Installed into sysroot: []
    NOTE: Skipping as already exists in sysroot: ['pseudo-default', 'python3-default', 'python3-dtc-default', 'python3-pyyaml-default', 'bc-default', 'binutils-cross-aarch64', 'kern-tools-default', 'kmod-default', 'libgcc', 'gcc-cross-aarch64', 'u-boot-tools-default', 'xz-default', 'dtc-default', 'patch-default', 'quilt-default', 'bison-default', 'bzip2-default', 'automake-default', 'util-linux-default', 'pkgconfig-default', 'libnsl2-default', 'autoconf-default', 'gnu-config-default', 'openssl-default', 'libffi-default', 'libtirpc-default', 'libtool-default', 'zlib-default', 'readline-default', 'ncurses-default', 'sqlite3-default', 'gdbm-default', 'libyaml-default', 'flex-default', 'swig-default', 'python3-cython-default', 'python3-setuptools-default', 'texinfo-dummy-default', 'gettext-minimal-default', 'gtk-doc-default', 'glibc', 'linux-libc-headers', 'gmp-default', 'mpfr-default', 'libmpc-default', 'attr-default', 'libcap-ng-default', 'libpcre2-default', 'm4-default', 'libpcre-default', 'unzip-default']
    DEBUG: Python function extend_recipe_sysroot finished
    DEBUG: Executing shell function do_configure
    MISC_ARG is  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml
    APP_ARG is  -app "device-tree"
    Using xsct from: /opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct//bin/xsct
    cmd is: xsct -sdx -nodisp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl -ws /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git -processor_ip psu_cortexa53 -hdf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/deploy/images/zynqmp-generic/Xilinx-zynqmp-generic.xsa -arch 64   -app "device-tree"  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml
    INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct/data/embeddedsw) loading 0 seconds
    hsi::open_hw_design: Time (s): cpu = 00:00:31 ; elapsed = 00:00:29 . Memory (MB): peak = 1973.500 ; gain = 45.738 ; free physical = 196 ; free virtual = 12042
    WARNING: no s_axi_aclk for clockwizard IP block: " clk_wiz_0"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_0" is not connected to any of the pl_clk"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_to_host" is not connected to any of the pl_clk"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_to_ps" is not connected to any of the pl_clk"

    WARNING: Clock pin "c0_sys_clk_p" of IP block "ddr4_0" is not connected to any of the pl_clk"

    WARNING: clock frequency for the c0_sys_clk_p is NULL of IP block: "ddr4_0"

    WARNING: Clock pin "c0_sys_clk_n" of IP block "ddr4_0" is not connected to any of the pl_clk"

    WARNING: clock frequency for the c0_sys_clk_n is NULL of IP block: "ddr4_0"

    WARNING: Interrupt pin "irq" of IP block: "jesd204_rx_axi_jesd204_rx_0" is not connected to any interrupt controller

    WARNING: Clock pin "core_clk" of IP block "jesd204_rx_axi_jesd204_rx_0" is not connected to any of the pl_clk"

    WARNING: Interrupt pin "irq" of IP block: "jesd204_tx_axi_jesd204_tx_0" is not connected to any interrupt controller

    WARNING: Clock pin "core_clk" of IP block "jesd204_tx_axi_jesd204_tx_0" is not connected to any of the pl_clk"

    WARNING: Frequency 33.3333333 used instead of 33.333
    WARNING: Frequency 33.333 used instead of 27.00
    zocl:true
    ext_platform:
    intr_ctrl_len:3
    WARNING: Only boolean type can have empty value. Fail to add driver(ddr4_0) property(clock-names) type(stringlist) value()
    WARNING: Please add the property manually
    WARNING: Only boolean type can have empty value. Fail to add driver(ddr4_0) property(clock-names) type(stringlist) value()
    WARNING: Please add the property manually
    hsi::generate_target: Time (s): cpu = 00:01:25 ; elapsed = 00:01:32 . Memory (MB): peak = 1973.500 ; gain = 0.000 ; free physical = 616 ; free virtual = 12429
    INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct/data/embeddedsw) loading 0 seconds
    hsi::open_hw_design: Time (s): cpu = 00:00:33 ; elapsed = 00:00:35 . Memory (MB): peak = 2107.723 ; gain = 696.188 ; free physical = 365 ; free virtual = 10819
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/base-hsi.tcl' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/base-hsi.tcl' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/build' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/build' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/config' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/config' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/deploy-source-date-epoch' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/deploy-source-date-epoch' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/license-destdir' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/license-destdir' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/namc-zynqup-fmc.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/namc-zynqup-fmc.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/nat-amc-zynqup-fmc.dts' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/nat-amc-zynqup-fmc.dts' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-nat-amc-zynqup-fmc.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-nat-amc-zynqup-fmc.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-sync-fmcomms8-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-sync-fmcomms8-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-hdl-adrv9009.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-hdl-adrv9009.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9081-m8-l4.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9081-m8-l4.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9172-fmc-ebz-mode4.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9172-fmc-ebz-mode4.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms5.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms5.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002-rx2tx2.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002-rx2tx2.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-1-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-1-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-2-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-2-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9009-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9009-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9371-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9371-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq2.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq2.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq3.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq3.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-zynqmp-zcu102-rev10-ad9361-fmcomms2-3-overlay.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-zynqmp-zcu102-rev10-ad9361-fmcomms2-3-overlay.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot-default' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot-default' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/source-date-epoch' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/source-date-epoch' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/system-user.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/system-user.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp' are the same file
    WARNING: /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385:201 exit 1 from 'cp -rf "/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/"* "/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/"'
    WARNING: Backtrace (BB generated script):
        #1: do_configure, /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385, line 201
        #2: main, /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385, line 288
    ERROR: Execution of '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385' failed with exit code 1:
    MISC_ARG is  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml
    APP_ARG is  -app "device-tree"
    Using xsct from: /opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct//bin/xsct
    cmd is: xsct -sdx -nodisp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl -ws /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git -processor_ip psu_cortexa53 -hdf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/deploy/images/zynqmp-generic/Xilinx-zynqmp-generic.xsa -arch 64   -app "device-tree"  -hdf_type xsa -yamlconf /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml
    INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct/data/embeddedsw) loading 0 seconds
    hsi::open_hw_design: Time (s): cpu = 00:00:31 ; elapsed = 00:00:29 . Memory (MB): peak = 1973.500 ; gain = 45.738 ; free physical = 196 ; free virtual = 12042
    WARNING: no s_axi_aclk for clockwizard IP block: " clk_wiz_0"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_0" is not connected to any of the pl_clk"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_to_host" is not connected to any of the pl_clk"

    WARNING: Clock pin "s_axi_aclk" of IP block "axi_intc_to_ps" is not connected to any of the pl_clk"

    WARNING: Clock pin "c0_sys_clk_p" of IP block "ddr4_0" is not connected to any of the pl_clk"

    WARNING: clock frequency for the c0_sys_clk_p is NULL of IP block: "ddr4_0"

    WARNING: Clock pin "c0_sys_clk_n" of IP block "ddr4_0" is not connected to any of the pl_clk"

    WARNING: clock frequency for the c0_sys_clk_n is NULL of IP block: "ddr4_0"

    WARNING: Interrupt pin "irq" of IP block: "jesd204_rx_axi_jesd204_rx_0" is not connected to any interrupt controller

    WARNING: Clock pin "core_clk" of IP block "jesd204_rx_axi_jesd204_rx_0" is not connected to any of the pl_clk"

    WARNING: Interrupt pin "irq" of IP block: "jesd204_tx_axi_jesd204_tx_0" is not connected to any interrupt controller

    WARNING: Clock pin "core_clk" of IP block "jesd204_tx_axi_jesd204_tx_0" is not connected to any of the pl_clk"

    WARNING: Frequency 33.3333333 used instead of 33.333
    WARNING: Frequency 33.333 used instead of 27.00
    zocl:true
    ext_platform:
    intr_ctrl_len:3
    WARNING: Only boolean type can have empty value. Fail to add driver(ddr4_0) property(clock-names) type(stringlist) value()
    WARNING: Please add the property manually
    WARNING: Only boolean type can have empty value. Fail to add driver(ddr4_0) property(clock-names) type(stringlist) value()
    WARNING: Please add the property manually
    hsi::generate_target: Time (s): cpu = 00:01:25 ; elapsed = 00:01:32 . Memory (MB): peak = 1973.500 ; gain = 0.000 ; free physical = 616 ; free virtual = 12429
    INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/PetaLinux/2021.1/tool/tools/xsct/data/embeddedsw) loading 0 seconds
    hsi::open_hw_design: Time (s): cpu = 00:00:33 ; elapsed = 00:00:35 . Memory (MB): peak = 2107.723 ; gain = 696.188 ; free physical = 365 ; free virtual = 10819
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/base-hsi.tcl' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/base-hsi.tcl' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/build' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/build' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/config' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/config' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/deploy-source-date-epoch' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/deploy-source-date-epoch' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/device-tree.yaml' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/dtgen.tcl' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/git' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/license-destdir' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/license-destdir' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/namc-zynqup-fmc.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/namc-zynqup-fmc.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/nat-amc-zynqup-fmc.dts' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/nat-amc-zynqup-fmc.dts' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-nat-amc-zynqup-fmc.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-nat-amc-zynqup-fmc.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-sync-fmcomms8-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-adrv9009-zu11eg-revb-adrv2crr-fmc-revb-sync-fmcomms8-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-hdl-adrv9009.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-hdl-adrv9009.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9081-m8-l4.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9081-m8-l4.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9172-fmc-ebz-mode4.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9172-fmc-ebz-mode4.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms5.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-ad9361-fmcomms5.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002-rx2tx2.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9002-rx2tx2.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-1-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-1-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-2-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9008-2-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9009-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9009-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9371-jesd204-fsm.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-adrv9371-jesd204-fsm.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq2.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq2.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq3.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-delete-nodes-zynqmp-zcu102-rev10-fmcdaq3.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-zynqmp-zcu102-rev10-ad9361-fmcomms2-3-overlay.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/pl-zynqmp-zcu102-rev10-ad9361-fmcomms2-3-overlay.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot-default' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/recipe-sysroot-default' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/source-date-epoch' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/source-date-epoch' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/system-user.dtsi' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/system-user.dtsi' are the same file
    cp: '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp' and '/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp' are the same file
    WARNING: /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385:201 exit 1 from 'cp -rf "/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/"* "/home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/"'
    WARNING: Backtrace (BB generated script):
        #1: do_configure, /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385, line 201
        #2: main, /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.1+gitAUTOINC+f2642103e9-r0/temp/run.do_configure.1614385, line 288

    Backtrace (metadata-relative locations):
        #1: do_configure, /home/user/Documents/xilinx_workspace/board_AD/sw/petalinux/components/yocto/layers/meta-xilinx-tools/classes/xsctbase.bbclass, line 79

  • Hi,

    So the problem seems to be that line that I pointed you.... My previous reply should have enough information for you to fix this. 

    - Nuno Sá

  • Hi!

    I modified the command to [ ${KERNEL_DTB_PATH} != ${DTS_INCLUDE_PATH} ] && [ ${KERNEL_DTB_PATH} != ${WORKDIR} ] && cp -rf "${KERNEL_DTB_PATH}/"* "${WORKDIR}/" as suggested and I was able to run the do_configure.

    However, I needed to set USE_KERNEL_SOURCES = "y" or to comment out DTB_TAG_FILE_zynqmp ?= "${WORKDIR}/zynqmp-zcu102-revA.dts", else it would complain about not finding this dts.

    Now, I have to write my custom-board.dts with the JESD related nodes, because other board-related nodes are in the devices trees at layer 3 and user layer. I am right?

    Thank you

  • However, I needed to set USE_KERNEL_SOURCES = "y" or to comment out DTB_TAG_FILE_zynqmp ?= "${WORKDIR}/zynqmp-zcu102-revA.dts", else it would complain about not finding this dts.

    The question is... Do you include or need that devicetree at all (zynqmp-zcu102-revA.dts)? If you need, then just don't set USE_KERNEL_SOURCES = "n". If you don't need it, you can overwrite DTB_TAG_FILE_zynqmp in your layer (further appending devicetree.bbappend). So you would set it to DTB_TAG_FILE_zynqmp  = "${DT_FILES_PATH}/system-top.dts" (which is the same as what you are doing with commenting). Of course this assumes that the file that has "/dts-v1/;" is your top level devicetree.

    - Nuno Sá

  • I've further discovered that I do not need to create a kernel DBT because I was using the system-top generated by petalinux. I have edited the do_configure recipe so it is not overwritten... However when using the meta-adi layer the configuration done in petalinux-config -> Subsystem Hardware Auto Settings is not added to the system-top.dts.  How can this behaviour be changed? I know this configuration can be added to the KERNEL_DBT but the auto settings makes things easier.

    Also, when I compile the rootfs I get the error:

      ERROR: petalinux-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf [.....]
       No match for argument: gdbserver
       Error: Unable to find a match: gdbserver

    It would be useful for debugging.

    Thank you again! I have not much experience in embedded linux development but it is nice to learn

  • I've further discovered that I do not need to create a kernel DBT because I was using the system-top generated by petalinux. I

    Are you sure about that? Did you already booted your custom board? If you are relying on any ADI driver, I would be surprised if it probes at all if you are using petalinux auto generated devicetree...

    However when using the meta-adi layer the configuration done in petalinux-config -> Subsystem Hardware Auto Settings is not added to the system-top.dts.  How can this behaviour be changed? I

    We do that for a reason... We just allow the 'chosen' node as the other ones are already defined in ADI devicetrees. If you want to keep it as-is, remove this line... But again, then I'm not sure why you are using meta-adi if you are using petalinux auto-generated devicetree.

    RROR: petalinux-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf [.....]
       No match for argument: gdbserver
       Error: Unable to find a match: gdbserver

    No idea about this one... Are you enabling gdbserver in your rootfs image? I never really enabled it and I'm not sure this is related with meta-adi (disable the layer and compile it again to see if the error persists). I would check petalinux userguide or open a ticket in xilinx forums.

    - Nuno Sá

  • I did not clarify.... At the moment I am using the auto-generated sytem-top.dts so I can boot my board (it is the way I am used to), and i've added all the jesd204 nodes in the system-user.dtsi.

    At the moment I disabled the gdbserver package.

    The board booted correctly, thank you for your help

  • I did not clarify.... At the moment I am using the auto-generated sytem-top.dts so I can boot my board (it is the way I am used to), and i've added all the jesd204 nodes in the system-user.dtsi.

    I see... I guess that can also be a usecase that I might want to add to meta-adi. When someone is fine by using petalinux auto generated devicetrees and do all the needed changes in system-user.dtsi in which case I could have some conf variable to just bypass the do_configure task in meta-adi. In this usecase, the user would be responsible for making sure everything is fine with the devicetree (as no nodes will be automatically deleted).

    - Nuno Sá

  • Hi Nuno, sorry to bother you. How could I compile the adi linux kernel with debug flags from petalinux?