From owner-freebsd-embedded@FreeBSD.ORG Wed Feb 17 20:49:24 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 6BFDA10656C8 for ; Wed, 17 Feb 2010 20:49:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3878FC1A for ; Wed, 17 Feb 2010 20:49:24 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id E4D3846B0D; Wed, 17 Feb 2010 15:49:23 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 2F2C08A026; Wed, 17 Feb 2010 15:49:23 -0500 (EST) From: John Baldwin To: freebsd-embedded@freebsd.org Date: Wed, 17 Feb 2010 13:59:27 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20100120; KDE/4.3.1; amd64; ; ) References: <20100211180234.6015b7c6.ray@dlink.ua> In-Reply-To: <20100211180234.6015b7c6.ray@dlink.ua> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201002171359.27822.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 17 Feb 2010 15:49:23 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Alexandr Rybalko 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 20:49:24 -0000 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. -- John Baldwin