From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mms1.broadcom.com ([216.31.210.17]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QZ3Cf-0008C5-5K for linux-mtd@lists.infradead.org; Tue, 21 Jun 2011 15:49:30 +0000 From: "Brian Norris" To: "Artem Bityutskiy" Subject: [PATCH v2 6/7] nanddump: add --oob option Date: Tue, 21 Jun 2011 08:46:40 -0700 Message-ID: <1308671201-18197-7-git-send-email-computersforpeace@gmail.com> In-Reply-To: <1308671201-18197-1-git-send-email-computersforpeace@gmail.com> References: <1308671201-18197-1-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org, Brian Norris , David Woodhouse , Mike Frysinger List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Adds an explicit option for including OOB data in our data dump. Currently, this is the default behavior, but in the next release, the default will be to exclude OOB data. This is done to mirror the '-o' option in nandwrite. Signed-off-by: Brian Norris --- nanddump.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/nanddump.c b/nanddump.c index 81ada28..7941aa2 100644 --- a/nanddump.c +++ b/nanddump.c @@ -59,6 +59,7 @@ static void display_help(void) "-l length --length=length Length\n" "-n --noecc Read without error correction\n" "-o --omitoob Omit oob data\n" +" --oob Dump OOB data\n" "-p --prettyprint Print nice (hexdump)\n" "-q --quiet Don't display progress and status messages\n" "-s addr --startaddress=addr Start address\n" @@ -127,6 +128,7 @@ static void process_options(int argc, char * const argv[]) {"help", no_argument, 0, 0}, {"version", no_argument, 0, 0}, {"bb", required_argument, 0, 0}, + {"oob", no_argument, 0, 0}, {"forcebinary", no_argument, 0, 'a'}, {"canonicalprint", no_argument, 0, 'c'}, {"file", required_argument, 0, 'f'}, @@ -170,6 +172,9 @@ static void process_options(int argc, char * const argv[]) error++; bb_default = false; break; + case 3: /* --oob */ + omitoob = false; + break; } break; case 'b': -- 1.7.0.4