Robert P. J. Day | 7789df9 | 2013-01-31 02:06:40 +0000 | [diff] [blame] | 1 | # Configuration file for fw_(printenv/setenv) utility. |
Martin Michlmayr | 2252577 | 2008-08-06 14:44:05 +0300 | [diff] [blame] | 2 | # Up to two entries are valid, in this case the redundant |
wdenk | d0fb80c | 2003-01-11 09:48:40 +0000 | [diff] [blame] | 3 | # environment sector is assumed present. |
Dustin Byford | 23869bf | 2014-03-06 20:48:22 -0800 | [diff] [blame] | 4 | # Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. |
Robert P. J. Day | 62a3b7d | 2016-07-15 13:44:45 -0400 | [diff] [blame] | 5 | # Futhermore, if the Flash sector size is omitted, this value is assumed to |
Remy Bohmer | 9eeaa8e | 2011-02-12 19:06:26 +0100 | [diff] [blame] | 6 | # be the same as the Environment size, which is valid for NOR and SPI-dataflash |
Stefan Agner | f4742ca | 2016-07-13 17:14:38 -0700 | [diff] [blame] | 7 | # Device offset must be prefixed with 0x to be parsed as a hexadecimal value. |
wdenk | d0fb80c | 2003-01-11 09:48:40 +0000 | [diff] [blame] | 8 | |
Remy Bohmer | 9eeaa8e | 2011-02-12 19:06:26 +0100 | [diff] [blame] | 9 | # NOR example |
Guennadi Liakhovetski | 5608692 | 2008-09-04 13:01:49 +0200 | [diff] [blame] | 10 | # MTD device name Device offset Env. size Flash sector size Number of sectors |
wdenk | d0fb80c | 2003-01-11 09:48:40 +0000 | [diff] [blame] | 11 | /dev/mtd1 0x0000 0x4000 0x4000 |
| 12 | /dev/mtd2 0x0000 0x4000 0x4000 |
Guennadi Liakhovetski | 5608692 | 2008-09-04 13:01:49 +0200 | [diff] [blame] | 13 | |
Remy Bohmer | 9eeaa8e | 2011-02-12 19:06:26 +0100 | [diff] [blame] | 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 | |
Guennadi Liakhovetski | 5608692 | 2008-09-04 13:01:49 +0200 | [diff] [blame] | 19 | # NAND example |
| 20 | #/dev/mtd0 0x4000 0x4000 0x20000 2 |
Lubomir Rintel | f1932b7 | 2013-02-10 01:02:36 +0000 | [diff] [blame] | 21 | |
Stefan Agner | f4742ca | 2016-07-13 17:14:38 -0700 | [diff] [blame] | 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 | |
Lubomir Rintel | f1932b7 | 2013-02-10 01:02:36 +0000 | [diff] [blame] | 25 | # Block device example |
| 26 | #/dev/mmcblk0 0xc0000 0x20000 |
Stefan Agner | f4742ca | 2016-07-13 17:14:38 -0700 | [diff] [blame] | 27 | #/dev/mmcblk0 -0x20000 0x20000 |
Waldemar Brodkorb | de19edd | 2015-02-16 05:59:09 +0100 | [diff] [blame] | 28 | |
| 29 | # VFAT example |
| 30 | #/boot/uboot.env 0x0000 0x4000 |