xref: /openbmc/u-boot/tools/env/fw_env.config (revision d5abcf94)
1# Configuration file for fw_(printenv/setenv) utility.
2# Up to two entries are valid, in this case the redundant
3# environment sector is assumed present.
4# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
5# Futhermore, if the Flash sector size is omitted, this value is assumed to
6# be the same as the Environment size, which is valid for NOR and SPI-dataflash
7# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
8
9# NOR example
10# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
11/dev/mtd1		0x0000		0x4000		0x4000
12/dev/mtd2		0x0000		0x4000		0x4000
13
14# MTD SPI-dataflash example
15# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
16#/dev/mtd5		0x4200		0x4200
17#/dev/mtd6		0x4200		0x4200
18
19# NAND example
20#/dev/mtd0		0x4000		0x4000		0x20000			2
21
22# On a block device a negative offset is treated as a backwards offset from the
23# end of the device/partition, rather than a forwards offset from the start.
24
25# Block device example
26#/dev/mmcblk0		0xc0000		0x20000
27#/dev/mmcblk0		-0x20000	0x20000
28
29# VFAT example
30#/boot/uboot.env	0x0000          0x4000
31