openocd/src/flash/nand
Jon Povey dc464ad88e NAND/davinci: Fix segfault for hwecc4_infix reads
Page reads using hwecc4_infix layout segfaulted for check_bad_blocks because
the read assumed a valid data buffer, which check_bad_blocks does not use
(it only passes a 6 byte buffer for the start of OOB).

This version copes with undersized or missing data or oob buffers and uses
random read commands within the page to skip unwanted areas of data/OOB for
speed.

NOTE: Running check_bad_blocks with this layout will be reading infix
OOB locations, not manufacturer bad block markers. This means that if you
check blocks written in infix layout they will appear good, but manufacturer-
marked bad blocks may also appear good.
If you want to scan for manufactuer-marked bad blocks, you need to enable
raw_access before running check_bad_blocks, or use the non-infix layout.

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
CC: David Brownell <dbrownell@users.sourceforge.net>
2010-05-18 09:25:03 +02:00
..
arm_io.c NAND/ARM_IO: review scope of functions 2010-04-10 20:09:59 +08:00
arm_io.h rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
at91sam9.c NAND: help/usage/doc updates 2010-01-08 23:18:46 -08:00
core.c NAND: catch read errors when building BBT 2010-05-18 09:23:48 +02:00
core.h NAND/TCL: review scope of functions 2010-04-10 21:50:15 +08:00
davinci.c NAND/davinci: Fix segfault for hwecc4_infix reads 2010-05-18 09:25:03 +02:00
driver.c nand flash support for s3c64xx 2010-01-14 21:07:46 +01:00
driver.h Comment and doxygen fixes 2009-12-09 10:25:52 -08:00
ecc_kw.c rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
ecc.c rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
fileio.c rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
fileio.h split nand.c into nand/{core,fileio,tcl}.c 2009-12-04 21:41:23 -08:00
imp.h add missing call to add new NAND devices 2009-12-11 18:45:34 -08:00
lpc3180.c change %x and %d to PRIx32 and PRId32 where needed for cygwin 2010-03-25 12:45:32 +01:00
lpc3180.h lpc3180: LPC3180(LPC3250) SLC driver implemented 2010-03-16 10:46:41 +01:00
Makefile.am nand flash support for s3c64xx 2010-01-14 21:07:46 +01:00
mx3.c NAND/MX3: review scope of data 2010-04-10 20:03:19 +08:00
mx3.h rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
nonce.c rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
orion.c ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
s3c24xx_regs.h move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c24xx.c move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c24xx.h rename nand.h to flash//nand/core.h 2009-12-04 22:26:25 -08:00
s3c2410.c move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c2412.c move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c2440.c move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c2443.c move nand drivers to src/flash/nand/ 2009-12-02 23:27:09 -08:00
s3c6400.c nand flash support for s3c64xx 2010-01-14 21:07:46 +01:00
tcl.c Change kb/s to KiB/s in messages about kibibytes 2010-05-16 13:55:01 +02:00