GEOM_MTD

Alexandr Rybalko ray at dlink.ua
Thu Feb 18 10:58:15 UTC 2010


On Wed, 17 Feb 2010 14:11:22 -0700 (MST)
"M. Warner Losh" <imp at bsdimp.com> wrote:

>> In message: <201002171359.27822.jhb at freebsd.org>
>>             John Baldwin <jhb at FreeBSD.org> 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

Yeh, I saw a lot of embedded devices, and all boxes describ map of the MTD devices in files under
kernel/drivers/mtd/maps.

-- 
Alexandr Rybalko <ray at dlink.ua>


More information about the freebsd-embedded mailing list