From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 24 Jun 2013 18:26:07 -0500 Subject: [U-Boot] [PATCH v4] dfu, nand: before write a buffer to nand, erase the nand sectors In-Reply-To: <1372092640-1656-1-git-send-email-hs@denx.de> (from hs@denx.de on Mon Jun 24 11:50:40 2013) References: <1371791358-13066-1-git-send-email-hs@denx.de> <1372092640-1656-1-git-send-email-hs@denx.de> Message-ID: <1372116367.8183.10@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Scott Wood > Cc: Pantelis Antoniou > Cc: Lukasz Majewski > Cc: Kyungmin Park > Cc: Marek Vasut > Cc: Tom Rini > > --- > - 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