]> Git Repo - u-boot.git/commit - drivers/dfu/dfu_nand.c
dfu, nand: before write a buffer to nand, erase the nand sectors
authorHeiko Schocher <[email protected]>
Mon, 24 Jun 2013 16:50:40 +0000 (18:50 +0200)
committerScott Wood <[email protected]>
Mon, 24 Jun 2013 23:17:23 +0000 (18:17 -0500)
commita67cc37e698107ebe7fc89a9046105f31802972e
tree2ebaee7675ccfa9bb3c7f43df17a99a6253888cb
parent9b80aa8ec90d8606346573b92d098470fc320601
dfu, nand: before write a buffer to nand, erase the nand sectors

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 <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Signed-off-by: Scott Wood <[email protected]>
drivers/dfu/dfu_nand.c
drivers/mtd/nand/nand_util.c
include/nand.h
This page took 0.033932 seconds and 4 git commands to generate.