how to access jffs2 partition properties?

Jörn Engel joern at wohnheim.fh-wedel.de
Mon Mar 14 09:15:09 EST 2005


On Sat, 12 March 2005 12:20:27 -0500, Robert P. J. Day wrote:
> 
>   on a PPC system using a 2.4.22 kernel, is there a way to access the
> properties for the jffs2 filesystems that have been defined on the two
> flash chips this system has?
> 
>   it's easy enough to see the devices /dev/mtdblock/[0-4] that
> represent the partitions, and the file /proc/partitions contains:
> 
>   31     0         64 mtdblocka
>   31     1        384 mtdblockb
>   31     2        128 mtdblockc
>   31     3       3072 mtdblockd
>   31     4      29184 mtdblocke
> 
> but can i examine, for each of these, its chip, starting address,
> ending address, etc?  thanks.

Not all mtd are flash based.  Mtd code should have zero knowledge
about chip, start address, etc.  If you need that information, you
have to tweak the mapping driver to give it out.

Jörn

-- 
Premature optimization is the root of all evil.
-- Donald Knuth




More information about the linux-mtd mailing list