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 <h...@denx.de>
Cc: Scott Wood <scottw...@freescale.com>
Cc: Pantelis Antoniou <pa...@antoniou-consulting.com>
Cc: Lukasz Majewski <l.majew...@samsung.com>
Cc: Kyungmin Park <kyungmin.p...@samsung.com>
Cc: Marek Vasut <ma...@denx.de>
Cc: Tom Rini <tr...@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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot