FWUMDATA(1)
π¦ fwumdata β read, display, and modify FWU metadata π¦
okay bestie, welcome to fwumdata(1) from the General Commands Manual π
this page is all about reading, showing, and tweaking FWU metadata, and it's genuinely useful, no cap.
β¨ NAME β¨
fwumdata β read, display, and modify FWU metadata.
πΈ SYNOPSIS πΈ
fwumdata [-c config] [-l] [-u] [-a bankid] [-p bankid] [-s bankid state]
[-i imageid] [-b bankid] [-A] [-C] [-B num_banks]
[-I num_images]
fwumdata -h
π DESCRIPTION π
fwumdata reads, displays, and modifies FWU (Firmware Update) metadata from Linux userspace π§β¨
This tool operates on FWU metadata stored on block or MTD devices, which lets userspace manipulate firmware update state β including active bank selection, image acceptance, and bank state management π it's giving low-level but make it accessible.
π OPTIONS π
-c,--configfile β Use a custom configuration file. By default, the tool searches for./fwumdata.configthen/etc/fwumdata.configπ«Ά-l,--listβ Display detailed metadata information including all GUIDs, image entries, and bank information. Without this option, only a summary is shown π-u,--updateβ Update metadata if CRC validation fails. Useful for recovering from corrupted metadata π-a,--activebankid β Set the active bank index to bank (that's thebankidargument) β-p,--previousbankid β Set the previous active bank index to bank.-s,--statebankid state β Set bank index bankid to the specified state. Valid states are:accepted,valid, orinvalid. Supported only with version 2 metadata. When setting a bank toacceptedstate, all firmware images in that bank are automatically marked as accepted π-i,--imageimageid β Specify image number (used with-Aor-C) π-b,--bankbankid β Specify bank number (used with-Aor-C).-A,--acceptβ Accept the image specified by-iin the bank specified by-b. Sets theFWU_IMAGE_ACCEPTEDflag for the image β-C,--clearβ Clear the acceptance flag for the image specified by-iin the bank specified by-b. According to the FWU specification, the bank state is automatically set toinvalidbefore clearing the acceptance flag π¨-B,--nbanksnum_banks β Specify total number of banks (required for V1 metadata).-I,--nimagesnum_images β Specify total number of images (required for V1 metadata).-h,--helpβ Print usage information and exit π«‘
π CONFIGURATION FILE π
The configuration file specifies the location of FWU metadata on storage devices. The format is:
# Device Name Device Offset Metadata Size Erase Size
/dev/mtd0 0x0 0x78 0x1000
/dev/mtd1 0x0 0x78 0x1000
Lines starting with # are comments. Erase Size is optional and only applies to MTD devices; if omitted, it defaults to the metadata size π§
Specifying two devices enables redundant metadata support π
π BUGS π
Please report bugs to the U-Boot bug tracker, fr fr.
π₯ EXAMPLES π₯
Display FWU metadata summary:
$ fwumdata
Display detailed metadata with all GUIDs:
$ fwumdata -l
Set active bank to 1:
$ fwumdata -a 1
Set bank 1 to accepted state (automatically accepts all images in that bank):
$ fwumdata -s 1 accepted
Accept image 0 in bank 0:
$ fwumdata -i 0 -b 0 -A -l
Clear acceptance for image 0 in bank 1:
$ fwumdata -i 0 -b 1 -C -l
Clear acceptance for image 1 in bank 1 with metadata V1:
$ fwumdata -B 2 -I 2 -i 1 -b 1 -C -l
Use custom configuration file:
$ fwumdata -c /path/to/custom.config
π SEE ALSO π
mkfwumdata(1) β go check that one out too, bestie π¦
bye bestie π β source/version: U-Boot; date: 2025; page: FWUMDATA(1) πΈ
π¦ where this page comes from
- nixpkgs unstable: uboot-tools-only_defconfig 2026.10
- π the page's license: GPL-2.0-or-later
- Copyright (C) 2025 Kory Maincent <kory.maincent@bootlin.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms