From arnaud.derasse@wifidget.com Wed Apr 29 13:51:29 2009
Received: from mx1.esiee.fr ([147.215.1.35])
	by stoneboat.aleph1.co.uk with esmtp (Exim 4.69)
	(envelope-from <arnaud.derasse@wifidget.com>) id 1Lz9G0-0007Yc-6u
	for yaffs@lists.aleph1.co.uk; Wed, 29 Apr 2009 13:51:29 +0100
Received: from mail.esiee.fr (mail.esiee.fr [147.215.1.3])
	by mx1.esiee.fr (Postfix) with ESMTP id BBD78136936
	for <yaffs@lists.aleph1.co.uk>; Wed, 29 Apr 2009 14:51:18 +0200 (CEST)
Received: from mail.esiee.fr (localhost [127.0.0.1])
	by VAMS.dummy (Postfix) with SMTP id AEE5A2E41F
	for <yaffs@lists.aleph1.co.uk>; Wed, 29 Apr 2009 14:51:18 +0200 (CEST)
Received: from [192.168.0.2] (pc6407a.esiee.fr [147.215.60.130])
	by mail.esiee.fr (Postfix) with ESMTP id 8933A2E41F
	for <yaffs@lists.aleph1.co.uk>; Wed, 29 Apr 2009 14:51:18 +0200 (CEST)
Message-ID: <49F84D46.3010208@wifidget.com>
Date: Wed, 29 Apr 2009 14:51:18 +0200
From: Arnaud Derasse <arnaud.derasse@wifidget.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)
MIME-Version: 1.0
To: yaffs@lists.aleph1.co.uk
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-SA-Exim-Connect-IP: 147.215.1.35
X-SA-Exim-Mail-From: arnaud.derasse@wifidget.com
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,
	SUBJECT_FUZZY_TION autolearn=no version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: [Yaffs] YAFFS2 not working - impossible to mount a mtdblock
	partition
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: Discussion of YAFFS NAND flash filesystem <yaffs.lists.aleph1.co.uk>
List-Unsubscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/options/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=unsubscribe>
List-Archive: <http://lists.aleph1.co.uk/lurker/list/yaffs.html>
List-Post: <mailto:yaffs@lists.aleph1.co.uk>
List-Help: <mailto:yaffs-request@lists.aleph1.co.uk?subject=help>
List-Subscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=subscribe>
X-List-Received-Date: Wed, 29 Apr 2009 12:51:29 -0000

Hello,

I am trying to use YAFFS2 with a 2k Nand page device on a Freescale 
i.Mx27 SoC.
JFFS2 is working fine on that system, but Yaffs2 don't.

If I erase a flash partition then, mount a Yaffs2 , it's working. Then I 
can write to the file system.
If I umount the filesystem, then, I am completely unable to remount it :
yaffs: yaffs_GutsInitialise() aborted.
yaffs_read_super: guts initialised FAILED

I am actually trying to know where is the problem. I created a 2 Mo (16 
blocks) partition, erased it.

I think, the problem is when unmounting the fs. I have some errors like :
Object 261 chunkId 1 NAND mismatch chunk 65 tags (261:281477121)
Obj 268435717 header mismatch objectId 261

Or strange things like :
packed tags obj 3 chunk 1 byte 2048 seq 33
ext.tags eccres -945280000 blkbad -944849284 chused -1072225660 obj 3 
chunk1 byte 2048 del 0 ser -1072230092 seq 33

You can see the full logfiles for all the following actions on pastebin :
First mount of erased partition : http://pastebin.com/m27ba9386
Write of a file : http://pastebin.com/m7c428c13
Unmount of filesystem : http://pastebin.com/m349831ef
Re mount of filesystem : http://pastebin.com/m6c8350be

I would really appreciate some clues or ideas, to be able to understand 
why Yaffs2 is not working on my system. Also, if a create a Yaffs2 Image 
with mkjaffs2image tool  and then write it to the flash device, it's not 
working better.

Thank you

Arnaud Derasse


