From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 22 Sep 2011 13:40:50 -0500 Subject: [U-Boot] [PATCH 2/5 V3] NAND: Add nand read.raw and write.raw commands In-Reply-To: <1316716571-2876-1-git-send-email-marek.vasut@gmail.com> References: <1316656529-8252-1-git-send-email-marek.vasut@gmail.com> <1316716571-2876-1-git-send-email-marek.vasut@gmail.com> Message-ID: <4E7B8132.4090606@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/22/2011 01:36 PM, Marek Vasut wrote: > @@ -695,10 +711,11 @@ U_BOOT_CMD( > "NAND sub-system", > "info - show available NAND devices\n" > "nand device [dev] - show or set current device\n" > - "nand read - addr off|partition size\n" > - "nand write - addr off|partition size\n" > + "nand read[.raw] - addr off|partition\n" > + "nand write[.raw] - addr off|partition\n" > " read/write 'size' bytes starting at offset 'off'\n" > " to/from memory address 'addr', skipping bad blocks.\n" > + " Use read.raw/write.raw to avoid ECC and write the block as-is.\n" Only the .raw version lacks size -- please do not remove it from the help text for the normal read/write. > diff --git a/doc/README.nand b/doc/README.nand > index 751b693..62c077e 100644 > --- a/doc/README.nand > +++ b/doc/README.nand > @@ -94,6 +94,15 @@ Commands: > of data for one 512-byte page or 2 256-byte pages. There is no check > for bad blocks. > > + nand read.raw addr ofs|partition > + Read block from `ofs' in NAND flash to `addr'. This reads the raw block, > + so ECC is avoided and the OOB area is read as well. > + > + nand write.raw addr ofs|partition > + Write block from `addr' to `ofs' in NAND flash. This writes the raw block, > + so ECC is avoided and the OOB area is written as well, making the whole > + block written as-is. Again, it's operating on a page, not a block. -Scott