AR# 69104

|

2017.1 PetaLinux: XSDK crashes when running petalinux-build

Description

XSDK fails when generating the PMU firmware via the petalinux-build command for 0313:

The command is:

xsct /users/vsagar/petalinux_tmpdir/2017.1_0316_tmpdir/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.1+gitAUTOINC+a84c157def-r0/app.tcl -ws /proj/xresults_ipsgrp/ipv/vsagar/ckhon_ev_platform/20170316/xilinx-zcu102-zu9-es2-2017.1_0313_1/build/../components/plnx_workspace -pname pmu-firmware -rp /users/vsagar/petalinux_tmpdir/2017.1_0316_tmpdir/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.1+gitAUTOINC+a84c157def-r0/git -processor psu_pmu_0 -hdf /users/vsagar/petalinux_tmpdir/2017.1_0316_tmpdir/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 32 -app "ZynqMP PMU Firmware" -yamlconf /users/vsagar/petalinux_tmpdir/2017.1_0316_tmpdir/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.1+gitAUTOINC+a84c157def-r0/pmu-firmware.yaml
java.lang.IllegalArgumentException: Buffer size <= 0
at java.io.BufferedInputStream.<init>(BufferedInputStream.java:201)
at org.eclipse.osgi.framework.internal.reliablefile.ReliableFile.getInputStream(ReliableFile.java:272)
at org.eclipse.osgi.framework.internal.reliablefile.ReliableFileInputStream.<init>(ReliableFileInputStream.java:92)
at org.eclipse.osgi.framework.internal.reliablefile.ReliableFileInputStream.<init>(ReliableFileInputStream.java:66)

Solution

This error is inconsistent, and will sometimes appear and sometimes not.

If You are seeing this error/crash, follow these steps to resolve the issue:

1) Go to the <petalinux_proj> directory and remove the following directories:

rm -rf components/plnx_workspace/
rm -rf build/cache build/tmp

2) Remove TMPDIR if it is at a different location.

AR# 69104
Date 05/03/2017
Status Active
Type Known Issues
Devices
Tools
People Also Viewed