GEOM_MTD

Alex RAY ray at ddteam.net
Thu Feb 11 18:50:08 UTC 2010



-----Original Message-----
From: M. Warner Losh <imp at bsdimp.com>
Sent: 11 лютого 2010 р. 19:01
To: ray at dlink.ua
Cc: freebsd-mips at FreeBSD.org; loos.br at gmail.com
Subject: Re: GEOM_MTD

In message: <20100211175849.602d08cf.ray at dlink.ua>
            Alexandr Rybalko <ray at dlink.ua> writes:
: 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.

> I've seen the MTD stuff also passed in as command line arguments for
Linux.

Only MTD device name for mount rootfs, like that "rootfs=/dev/mtdblock/0"


: 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.

> This seems a little weird to me...  > Must be something I'm not getting
about this syntax.  Are the characters '-' '-' 'P' 'a' 'C' 'k' 'I' 'm'
'G' 's' '-' '-' at the start of one of the partitions?

Yes. D-Link DIR-320 (cpu BCM5354) load kernel and rootfs in single file which have:
1. image header (image magic, size, CRC etc.)
2. Kernel
3. keyword '--PaCkImGs--' as a delimeter between kernel and rootfs
4. And rootfs

In different firmware different size of kernel and different rootfs offset.



Warner



More information about the freebsd-mips mailing list