Embedded Storage 91
4.2 MTD—Memory Technology Device
MTD stands for Memory Technology Device and is the subsystem used to
handle onboard storage devices. Is MTD a separate class of driver set like a
character or block? The simple answer is no. Then what exactly is the job of
MTD and when and how do you include flash devices under an MTD
subsystem? How will you put file systems on an MTD device? The following
subsections answer these questions.
4.2.1 The MTD Model
Although flash devices are storage devices like hard disks, there are some
fundamental differences between them.
Normally hard disks have a sector that divides a page size (generally 4096
bytes). The standard value is 512 bytes. The Linux file system model,
especially the buffer cache (a memory ...