Post Go back to editing

Problem to bulid petalinux for new XSA

Category: Software
Product Number: ADRV9361z7035 BOB-LVDS
Software Version: 2022.2 branch ADI

HI,

When I build a petalinux project on XSA openwifi according to ADI recommendations, I get an error with building the device tree:


ERROR: device-tree-xilinx-v2022.2+gitAUTOINC+24d29888d0-r0 do_configure: ExecutionError('/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/temp/run.do_configure.2979308', 1, None, None)
ERROR: Logfile of failure stored in: /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/temp/log.do_configure.2979308
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/python/python3_3.9.9.bb:do_populate_sysroot', '/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/meta-virtualization/recipes-kernel/dtc/python3-dtc_1.6.1.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/bison/bison_3.7.6.bb:do_populate_sysroot', '/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/gcc/gcc-cross_11.2.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.37.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-extended/xz/xz_5.2.5.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-kernel/dtc/dtc_1.6.1.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-bsp/u-boot/u-boot-tools_2021.07.bb:do_populate_sysroot', 'virtual:default:/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/core/meta/recipes-devtools/python/python3-pyyaml_5.4.1.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['kmod-default', 'kern-tools-default', 'bison-default', 'gcc-cross-arm', 'bc-default', 'binutils-cross-arm', 'u-boot-tools-default', 'gtk-doc-default', 'libmpc-default', 'gmp-default', 'mpfr-default', 'linux-libc-headers']
| NOTE: Skipping as already exists in sysroot: ['quilt-default', 'python3-default', 'pseudo-default', 'python3-dtc-default', 'xz-default', 'dtc-default', 'patch-default', 'python3-pyyaml-default', 'libffi-default', 'libtirpc-default', 'sqlite3-default', 'gdbm-default', 'openssl-default', 'libtool-default', 'bzip2-default', 'pkgconfig-default', 'zlib-default', 'autoconf-default', 'util-linux-default', 'libnsl2-default', 'readline-default', 'automake-default', 'libyaml-default', 'flex-default', 'swig-default', 'texinfo-dummy-default', 'gnu-config-default', 'python3-cython-default', 'python3-setuptools-default', 'gettext-minimal-default', 'attr-default', 'm4-default', 'util-linux-libuuid-default', 'ncurses-default', 'libpcre2-default', 'libcap-ng-default', 'libpcre-default']
| DEBUG: sed -e 's:^[^/]*/:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/recipe-sysroot-default/:g' /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/sysroots-components/x86_64/bison-default/fixmepath /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/sysroots-components/x86_64/gcc-cross-arm/fixmepath /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/sysroots-components/x86_64/gtk-doc-default/fixmepath /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/sysroots-components/x86_64/gmp-default/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/recipe-sysroot-default:g' -e 's:FIXME_PSEUDO_SYSROOT:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/sysroots-components/x86_64/pseudo-default:g' -e 's:FIXME_HOSTTOOLS_DIR:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/pkgdata/zynq-generic:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/temp/fifo.2979308:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| ENABLE_OPENAMP_DTSI is not SET (0)
| MISC_ARG is  -hdf_type xsa -yamlconf /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/device-tree.yaml
| APP_ARG is  -app "device-tree"
| Using xsct from: /dysk/usr/tools/Xilinx_2022/PetaLinux/2022.2/tool/tools/xsct//bin/xsct
| cmd is: xsct -sdx -nodisp /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/dtgen.tcl -ws /dysk/PETA_2022_2/openwifiadrv9361adi/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/git -processor_ip ps7_cortexa9 -hdf /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/deploy/images/zynq-generic/Xilinx-zynq-generic.xsa -arch 32   -app "device-tree"  -hdf_type xsa -yamlconf /dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/device-tree.yaml
| WARNING: sdtgen package cannot be loaded. System Device tree commands will not
|
| be available
| INFO: [Hsi 55-2053] elapsed time for repository (/dysk/usr/tools/Xilinx_2022/PetaLinux/2022.2/tool/tools/xsct/data/embeddedsw) loading 0 seconds
| can't read "afi2": no such variable
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::generate : can't read "afi2": no such variable
|     while executing
| "get_cells -hier $afi2"
|     (procedure "add_or_get_bus_node" line 244)
|     invoked from within
| "add_or_get_bus_node $ip $default_dts"
|     (procedure "gen_peripheral_nodes" line 66)
|     invoked from within
| "gen_peripheral_nodes $drv_handle "create_node_only""
|     ("foreach" body line 3)
|     invoked from within
| "foreach drv_handle [get_drivers] {
|         # generate the default properties
|         gen_peripheral_nodes $drv_handle "create_node_only"
|         gen_r..."
|     (procedure "::sw_device_tree::generate" line 3)
|     invoked from within
| "::sw_device_tree::generate device_tree"
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| generate_target failed
|     while executing
| "error "generate_target failed""
|     invoked from within
| "if {[catch {hsi generate_target -dir $project} res]} {
| error "generate_target failed"
| }"
|     (file "/dysk/PETA_2022_2/openwifiadrv9361adi/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2022.2+gitAUTOINC+24d29888d0-r0/dtgen.tcl" line 49)
| WARNING: exit code 1 from a shell command.
ERROR: Task (/dysk/PETA_2022_2/openwifiadrv9361adi/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4403 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

All tools are 2022.2, including meta-adi. The project is built using Vitis. There's a boot.bin and a kernel from the XSA analog repo, derived from the project https://github.com/open-sdr Higher versions, such as 2023.2, have a similar setup. Build according to the instructions for the specific branch. I can provide XSA and the entire project in VIVADO.

Thread Notes

Parents Reply
  • Thank you very much for your reply.

    As I wrote earlier, the problem occurs on every version of Petalinux. If you build the device-tree using Vitis, this problem doesn't occur. The problem is probably with the meta-adi tools.

    If you provide your email address, I can send you the entire project with the XSA file.

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.