From owner-freebsd-embedded@FreeBSD.ORG Wed Feb 17 21:21:59 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F9A106566B; Wed, 17 Feb 2010 21:21:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 470B08FC1A; Wed, 17 Feb 2010 21:21:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1HLB7uO051756; Wed, 17 Feb 2010 14:11:07 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 17 Feb 2010 14:11:22 -0700 (MST) Message-Id: <20100217.141122.519459540486724915.imp@bsdimp.com> To: jhb@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <201002171359.27822.jhb@freebsd.org> References: <20100211180234.6015b7c6.ray@dlink.ua> <201002171359.27822.jhb@freebsd.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: ray@dlink.ua, freebsd-embedded@FreeBSD.org Subject: Re: GEOM_MTD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 21:21:59 -0000 In message: <201002171359.27822.jhb@freebsd.org> John Baldwin writes: : On Thursday 11 February 2010 11:02:34 am Alexandr Rybalko wrote: : > Hi, : > : > in attachment GEOM module to support MTD partitioning. : > All systems in which I have seen support MTD partitions do it via values in : source code. : > For more convenient change the partitions, I use hints. : > : > Example hints file also in attachment. : > In this example one of partitions (0x00040000-0x003e0000) split by keyword : '--PaCkImGs--' into two partitions ("kernel" and : > "roots") : > Others think things will be clear from the file itself. : : Hmm, it appears that the attachment was stripped. Perhaps you could post the : code to a public URL? Also, I would suggest that using : : hint.mtd.X.start="search" : : might be more intuitive than : : hint.mtd.X.search="start" : : Then each partition always had a 'start' and 'end' value. You could just : reject hints that have 'search' for both the start and end. I'm concerned about how general this will be, mostly because I've seen things in the Linux world either pass in the partitioning, or the partitioning was hard coded in the platform files. Warner