From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay101b.appriver.com ([207.97.230.15] helo=relay.appriver.com) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOmOl-0006ts-4f for linux-mtd@lists.infradead.org; Wed, 04 Jan 2017 14:18:39 +0000 From: Mike Crowe To: linux-mtd@lists.infradead.org Cc: Mike Crowe Subject: [PATCH 0/2] Support skipping bad blocks when seeking to start address Date: Wed, 4 Jan 2017 14:18:04 +0000 Message-Id: <1483539486-16165-1-git-send-email-mac@mcrowe.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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. 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(+) -- 2.1.4