summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2019-04-08 13:32:18 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-04-12 17:32:51 +0200
commitb158e56f34f6546d0fc1f4261bb2dd0472524b39 (patch)
tree76b93d3e04692cd7bcba76791ea38b535029d2c6
parent27fc2f281c903f767d422e85f527ec938704cb51 (diff)
configs: vcoreiii: Change CONFIG_ENV_SIZE
Shrink the environment size for 3 reasons: - reading the environment it is slow, therefore having a smaller env improves the speed. - usually in the environment there are only few variables, therefore the enviromnent is almost empty. - because the same image can run on different boards which may have different flashes with different page sizes, the CONFIG_ENV_SECT_SIZE can't be change, it is set to least common multiple of the page sizes. Adding this change improves the boot time. Before update for reading the entire environment it took ~850 msec, after the change it takes ~40 msecs. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
-rw-r--r--include/configs/vcoreiii.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/vcoreiii.h b/include/configs/vcoreiii.h
index aeef58db42b..8c68372026e 100644
--- a/include/configs/vcoreiii.h
+++ b/include/configs/vcoreiii.h
@@ -27,7 +27,7 @@
#if defined(CONFIG_ENV_IS_IN_SPI_FLASH) && !defined(CONFIG_ENV_OFFSET)
#define CONFIG_ENV_OFFSET (1024 * 1024)
-#define CONFIG_ENV_SIZE (256 * 1024)
+#define CONFIG_ENV_SIZE (8 * 1024)
#define CONFIG_ENV_SECT_SIZE (256 * 1024)
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT