From john.mccash@motorola.com Wed Dec 30 18:14:02 2009
Received: from mail128.messagelabs.com ([216.82.250.131])
	by stoneboat.aleph1.co.uk with esmtps
	(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69)
	(envelope-from <john.mccash@motorola.com>) id 1NQ33V-0005xD-8c
	for yaffs@lists.aleph1.co.uk; Wed, 30 Dec 2009 18:14:02 +0000
X-VirusChecked: Checked
X-Env-Sender: john.mccash@motorola.com
X-Msg-Ref: server-11.tower-128.messagelabs.com!1262196821!7414190!1
X-StarScan-Version: 6.2.4; banners=-,-,-
X-Originating-IP: [136.182.1.15]
Received: (qmail 26007 invoked from network); 30 Dec 2009 18:13:41 -0000
Received: from motgate5.mot.com (HELO motgate5.mot.com) (136.182.1.15)
	by server-11.tower-128.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 30 Dec 2009 18:13:41 -0000
Received: from il27exr04.cig.mot.com ([10.17.196.73])
	by motgate5.mot.com (8.14.3/8.14.3) with ESMTP id nBUIDeGG028714
	for <yaffs@lists.aleph1.co.uk>; Wed, 30 Dec 2009 11:13:40 -0700 (MST)
Received: from il27vts02.mot.com (il27vts02.cig.mot.com [10.17.196.86])
	by il27exr04.cig.mot.com (8.13.1/Vontu) with SMTP id nBUIDeP6017320
	for <yaffs@lists.aleph1.co.uk>; Wed, 30 Dec 2009 12:13:40 -0600 (CST)
Received: from de01exm71.ds.mot.com (de01exm71.am.mot.com [10.176.8.27])
	by il27exr04.cig.mot.com (8.13.1/8.13.0) with ESMTP id nBUIDeFP017308
	for <yaffs@lists.aleph1.co.uk>; Wed, 30 Dec 2009 12:13:40 -0600 (CST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 30 Dec 2009 13:13:18 -0500
Message-ID: <D8DFDF3C534B344B9A266EB03CC828BB04927068@de01exm71.ds.mot.com>
In-Reply-To: <200912081055.16244.manningc2@actrix.gen.nz>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Yaffs] Access to files on a YAFFS2 image
thread-index: Acp3iAK61kZfhhR+QGGQBxxhHpOTIgR8fRRA
References: <D8DFDF3C534B344B9A266EB03CC828BB04926D50@de01exm71.ds.mot.com>
	<200912070918.13634.manningc2@actrix.gen.nz>
	<D8DFDF3C534B344B9A266EB03CC828BB04926FA2@de01exm71.ds.mot.com>
	<200912081055.16244.manningc2@actrix.gen.nz>
From: "McCash John-GKJN37" <john.mccash@motorola.com>
To: "Charles Manning" <manningc2@actrix.gen.nz>,
 <yaffs@lists.aleph1.co.uk>
X-CFilter-Loop: Reflected
X-SA-Exim-Connect-IP: 216.82.250.131
X-SA-Exim-Mail-From: john.mccash@motorola.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=-6.6 required=4.5 tests=AWL,BAYES_00,
	RCVD_IN_DNSWL_MED autolearn=ham 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: Re: [Yaffs] Access to files on a YAFFS2 image
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, 30 Dec 2009 18:14:03 -0000

Charles,
	I'm making some progress on this project. I now have a utility
that appears to dump the yaffs2 filesystem, including the OOB area. I'm
even able to use nandwrite to upload this dump to an emulated flash
device under linux, but when I subsequently mount the device, I see
nothing but a lost+found folder.

	The Android device I'm dumping the filesystem from has kernel
version 2.6.27, and the following YAFFS settings:

CONFIG_YAFFS_FS=3Dy
CONFIG_YAFFS_YAFFS1=3Dy
# CONFIG_YAFFS_9BYTE_TAGS is not set
# CONFIG_YAFFS_DOES_ECC is not set
CONFIG_YAFFS_YAFFS2=3Dy
CONFIG_YAFFS_AUTO_YAFFS2=3Dy
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
CONFIG_YAFFS_SHORT_NAMES_IN_RAM=3Dy

The system I'm attempting to mount the image on has kernel version
2.6.28, and the following YAFFS settings:

CONFIG_YAFFS_FS=3Dm
CONFIG_YAFFS_YAFFS1=3Dy
# CONFIG_YAFFS_9BYTE_TAGS is not set
# CONFIG_YAFFS_DOES_ECC is not set
CONFIG_YAFFS_YAFFS2=3Dy
CONFIG_YAFFS_AUTO_YAFFS2=3Dy
# CONFIG_YAFFS_DISABLE_TAGS_ECC is not set
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
CONFIG_YAFFS_SHORT_NAMES_IN_RAM=3Dy

Note that the CONFIG_YAFFS_DISABLE_TAGS_ECC option was added between
these versions, and is not set, per the associated configuration
suggestion.

Should this be working? If not, is there some option I can apply to the
mount command that might help? I see from the source that several are
supported, though I haven't found documentation for them. Also, should I
be using the -n option on nandwrite, to skip the ecc information?

		Thanks again
			John


