The Implementation and Improvement of μClinux FILE System

Author
KangLei
Advisor
WangShunYan
School
Wuhan University of Technology
Major
Applied Computer Technology
Classification
TP316.81
Degree
Master's thesis
Year
2007
Downloads
73
Citations
0

Request the full text

Abstract

μClinux is one of the most popular Embedded OS in the world. It is designed for Non-MMU processor device. It is famous with its stabilization and strong functions, and also can transplant easily. File system is one of important part ofμClinux OS, When it is used on embedded devices with large volume Flash storage, large data exchanging request must be satisfied.μClinux file system in Flash storage device is always consisted by 4 main parts: VFS (Virtual Files system Switch ), Concrete File System, MTD (Memory Technology Device) and hardware drive. In these 4 parts, VFS, MTD and hardware drive’s structures are almost firmed, that is to say, the key is Concrete File System. At present, JFFS2 (Journaling Flash File System 2)is most popular Concrete File System onμClinux. New storage structure and special garbage collection are applied in JFFS2, Consume Balance and Break Protection Function are also supported by it. But at the beginning of JFFS2 Design, the volume of storage in the device at that time is not as large as nowadays. If import it directly into embedded OS today, error calibration efficiency and loading time will be big problems. These two questions are the very key points of my paper.To the first question, recalibration Hamming coding is a more efficient resolving method. Compare with other methods, hamming code has higher speed and better Fault Tolerance ability. Data classification is also available to this question, if store the ordinary data by ordinary structure, and store data with high precision requirement by coding storage structure, much time and storage space will be saved. The last step is to improve the JFFS2 Documentation system. In order to strengthen the fault tolerance calibration ability, node structure and input/output function are redesigned.To the other question, reducing the operation times of flash read/write action is the only way to go. To realize it, redefine the structure of nodes will be helpful because before the read/write action being carried out, device can find the block memory image first just like the function of index. In the other hand, building nodes distribution map can be always set before read/write action because in ordinary operation, the frequency of read/write action is lower than other actions.

Table of contents

Abstract 4-5 Abstract 5-8 Chapter 1 Introduction 8-12 1.1 subject background 8-9 120 JFFS2 file system Introduction 9 1.3 at home and abroad research situation 9-11 1.4 papers organizational structure 11-12 Chapter 2 the μClinux file system 12-18 2.1 μClinux operating system profile 12-13 2.2 the μClinux file system structure and working principle 13-17 2.2.1 virtual file system the VFS 14-15 2.2.2 flash hardware driver modules MTD 15-17 2.3 Summary 17-18 3 Chapter JFFS2 advantage 18-22 3.1 Flash physical characteristics 18-19 3.2 Flash-based embedded products to the file system requirements 19 3.3 JFFS2 file system's technical features 19-21 3.4 other file system 21 3.5 Summary 21-22 4 the chapter JFSS2 file system analysis 22-34 4.1 data entity 22-25 4.1.1 jffs2_raw_inode 22-24 4.1.2 jffs2_raw_dirent 24-25 4.2 garbage collection strategy analysis 25-27 4.2.1 garbage collection principle 25-26 4.2.2 garbage collection process 26-27 4.3 mount process analysis 27-29 4.3.1 mount process to achieve technology 27-29 4.3.2 Analysis 29 4.4 encoding and checking mechanism 29-32 4.4.1 CRC checksum code features 30 4.4.2 CRC checksum works 30-31 4.4.3 of JFFS2 CRC checksum applications 31-32 4.5 JFSS2 file system limitations 32-33 4.5.1 mount too long 33 4.5.2 fault-tolerant calibration result is not satisfactory 33 4.6 Summary 33-34 Chapter 5 the JFFS2 fault-tolerant checksum mechanism improvements 34-51 selection and design of the 5.1 checksum 34-42 5.1.1 Common Coding Analysis 34-35 5.1.2 hamming code encoding and decoding 35-37 5.1.3 Long Code from the introduction of the Hamming code 37-38 5.1.5 re-calibration strategy 38-39 5.1.6 re-parity Hamming code 39-42 5.2 JFFS2 file system modifications 42-50 5.2.1 Data storage management strategy 42-44 5.2.2 file name parser design 44-45 5.2.3 encoding and decoding functions 45-46 5.2.4 nodal data structure is modified 46-47 5.2.5 file changes create 47-49 5.2.6 modify the file read and write operations 49-50 5.3 Summary 50-51 Chapter 6 JFFS2 mount process improvement 51-59 6.1 design of the new node type 51-52 6.2 increase the scanning operation 52-56 6.2.1 the modified jffs2_build_filesystem () function 52 6.2.2 the add jffs2_scan_block_node () function 52-54 6.2.3 modify jffs2_scan_inode_node () the jffs2_scan_dirent_node () 54-56 6.3 update operation 56-57 6.4 Summary 57-59 Chapter 7 Summary and outlook 59-60 References 60-62 thank 62-63 published papers during the study for master 63

Related dissertations

  1. The Research and Implementation of Embedded Data Collection System Based on μClinux
    GaoLei ·Dalian University of Technology ·2007 ·Master's thesis
  2. Research and Design for Filesystem Used in Embedded Environment
    YuZuoZuo ·Wuhan University of Technology ·2007 ·Master's thesis
  3. Analysis and Research on the Embedded System μClinux
    ChenChuanSheng ·Wuhan University of Technology ·2007 ·Master's thesis
  4. Laser beam riding guided anti-tank missile flight data recorder
  5. ARM-based μClinux Transplantation
    HaoShuFeng ·Liaoning Technical University ·2005 ·Master's thesis
  6. ARM-based embedded data storage system
  7. Based μC/OS- Ⅱ embedded file system research and design
  8. Study on File System Application in Wireless Sensor Networks
    ELiBo ·Shanghai Jiaotong University ·2009 ·Master's thesis
  9. Terminal design of fault diagnosis system of intelligent equipment under a cloud service environment
  10. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  11. Research on Online Programming System Based on CAN-bus
  12. Research and Implementation of Intelligent Regulator Based on ARM
    MengFanBing ·Dalian Polytechnic University ·2011 ·Master's thesis
  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. Research Andapplication of FAT File System for Multimedia Storage
  20. Research on Storage System Experimental Datasets Construction Method