blob: 053895a2c07b23891e098c2370066204f04b8ea1 [file] [log] [blame]
Robert P. J. Day7789df92013-01-31 02:06:40 +00001# Configuration file for fw_(printenv/setenv) utility.
Martin Michlmayr22525772008-08-06 14:44:05 +03002# Up to two entries are valid, in this case the redundant
wdenkd0fb80c2003-01-11 09:48:40 +00003# environment sector is assumed present.
Dustin Byford23869bf2014-03-06 20:48:22 -08004# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
Robert P. J. Day62a3b7d2016-07-15 13:44:45 -04005# Futhermore, if the Flash sector size is omitted, this value is assumed to
Remy Bohmer9eeaa8e2011-02-12 19:06:26 +01006# be the same as the Environment size, which is valid for NOR and SPI-dataflash
Stefan Agnerf4742ca2016-07-13 17:14:38 -07007# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
wdenkd0fb80c2003-01-11 09:48:40 +00008
Remy Bohmer9eeaa8e2011-02-12 19:06:26 +01009# NOR example
Guennadi Liakhovetski56086922008-09-04 13:01:49 +020010# MTD device name Device offset Env. size Flash sector size Number of sectors
wdenkd0fb80c2003-01-11 09:48:40 +000011/dev/mtd1 0x0000 0x4000 0x4000
12/dev/mtd2 0x0000 0x4000 0x4000
Guennadi Liakhovetski56086922008-09-04 13:01:49 +020013
Remy Bohmer9eeaa8e2011-02-12 19:06:26 +010014# 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
Guennadi Liakhovetski56086922008-09-04 13:01:49 +020019# NAND example
20#/dev/mtd0 0x4000 0x4000 0x20000 2
Lubomir Rintelf1932b72013-02-10 01:02:36 +000021
Stefan Agnerf4742ca2016-07-13 17:14:38 -070022# 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
Lubomir Rintelf1932b72013-02-10 01:02:36 +000025# Block device example
26#/dev/mmcblk0 0xc0000 0x20000
Stefan Agnerf4742ca2016-07-13 17:14:38 -070027#/dev/mmcblk0 -0x20000 0x20000
Waldemar Brodkorbde19edd2015-02-16 05:59:09 +010028
29# VFAT example
30#/boot/uboot.env 0x0000 0x4000
S. Lockwood-Childs34255b92017-11-14 23:01:26 -080031
32# UBI volume
33#/dev/ubi0_0 0x0 0x1f000 0x1f000
34#/dev/ubi0_1 0x0 0x1f000 0x1f000
35
36# UBI volume by name
37#/dev/ubi0:env 0x0 0x1f000 0x1f000
38#/dev/ubi0:env-redund 0x0 0x1f000 0x1f000