cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JWMISEU
Visitor
Visitor
317 Views
Registered: ‎03-24-2021

ZCU102 Petalinux Build: petalinux_hsm_bridge.tcl not found while building device-tree

I am making a Petalinux 2020.2 build for our ZCU102, which includes the meta-ros layers for ROS2 Foxy.

The build fails while making the pcl (Point Cloud Library) recipe for the meta-ros-common layer, which I think is an out-of-memory error, so I am trying to build pcl separately, using bitbake pcl. This, however, fails on the device-tree recipe. Doing bitbake pcl reveals:

couldn't read file "/etc/hsm/scripts/petalinux_hsm_bridge.tcl": no such file or directory

This file is installed in

my_petalinux_dir/etc/hsm/scripts/

 So, it's just the wrong prefix being used.

How can I fix this problem?

2 Replies
vishu26
Visitor
Visitor
246 Views
Registered: ‎11-11-2019

Hi,

I have the similar problem when I run the following command.

 

bitbake petalinux-image-minimal -c do_populate_sdk

 

I am running petalinux 2020.2. @JWMISEU which version of petalinux are you using?

 

Thanks & Regards

Vishav

0 Kudos
hokim
Scholar
Scholar
226 Views
Registered: ‎10-21-2015

Hi 

The following is required to enable bitbake in petalinux

 

$ source components/yocto/layers/core/oe-init-build-env
$ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PETALINUX"

 

You can't locate and execute  xsct  script(petalinux_hsm_bridge.tcl)  without export and it causes device-tree build error

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_2/ug1144-petalinux-tools-reference-guide.pdf#page=173

<peta-proj>/meta-user/recipes-bsp/device-tree/device-tree.bbappend

 

export PETALINUX
do_configure_append () {
    script="${PETALINUX}/etc/hsm/scripts/petalinux_hsm_bridge.tcl"
    data=${PETALINUX}/etc/hsm/data/
    eval xsct -sdx -nodisp ${script} -c ${WORKDIR}/config \
    -hdf ${DT_FILES_PATH}/hardware_description.${HDF_EXT} -repo ${S} \
    -data ${data} -sw ${DT_FILES_PATH} -o ${DT_FILES_PATH} -a "soc_mapping"
}

 

https://www.yoctoproject.org/docs/3.0/bitbake-user-manual/bitbake-user-manual.html#var-bb-BB_ENV_WHITELIST

0 Kudos