[U-Boot] [PATCH v3] dfu, nand: before write a buffer to nand, erase the nand sectors

Scott Wood scottwood at freescale.com
Sat Jun 22 00:50:04 CEST 2013


On 06/21/2013 12:09:18 AM, Heiko Schocher wrote:
> diff --git a/drivers/mtd/nand/nand_util.c  
> b/drivers/mtd/nand/nand_util.c
> index d81972c..2778f7f 100644
> --- a/drivers/mtd/nand/nand_util.c
> +++ b/drivers/mtd/nand/nand_util.c
> @@ -120,6 +120,10 @@ int nand_erase_opts(nand_info_t *meminfo, const  
> nand_erase_options_t *opts)
> 
>  		WATCHDOG_RESET();
> 
> +		if (opts->lim && (erase.addr > (opts->offset +  
> opts->lim))) {

Should be >=

-Scott


More information about the U-Boot mailing list