[0/5] Add dumpfwumdata tool for FWU metadata image
mbox series

Message ID 20251228151824.25667-1-dario.binacchi@amarulasolutions.com
Headers show
Series
  • Add dumpfwumdata tool for FWU metadata image
Related show

Message

Dario Binacchi Dec. 28, 2025, 3:17 p.m. UTC
This series originates from the implementation of the A/B update
scheme on a custom board based on the STM32MP2 platform.
The addition of the dumpfwumdata tool required changes to its
counterpart mkfwumdata in order to ensure code consistency and
readability.
Finally, I considered it useful to enable both tools in the tools-only
configuration.


Dario Binacchi (5):
  tools: build mkfwumdata with tools-only_defconfig
  fwu: centralize bank state macros in fwu_mdata.h
  fwu: use FWU_MAX_STATE_BANKS for bank_state array
  tools: Add dumpfwumdata tool for FWU metadata image
  tools: build dumpfwumdata with tools-only_defconfig

 configs/tools-only_defconfig |   2 +
 include/fwu.h                |   4 --
 include/fwu_mdata.h          |   9 ++-
 tools/Kconfig                |   7 ++
 tools/Makefile               |   4 ++
 tools/dumpfwumdata.c         | 128 +++++++++++++++++++++++++++++++++++
 tools/mkfwumdata.c           |  10 +--
 7 files changed, 151 insertions(+), 13 deletions(-)
 create mode 100644 tools/dumpfwumdata.c