cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
64 Views
Registered: ‎03-16-2018

Petalinux v2019.2 unable to build pmu-firmware with modified hdf file

Hi All,

I am trying to build pmufirmare using petalinux v2019.02 and it gives following error

rkanwal@RAJNESH-UBUNTU:/data/project$ petalinux-build -c pmu-firmware 
[INFO] building pmu-firmware [INFO] sourcing bitbake [INFO] generating user layers [INFO] generating workspace directory INFO: bitbake pmu-firmware Loading cache: 100% |###########################################################################################################################################################| Time: 0:00:01 Loaded 3980 entries from dependency cache. Parsing recipes: 100% |#########################################################################################################################################################| Time: 0:00:05 Parsing of 2894 .bb files complete (2892 cached, 2 parsed). 3981 targets, 154 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |######################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |##############################################################################################################################| Time: 0:00:03 Sstate summary: Wanted 16 Found 2 Missed 28 Current 132 (12% match, 90% complete) NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_configure: Function failed: do_configure (log file is located at /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_configure.21037) ERROR: Logfile of failure stored in: /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_configure.21037 Log data follows: | DEBUG: Executing shell function do_configure | MISC_ARG is -yamlconf /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/pmu-firmware.yaml | APP_ARG is -app "ZynqMP PMU Firmware" | Using xsct from: /data/mgc/mcf_reference_design/downloads/petalinux/tools/xsct/bin/xsct | cmd is: xsct -sdx -nodisp /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/app.tcl -ws /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/build -pname pmu-firmware -rp /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/git -processor psu_pmu_0 -hdf /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/deploy/images/zcu102-zynqmp/Xilinx-zcu102-zynqmp.xsa -arch 32 -app "ZynqMP PMU Firmware" -yamlconf /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/pmu-firmware.yaml | INFO: [Hsi 55-2053] elapsed time for repository (/data/mgc/mcf_reference_design/downloads/petalinux/tools/xsct/data/embeddedsw) loading 0 seconds | INFO: Update hw pmu-firmware_plat project | Loading the sw platform from /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/build/pmu-firmware_plat/platform.spr | Reading the platform : "pmu-firmware_plat" | Opening the hardware design, this may take few seconds. | FSBL uses these IPs but are isolated from the selected processor: psu_csudma. | Failed to generate application zynqmp_fsbl, FSBL uses these IPs but are isolated from the selected processor: psu_csudma. | while executing | "builtin_platform -addbootdomains" | (procedure "platform" line 251) | invoked from within | "platform create -name $params(hwpname) -hw $params(hdf) -out $params(ws)" | 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 "/data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019..." line 139) | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /data/mgc/mcf_reference_design/installations/petalinux/zcu102_project/xilinx-zcu102-2019.2/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_configure.21037) ERROR: Task (/data/mgc/mcf_reference_design/downloads/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 614 tasks of which 613 didn't need to be rerun and 1 failed. Summary: 1 task failed:

As per the above logs, petalinux build system is also trying to create fsbl project(which is wrong) along with pmu-firmware. FSBL creation for A53 fails becuase in my isolation design I am running FSBL on r5 and I have assigned csu_dma to r5.

The same type of problem occurs when I try to create PMU firmware project using vitis. In vitis when I uncheck the "Generate boot components" option the issue disappears and I am able to create the project properly.
image.png

As far as I can understand, the petalinux project creation scripts create the hardware project with boot images and when it tries to create FSBL for a53 (which is default in petalinux) and it fails becuase CSU_DMA is not assigned to a53.

My question is where can I fix this thing in my petalinux scripts. I have been looking around for it and couldn't find any clue.

Thanks,
Kind Regards,
Rajnesh

0 Kudos