From owner-freebsd-geom@FreeBSD.ORG Fri May 18 20:38:43 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 8D0A4106564A for ; Fri, 18 May 2012 20:38:43 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7CA8FC0C for ; Fri, 18 May 2012 20:38:42 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3286829wgb.31 for ; Fri, 18 May 2012 13:38:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=+0TqBO05OMzpR298faOc9DdKMLAOAFI5oWxqvQGq67k=; b=IRNNB3etd3V4hIik+HTydVbyytxT5dqVtdEFBj3ZFHUdbeFsbx7ofSpkpuBUm/cJm0 HsCYe9nX2AARqlZaCE+L60gg6BrKkC3wPCjBcgeWIHHq1AORygg4mAVbqI4yBaSNGHh9 p62WqAvcV2xbg8xb3XH0PkDuwi+cYi7Hhs+J1qGtGSS98XGGokUW+fA25Wz7XOlVij7L DSczdBGSoZemozCw0QJP8KnqcajxhXHsMHAPNBKLFRwCI2WbvGs6G3sJpuqiKLrZb9ib f3LW65My41YgWxSiAXCE4UGKgDdTMlog6yUTq53muvK/GUizVh1A7K73YVlY0DJ8R6zE ZjxA== Received: by 10.216.204.217 with SMTP id h67mr7995822weo.68.1337373516047; Fri, 18 May 2012 13:38:36 -0700 (PDT) Received: from rnote.ddteam.net (53-192-201-46.pool.ukrtel.net. [46.201.192.53]) by mx.google.com with ESMTPS id m1sm3592650wic.6.2012.05.18.13.38.31 (version=SSLv3 cipher=OTHER); Fri, 18 May 2012 13:38:32 -0700 (PDT) Date: Fri, 18 May 2012 23:38:26 +0300 From: Aleksandr Rybalko To: Grzegorz Bernacki Message-Id: <20120518233826.7dbce81c.ray@ddteam.net> In-Reply-To: <4FB6802F.8030207@semihalf.com> References: <4FB6802F.8030207@semihalf.com> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmmcgcQVtVFKGiAQpnbdLbu41K4XMlQXDftfPUr9+XMiSeE11SS6DpxVc/wvAWgJPT7ZS/t 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: Fri, 18 May 2012 20:38:43 -0000 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 -- Aleksandr Rybalko