Research and Implementation of Embedded File System Based on NAND Flash
- Author
- YangChunLin
- Advisor
- LeiHang
- School
- University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 499
- Citations
- 4
Abstract
Traditional embedded systems are mainly used to control the field, does not require a high data storage file system in embedded systems has not received adequate attention. With embedded technology continue to expand in the field of avionics, automotive electronics and consumer electronics applications, embedded systems increasingly high demand for data storage and data management, embedded file system came into being. Embedded system has its own characteristics and requirements of embedded devices must be small size, low power consumption, shock. Apparently traditional storage media like disk does not have these characteristics, and is not suitable for the storage of data in embedded systems. Flash memory has a low-cost, large storage capacity, small size, low power consumption characteristics, compared with the disk, more suitable for data storage in embedded systems, has become the main data storage media in the embedded system. In recent years, the emerging embedded file system for Flash memory, divided into three categories: embedded file system based on a block device, general-purpose embedded Flash file system, a dedicated embedded Flash file system. The first class of embedded file system is actually based disk block device file system to the Flash memory transplant; second type of embedded file system to abandon the idea of ??the transplant, a general-purpose file system designed specifically for Flash memory, either in running on NOR Flash, NAND Flash run; final class of the file system is specifically designed for a particular type of Flash is actually designed for NAND Flash File System. The three types of file systems on behalf of the three stages of the development of embedded file system, each stage has been tremendous progress over the previous stage, but there are still many inadequacies embedded NAND Flash-based file system: start-up time is too long , consume too much memory, real-time is not high, but not adequately consider specific file system for NAND Flash wear balanced. For NAND Flash file system deficiencies, this paper presents the improved method. Existing NAND Flash File System, a Flash erase blocks at the same time save the file attribute information and data information, block-by-block scan to start. Changed this file information management, and file attribute information and data information are stored in different erase blocks, attribute blocks only start scanning, thereby reducing the load time of the start of the file system; existing NAND Flash File system running during all file system control information are stored in memory, leading to consume a lot of memory, and program locality principle of this paper, only the recently accessed files are stored in the memory, reduce file system memory consumption; existing NAND Flash file system does not consider the wear balance between the Flash erase block, this article by the free block classification management, the system of alternating hot and cold data stored in different types of erase block to achieve Each erase the the wear balance between the block. According to the above method, based on existing YAFFS file system, this paper implements a new file system SFFS. The test results show that the start time, memory consumption and wear balance performance, SFFS than YAFFS improved to varying degrees.
Table of contents
Abstract 4-6
Abstract 6-11
Chapter Introduction 11-16
the origin and meaning of
1.1 topics 11
1.2 file system development status 11-15
1.2.1 block device file system FAT32 11-12
1.2.2 Virtual File System VFS 12-14
the
the 1.2.3 embedded file system 14-15
1.3 of this article and chapter arrangement 15-16
embedded file system overview 16-38
2.1 Flash memory 16-21
2.1.1 Flash memory classification 16-21
2.1.2 Flash hardware characteristics 21
2.2 Flash File System 21-32
2.2.1 block device file system-based translation layer FTL 22-24
2.2.2 Universal Flash File System-JFFS2 24-28
the
the 2.2.2.1 JFFS2 technology characteristics 24-26
2.2.2.2 JFFS2 storage structure 26-28
2.2.3 dedicated NAND Flash File System-YAFFS 28-32
2.2.3.1 YAFFS in data storage 29-30
2.2.3.2 YAFFS use the file system is organized in memory 30-32
2.3 based on the lack of embedded NAND Flash file system 32-37
2.3.1 startup time 33-34
2.3.2 memory consumption 34-36
2.3.3 wear balance 36-37
2.3.4 real-time 37
2.4 This chapter Summary 37-38
Chapter NAND Flash file system optimization 38-49
3.1 to reduce start-up time 38-41
3.1.1 File System node management 38-40
3.1.2 changed node management to reduce start-up time 40-41
3.2 reduce memory consumption 41-46
3.2.1 Cache principle and elimination algorithm 42-44
3.2.2 using class Cache mechanism reduce memory consumption 44-46
3.3 to improve abrasion balance 46-48
3.3.1 hot and cold data concept 46-47
3.3.2 use of hot and cold data of ideological to improve abrasion balance 47-48
3.4 This chapter Summary 48-49
the SFFS the design and achieve 49-70
4.1 SFFS the overall structure 49-50
4.2 NAND Flash driver 50-56
4.2.1 NAND Flash function structure and operation of the command 50-51
4.2.2 NAND Flash read operation 51-53
4.2.3 NAND Flash write operation 53-54
4.2.4 NAND Flash erase operation 54-56
Design and Implementation of the 4.3 node 56-66
4.3.1 SFFS three nodes constitute 56-59
the 4.3.2 SFFS the memory data structure 59-66
4.3.2.1 header memory image 59-61
4.3.2.2 data node memory image 61-63
4.3.2.3 Cache mechanism realization 63-66
4.4 hot and cold data separation storage to achieve abrasion balance 66
4.5-SFFS the API interface and NAND Flash drive interface 66-69
4.5.1-SFFS the API interface 67-68
4.5.2 SFFS NAND Flash driver interface 68-69
4.6 This chapter Summary 69-70
the SFFS the test 70-78
5.1 test platform 70-72
5.1.1 S3C2410A overall structure 70-72
5.1.2 S3C2410A configuration parameters 72
in SFFS the 5.2 performance test 72-77
5.2.1 SFFS start-up time of the test 72-74
5.2.2 Pseudo-Cache size of the impact on system performance test 74-76
5.2.3 SFFS wear balancing test 76-77
5.3 This chapter Summary 77-78
Chapter 6 Conclusions 78-79
Acknowledgements 79-80
the
References 80-84
the
attack Shuo achieved during the research 84-85
published papers 84
Master of participation during the project 84-85
Related dissertations
- Design and Implementation of Embedded File System Based on NAND Flash
- Study on Nand Flash File System of the On-board Data Recorder
- Research on the NAND Flash File System of the Embedded System
- Research of Flash File System Based on Large Capacity NAND Flash Memory
- Sa-yaffs: The Design and Implementation of a Swap-aware YAFFS Nand Flash Filesystem
- Research on Storage Management and Error Control Technology of Solid-state Disk
- The Research of NAND Flash Memory-based Embedded File System
- Research of the Important Technology of Flash File System Based on Large Capacity NAND Flash Memory
- Design of fuze data acquisition system based on ARM microprocessor
- The design of file system for embedded data acquisition device
- Design and Implementation of High-speed Mass Data Storage Systems
- Research and Implementation of Parallel Storage System Based on NAND Flash
- Memory Data Management Algorithm Research of Embedded System Based on NAND Flash
- Implementation and Optimization of Solid State Storage System via PCIe Interface
- Research and Design of NAND Flash Controller Based on BCH Codec
- Research on Key Technology for Solid State Drive Design
- Asymmetric Dual-Space Collectors
- Design and Fabrication of Missile-borne Image Recorder and Unit Test Device
- The Research of Key Technology in the Dual-channel High Speed Data Recorder
- The Research and Realization of Jacquard System and the Control Technology in the Computerized Hosiery Machine