Post Go back to editing

Building with Petalinux

Category: Software
Product Number: AD-FMCOMMS4-EBZ
Software Version: 2021.2

I am trying to build petalinux  by using meta-adi-xilinx.

target hardware : zed + FMCOMMS4

Tools : Petalinux tool 2021.2

I followed following instruction.(github.com/.../README.md)

source  <path-to-installed-PetaLinux>/settings.sh
petalinux-create -t project --template <PLATFORM> --name <PROJECT_NAME>, where <PLATFORM> is:
	* zynqMP (for UltraScale + MPSoC)
	* zynq (for Zynq)
	* microblaze (for MicroBlaze)
git clone https://github.com/analogdevicesinc/meta-adi.git
cd <path-to-project>
# Check the Building HDL link below
petalinux-config --get-hw-description=<path to hdf file>
# Select the devicetree that fits the project being built
echo "KERNEL_DTB=\"${dts_to_use}\"" >> project-spec/meta-user/conf/petalinuxbsp.conf
cd build
petalinux-build


But build error was happen.
From error log, some .dtsi file are not exist.
Following file are included from "components/plnx_workspace/device-tree/device-tree/system-top.dts"

  - zynq-zed.dtsi

  - zynq-zed-adv7511.dtsi

  - adi-fmcomms2.dtsi

  - adi-fmcomms3-up-down-converter.dtsi

Correctly include these files, Which file should I use ?  And, How to include  these files ?

Parents Reply
  • I found these file in analogdevicesinc/linux repo.

    - zynq-zed.dtsi

      - zynq-zed-adv7511.dtsi

      - adi-fmcomms2.dtsi

      - adi-fmcomms3-up-down-converter.dtsi

    That's not the way to support new projects. As I stated, there's also a a devicetree in our linux tree for  zed + FMCOMMS4 so that one should be used. What KERNEL_DTB are you using in your build? And, can you boot your board with the generated artifacts? Maybe you  can, but I'm thinking you might loose functionality as we do have a different devicetree for "zed + FMCOMMS4"

    - Nuno Sá

Children