The Application and Research of Flash File System Based on Real-Time System

Author
ZuoWanLin
Advisor
DingLei
School
Guangdong University of Technology
Major
Applied Computer Technology
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2012
Downloads
49
Citations
0

Request the full text

Abstract

In the past, the embedded system mainly applied to the control field, the requirements of data storage are not very high. But with the continuous development of information technology, embedded technology has been widely used in many fields, data which need to store is growing, and the requirement for data storage and management is growing too. Therefore, the research and development of the embedded file system has the important practical significance.Embedded devices are demanding in volume, power consumption, shockproof. Flash memory has a lot of advantages, such as small size, storage capacity, low energy consumption, high performance-to-price and so on. Compared to traditional storage media, Flash memory is more suitable for data storage in embedded systems, and has become one of the storage medium is widely used in embedded systems. At present, there are already a lot of embedded file system for flash memory. But there are still many deficiencies of NAND Flash-based embedded file system, including start-up time, memory consumption, wear leveling, and so on.In this paper, for the shortcomings of current NAND Flash embedded file system, the optimized methods are put forward. In the existing NAND Flash file system (such as the YAFFS), a block both store the file attribute information and file data, the system must be scanned all of the Flash block when startup. This paper will change the file storage format, and management practices, file attributes and file data are stored in different erase blocks, when the system startup, it only scans the blocks which store file attribute, thus reduce start loading time. For memory consumption, the reason is a lot of system control information is stored in memory. Learning from the locality principle, only the information of recently accessed files is stay in memory, and reducing the memory usage of the file system. For wear leveling, data will be divided into two types, cold data and hot data. They are alternately stored in different types of free block, to achieve the purpose of the erase block wear leveling. According to the above method, in the research on the basis of YAFFS file system, design a new file system NFFS. In the test, NFFS achieve the desired goals in functionality and performance. Finally the file system applied in a practical project "food safety tracing system", Almost meet the requirements of the project. But for the practical application, it requires continuous improvement of the system design, and constantly perfects the functionality and improves system stability and robustness.

Table of contents

Summary 4-5 Abstract 5-7 directory 7-10 CONTENTS 10-13 first Chapter Introduction 13-15 1.1 background and significance 13 1.2 content and objectives 13-14 1.3 papers organizational structure 14-15 Chapter II embedded File system Overview 15-20 2.1 Flash memory 15-16 hardware features 2.2 Flash memory 16-17 development 2.3 Flash file System 17-19 2.3.1 Flash -based file system conversion layer 17-18 2.3.2 Journaled file System 18-19 2.4 Summary research and analysis 19-20 Chapter III YAFFS file system 20-33 3.1 YAFFS file system overview 20 3.2 YAFFS physical storage structure 20-22 3.3 YAFFS memory data structures 22-24 3.4 YAFFS hanging set 24-25 3.5 YAFFS garbage collection and wear leveling 25-26 3.6 YAFFS lack 26-27 3.7对YAFFS improvements 27-32 3.7.1 reduce mount time 27-29 3.7.2 to reduce memory usage 29-31 3.7.3 improve wear leveling 31-32 3.8 Summary design and implementation of Chapter IV 32-33 NAND FLASH file system 33-57 4.1 overall structural design 33 4.2 NAND Flash driver 33-41 overall structure and operation 4.2.1 NAND Flash command 34-35 4.2.2 NAND Flash read operation nbsp 35-38 4.2.3 NAND Flash write operation ; nbsp 38-40 4.2.4 NAND Flash erase operation ; 40-41 4.3 storage structure design and implementation 41-50 4.3.1 node labels Tags 41-43 4.3.2 file attribute node 43-44 4.3.3 -memory data structures 44-50 4.4 class cache Tnode node management 50-52 4.5 hot and cold data separation of storage implementation wear leveling 52-53 4.6 NFFS API interface 53-54 4.7 NAND Flash drive interface 54-56 4.8 Summary 56-57 Chapter V time-triggered scheduler 57-63 5.1 Overview of time-triggered scheduler 57-58 5.2 times triggered scheduler design and implementation 58-62 5.2.1 data structures and task scheduler queue 58-59 5.2.2 initialization scheduler 59 5.2.3 refresh function 59-60 5.2.4 add tasks 60-61 5.2.5 scheduling tasks 61-62 <br / > 5.3 Summary tests 62-63 Chapter VI NFFS file system 63-76 6.1 test platform 63-64 6.2 NFFS performance testing 64-74 6.2.1 NFFS mount time test 64-66 6.2.2 memory consumption test 66-70 6.2.3 NFFS wear leveling test 70-72 6.2.4 read and write speed test 72-74 6.3 NFFS application 74 - 75 6.4 summary 75-76 summary and Outlook 76-77 References 77-82 Thanks 82

Related dissertations

  1. Research and Implementation of Wear Leveling Algorithm Based on Hybrid Mapping Scheme
  2. Design on Flight Control Data Recorder Based on Embedded USB Host
    FangZhuang ·Xi'an Technological University ·2012 ·Master's thesis
  3. Study on Nand Flash File System of the On-board Data Recorder
    MengJun ·Beijing Jiaotong University ·2008 ·Master's thesis
  4. Development of embedded data terminal platform
  5. The Data Exchange between NAND Flash and USB Flash Driver
  6. The Design and Implementation of Power Load Management Terminal Based on NAND FLASH
    ChangGuiXiang ·Shanghai Jiaotong University ·2010 ·Master's thesis
  7. The Design of Reduced Embedded File System
    YangKai ·Anhui University ·2010 ·Master's thesis
  8. The Research and Implementation of Flash File System & Flash Storage Management Issues
  9. Research of Flash File System Based on Large Capacity NAND Flash Memory
    LvLian ·Zhejiang University of Technology ·2009 ·Master's thesis
  10. The Research & Realization of UBIFS Wear-Leveling in Linux-based Embedded System
    CaiXiaoRu ·East China Normal University ·2011 ·Master's thesis
  11. Terminal design of fault diagnosis system of intelligent equipment under a cloud service environment
  12. Design of fuze data acquisition system based on ARM microprocessor
  13. Implementation of Windows File System Virtualization Based on Sandbox Technology
  14. Design and Implementation of Cross-platform Website Anti-tamper System Based on File Filter Driver
    LinYiXin ·South China University of Technology ·2013 ·Master's thesis
  15. Research on Multi-attribute-based File Organization Mechanism
  16. The Design and Implementation of Distributed File System Based on Linux
  17. The Linux Kernel Porting, Profiling Driven Development and Cryptographic Applications Based on CK810
  18. Research on the Malicious Codes Monitoring Technology Based on the File System
    SunHaiPeng ·Northwest Normal University ·2013 ·Master's thesis
  19. Design and Implementation of High-speed Mass Data Storage Systems
  20. Research Andapplication of FAT File System for Multimedia Storage