blob: 7916ebdb1f6d1836c49d9374cf4ebfac2bcf0009 [file] [log] [blame]
Robert P. J. Day37837322013-01-31 02:06:40 +00001# Configuration file for fw_(printenv/setenv) utility.
Martin Michlmayr5b4eba22008-08-06 14:44:05 +03002# Up to two entries are valid, in this case the redundant
wdenke7f34c62003-01-11 09:48:40 +00003# environment sector is assumed present.
Dustin Byford2f6df462014-03-06 20:48:22 -08004# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
Robert P. J. Day8d56db92016-07-15 13:44:45 -04005# Futhermore, if the Flash sector size is omitted, this value is assumed to
Remy Bohmercb969eb2011-02-12 19:06:26 +01006# be the same as the Environment size, which is valid for NOR and SPI-dataflash
Stefan Agnerb21e6022016-07-13 17:14:38 -07007# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
wdenke7f34c62003-01-11 09:48:40 +00008
Remy Bohmercb969eb2011-02-12 19:06:26 +01009# NOR example
Guennadi Liakhovetskiffb379a2008-09-04 13:01:49 +020010# MTD device name Device offset Env. size Flash sector size Number of sectors
wdenke7f34c62003-01-11 09:48:40 +000011/dev/mtd1 0x0000 0x4000 0x4000
12/dev/mtd2 0x0000 0x4000 0x4000
Guennadi Liakhovetskiffb379a2008-09-04 13:01:49 +020013
Remy Bohmercb969eb2011-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 Liakhovetskiffb379a2008-09-04 13:01:49 +020019# NAND example
20#/dev/mtd0 0x4000 0x4000 0x20000 2
Lubomir Rintel57cb6a32013-02-10 01:02:36 +000021
Stefan Agnerb21e6022016-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 Rintel57cb6a32013-02-10 01:02:36 +000025# Block device example
26#/dev/mmcblk0 0xc0000 0x20000
Stefan Agnerb21e6022016-07-13 17:14:38 -070027#/dev/mmcblk0 -0x20000 0x20000
Waldemar Brodkorb63a7ff92015-02-16 05:59:09 +010028
29# VFAT example
30#/boot/uboot.env 0x0000 0x4000