···11+What: /sys/class/mtd/22+Date: April 200933+KernelVersion: 2.6.2944+Contact: linux-mtd@lists.infradead.org55+Description:66+ The mtd/ class subdirectory belongs to the MTD subsystem77+ (MTD core).88+99+What: /sys/class/mtd/mtdX/1010+Date: April 20091111+KernelVersion: 2.6.291212+Contact: linux-mtd@lists.infradead.org1313+Description:1414+ The /sys/class/mtd/mtd{0,1,2,3,...} directories correspond1515+ to each /dev/mtdX character device. These may represent1616+ physical/simulated flash devices, partitions on a flash1717+ device, or concatenated flash devices. They exist regardless1818+ of whether CONFIG_MTD_CHAR is actually enabled.1919+2020+What: /sys/class/mtd/mtdXro/2121+Date: April 20092222+KernelVersion: 2.6.292323+Contact: linux-mtd@lists.infradead.org2424+Description:2525+ These directories provide the corresponding read-only device2626+ nodes for /sys/class/mtd/mtdX/ . They are only created2727+ (for the benefit of udev) if CONFIG_MTD_CHAR is enabled.2828+2929+What: /sys/class/mtd/mtdX/dev3030+Date: April 20093131+KernelVersion: 2.6.293232+Contact: linux-mtd@lists.infradead.org3333+Description:3434+ Major and minor numbers of the character device corresponding3535+ to this MTD device (in <major>:<minor> format). This is the3636+ read-write device so <minor> will be even.3737+3838+What: /sys/class/mtd/mtdXro/dev3939+Date: April 20094040+KernelVersion: 2.6.294141+Contact: linux-mtd@lists.infradead.org4242+Description:4343+ Major and minor numbers of the character device corresponding4444+ to the read-only variant of thie MTD device (in4545+ <major>:<minor> format). In this case <minor> will be odd.4646+4747+What: /sys/class/mtd/mtdX/erasesize4848+Date: April 20094949+KernelVersion: 2.6.295050+Contact: linux-mtd@lists.infradead.org5151+Description:5252+ "Major" erase size for the device. If numeraseregions is5353+ zero, this is the eraseblock size for the entire device.5454+ Otherwise, the MEMGETREGIONCOUNT/MEMGETREGIONINFO ioctls5555+ can be used to determine the actual eraseblock layout.5656+5757+What: /sys/class/mtd/mtdX/flags5858+Date: April 20095959+KernelVersion: 2.6.296060+Contact: linux-mtd@lists.infradead.org6161+Description:6262+ A hexadecimal value representing the device flags, ORed6363+ together:6464+6565+ 0x0400: MTD_WRITEABLE - device is writable6666+ 0x0800: MTD_BIT_WRITEABLE - single bits can be flipped6767+ 0x1000: MTD_NO_ERASE - no erase necessary6868+ 0x2000: MTD_POWERUP_LOCK - always locked after reset6969+7070+What: /sys/class/mtd/mtdX/name7171+Date: April 20097272+KernelVersion: 2.6.297373+Contact: linux-mtd@lists.infradead.org7474+Description:7575+ A human-readable ASCII name for the device or partition.7676+ This will match the name in /proc/mtd .7777+7878+What: /sys/class/mtd/mtdX/numeraseregions7979+Date: April 20098080+KernelVersion: 2.6.298181+Contact: linux-mtd@lists.infradead.org8282+Description:8383+ For devices that have variable eraseblock sizes, this8484+ provides the total number of erase regions. Otherwise,8585+ it will read back as zero.8686+8787+What: /sys/class/mtd/mtdX/oobsize8888+Date: April 20098989+KernelVersion: 2.6.299090+Contact: linux-mtd@lists.infradead.org9191+Description:9292+ Number of OOB bytes per page.9393+9494+What: /sys/class/mtd/mtdX/size9595+Date: April 20099696+KernelVersion: 2.6.299797+Contact: linux-mtd@lists.infradead.org9898+Description:9999+ Total size of the device/partition, in bytes.100100+101101+What: /sys/class/mtd/mtdX/type102102+Date: April 2009103103+KernelVersion: 2.6.29104104+Contact: linux-mtd@lists.infradead.org105105+Description:106106+ One of the following ASCII strings, representing the device107107+ type:108108+109109+ absent, ram, rom, nor, nand, dataflash, ubi, unknown110110+111111+What: /sys/class/mtd/mtdX/writesize112112+Date: April 2009113113+KernelVersion: 2.6.29114114+Contact: linux-mtd@lists.infradead.org115115+Description:116116+ Minimal writable flash unit size. This will always be117117+ a positive integer.118118+119119+ In the case of NOR flash it is 1 (even though individual120120+ bits can be cleared).121121+122122+ In the case of NAND flash it is one NAND page (or a123123+ half page, or a quarter page).124124+125125+ In the case of ECC NOR, it is the ECC block size.