From owner-freebsd-geom@FreeBSD.ORG Mon Apr 6 08:24:17 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D36F91065670 for ; Mon, 6 Apr 2009 08:24:17 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 442FF8FC22 for ; Mon, 6 Apr 2009 08:24:17 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id DE4B98FC4E for ; Mon, 6 Apr 2009 12:24:15 +0400 (MSD) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id B897F8FC1D; Mon, 6 Apr 2009 12:24:14 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 055A83981A; Mon, 6 Apr 2009 12:24:15 +0400 (MSD) Date: Mon, 6 Apr 2009 12:24:10 +0400 From: Stanislav Sedov To: Andrew Turner Message-Id: <20090406122410.daab24b3.stas@FreeBSD.org> In-Reply-To: <20090405175014.6aef7016@fubar.geek.nz> References: <20090405175014.6aef7016@fubar.geek.nz> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Apr 6 12:24:15 2009 X-DSPAM-Confidence: 1.0000 X-DSPAM-Improbability: 1 in 98689409 chance of being spam X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 49d9bc2f967001306411375 Cc: freebsd-embedded@freebsd.org, freebsd-geom@freebsd.org Subject: Re: FreeBSD NAND flash driver X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 08:24:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 5 Apr 2009 17:50:14 +1200 Andrew Turner mentioned: > I've been working on a FreeBSD NAND flash driver and NAND simulator [1]. > I have tested reading and writing to the simulated NAND device but not > erasing. Great news! > It is not usable yet as the write will not perform any deletes from the > device, either the file system or another geom will have to issue > a BIO_DELETE followed by BIO_WRITE's to write to the disk. This is done > to support NAND flash aware file systems. > So, for ordinary file systems we're going to use the special geom layer that will sit above the nand(8) device and perform BIO_DELETE operations when required? > TODO: > * ECC support. > * Add GEOM attributes to get information about the NAND device out, > eg. Block size, OOB data, etc. > * Test the erase code. > * Add support for real hardware. > * Read the parameter page on parts that support it to get the required > information. > > Andrew > > [1] http://fubar.geek.nz/files/freebsd/nand/freebsd-nand-20090405.tar.gz What about putting this information to the wiki? Seems like a good start for anyone who'll be working on the real hardware. And thanks again for the great work! - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAknZvC4ACgkQK/VZk+smlYFgGQCeP/sXZcjhEBrvHQtdcO+iPC6R yKoAnisUV9Jmfagx4sQCcE5wWGABI/y0 =cmW/ -----END PGP SIGNATURE----- !DSPAM:49d9bc2f967001306411375!