AnsweredAssumed Answered

build error in ad9371+zcu102

Question asked by Sravya on May 31, 2018
Latest reply on Jun 5, 2018 by Sravya
Hi, 
I am using AD9371+Zynq ultrascale(ZCU102) design and kernel from 2018_r1 branch .
I followed the build steps given in below link and could build the kernel successfully.
Building the ZynqMP / MPSoC Linux kernel and devicetrees from source [Analog Devices Wiki]  
When I create petalinux project(2017.4) and build the project it fails.
It states that there is a syntax error in dts files. I have added the files given from the
kernel without making any changes to them.The error i got in terminal is as shown below,

sysadmin@sysadmin-OptiPlex-390:/media/sysadmin/NewVolume/peta_ultrascale/new$ petalinux-build -v
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 3257 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:17
Parsing of 2468 .bb files complete (2433 cached, 35 parsed). 3261 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:11
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:11
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: NOTE: linux-xlnx: compiling from external source tree /media/sysadmin/NewVolume/peta_ultrascale/new/components/ext_sources/linux5/
ERROR: device-tree-generation-xilinx+gitAUTOINC+3c7407f6f8-r0 do_compile: Function failed: do_compile (log file is located at /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.10874)
ERROR: Logfile of failure stored in: /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.10874
Log data follows:
| DEBUG: Executing shell function do_compile
| Error: /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/zynqmp-zcu102-revA.dtsi:14.1-9 syntax error
| FATAL ERROR: Unable to parse input tree
| WARNING: /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/run.do_compile.10874:1 exit 1 from 'dtc -I dts -O dtb -R 8 -p 0x1000 -i /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0 -i /media/sysadmin/NewVolume/peta_ultrascale/new/build/../components/plnx_workspace/device-tree/device-tree-generation -o /media/sysadmin/NewVolume/peta_ultrascale/new/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_aarch64-system.dtb /media/sysadmin/NewVolume/peta_ultrascale/new/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_aarch64-system.pp'
| ERROR: Function failed: do_compile (log file is located at /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.10874)
ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/device-tree/device-tree-generation_git.bb:do_compile) failed with exit code '1'
ERROR: linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: oe_runmake failed
ERROR: linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: Function failed: do_compile (log file is located at /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.10768)
ERROR: Logfile of failure stored in: /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.10768
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: linux-xlnx: compiling from external source tree /media/sysadmin/NewVolume/peta_ultrascale/new/components/ext_sources/linux5/
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 HOSTCC=gcc  HOSTCPP=gcc  -E Image CC=aarch64-xilinx-linux-gcc   -fuse-ld=bfd  --sysroot=/media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/sysroots/plnx_aarch64 LD=aarch64-xilinx-linux-ld.bfd    --sysroot=/media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/sysroots/plnx_aarch64
| ERROR: oe_runmake failed
|   CHK     include/config/kernel.release
|   GEN     ./Makefile
|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
|   Using /media/sysadmin/NewVolume/peta_ultrascale/new/components/ext_sources/linux5 as source for kernel
|   CHK     include/generated/timeconst.h
|   CHK     include/generated/bounds.h
|   CHK     include/generated/asm-offsets.h
|   CALL    /media/sysadmin/NewVolume/peta_ultrascale/new/components/ext_sources/linux5/scripts/checksyscalls.sh
|   CHK     include/generated/compile.h
|   CHK     kernel/config_data.h
| make[3]: *** No rule to make target 'include/config/extra/firmware/dir.h', needed by 'firmware/Mykonos_M3.bin.gen.S'.  Stop.
| make[2]: *** [/media/sysadmin/NewVolume/peta_ultrascale/new/components/ext_sources/linux5/Makefile:988: firmware] Error 2
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [Makefile:150: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| ERROR: Function failed: do_compile (log file is located at /media/sysadmin/NewVolume/peta_ultrascale/new/build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.4+git999-r0/temp/log.do_compile.10768)
ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.9.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2400 tasks of which 2393 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/device-tree/device-tree-generation_git.bb:do_compile
  /opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.9.bb:do_compile
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!








I am not able to figure out what might be the reason as I am newbie to this environment.
Kindly help me in solving this issue.  

Thanks & Regards
Sravya

Outcomes