Messages in this thread |  | | | Date | Thu, 19 May 2011 11:59:52 -0400 | | Subject | Re: [PATCH] UBIFS: don't fail on -EBADMSG when fixing free space | | From | "Matthew L. Creech" <> |
| |
On Thu, May 19, 2011 at 9:28 AM, Ben Gardiner <bengardiner@nanometrics.ca> wrote: > > So I guess my particular situation is a problem with the davinci nand > driver's ECC for 0xFF data and is _not_ covered by the free space > fixup? >
Yeah, that's what it sounds like.
Can you reproduce the -EBADMSG with a simpler test case that leaves UBI/UBIFS out of the equation? Maybe enable write-verify in U-Boot and try using "nand write" again, or use mtd-utils "nandwrite" from an initramfs image then try to read back the data -- that should give a simpler test case that shows whether the ECC handling of empty space is wrong.
If so, that probably needs to be fixed at the MTD level, since it will affect more than this particular UBIFS case.
-- Matthew L. Creech
|  |