mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 12:21:03 +02:00
Add a new fwumdata tool to allows users to read, display, and modify FWU (Firmware Update) metadata from Linux userspace. It provides functionality similar to fw_printenv/fw_setenv but for FWU metadata. Users can view metadata, change active/previous bank indices, modify bank states, and set image acceptance flags. Configuration is done via fwumdata.config file. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Tested-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
# FWU Metadata Configuration File
|
|
#
|
|
# Format: <device> <offset> <metadata_size> <erase_size>
|
|
#
|
|
# This file describes where the FWU metadata is stored. You can specify
|
|
# up to two entries for redundant metadata copies.
|
|
#
|
|
# Device: MTD device (/dev/mtdX), block device (/dev/mmcblkX), or file path
|
|
# Offset: Byte offset from start of device (hex with 0x prefix)
|
|
# Metadata Size: Size of metadata structure in bytes (hex with 0x prefix)
|
|
# Erase Size: Sector/erase block size (hex with 0x prefix, defaults to
|
|
# metadata_size, required only for MTD device)
|
|
#
|
|
# Examples:
|
|
#
|
|
# MTD devices (NOR/NAND flash):
|
|
# /dev/mtd0 0x0 0x1000 0x1000
|
|
# /dev/mtd1 0x0 0x1000 0x1000
|
|
#
|
|
# Block device (eMMC/SD):
|
|
# /dev/mmcblk0 0x100000 0x78
|
|
# /dev/mmcblk0 0x101000 0x78
|
|
#
|
|
# or:
|
|
# /dev/disk/by-partlabel/metadata1 0 0x78
|
|
# /dev/disk/by-partlabel/metadata2 0 0x78
|
|
#
|
|
# Regular file:
|
|
# /boot/fwu-mdata.bin 0x0 0x78
|
|
#
|
|
# Default configuration (update for your platform):
|
|
/dev/mtd0 0x0 0x78 0x1000
|
|
/dev/mtd1 0x0 0x78 0x1000
|