Post Go back to editing

Unable to build petalinux 2021.2 for zynq-adrv9361-z7035-bob-cmos

Category: Software
Software Version: Petalinux 2021.2

I have been following the analog devices guide on setting up a project for petalinux.

I have not had any issues building the base analog devices design. However, I am having issues building for zynq-adrv9361-z7035-bob-cmos.

When i specify
KERNEL_DTB = "zynq-adrv9361-z7035-bob"  

the build succeeds. However, if i change it to the cmos variant like so:
KERNEL_DTB = "zynq-adrv9361-z7035-bob-cmos"  

i get the following error:
sed: can't read /home/petalinux_project/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/zynq-adrv9361-z7035-bob.dts

I am not sure why this is happening. I tried specifying the manual device tree include directory to
($STAGING_KERNEL_DIR}/include)  
and
(${STAGING_KERNEL_DIR}/arch/arm/boot/dts)

but still the build will fail. Same behavior was observed when building
zynq-adrv9364-z7020-bob-cmos vs zynq-adrv9364-z7020-bob


Parents
  • Hello,

    `zynq-adrv9361-z7035-bob-cmos.dts` includes the `zynq-adrv9361-z7035-bob.dts` (same applies to zynq-adrv9364-z7020-bob-cmos that includes zynq-adrv9364-z7020-bob)

    These special cases are handled here:

    https://github.com/analogdevicesinc/meta-adi/blob/90ceccbb6163bccc97399dca4d3d77cca12f061a/meta-adi-xilinx/recipes-bsp/device-tree/device-tree.bbappend#L173-L174

    https://github.com/analogdevicesinc/meta-adi/blob/90ceccbb6163bccc97399dca4d3d77cca12f061a/meta-adi-xilinx/recipes-bsp/device-tree/device-tree.bbappend#L176-L177

    And the error occurs when the sed command is executed here:

    https://github.com/analogdevicesinc/meta-adi/blob/90ceccbb6163bccc97399dca4d3d77cca12f061a/meta-adi-xilinx/recipes-bsp/device-tree/device-tree.bbappend#L201

    Can you please check that the environment variables are properly set and the dts files are present at the location required?

    Regards,

    Antoniu

  • The device dts files aren't in WORKDIR, only the pl-delete files. 

  • Yes that is what I am seeing. I just built for the cmos kernel dtb and it failed. here are the contents of the directory in question:

    ls build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/
    base-hsi.tcl              pkgdata-pdata-input                                        pl-delete-nodes-zynq-zc706-adv7511-ad9434-fmc-500ebz.dtsi       pl-delete-nodes-zynq-zed-adv7511-adrv9002.dtsi
    build                     pkgdata-sysroot                                            pl-delete-nodes-zynq-zc706-adv7511-ad9625-fmcadc2.dtsi          pl-delete-nodes-zynq-zed-adv7511-adrv9002-rx2tx2.dtsi
    config                    pl-delete-nodes-zynq-adrv9361-z7035-bob-cmos.dtsi          pl-delete-nodes-zynq-zc706-adv7511-ad9739a-fmc.dtsi             pl-delete-nodes-zynq-zed-adv7511.dtsi
    deploy-device-tree        pl-delete-nodes-zynq-adrv9361-z7035-bob.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9008-1-jesd204-fsm.dtsi  pl-delete-nodes-zynq-zed-imageon.dtsi
    deploy-rpms               pl-delete-nodes-zynq-adrv9361-z7035-fmc.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9008-2-jesd204-fsm.dtsi  pseudo
    deploy-source-date-epoch  pl-delete-nodes-zynq-adrv9364-z7020-bob-cmos.dtsi          pl-delete-nodes-zynq-zc706-adv7511-adrv9009.dtsi                recipe-sysroot
    device-tree.spec          pl-delete-nodes-zynq-adrv9364-z7020-bob.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9371.dtsi                recipe-sysroot-default
    device-tree.yaml          pl-delete-nodes-zynq-zc702-adv7511-ad9361-fmcomms5.dtsi    pl-delete-nodes-zynq-zc706-adv7511-adrv9375-jesd204-fsm.dtsi    source-date-epoch
    dtgen.tcl                 pl-delete-nodes-zynq-zc702-adv7511.dtsi                    pl-delete-nodes-zynq-zc706-adv7511.dtsi                         sysroot-destdir
    git                       pl-delete-nodes-zynq-zc706-adv7511-ad6676-fmc.dtsi         pl-delete-nodes-zynq-zc706-adv7511-fmcdaq2.dtsi                 system-user.dtsi
    image                     pl-delete-nodes-zynq-zc706-adv7511-ad9081.dtsi             pl-delete-nodes-zynq-zc706-adv7511-fmcdaq3-revC.dtsi            temp
    license-destdir           pl-delete-nodes-zynq-zc706-adv7511-ad9172-fmc-ebz.dtsi     pl-delete-nodes-zynq-zc706-adv7511-fmcjesdadc1.dtsi             zynq-7000-qspi-dummy.dtsi
    package                   pl-delete-nodes-zynq-zc706-adv7511-ad9265-fmc-125ebz.dtsi  pl-delete-nodes-zynq-zc706-adv7511-fmcomms11.dtsi
    packages-split            pl-delete-nodes-zynq-zc706-adv7511-ad9361-fmcomms2-3.dtsi  pl-delete-nodes-zynq-zed-adv7511-ad9361-fmcomms2-3.dtsi
    pkgdata                   pl-delete-nodes-zynq-zc706-adv7511-ad9361-fmcomms5.dtsi    pl-delete-nodes-zynq-zed-adv7511-ad9467-fmc-250ebz.dtsi

    The corner case does not seem to be handled on my system. How do I go about checking the values of the petalinux environment variables, and which ones do you want me to check?

