
4 Aug
2008
4 Aug
'08
11:35 p.m.
On Thu, Jul 31, 2008 at 12:38:26PM +0200, Guennadi Liakhovetski wrote:
Environment can be smaller than NAND block size, do not need to read a whole block and minimum for writing is one page. Also remove an unused variable.
Signed-off-by: Guennadi Liakhovetski lg@denx.de
Applied to u-boot-nand-flash/testing...
blocksize = nand_info[0].erasesize;
- len = min(blocksize, CFG_ENV_RANGE);
...with CFG_ENV_RANGE changed to CFG_ENV_SIZE.
-Scott