UBI(FS) issues: how to debug?
Josh Cartwright
josh.cartwright at ni.com
Thu Mar 28 19:54:13 EDT 2013
On Thu, Mar 28, 2013 at 02:05:14PM -0600, David Mosberger-Tang wrote:
> Josh,
>
> Probably a stupid question, but are you sure the on-die ECC controller is
> being used? The stock kernel has no support for on-die controller.
Hey David-
Not a stupid question at all. The driver we've been using has been
hacked to support on-die ECC. I was told that the NAND peripheral on
the SoC is limited to 1-bit ECC, so they are recommending Micron parts
with on-die ECC for use with Zynq.
http://git.xilinx.com/?p=linux-xlnx.git;a=blob_plain;f=drivers/mtd/nand/xilinx_nandps.c;hb=04d9378881401e71f83b8b4fea0abd71d33b4052
Now, it's still an open question as to whether it's implemented
properly. There is some ambiguity in the Micron datasheet as to how
software is supposed to handle reading the on-die ECC status (and how it
should properly handle failures). We're still trying to work this out.
Interestingly, after sending this email, we did confirm that at least
in the case of u-boot load-time CRC failures we were seeing, the on-die
ECC block was returning an un-correctable failure.
Josh
More information about the linux-mtd
mailing list