Reply
  • Yes that is what I am seeing. I just built for the cmos kernel dtb and it failed. here are the contents of the directory in question:

    ls build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/
    base-hsi.tcl              pkgdata-pdata-input                                        pl-delete-nodes-zynq-zc706-adv7511-ad9434-fmc-500ebz.dtsi       pl-delete-nodes-zynq-zed-adv7511-adrv9002.dtsi
    build                     pkgdata-sysroot                                            pl-delete-nodes-zynq-zc706-adv7511-ad9625-fmcadc2.dtsi          pl-delete-nodes-zynq-zed-adv7511-adrv9002-rx2tx2.dtsi
    config                    pl-delete-nodes-zynq-adrv9361-z7035-bob-cmos.dtsi          pl-delete-nodes-zynq-zc706-adv7511-ad9739a-fmc.dtsi             pl-delete-nodes-zynq-zed-adv7511.dtsi
    deploy-device-tree        pl-delete-nodes-zynq-adrv9361-z7035-bob.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9008-1-jesd204-fsm.dtsi  pl-delete-nodes-zynq-zed-imageon.dtsi
    deploy-rpms               pl-delete-nodes-zynq-adrv9361-z7035-fmc.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9008-2-jesd204-fsm.dtsi  pseudo
    deploy-source-date-epoch  pl-delete-nodes-zynq-adrv9364-z7020-bob-cmos.dtsi          pl-delete-nodes-zynq-zc706-adv7511-adrv9009.dtsi                recipe-sysroot
    device-tree.spec          pl-delete-nodes-zynq-adrv9364-z7020-bob.dtsi               pl-delete-nodes-zynq-zc706-adv7511-adrv9371.dtsi                recipe-sysroot-default
    device-tree.yaml          pl-delete-nodes-zynq-zc702-adv7511-ad9361-fmcomms5.dtsi    pl-delete-nodes-zynq-zc706-adv7511-adrv9375-jesd204-fsm.dtsi    source-date-epoch
    dtgen.tcl                 pl-delete-nodes-zynq-zc702-adv7511.dtsi                    pl-delete-nodes-zynq-zc706-adv7511.dtsi                         sysroot-destdir
    git                       pl-delete-nodes-zynq-zc706-adv7511-ad6676-fmc.dtsi         pl-delete-nodes-zynq-zc706-adv7511-fmcdaq2.dtsi                 system-user.dtsi
    image                     pl-delete-nodes-zynq-zc706-adv7511-ad9081.dtsi             pl-delete-nodes-zynq-zc706-adv7511-fmcdaq3-revC.dtsi            temp
    license-destdir           pl-delete-nodes-zynq-zc706-adv7511-ad9172-fmc-ebz.dtsi     pl-delete-nodes-zynq-zc706-adv7511-fmcjesdadc1.dtsi             zynq-7000-qspi-dummy.dtsi
    package                   pl-delete-nodes-zynq-zc706-adv7511-ad9265-fmc-125ebz.dtsi  pl-delete-nodes-zynq-zc706-adv7511-fmcomms11.dtsi
    packages-split            pl-delete-nodes-zynq-zc706-adv7511-ad9361-fmcomms2-3.dtsi  pl-delete-nodes-zynq-zed-adv7511-ad9361-fmcomms2-3.dtsi
    pkgdata                   pl-delete-nodes-zynq-zc706-adv7511-ad9361-fmcomms5.dtsi    pl-delete-nodes-zynq-zed-adv7511-ad9467-fmc-250ebz.dtsi

    The corner case does not seem to be handled on my system. How do I go about checking the values of the petalinux environment variables, and which ones do you want me to check?

Children