UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 70402

2017.3/4 Zynq-7000: DTG does not build for single core Zynq design

Description

In the 2017.3 and 2017.4 releases, DTG (Device-tree Generation) does not build for single core Zynq design devices, and errors similar to the example below are displayed. 

In this example an Avnet MiniZed board is used.

$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |#####################################################################################
######################################################################################
############################| Time: 0:00:12
Parsing of 2466 .bb files complete (0 cached, 2466 parsed). 3259 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################################################################
######################################################################################
#########################| Time: 0:00:16
Checking sstate mirror object availability: 100% |#####################################################################################
#######################################################################################
| Time: 0:00:17
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: NOTE: fsbl: compiling from external source tree /proj/petalinux/released/Petalinux-v2017.4/petalinux-v2017.4_1214_2/petalinux-v2017.4-final/tools/hsm/data/embeddedsw
ERROR: device-tree-generation-xilinx+gitAUTOINC+3c7407f6f8-r0 do_configure: Function failed: do_configure (log file is located at /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_configure.148531)
ERROR: Logfile of failure stored in: /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_configure.148531
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -yamlconf /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/device-tree-generation.yaml
| APP_ARG is  -app "device-tree"
| cmd is: xsct /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/dtgen.tcl -ws /group/bcapps/sandeepg/plnx-worspace/2017.4/avnet-minized/build/../components/plnx_workspace/device-tree -pname device-tree-generation -rp /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/git -processor ps7_cortexa9_0 -hdf /tmp/sandeepg/plnx/2017.4/avnet-minized/deploy/images/plnx_arm/Xilinx-plnx_arm.hdf -arch 32  -app "device-tree"  -yamlconf /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/device-tree-generation.yaml
| CRITICAL WARNING: [Board 49-71] The board_part definition was not found for em.avnet.com:minized:part0:1.2. The project's board_part property was not set, but the project's part property was set to xc7z007sclg225-1. Valid board_part values can be retrieved with the 'get_board_parts' Tcl command. Check if board.repoPaths parameter is set and the board_part is installed from the tcl app store.
| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
| ERROR: [Common 17-55] 'get_property' expects at least one object.
| Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::post_generate : ERROR: [Common 17-55] 'get_property' expects at least one object.
| Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
|     while executing
| "get_property IP_NAME [get_cells -hier $proc_name]"
|     (procedure "update_cpu_node" line 23)
|     invoked from within
| "update_cpu_node $os_handle"
|     (procedure "::sw_device_tree::post_generate" line 4)
|     invoked from within
| "::sw_device_tree::post_generate device_tree"
| ERROR: [Hsi 55-1443] Error(s) while running TCL procedure post_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 "/tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/dtgen.tcl" line 33)
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /tmp/sandeepg/plnx/2017.4/avnet-minized/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_configure.148531)
ERROR: Task (/proj/petalinux/released/Petalinux-v2017.4/petalinux-v2017.4_1214_2/petalinux-v2017.4-final/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/device-tree/device-tree-generation_git.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2389 tasks of which 1877 didn't need to be rerun and 1 failed.
 
Summary: 1 task failed:
  /proj/petalinux/released/Petalinux-v2017.4/petalinux-v2017.4_1214_2/petalinux-v2017.4-final/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/device-tree/device-tree-generation_git.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project
$

Solution

To fix this issue, you will need to apply the attached patch.

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree-generation_%.bbappend

Note: To apply a patch to recipes, please refer to (UG1144) or http://www.wiki.xilinx.com/PetaLinux+Yocto+Tips

 

device-tree-generation_%.bbappend content:

SRC_URI_append ="\
    file://0001-Update-the-logic-to-check-if-cpu-is-present-in-the-d.patch \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

Attachments

Associated Attachments

AR# 70402
Date 05/18/2018
Status Active
Type Known Issues
Devices
Tools
Boards & Kits
Page Bookmarked