Finding flash type...

Ricard Wanderlof ricard.wanderlof at axis.com
Thu Nov 30 04:53:04 EST 2006


On Wed, 29 Nov 2006, Siddharth Choudhuri wrote:

> Is it possible to know what kind of flash (NOR type or
> NAND type) is installed on a system ? (may be using
> lsmod -or- cat /proc/ksyms | grep ? )

There is an ioctl (MEMGETINFO) that provides information on the type of 
flash memory among other info about the device. It is used by the 
mtd_debug utility which is part of the mtd-utils package, which dumps the 
information in human-readable form.

You can otherwise guess by checking the erasesize provided by
cat /proc/mtd, comparing the erasesize against expected erase sizes for 
the devices you expect to find. As a general solution this doesn't work 
well though.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30




More information about the linux-mtd mailing list