^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/class/mtd/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) The mtd/ class subdirectory belongs to the MTD subsystem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) (MTD core).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) What: /sys/class/mtd/mtdX/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) The /sys/class/mtd/mtd{0,1,2,3,...} directories correspond
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) to each /dev/mtdX character device. These may represent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) physical/simulated flash devices, partitions on a flash
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) device, or concatenated flash devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) What: /sys/class/mtd/mtdXro/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) These directories provide the corresponding read-only device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) nodes for /sys/class/mtd/mtdX/ .
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) What: /sys/class/mtd/mtdX/dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Major and minor numbers of the character device corresponding
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) to this MTD device (in <major>:<minor> format). This is the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) read-write device so <minor> will be even.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) What: /sys/class/mtd/mtdXro/dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Major and minor numbers of the character device corresponding
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) to the read-only variant of thie MTD device (in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) <major>:<minor> format). In this case <minor> will be odd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) What: /sys/class/mtd/mtdX/erasesize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) "Major" erase size for the device. If numeraseregions is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) zero, this is the eraseblock size for the entire device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) Otherwise, the MEMGETREGIONCOUNT/MEMGETREGIONINFO ioctls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) can be used to determine the actual eraseblock layout.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) What: /sys/class/mtd/mtdX/flags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) A hexadecimal value representing the device flags, ORed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) together:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 0x0400: MTD_WRITEABLE - device is writable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 0x0800: MTD_BIT_WRITEABLE - single bits can be flipped
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 0x1000: MTD_NO_ERASE - no erase necessary
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 0x2000: MTD_POWERUP_LOCK - always locked after reset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) What: /sys/class/mtd/mtdX/name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) A human-readable ASCII name for the device or partition.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) This will match the name in /proc/mtd .
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) What: /sys/class/mtd/mtdX/numeraseregions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) For devices that have variable eraseblock sizes, this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) provides the total number of erase regions. Otherwise,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) it will read back as zero.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) What: /sys/class/mtd/mtdX/oobsize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) Number of OOB bytes per page.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) What: /sys/class/mtd/mtdX/size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) Total size of the device/partition, in bytes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) What: /sys/class/mtd/mtdX/type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) One of the following ASCII strings, representing the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) type:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) absent, ram, rom, nor, nand, mlc-nand, dataflash, ubi, unknown
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) What: /sys/class/mtd/mtdX/writesize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) KernelVersion: 2.6.29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) Minimal writable flash unit size. This will always be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) a positive integer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) In the case of NOR flash it is 1 (even though individual
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) bits can be cleared).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) In the case of NAND flash it is one NAND page (or a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) half page, or a quarter page).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) In the case of ECC NOR, it is the ECC block size.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) What: /sys/class/mtd/mtdX/ecc_strength
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) Date: April 2012
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) KernelVersion: 3.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) Maximum number of bit errors that the device is capable of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) correcting within each region covering an ECC step (see
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) ecc_step_size). This will always be a non-negative integer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) In the case of devices lacking any ECC capability, it is 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) What: /sys/class/mtd/mtdX/bitflip_threshold
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) Date: April 2012
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) KernelVersion: 3.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) This allows the user to examine and adjust the criteria by which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) mtd returns -EUCLEAN from mtd_read() and mtd_read_oob(). If the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) maximum number of bit errors that were corrected on any single
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) region comprising an ecc step (as reported by the driver) equals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) or exceeds this value, -EUCLEAN is returned. Otherwise, absent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) an error, 0 is returned. Higher layers (e.g., UBI) use this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) return code as an indication that an erase block may be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) degrading and should be scrutinized as a candidate for being
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) marked as bad.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) The initial value may be specified by the flash device driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) If not, then the default value is ecc_strength.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) The introduction of this feature brings a subtle change to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) meaning of the -EUCLEAN return code. Previously, it was
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) interpreted to mean simply "one or more bit errors were
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) corrected". Its new interpretation can be phrased as "a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) dangerously high number of bit errors were corrected on one or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) more regions comprising an ecc step". The precise definition of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) "dangerously high" can be adjusted by the user with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) bitflip_threshold. Users are discouraged from doing this,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) however, unless they know what they are doing and have intimate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) knowledge of the properties of their device. Broadly speaking,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) bitflip_threshold should be low enough to detect genuine erase
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) block degradation, but high enough to avoid the consequences of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) a persistent return value of -EUCLEAN on devices where sticky
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) bitflips occur. Note that if bitflip_threshold exceeds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) ecc_strength, -EUCLEAN is never returned by the read operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) Conversely, if bitflip_threshold is zero, -EUCLEAN is always
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) returned, absent a hard error.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) This is generally applicable only to NAND flash devices with ECC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) capability. It is ignored on devices lacking ECC capability;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) i.e., devices for which ecc_strength is zero.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) What: /sys/class/mtd/mtdX/ecc_step_size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) KernelVersion: 3.10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) The size of a single region covered by ECC, known as the ECC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) step. Devices may have several equally sized ECC steps within
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) each writesize region.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) It will always be a non-negative integer. In the case of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) devices lacking any ECC capability, it is 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) What: /sys/class/mtd/mtdX/ecc_failures
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) Date: June 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) KernelVersion: 3.17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) The number of failures reported by this device's ECC. Typically,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) these failures are associated with failed read operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) It will always be a non-negative integer. In the case of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) devices lacking any ECC capability, it is 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) What: /sys/class/mtd/mtdX/corrected_bits
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) Date: June 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) KernelVersion: 3.17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) The number of bits that have been corrected by means of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) device's ECC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) It will always be a non-negative integer. In the case of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) devices lacking any ECC capability, it is 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) What: /sys/class/mtd/mtdX/bad_blocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) Date: June 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) KernelVersion: 3.17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) The number of blocks marked as bad, if any, in this partition.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) What: /sys/class/mtd/mtdX/bbt_blocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) Date: June 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) KernelVersion: 3.17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) The number of blocks that are marked as reserved, if any, in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) this partition. These are typically used to store the in-flash
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) bad block table (BBT).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) What: /sys/class/mtd/mtdX/offset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) Date: March 2015
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) KernelVersion: 4.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) For a partition, the offset of that partition from the start
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) of the parent (another partition or a flash device) in bytes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) This attribute is absent on flash devices, so it can be used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) to distinguish them from partitions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) What: /sys/class/mtd/mtdX/oobavail
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) Date: April 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) KernelVersion: 4.16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) Contact: linux-mtd@lists.infradead.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) Number of bytes available for a client to place data into
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) the out of band area.