17789df9dSRobert P. J. Day# Configuration file for fw_(printenv/setenv) utility. 222525779SMartin Michlmayr# Up to two entries are valid, in this case the redundant 3d0fb80c3Swdenk# environment sector is assumed present. 423869bf8SDustin Byford# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. 562a3b7ddSRobert P. J. Day# Futhermore, if the Flash sector size is omitted, this value is assumed to 69eeaa8e6SRemy Bohmer# be the same as the Environment size, which is valid for NOR and SPI-dataflash 7*f4742ca0SStefan Agner# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. 8d0fb80c3Swdenk 99eeaa8e6SRemy Bohmer# NOR example 1056086921SGuennadi Liakhovetski# MTD device name Device offset Env. size Flash sector size Number of sectors 11d0fb80c3Swdenk/dev/mtd1 0x0000 0x4000 0x4000 12d0fb80c3Swdenk/dev/mtd2 0x0000 0x4000 0x4000 1356086921SGuennadi Liakhovetski 149eeaa8e6SRemy Bohmer# MTD SPI-dataflash example 159eeaa8e6SRemy Bohmer# MTD device name Device offset Env. size Flash sector size Number of sectors 169eeaa8e6SRemy Bohmer#/dev/mtd5 0x4200 0x4200 179eeaa8e6SRemy Bohmer#/dev/mtd6 0x4200 0x4200 189eeaa8e6SRemy Bohmer 1956086921SGuennadi Liakhovetski# NAND example 2056086921SGuennadi Liakhovetski#/dev/mtd0 0x4000 0x4000 0x20000 2 21f1932b78SLubomir Rintel 22*f4742ca0SStefan Agner# On a block device a negative offset is treated as a backwards offset from the 23*f4742ca0SStefan Agner# end of the device/partition, rather than a forwards offset from the start. 24*f4742ca0SStefan Agner 25f1932b78SLubomir Rintel# Block device example 26f1932b78SLubomir Rintel#/dev/mmcblk0 0xc0000 0x20000 27*f4742ca0SStefan Agner#/dev/mmcblk0 -0x20000 0x20000 28de19eddfSWaldemar Brodkorb 29de19eddfSWaldemar Brodkorb# VFAT example 30de19eddfSWaldemar Brodkorb#/boot/uboot.env 0x0000 0x4000 31