[U-Boot] [PATCH v4] dfu, nand: before write a buffer to nand, erase the nand sectors
Scott Wood
scottwood at freescale.com
Tue Jun 25 01:26:07 CEST 2013
On 06/24/2013 11:50:40 AM, Heiko Schocher wrote:
> before writing the received buffer to nand, erase the nand
> sectors. If not doing this, nand write fails. See for
> more info here:
>
> http://lists.denx.de/pipermail/u-boot/2013-June/156361.html
>
> Using the nand erase option "spread", maybe overwrite
> blocks on, for example another mtd partition, if the
> erasing range contains bad blocks.
> So a limit option is added to nand_erase_opts()
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
> Cc: Scott Wood <scottwood at freescale.com>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: Kyungmin Park <kyungmin.park at samsung.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Tom Rini <trini at ti.com>
>
> ---
> - changes for v2:
> - use opts.spread as Scott Wood suggested
> - changes for v3:
> - add opts.lim as Scott Wood suggested
> - changes for v4:
> - fix boundary check as Scott Wood mentioned
Applied to u-boot-nand-flash
-Scott
More information about the U-Boot
mailing list