[U-Boot-Users] [PATCH] NAND: Do not write or read a whole block if it is larger than the environment
Scott Wood
scottwood at freescale.com
Mon Aug 4 23:35:57 CEST 2008
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 at 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
More information about the U-Boot
mailing list