From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f222.google.com ([209.85.220.222]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NUoQP-0008OZ-GD for linux-mtd@lists.infradead.org; Tue, 12 Jan 2010 21:37:21 +0000 Received: by fxm22 with SMTP id 22so27255595fxm.2 for ; Tue, 12 Jan 2010 13:37:16 -0800 (PST) Subject: Re: Fail to mount ubifs From: Artem Bityutskiy To: Jon Ringle In-Reply-To: <152584231001120407m6fc901edrd6584f55edc04341@mail.gmail.com> References: <152584231001111056n2d174f8fmef6641c4fee99781@mail.gmail.com> <152584231001111620i6b397f43n49733caa8f92f472@mail.gmail.com> <1263271808.30988.38.camel@localhost.localdomain> <152584231001120407m6fc901edrd6584f55edc04341@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Jan 2010 23:37:14 +0200 Message-Id: <1263332234.3445.10.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 Tue, 2010-01-12 at 07:07 -0500, Jon Ringle wrote: > On Mon, Jan 11, 2010 at 11:50 PM, Artem Bityutskiy wrote: > > Hi, > > > > On Mon, 2010-01-11 at 19:20 -0500, Jon Ringle wrote: > >> I should be able to mount an empty ubi volume as ubifs right? > >> But I get this on a freshly made volume: > >> UBIFS error (pid 1493): check_lpt_crc: invalid crc in LPT node: crc > >> cbcb calc cbfb > >> > >> I'm not sure what to try now... > > > > As this entry suggests: > > http://www.linux-mtd.infradead.org/doc/ubifs.html#L_how_send_bugreport > > > > - validate your flash/driver with the MTD tests - looks like you have a > > problem there. > > I will try the tests today and report back. > > >> (initramfs) ubinfo -a > >> UBI version: 1 > >> Count of UBI devices: 1 > >> UBI control device major/minor: 10:60 > >> Present UBI devices: ubi0 > >> > >> ubi0 > >> Volumes count: 2 > >> Logical eraseblock size: 130944 bytes, f KiB > > > > Hmm, this f KiB looks weird. > > Why is it weird? It is 128 bytes less than my PEB size of 0x20000. Because "f" is strange, I did not expect this. The print is: printf("%s%.1f KiB", p, (double)bytes / 1024); see ubiutils_print_bytes() in mtd-utils/ubi-utils/src/common.c Not sure why it prints "f KiB" on your system. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)