Wolfgang,
You're right. Can't ignore the chance that CFG_ENV_SIZE might be
larger than CFG_ENV_SECT_SIZE, although both are defined in platform
configuration file.
I will send out the patch again with condition check.
[/snip]
u32 sector = 1;
...
if
From: TsiChung Liew [EMAIL PROTECTED]
The CFG_ENV_SIZE is not suitable used for SPI flash erase
sector size if CFG_ENV_SIZE is less than CFG_ENV_SECT_SIZE.
Add condition check if CFG_ENV_SIZE is larger than
CFG_ENV_SECT_SIZE, calculate the right number of sectors for
erasing.
Signed-off-by:
From: TsiChung Liew [EMAIL PROTECTED]
The CFG_ENV_SIZE is not suitable used for SPI flash erase
sector size.
Signed-off-by: TsiChung Liew [EMAIL PROTECTED]
---
common/env_sf.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/env_sf.c b/common/env_sf.c
index
3 matches
Mail list logo