From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 10:58:16 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 2AA051065695; Thu, 18 Feb 2010 10:58:16 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id D91298FC08; Thu, 18 Feb 2010 10:58:15 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Ni3Fg-0008Hu-C5; Thu, 18 Feb 2010 12:04:56 +0200 Date: Thu, 18 Feb 2010 12:09:54 +0200 From: Alexandr Rybalko To: John Baldwin Message-Id: <20100218120954.92e6dca8.ray@dlink.ua> In-Reply-To: <201002171359.27822.jhb@freebsd.org> References: <20100211180234.6015b7c6.ray@dlink.ua> <201002171359.27822.jhb@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: 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: Thu, 18 Feb 2010 10:58:16 -0000 On Wed, 17 Feb 2010 13:59:27 -0500 John Baldwin wrote: >> 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? http://my.ddteam.net/files/geom_mtd.c http://my.ddteam.net/files/BCM5354.hints >> Also, I would suggest that using >> >> hint.mtd.X.start="search" I thought about it, but without viewing source of resource_int_value not know how to behave resource_int_value on string value. Now I looked up and remade to test "start"/"end" values for string "search", then if fail - get int value. Thanks for review. >> >> 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. In future we need made allowing search of both start and end, maybe and search for multiple labels with start based on previous slice and. >> >> -- >> John Baldwin -- Alexandr Rybalko