Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 17:58:49 +0200
From:      Alexandr Rybalko <ray@dlink.ua>
To:        freebsd-mips@freebsd.org
Cc:        loos.br@gmail.com
Subject:   GEOM_MTD
Message-ID:  <20100211175849.602d08cf.ray@dlink.ua>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.






-- 
Alexandr Rybalko <ray@dlink.ua>

[-- Attachment #2 --]
hint.siba.0.at="nexus0"
hint.siba.0.maddr="0x18000000"
hint.siba.0.msize="0x10000"

# uart0
hint.uart.0.at="siba_cc0"
hint.uart.0.maddr="0x18000300"
hint.uart.0.msize="0x8"
hint.uart.0.flags="0x30"
hint.uart.0.irq=0



hint.mtd.0.at="cfid0"
hint.mtd.0.start=0x00000000
hint.mtd.0.end=0x00030000
hint.mtd.0.name="cfe"
hint.mtd.0.readonly=1


hint.mtd.1.at="cfid0"
hint.mtd.1.start=0x00030000
hint.mtd.1.end=0x00040000
hint.mtd.1.name="rgdb"


hint.mtd.2.at="cfid0"
hint.mtd.2.start=0x00040000
hint.mtd.2.end=0x003e0000
hint.mtd.2.name="upgrade"

hint.mtd.3.at="cfid0"
hint.mtd.3.start=0x003f8000
hint.mtd.3.end=0x00400000
hint.mtd.3.name="nvram"

hint.mtd.4.at="cfid0"
hint.mtd.4.start=0x003f6000
hint.mtd.4.end=0x003f8000
hint.mtd.4.name="bdcfg"

hint.mtd.5.at="cfid0"
hint.mtd.5.start=0x00040000
hint.mtd.5.name="kernel"
hint.mtd.5.offset="96"
hint.mtd.5.search="end"
hint.mtd.5.searchkey="--PaCkImGs--"
hint.mtd.5.searchstart="524384" # 8 64K blocks + AlphaHeaderSize( 96B )
hint.mtd.5.searchstep="65536"


hint.mtd.6.at="cfid0"
hint.mtd.6.end=0x003e0000
hint.mtd.6.name="rootfs"
hint.mtd.6.offset="32"
hint.mtd.6.search="start"
hint.mtd.6.searchkey="--PaCkImGs--"
hint.mtd.6.searchstart="524384" # 8 64K blocks + AlphaHeaderSize( 96B )
hint.mtd.6.searchstep="65536"


hint.mtd.7.at="cfid0"
hint.mtd.7.start=0x003e0000
hint.mtd.7.end=0x003f0000
hint.mtd.7.name="langpack"


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100211175849.602d08cf.ray>