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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant softwd
Participant
703 Views
Registered: ‎09-18-2018

PMU build failed in Petalinux 2018.3

Hi all, 

I migrated Vivado, XSDK, and Petalinux from 2018.2 to 2018.3 about two days ago. All my old stuff in Vivado and XSDK built perfectly, but Petalinux could not build PMU using the BSP flow.

I first replaced Petalinux 2018.2 with Petalinux 2018.3 by runing the installation file in the same location. After that, I added the following code to "<project directory>/project-spec/meta-user/conf/petalinuxbsp.conf" to fix "the sig is locked to..." issue.

 

SIGGEN_UNLOCKED_RECIPES += "gcc-runtime"
SIGGEN_UNLOCKED_RECIPES += "libgcc-initial"
SIGGEN_UNLOCKED_RECIPES += "gcc-cross-aarch64"
SIGGEN_UNLOCKED_RECIPES += "openssl-native"
SIGGEN_UNLOCKED_RECIPES += "openssl"
SIGGEN_UNLOCKED_RECIPES += "libgcc"
SIGGEN_UNLOCKED_RECIPES += "gcc-cross-initial-aarch64"

However, the "petalinux-build" process will exit when it reached "PMU do_configure", it seems that PMU "Couldn't figure out compiler's GCC library directory".

 

The snippet of error log is pasted below.

 

DEBUG: Executing shell function do_configure
MISC_ARG is  -yamlconf /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/pmu-firmware.yaml
APP_ARG is  -app "ZynqMP PMU Firmware"
Using xsct from: /home/bruce/tools/xsct/SDK/2018.3/bin/xsct
cmd is: xsct -sdx -nodisp /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl -ws /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/build -pname pmu-firmware -rp /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/git -processor psu_pmu_0 -hdf /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/deploy/images/zcu104-zynqmp/Xilinx-zcu104-zynqmp.hdf -arch 32  -app "ZynqMP PMU Firmware"  -yamlconf /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/pmu-firmware.yaml
INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
INFO: Update hw pmu-firmware_plat project
Loading the sw platform from /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/build/pmu-firmware_plat/platform.spr
Reading the platform  : "pmu-firmware_plat"
Opening the hardware design, this may take few seconds.
/home/bruce/tools/xsct/SDK/2018.3/gnu/microblaze/lin
Couldn't figure out compiler's GCC library directory
ERROR: [Hsi 55-1545] Problem running tcl command ::sw_cpu_v2_8::generate : Couldn't figure out compiler's GCC library directory
    while executing
"error "Couldn't figure out compiler's GCC library directory" "" "hsi_error""
    (procedure "::sw_cpu_v2_8::generate" line 152)
    invoked from within
"::sw_cpu_v2_8::generate psu_pmu_0"
ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
Failed to generate the platform.
Reason: Failed to generate the bsp sources for domain.pmu-firmware_domain
    while executing
"builtin_platform -generate quick"
    (procedure "platform" line 221)
    invoked from within
"platform generate -quick"
    invoked from within
"if { $params(ws) ne "" } {
	#Local Work Space available
	if { $params(pname) ne "" } {
		# hwpname/bspname is empty then default it to pname+_hwproj/b..."
    (file "/home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl" line 139)
WARNING: /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/temp/run.do_configure.27258:1 exit 1 from 'eval xsct -sdx -nodisp /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl -ws /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/build -pname pmu-firmware -rp /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/git -processor psu_pmu_0 -hdf /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/deploy/images/zcu104-zynqmp/Xilinx-zcu104-zynqmp.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
ERROR: Function failed: do_configure (log file is located at /home/bruce/new_bsp/xilinx-zcu104-2018.3/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2018.3+gitAUTOINC+56f3da2afb-r0/temp/log.do_configure.27258)

Has any body run into similar problem? If I choose to not generate PMU, it would build successfully.

Thanks!

 

 

 

0 Kudos
3 Replies
Moderator
Moderator
630 Views
Registered: ‎04-24-2017

Re: PMU build failed in Petalinux 2018.3

Hi @softwd,

Can you unset the XSDK tool chain env in your shell and then run

$ petalinux-build -x mrproper
$ petalinux -c pmufw
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Participant softwd
Participant
615 Views
Registered: ‎09-18-2018

Re: PMU build failed in Petalinux 2018.3

Hi @sandeepg,

Thanks for the quick respond!

I am not sure how to unset XSDK tool chain env in petalinux; I searched all instances of "XSDK" in ug1144, none of them leads to how to perform this action. Sorry if I am missing something very obvious. While we are on that topic, I want to add that I used the ".hdf" file generated by Vivado directly, did not try to use XSDK on windows to configure it.

I tried the following code you provided with slight modification:

$ petalinux-build -x mrproper
$ petalinux-build -c pmufw

Unfortunately the same error still happends.

Is it because I did not do "uset the XSDK tool chain env"?

Thanks again.

0 Kudos
Visitor ngnear
Visitor
529 Views
Registered: ‎10-31-2018

Re: PMU build failed in Petalinux 2018.3

Responding to my own question, since I sort of resolved it.

I installed Petalinux 2018.3 on a fresh Ubuntu 16.04.05 LTS machine and rebuild the project with the same ".hdf", this error went away. Interestingly, now every time I create a new project, the "setscene" task will fail. I think "setscene" has no real impact on the final result, right?

If anyone has been bugged by this issue for quite a long time, I hope this "solution" can help you to get rid of it too.

 

0 Kudos