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
|