Brad Bishop | 0af63e4 | 2015-10-22 15:38:02 -0500 | [diff] [blame] | 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 ignored on NOR and SPI-dataflash. |
Gunnar Mills | 89d609f | 2017-11-10 15:32:28 -0600 | [diff] [blame] | 5 | # Furthermore, if the Flash sector size is omitted, this value is assumed to |
Brad Bishop | 0af63e4 | 2015-10-22 15:38:02 -0500 | [diff] [blame] | 6 | # be the same as the Environment size, which is valid for NOR and SPI-dataflash |
| 7 | |
| 8 | # NOR example |
| 9 | # MTD device name Device offset Env. size Flash sector size Number of sectors |
Milton D. Miller II | f1d0012 | 2016-01-20 15:28:27 -0600 | [diff] [blame] | 10 | #/dev/mtd1 0x0000 0x20000 0x20000 |
Brad Bishop | 0af63e4 | 2015-10-22 15:38:02 -0500 | [diff] [blame] | 11 | #/dev/mtd2 0x0000 0x4000 0x4000 |
| 12 | |
| 13 | # MTD SPI-dataflash example |
| 14 | # MTD device name Device offset Env. size Flash sector size Number of sectors |
Milton D. Miller II | 8084d74 | 2016-01-27 20:18:16 -0600 | [diff] [blame] | 15 | #/dev/mtd2 0x00000 0x20000 |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 16 | /dev/mtd/u-boot-env 0x00000 0x10000 |
| 17 | /dev/mtd/u-boot-env 0x10000 0x10000 |
Brad Bishop | 0af63e4 | 2015-10-22 15:38:02 -0500 | [diff] [blame] | 18 | #/dev/mtd5 0x4200 0x4200 |
| 19 | #/dev/mtd6 0x4200 0x4200 |
| 20 | |
| 21 | # NAND example |
| 22 | #/dev/mtd0 0x4000 0x4000 0x20000 2 |
| 23 | |
| 24 | # Block device example |
| 25 | #/dev/mmcblk0 0xc0000 0x20000 |