Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering

Previous Articles     Next Articles

Research and Improvement of YAFFS2 File System Based on Embedded Linux

ZHU Shaoying,ZHA Qipeng   

  1. (The 32nd Research Institute of China Electronics Technology Group Corporation,Shanghai 200233,China)
  • Received:2015-04-07 Online:2015-09-15 Published:2015-09-15

基于嵌入式Linux的YAFFS2文件系统研究与改进

朱绍英,查启鹏   

  1. (中国电子科技集团公司第三十二研究所,上海 200233)
  • 作者简介:朱绍英(1983-),女,工程师,主研方向:嵌入式Linux系统;查启鹏,工程师。

Abstract: YAFFS2 file system is NAND Flash only file system.This paper analyzes the design principle of YAFFS2 based on embedded Linux in two aspects of Flash storage and file management.Aiming at two limitations of long mount time and applicable only on NAND Flash,it proposes a new layout of file system key data and structure,and improves YAFFS2 in aspects of storage management,file system initialization,garbage collection and power off protection to reduce mount time and to make it applicable on other Flash.Test result shows that it can reduce mount time by 25% and balance erasure of every block as expected.

Key words: YAFFS2 file system, NAND Flash, embedded Linux system, garbage collection strategy, wear-leveling

摘要: YAFFS2文件系统是针对NAND Flash按块擦写特点设计的一种专用Flash文件系统,其存在加载时间长和NAND Flash专用的局限性。为此,从Flash存储器管理和文件管理2个方面分析该系统的设计原理及特性,提出一种新的文件系统信息存储方式,并从文件系统初始化、垃圾回收、断电保护等方面对YAFFS2文件系统进行改进,减少加载时间,使之能应用于多种Flash存储器。测试结果表明,与原系统相比,改进系统的安装时间减少25%,并可实现Flash各存储扇区的均衡使用。

关键词: YAFFS2文件系统, NAND存储器, 嵌入式Linux系统, 垃圾回收策略, 损耗平衡

CLC Number: