Design of Log Structure File System Based on μC/OS-Ⅱ

Author
WangZuoJuan
Advisor
ZhuChengGuo
School
Liaoning University
Major
Measuring Technology and Instruments
Classification
TP333 Memory
Degree
Master's thesis
Year
2012
Downloads
34
Citations
0

Request the full text

Abstract

File system, as an important part of the operating system, plays a key role bothin the operating system or data processing and user information stored on the media.With the continuous development of embedded systems, it is dealing with more andmore volume. In nowadays, the vast majority of embedded systems use Flashmemory to store data and codes, especially NAND Flash which often used to storeusers’ data files. As establishing file system in Flash do exist problems such asaverage wear-leveling, but log type file system can solve the security problem, andcan realize the Flash of load balance.This paper first introduces Flash memory, especially physical structure ofNAND Flash, and then elaborates the importance of embedded file system, especiallyYAFFS, introduces C/OS-IIkernel’s organization and management structure.After the further understanding of NAND Flash storage characteristics and workmechanism theory of log structure file systems, based on the μC/OS-II real-timeoperating system kernel, this thesis designs a successful file system which called UCShas implemented simple functions like file reading and writing. This file system isdivided into four levels: API layer used to provide users with function interface, filesystem layer serving data inspection to make sure data accuracy and validity, logicaladdress layer used for tnode tree made by transformation between physical addressand logical address structure, hardware layer which directly transfer data to thebottom of the hardware. All documents of this file system have a special page to storehead files, which preserved the basic information of files. These data informationwere displayed and transferred in use of data structure like Ucs_Handle,Ucs_ObjectStruct, Ucs_DeviceStruct, Ucs_ChunkCache, Ucs_Spare, Ucs_Tags. Filestructure can be set up only by scanning head files.Through ARM92410development platform experiment, UCS file system hasachieved file operations such as open, read, write, close and other basic processing. Itis the great significance for improving widely used real-time file system μC/OS-II, atthe same time this has a strong promotion for autonomous researching and developing of the file system.

Table of contents

Summary 4-5 ABSTRACT 5-11 Chapter 1 Introduction 11-15 1.1 Background and abroad 11 - 12 1.2 significance 12-13 1.3 research 13-14 1.4 organization 14-15 Chapter 2 Flash memory devices 15-22 2.1 NOR Flash 15-16 2.2 NAND Flash 16-19 's organizational structure 2.2.1 NAND Flash nbsp 16 2.2.2 Nand Flash read and write operations ; 16-18 2.2.3 Nand Flash in OOB area 18-19 2.3 NAND Flash and NOR Flash comparison 19-21 2.4 Summary 21-22 Chapter 3 embedded File system Overview 22-37 3.1 File system Overview 22-23 3.2 distributed File System 23-26 3.3 linear file system 26-27 3.4 log file types system 27-36 3.4.1 JFS journaling file system 28-29 3.4.2 LogFS log-structured file system 29-31 3.4 .3 YAFFS file system 31-36 3.5 Summary 36-37 Chapter 4 μC / OS-II operating system 37-46 <br / > 4.1 real-time operating system overview 37-38 4.2 μC / OS-II operating system 38-45 4.2.1 μC / OS-II kernel 39-40 4.2.2 μC / OS-II initialization and startup 40-41 4.2.3 μC / OS-II task Manager 41 4.2 .4 μC / OS-II event management 41-44 4.2.5 μC / OS-II memory management 44-45 4.3 Summary 45 - 46 Chapter 5 file System Design 46-56 5.1 design ideas hierarchical design nbsp 46-48 5.1.1 file system ; 46 -47 5.1.2 log-structured file system design main data structures 47-48 5.2 file system indexing structure design 48-49 5.3 file system basic functions function 49 5.4 file system 49-55 5.4.1 Ucs_Open () function to open the file 49-50 5.4.2 Ucs_Close () function closes the file 50 5.4.3 Ucs_Read () function to read the file 50-52 5.4.4 Ucs_Write () function to write the file 52 - 55 5.4.5 deleting files 55 5.5 Summary 55-56 Chapter 6 UCS implemented on the storage device 56-60 6.1 test platform 56 6.2 μC / OS-II porting 56-58 6.2.1 OS_CPU.H 56-57 6.2.2 OS_CPU_C.C 57 6.2.3 OS_CPU_A.S 57-58 6.3 UCS file system migration 58-59 <br / > 6.4 Summary 59-60 Chapter 7 Conclusion 60-62 7.1 Conclusion 60 7.2 Prospects 60-62 Thanks 62-63 References 63-65

Related dissertations

  1. Design and Application of Real-time Dam Deformation Monitoring Instrument
    ZuoShiBo ·Hunan University ·2013 ·Master's thesis
  2. Design of fuze data acquisition system based on ARM microprocessor
  3. Research and Implementation of Networked Data Acquisition System Based on Cortex-M3
    ShengQingPeng ·Qilu Industrial University ·2014 ·Master's thesis
  4. Design of CTD Sensor and Research of Data Processing Technology
    LvZhi ·Harbin Engineering University ·2013 ·Master's thesis
  5. Research on the Iris Recogniton System Based on DSP
  6. μC/OS-Ⅱ-based Recording Player Software Design and Implementation
  7. Design and Implementation of High-speed Mass Data Storage Systems
  8. Research and Implementation of Parallel Storage System Based on NAND Flash
    PengJun ·Hunan University ·2013 ·Master's thesis
  9. Memory Data Management Algorithm Research of Embedded System Based on NAND Flash
    XiaoZuo ·Central South University ·2013 ·Master's thesis
  10. Implementation and Optimization of Solid State Storage System via PCIe Interface
  11. Research and Design of NAND Flash Controller Based on BCH Codec
  12. Research on Key Technology for Solid State Drive Design
  13. Design and Implementation of Industrial Gateway Device Based on ARM
    ZuoXiaoJing ·Harbin Engineering University ·2013 ·Master's thesis
  14. Microprocessor Protection Algorithm Based on HHT and Its Platform Development
  15. The Research on Intelligent Monitor Equoment of Reactive Compensation in Changing Ternimal of New Rural Distribution Network
    ZhangLingLing ·Hunan University ·2013 ·Master's thesis
  16. The Research and Application of Real-time CDT Protocol in DC Screen
    JiaChengLong ·Zhejiang Ocean University, ·2014 ·Master's thesis
  17. Research and Design of Truck-Mounted Weighing System
    WangHao ·Chang'an University ·2013 ·Master's thesis
  18. Design and Implementation of Rail Flaw Detection System
    JinPeiFeng ·Hunan University ·2013 ·Master's thesis
  19. Design and Fabrication of Missile-borne Image Recorder and Unit Test Device
    MengZuo ·University of North ·2014 ·Master's thesis
  20. Research and Design of Quadrotor Control System Based on the Embedded
    WangDongPing ·Huaqiao University ·2013 ·Master's thesis