lucaceresoli / zynqmp-pmufw-builder Goto Github PK
View Code? Open in Web Editor NEWA simple script to build a PMU firmware for Xilinx ZynqMP
License: Other
A simple script to build a PMU firmware for Xilinx ZynqMP
License: Other
I get the following fatal warning when building the pmufw, the xpfw_restart.c file.
I don't think the warning is valid in this case since it is a raw memory copy.
I am curious why someone else hasn't complained about this though.
A fix is adding -Wno-stringop-overflow to CFLAGS in build.sh which I think is okay since we aren't writing any new code here and just want to compile and use the same as xilinx tools are using.
Do you want a patch for this? Or am I just bonkers.
In function 'XPfw_StoreFsblToDDR',
inlined from 'XPfw_StoreFsblToDDR' at xpfw_restart.c:636:5,
inlined from 'CheckFsblCompletion' at xpfw_mod_common.c:97:12,
inlined from 'CheckFsblCompletion' at xpfw_mod_common.c:31:13:
xpfw_restart.c:656:31: warning: 'memcpy' writing 174080 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
656 | (void)memcpy((u32 *)FSBL_STORE_ADDR, (u32 *)FSBL_LOAD_ADDR,
| ^
In function 'XPfw_RestoreFsblToOCM',
inlined from 'XPfw_RestoreFsblToOCM' at xpfw_restart.c:693:5,
inlined from 'PmMasterRestart' at pm_master.c:973:13,
inlined from 'PmSystemShutdown' at pm_core.c:1302:12,
inlined from 'PmProcessRequest' at pm_core.c:2097:3:
xpfw_restart.c:718:23: warning: 'memcpy' writing 174080 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
718 | (void)memcpy((u32 *)FSBL_LOAD_ADDR, (u32 *)FSBL_STORE_ADDR,
| ^
See crosstool-ng/crosstool-ng#1127
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.