Post Go back to editing

Failing to configure AD9361

Category: Software
Product Number: adrv9361-z7035
Software Version: 2019.1

Hello All

I am trying to configure AD9361 on Picozed SDR by adding the respective user layers in Petalinux.

I performed the following steps to BOOT.bin image

a. Created petalinux project.

b. Added User Layers i.e meta-adi-core and meta-adi-xilinx (downloaded from https://github.com/analogdevicesinc/meta-adi/tree/2019_R2) in petalinux configuration.

c. Executed the command : "echo "KERNEL_DTB=\"zynq-adrv9361-z7035-bob\"">>project-spec/meta-user/conf/petalinuxbsp.conf"

d. Performed petalinux build.

While building the project I am receiving the error that "pl-delete-nodes-zynq-adrv9361-z7035-bob.dtsi:9.15-27 Label or path axi_sysid_0 not found". The log is attached for your reference.

DEBUG: Executing python function do_compile
DEBUG: Executing python function devicetree_do_compile
NOTE: Processing system-top [system-top.dts]
NOTE: Running gcc -E -nostdinc -undef -D__DTS__ -x assembler-with-cpp -I/home/madkeri/Documents/UMC/UMOC/build/../components/plnx_workspace/device-tree/device-tree -I/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts -I/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/include -I/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes -I/home/madkeri/Documents/UMC/UMOC/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0 -o system-top.dts.pp /home/madkeri/Documents/UMC/UMOC/build/../components/plnx_workspace/device-tree/device-tree/system-top.dts
NOTE: Running dtc -R 8 -b 0 -p 0x1000 -i /home/madkeri/Documents/UMC/UMOC/build/../components/plnx_workspace/device-tree/device-tree -i /home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts -i /home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/include -i /home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes -i /home/madkeri/Documents/UMC/UMOC/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0 -o system-top.dtb -I dts -O dtb system-top.dts.pp
Error: /home/madkeri/Documents/UMC/UMOC/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0/pl-delete-nodes-zynq-adrv9361-z7035-bob.dtsi:9.15-27 Label or path axi_sysid_0 not found
FATAL ERROR: Syntax error parsing input tree
ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:devicetree_do_compile(d)
     0003:
File: '/opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile
     0127:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0128:                continue # skip non-.dts files and non-overlay files
     0129:        except:
     0130:            continue # skip if can't determine if overlay
 *** 0131:        devicetree_compile(dtspath, includes, d)
     0132:}
     0133:
     0134:devicetree_do_install() {
     0135:    for DTB_FILE in `ls *.dtb *.dtbo`; do
File: '/opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile
     0115:        dtcargs += ["-i", i]
     0116:    dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
     0117:    dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
     0118:    bb.note("Running {0}".format(" ".join(dtcargs)))
 *** 0119:    subprocess.run(dtcargs, check = True)
     0120:
     0121:python devicetree_do_compile() {
     0122:    includes = expand_includes("DT_INCLUDE", d)
     0123:    listpath = d.getVar("DT_FILES_PATH")
File: '/opt/pkg/petalinux/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py', lineno: 398, function: run
     0394:            raise
     0395:        retcode = process.poll()
     0396:        if check and retcode:
     0397:            raise CalledProcessError(retcode, process.args,
 *** 0398:                                     output=stdout, stderr=stderr)
     0399:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0400:
     0401:
     0402:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8', '-b', '0', '-p', '0x1000', '-i', '/home/madkeri/Documents/UMC/UMOC/build/../components/plnx_workspace/device-tree/device-tree', '-i', '/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/include', '-i', '/home/madkeri/Documents/UMC/UMOC/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/madkeri/Documents/UMC/UMOC/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1

DEBUG: Python function devicetree_do_compile finished
DEBUG: Python function do_compile finished
ERROR: Function failed: devicetree_do_compile

Any suggestions would be of great help

Thanks

Deepika