From owner-freebsd-geom@FreeBSD.ORG Mon May 21 10:03:45 2012 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 A9F501065675 for ; Mon, 21 May 2012 10:03:45 +0000 (UTC) (envelope-from gjb@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 5843E8FC15 for ; Mon, 21 May 2012 10:03:45 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 71C39D580A; Mon, 21 May 2012 12:03:28 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id 5K0O4qBO9eSR; Mon, 21 May 2012 12:03:27 +0200 (CEST) Received: from [10.0.0.93] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 54B60D566D; Mon, 21 May 2012 12:03:26 +0200 (CEST) Message-ID: <4FBA2EC2.1040302@semihalf.com> Date: Mon, 21 May 2012 14:02:10 +0200 From: Grzegorz Bernacki User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.24) Gecko/20120127 Thunderbird/3.1.16 MIME-Version: 1.0 To: Aleksandr Rybalko References: <4FB6802F.8030207@semihalf.com> <20120518233826.7dbce81c.ray@ddteam.net> In-Reply-To: <20120518233826.7dbce81c.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: RFC - GEOM Flashmap 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, 21 May 2012 10:03:45 -0000 On 05/18/12 22:38, Aleksandr Rybalko wrote: > On Fri, 18 May 2012 19:00:31 +0200 > Grzegorz Bernacki wrote: > >> Hi, >> >> As a part of our NAND Flash Framework project we would like to add a >> new geom class which allows to divide NAND Flash chip into partitions. >> Nand is divided into partitions based on data in dts file. >> >> The purpose of having this geom class is to separate part of nand >> chip device which might contain some crucial data like u-boot image, >> parameters, etc. into separate devices and use the rest of nand to >> store user data. >> >> Patch can be found at: >> http://people.freebsd.org/~gber/patches/slicer.patch >> it contains geom flashmap code along with changes in FDT area and >> changes in DTS file for SheevaPlug. >> >> Please let me know if you have any comments or objections. >> >> thanks, >> grzesiek >> _______________________________________________ >> freebsd-geom@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-geom >> To unsubscribe, send any mail to >> "freebsd-geom-unsubscribe@freebsd.org" > > Hi Grzegorz, > > Long time ago I was add to my todo list item to add FDT support to > geom_map module. Now you have good replacement. > (/me cut off one item from todo) > > Just one question: > it is possible to not assume that parent media is NAND? > > + if (g_io_getattr("NAND::device", cp,&size,&dev)) > + break; > > WBW Hi Alexandr, It seems to be doable. It requires additional testing and additional review. We would like to apply this patch now. And then if necessary this mechanism might be changed to allow other types of devices. thanks, grzesiek