From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 19 Oct 2009 13:10:38 -0500 Subject: [U-Boot] [PATCH] Nand: Implement raw read/write and biterr In-Reply-To: <4AC3AFE1.2030506@windriver.com> References: <1254334299-9583-1-git-send-email-jrigby@control4.com> <4AC3AFE1.2030506@windriver.com> Message-ID: <20091019181038.GA19293@loki.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 30, 2009 at 02:22:09PM -0500, Tom wrote: > John Rigby wrote: >> @@ -494,13 +600,16 @@ U_BOOT_CMD(nand, CONFIG_SYS_MAXARGS, 1, do_nand, >> "nand write - addr off|partition size\n" >> " read/write 'size' bytes starting at offset 'off'\n" >> " to/from memory address 'addr', skipping bad blocks.\n" >> + " .oob - reads/writes oob only.\n" >> + " .raw - reads/writes both main and oob with no error\n" >> + " detection or correction\n" > > Writing the oob area directly is UNSAFE. > Having done to myself, it was a pain to undo. > You should put at least document that. If we warn about oob being unsafe, the same warning should be made for raw. -Scott