[PATCH 0/2] Support skipping bad blocks when seeking to start address
David Oberhollenzer
david.oberhollenzer at sigma-star.at
Sun Jan 22 22:47:50 PST 2017
On 01/17/2017 12:54 PM, Mike Crowe wrote:
> I found myself needing to write and verify part of a partition that
> will be read by the bootloader by skipping blocks from the start of
> the partition. Initially I added separate --input-skip and
> --output-skip options but David Oberhollenzer suggested in
> <cdfdbe5d-1aa8-e424-7691-338d0d63f7b1 at sigma-star.at>
> http://lists.infradead.org/pipermail/linux-mtd/2016-December/070855.html
> that a simple flag to indicate that the start address should skip bad
> blocks would avoid ambiguity.
>
> David also suggested that I skip the bad blocks in a separate step
> before the already-cluttered main loop.
>
> This version uses is_virt_block_bad in nandwrite, so the series now depends
> on David Oberhollenzer's virtual block handling fixes from
> <20170112102828.13124-1-david.oberhollenzer at sigma-star.at>
> http://lists.infradead.org/pipermail/linux-mtd/2017-January/071544.html
>
> Mike Crowe (2):
> nandwrite: Add --skip-bad-blocks-to-start option
> nanddump: Add --skip-bad-blocks-to-start option
>
> nand-utils/nanddump.c | 23 +++++++++++++++++++++++
> nand-utils/nandwrite.c | 26 ++++++++++++++++++++++++++
> 2 files changed, 49 insertions(+)
>
Applied to mtd-utils.git.
Thanks,
David
More information about the linux-mtd
mailing list