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.72 #1 (Red Hat Linux)) id 1On5pF-0003mI-ID for linux-mtd@lists.infradead.org; Sun, 22 Aug 2010 08:22:46 +0000 Received: by fxm12 with SMTP id 12so2990126fxm.36 for ; Sun, 22 Aug 2010 01:22:44 -0700 (PDT) Subject: Re: mkfs.ubifs gives corrupt images/crc errors From: Artem Bityutskiy To: Leo Barnes In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Sun, 22 Aug 2010 11:22:41 +0300 Message-ID: <1282465361.16502.53.camel@brekeke> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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-07-27 at 09:03 +0200, Leo Barnes wrote: > Hello! > > The recent versions of mkfs.ubifs in the mtd-utils gives corrupt > images for me. I get the following error messages when trying to mount > the ubi-volume: > > <3>[ 711.246826] UBIFS error (pid 413): ubifs_check_node: bad CRC: > calculated 0x1f8f89ca, read 0xbb39064c > <3>[ 711.247558] UBIFS error (pid 413): ubifs_check_node: bad node at LEB 0:0 > <3>[ 711.247924] UBIFS error (pid 413): ubifs_read_node: expected node type 6 > > I have identified it as being broken since (approximately) after > commit 004760f969175da7392dd02bb4fa14164ff46c1e (Wed Jun 16 09:47:27 > 2010 +0300). Two or three of the commits after this one refuse to > build with various make errors, and the next one that builds gives > corrupt images. It seems to have something to do with the CRC > calculation. I cannot reproduce this. Does this still happen for you? Does cloning the mtd-utils git tree anew help? Artem.