LinuxMTD system level

Source: Internet
Author: User
LinuxMTD system level MTD (memorypolicydevice, memory technology device) function: 1. establish a unified abstract interface of Flash for Linux. 2. the file system is isolated from the underlying Flash memory. 3. do not pay attention to character devices or block devices. Composition...
The role of MTD in Linux (Memory Technology Device, Memory Technology Device): 1. establish a unified abstract interface for Linux Flash. 2. the file system is isolated from the underlying Flash memory. 3. do not pay attention to character devices or block devices. Composition: www.2cto.com consists of four layers. A. device node. You can use mknod to create MTD device nodes in the/dev directory. the master device number of the character device node is 90, and the master device number of the fast device node is 31. B. the MTD device layer registers a series of file_operation functions. C. MTD: the general code of the original device on the original device layer and the data (such as partition) of each specific flash. D. the read, write, and erase of the hardware driver layer www.2cto.com. After the introduction of norflash:/driver/mtd/chips nand:/driver/mtd/nand to MTD, the driver engineer directly deals with the original MTD device layer and registers devices and partitions using the interfaces provided by the driver. Mtd_info, which defines MTD data and operation functions. Each partition is also considered as a mtd_info. The three partitions have three mtd_info struct, and these pointers are stored in mtd_table.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.