From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OKCP2-0005zS-Fm for linux-mtd@lists.infradead.org; Thu, 03 Jun 2010 15:32:20 +0000 Received: by fxm15 with SMTP id 15so207366fxm.36 for ; Thu, 03 Jun 2010 08:32:11 -0700 (PDT) Subject: Re: CRC error when mounting UBIFS From: Artem Bityutskiy To: Leo Barnes In-Reply-To: References: <1275575118.9729.2.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Thu, 03 Jun 2010 18:32:07 +0300 Message-Id: <1275579127.9729.6.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2010-06-03 at 17:14 +0200, Leo Barnes wrote: > Hmm, ok. I would have thought the paranoid UBI checks would be able to > find driver related problems. I have however now tried creating and > mounting ubi/ubifs through nandsim on the device, so ubifs seems to be > working well. Well, with extra self-checks, UBI reads all it writes and verifies, but since all writes are aligned, all UBI reads are aligned too. > I have tried mtd_readtest on the driver which fails when I allow > OOB-reads. Since the driver handles ECC in hardware and I dont need to > read the OOB-data for the sake of UBI/UBIFS, this should be no > problem. When removing the oob-reads from the test, it works > perfectly. > > You are probably right that what fails is unaligned/short reads, since > this is exactly the functionality that I had to add to the driver. > Does any of the mtd-tests test these kinds of reads? Might be a good > addition if not. I do not remember, you'd need to look into the test. And of course patches are welcome. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)