cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
493 Views
Registered: ‎04-03-2018

Patching PMU 2018.3

Jump to solution

Can get patch/debug to work with my pmu build ...I followed all listed here:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips#PetaLinuxYoctoTips-HowtopatchPMUFirmwareinPetaLinuxProject

with the following bb recipe I should at least see debug ... but nothing ... Any ideas ???? ... this is in recipes-bsp/pmu-firmware:

[pmu-firmware]$ ls
files pmu-firmware_%.bbappend
[pmu-firmware]$ cat pmu-firmware_%.bbappend
SRC_URI_append = " \
file://0001-pmu.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

# Enable appropriate PMUFW debug flags
YAML_COMPILER_FLAGS_append = " -DDEBUG_MODE -DXPFW_DEBUG_DETAILED"
[rrzepiela@enge6kbldprd01 pmu-firmware]$ ls files/
0001-pmu.patch
[pmu-firmware]$ cat files/0001-pmu.patch
--- a/lib/sw_services/xilfpga/src/xilfpga.c 2019-06-24 18:53:45.285989104 +0000
+++ b/lib/sw_services/xilfpga/src/xilfpga.c 2019-06-24 18:54:40.934218440 +0000
@@ -104,6 +104,8 @@
PLInfo.Flags = flags;


+ Xfpga_Printf(XFPGA_DEBUG,"%s: !!!!!!\n\r\",__FUNCTION__)
+
/* Validate Bitstream Image */
Status = XFpga_PL_ValidateImage(&PLInfo);
if ((Status != XFPGA_OPS_NOT_IMPLEMENTED) &&

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
450 Views
Registered: ‎04-24-2017

Hi @rrx ,

To patch and verify(optional) PMUFW below is the steps

  1. Save PMUFW build artifacts by adding this variable in petalinuxbsp.conf 
    $ tail project-spec/meta-user/conf/petalinuxbsp.conf
    
    RM_WORK_EXCLUDE += "pmu-firmware"
  2. Clean the sstate and rebuild pmu-firmware recipe 
    $ petalinux-build -c pmu-firmware -x cleansstate
    $ petalinux-build -c pmu-firmware
  3. Now in ${TMPDIR}/work/plnx_zynqmp-xilinx-linux/pmu-firmware directory search for yoru patch content.

 

To add BSP flags(debug mode) in PMUFW: For example if you want to enable https://github.com/Xilinx/embeddedsw/blob/release-2018.3/lib/sw_apps/zynqmp_pmufw/misc/xfpga_config.h#L34 debug is Xil BSP libraries

 

 

#Add BSP flags for PMUFW
YAML_BSP_CONFIG += "debug_mode"
YAML_BSP_CONFIG[debug_mode] = "set,true"

 

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
451 Views
Registered: ‎04-24-2017

Hi @rrx ,

To patch and verify(optional) PMUFW below is the steps

  1. Save PMUFW build artifacts by adding this variable in petalinuxbsp.conf 
    $ tail project-spec/meta-user/conf/petalinuxbsp.conf
    
    RM_WORK_EXCLUDE += "pmu-firmware"
  2. Clean the sstate and rebuild pmu-firmware recipe 
    $ petalinux-build -c pmu-firmware -x cleansstate
    $ petalinux-build -c pmu-firmware
  3. Now in ${TMPDIR}/work/plnx_zynqmp-xilinx-linux/pmu-firmware directory search for yoru patch content.

 

To add BSP flags(debug mode) in PMUFW: For example if you want to enable https://github.com/Xilinx/embeddedsw/blob/release-2018.3/lib/sw_apps/zynqmp_pmufw/misc/xfpga_config.h#L34 debug is Xil BSP libraries

 

 

#Add BSP flags for PMUFW
YAML_BSP_CONFIG += "debug_mode"
YAML_BSP_CONFIG[debug_mode] = "set,true"

 

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor
429 Views
Registered: ‎04-03-2018

thanks Sandeep

0 Kudos