summaryrefslogtreecommitdiffstats
path: root/tools/env/fw_env.config
diff options
context:
space:
mode:
authorDustin Byford <dustin@cumulusnetworks.com>2014-03-06 20:48:22 -0800
committerTom Rini <trini@ti.com>2014-03-12 17:04:28 -0400
commit23869bf80b68af9ef1802b9e556f4fd0e9e57fe5 (patch)
tree332dbcaf3f807b17eb378a68c317c4db2362fa84 /tools/env/fw_env.config
parentf351eb0f18e7fe16c32bcc7951dca559fdd21ecf (diff)
downloadtalos-obmc-uboot-23869bf80b68af9ef1802b9e556f4fd0e9e57fe5.tar.gz
talos-obmc-uboot-23869bf80b68af9ef1802b9e556f4fd0e9e57fe5.zip
fw_env: calculate default number of env sectors
The assumed number of environment sectors (always 1) leads to an incorrect top_of_range calculation in fw.env.c when a flash device has an erase block size smaller than the environment data size (number of environment sectors > 1). This change updates the default number of environment sectors to at least cover the size of the environment. Also corrected a false statement about the number of sectors column in fw_env.config. Signed-off-by: Dustin Byford <dustin@cumulusnetworks.com>
Diffstat (limited to 'tools/env/fw_env.config')
-rw-r--r--tools/env/fw_env.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.config b/tools/env/fw_env.config
index 90e499da1e..c9b9f6a160 100644
--- a/tools/env/fw_env.config
+++ b/tools/env/fw_env.config
@@ -1,7 +1,7 @@
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
-# Notice, that the "Number of sectors" is ignored on NOR and SPI-dataflash.
+# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
# Futhermore, if the Flash sector size is ommitted, this value is assumed to
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
OpenPOWER on IntegriCloud