[U-Boot] [PATCH] Nand: Implement raw read/write and biterr

Scott Wood scottwood at freescale.com
Mon Oct 19 20:10:38 CEST 2009


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


More information about the U-Boot mailing list