06-24-2019 03:36 PM
Can get patch/debug to work with my pmu build ...I followed all listed here:
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) &&
06-25-2019 04:39 PM
Hi @rrx ,
To patch and verify(optional) PMUFW below is the steps
$ tail project-spec/meta-user/conf/petalinuxbsp.conf RM_WORK_EXCLUDE += "pmu-firmware"
$ petalinux-build -c pmu-firmware -x cleansstate $ petalinux-build -c pmu-firmware
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"
06-25-2019 04:39 PM
Hi @rrx ,
To patch and verify(optional) PMUFW below is the steps
$ tail project-spec/meta-user/conf/petalinuxbsp.conf RM_WORK_EXCLUDE += "pmu-firmware"
$ petalinux-build -c pmu-firmware -x cleansstate $ petalinux-build -c pmu-firmware
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"
06-26-2019 06:50 AM
thanks Sandeep