[go: up one dir, main page]

CN105354218A - YAFFS file system based on VxWorks transplantation - Google Patents

YAFFS file system based on VxWorks transplantation Download PDF

Info

Publication number
CN105354218A
CN105354218A CN201510630629.9A CN201510630629A CN105354218A CN 105354218 A CN105354218 A CN 105354218A CN 201510630629 A CN201510630629 A CN 201510630629A CN 105354218 A CN105354218 A CN 105354218A
Authority
CN
China
Prior art keywords
flash
file system
module
submodule
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510630629.9A
Other languages
Chinese (zh)
Inventor
李永军
杨松
杨磊
邱礼胜
曾伟军
李慈航
唐棋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU LATEST ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
CHENGDU LATEST ELECTRONIC TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU LATEST ELECTRONIC TECHNOLOGY Co Ltd filed Critical CHENGDU LATEST ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201510630629.9A priority Critical patent/CN105354218A/en
Publication of CN105354218A publication Critical patent/CN105354218A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a YAFFS file system based on VxWorksK transplantation. The system comprises an I/O drive registry module, a YAFFS device creating module, an FLASH driving module and an I/O interface module, wherein the FLASH driving module comprises: a reading sub-module for reading FLASH; a writing sub-module for writing the FLASH; an erasing sub-module for erasing the FLASH; a bad block identification sub-module for identifying a bad block of the FLASH; and a bad block marking sub-module for marking the bad block of the FLASH; the I/O interface module comprises: a file creating module for opening and creating the FLASH file system; a data writing sub-module for writing in FLASH file system data; a data reading sub-module for reading the FLASH file system data; a closing sub-module for closing the FLASH file system; and an I/O control sub-module for changing offset of a file handle. The YAFFS file system based on VxWorksK transplantation disclosed by the invention solves the problems that high-capacity FLASH cannot be used for carrying out file management under VxWorks, the stability is low and the efficiency is low.

Description

Based on the YAFFS file system that VxWorks is transplanted
Technical field
The present invention relates to YAFFS file system, particularly relate to a kind of YAFFS file system of transplanting based on VxWorks.
Background technology
In VxWorks 5.5 system, original FLASH file system only has TFFS file system, but it is the file system of 32, do not possess the bad block management that NANDFLASH carries out needed for file management, Internal Management Mode carries out according to the file mode of hard disk (512B is that unit manages) that manage, work efficiency is very low, is not suitable for Large Copacity (being greater than 2GB) and reads and writes the fast NANDFLASH management of rate requirement.
When new bad block appears in NANDFLASH, TFFS cannot recover to reformat, cause like this before stored in File lose, the stability of file system is very low.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of YAFFS file system of transplanting based on VxWorks is provided, Large Copacity NANDFLASH under solving VxWorks, cannot be used to carry out the low and inefficient problem of file management, stability.
The object of the invention is to be achieved through the following technical solutions: the YAFFS file system of transplanting based on VxWorks, comprise I/O and drive Registering modules, YAFFS equipment creation module, FLASH driver module and I/O interface module.
Described FLASH driver module comprises:
Read submodule, for the reading of FLASH;
Write submodule, for the write of FLASH;
Erasing submodule, for the erasing of FLASH;
Bad block recognin module, for identifying the bad block of FLASH;
Bad block identification submodule, for identifying the bad block of FLASH.
Described I/O interface module comprises:
Document creation submodule, for opening and create FLASH file system;
Data write submodule, for writing FLASH file system data;
Data reading submodule, for reading FLASH file system data;
Close closed submodule, for closing FLASH file system;
I/O controls submodule, for changing the side-play amount of file handle, obtaining the side-play amount of file handle, establishment file path, deleted file path, obtaining file path information and file system detection.
Described YAFFS file system is the file system of 64 bit wides.
Described FLASH driver module comprises at least one in NANDFLASH driver module and NORFLASH driver module.
The invention has the beneficial effects as follows:
1, the present invention supports the NANDFLAS file management of Large Copacity (being greater than 2BG), therefore, it is possible to support more NANDFLASH;
2, the present invention comprises bad block identification module and bad block identification module, can carry out bad block management, prevents from causing file system to be lost because NANDFLASH block damages, thus improves the stability of file system;
3, the present invention is that unit manages according to the storage format of NANDFLASH, improves the operating efficiency of file system, thus promote the writing rate of file;
4, the present invention can use the normative document handling function of VxWorks to carry out file operation;
5, the present invention can use the FTPSERVER assembly of VxWorks, is logged into line operate by long-range FTPClient;
6, the present invention is the file system of 64 bit wides, supports the NANDFLASH being greater than 4GB, operates according to the storage organization of NANDFLASH.
Accompanying drawing explanation
Fig. 1 is the structural representation that the present invention is based on the YAFFS file system that VxWorks is transplanted;
Fig. 2 is the schematic diagram that in Fig. 1, I/O controls the function that submodule yaff2_ioctl comprises.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to the following stated.
As depicted in figs. 1 and 2, based on the YAFFS file system that VxWorks is transplanted, comprise I/O and drive Registering modules, YAFFS equipment creation module, NANDFLASH driver module and I/O interface module.
Described NANDFLASH driver module comprises:
Read submodule yflash2_ReadChunk, for the reading of NANDFLASH;
Write submodule yflash2_WriteChunk, for the write of NANDFLASH;
Erasing submodule yflash2_EraseBlock, for the erasing of NANDFLASH;
Bad block recognin module yflash2_CheckBad, for identifying the bad block of NANDFLASH; Bad block recognin module carry out bad block know method for distinguishing be: erasing NANDFLASH, the SPARE space of first page first character joint be 0XFF be bad block.
Bad block identification submodule yflash2_MarkBad, for identifying the bad block of NANDFLASH.The method that bad block identification submodule carries out bad block identification is: the value of the non-zero XFF of first character joint write in the SPARE space of the first page of bad block.
Described I/O interface module comprises:
Document creation submodule yaffs2_open, for opening and create NANDFLASH file system;
Data write submodule yaffs2_write, for writing NANDFLASH file system data;
Data reading submodule yaffs2_read, for reading NANDFLASH file system data;
Close closed submodule yaffs2_close, for closing NANDFLASH file system;
I/O controls submodule yaffs2_ioctl, for changing the side-play amount of file handle, obtaining the side-play amount of file handle, establishment file path, deleted file path, obtaining file path information and file system detection.
Described YAFFS file system is the file system of 64 bit wides.
The invention discloses the YAFFS file system of transplanting based on VxWorks, it supports the file system of 64 bit wides, the NANDFLASH that capacity is very large can be supported, read-write operates according to the base unit (page) of NANDFLASH, storage efficiency is high, effectively can support the bad block management of NANDFLASH, stability is high, thus uses NANDFLASH not support Large Copacity, without bad block management, problem that execution efficiency is low as file system storage medium under solving VxWorks.
In the present invention, the nucleus module of YAFFS file system is NANDFLASH driver module, but this NANDFLASH driver module can not directly use under VxWorks system, therefore, I/O interface module is with the addition of in the present invention, I/O interface module comprises the standard I/O interface function of VxWorks system, removes by the standard I/O interface function of VxWorks system the interface function calling NANDFLASH driver module.
The above is only the preferred embodiment of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (3)

1. based on the YAFFS file system that VxWorks is transplanted, it is characterized in that: comprise I/O and drive Registering modules, YAFFS equipment creation module, FLASH driver module and I/O interface module;
Described FLASH driver module comprises:
Read submodule, for the reading of FLASH;
Write submodule, for the write of FLASH;
Erasing submodule, for the erasing of FLASH;
Bad block recognin module, for identifying the bad block of FLASH;
Bad block identification submodule, for identifying the bad block of FLASH;
Described I/O interface module comprises:
Document creation submodule, for opening and create FLASH file system;
Data write submodule, for writing FLASH file system data;
Data reading submodule, for reading FLASH file system data;
Close closed submodule, for closing FLASH file system;
I/O controls submodule, for changing the side-play amount of file handle, obtaining the side-play amount of file handle, establishment file path, deleted file path, obtaining file path information and file system detection.
2. YAFFS file system of transplanting based on VxWorks according to claim 1, is characterized in that: described YAFFS file system is the file system of 64 bit wides.
3. YAFFS file system of transplanting based on VxWorks according to claim 1, is characterized in that: described FLASH driver module comprises at least one in NANDFLASH driver module and NORFLASH driver module.
CN201510630629.9A 2015-09-29 2015-09-29 YAFFS file system based on VxWorks transplantation Pending CN105354218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510630629.9A CN105354218A (en) 2015-09-29 2015-09-29 YAFFS file system based on VxWorks transplantation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510630629.9A CN105354218A (en) 2015-09-29 2015-09-29 YAFFS file system based on VxWorks transplantation

Publications (1)

Publication Number Publication Date
CN105354218A true CN105354218A (en) 2016-02-24

Family

ID=55330191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510630629.9A Pending CN105354218A (en) 2015-09-29 2015-09-29 YAFFS file system based on VxWorks transplantation

Country Status (1)

Country Link
CN (1) CN105354218A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870926A (en) * 2016-09-26 2018-04-03 北京信威通信技术股份有限公司 A kind of method and device of real-time storage
CN107870736A (en) * 2016-09-28 2018-04-03 龙芯中科技术有限公司 Support the method and device more than 4GB nandflash
CN113742283A (en) * 2021-07-20 2021-12-03 电信科学技术第五研究所有限公司 LINUX operating system-based bad block management method for NANDFLASH file-free system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566953A (en) * 2009-02-12 2009-10-28 山东超越数控电子有限公司 Method for transplanting VXWORKS operating system
US20100199026A1 (en) * 2009-02-04 2010-08-05 Mitac International Corp. Flash File System and Driving Method Thereof
US20130238844A1 (en) * 2008-04-11 2013-09-12 Junzhi Wang Method and system for accessing a storage system with multiple file systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238844A1 (en) * 2008-04-11 2013-09-12 Junzhi Wang Method and system for accessing a storage system with multiple file systems
US20100199026A1 (en) * 2009-02-04 2010-08-05 Mitac International Corp. Flash File System and Driving Method Thereof
CN101566953A (en) * 2009-02-12 2009-10-28 山东超越数控电子有限公司 Method for transplanting VXWORKS operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张辉: ""基于VxWorks的大容量NAND Flash文件系统研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870926A (en) * 2016-09-26 2018-04-03 北京信威通信技术股份有限公司 A kind of method and device of real-time storage
CN107870736A (en) * 2016-09-28 2018-04-03 龙芯中科技术有限公司 Support the method and device more than 4GB nandflash
CN107870736B (en) * 2016-09-28 2021-08-10 龙芯中科技术股份有限公司 Method and device for supporting non-linear flash memory larger than 4GB
CN113742283A (en) * 2021-07-20 2021-12-03 电信科学技术第五研究所有限公司 LINUX operating system-based bad block management method for NANDFLASH file-free system
CN113742283B (en) * 2021-07-20 2023-11-24 电信科学技术第五研究所有限公司 NANDFLASH non-file system bad block management method based on LINUX operation system

Similar Documents

Publication Publication Date Title
CN102622309B (en) Data security erase method and device
CN102541927B (en) Method and device for realizing data cache
US10255235B2 (en) Database storage system based on jukebox and method using the system
CN101782875B (en) Storage unit and data storage method
CN104091617A (en) Flash memory equipment detection method and apparatus thereof
EP2511826B1 (en) Level-to-level management method and system of storage resources
CN103985393B (en) A kind of multiple optical disk data parallel management method and device
WO2007081638A3 (en) Non-volatile memories and methods with adaptive file handling in a directly mapped file storage system
CN105354218A (en) YAFFS file system based on VxWorks transplantation
CN102012873A (en) Cache system of Not AND (NAND) flash memory and cache method
SG126863A1 (en) Recording apparatus
CN103246615B (en) The method of data management in a kind of flash memory device and device
CN102650972B (en) Date storage method, Apparatus and system
CN103914397A (en) Flash memory device and management method thereof
CN102323907A (en) Embedded ARM processor stores and deletes NANDFLASH data
CN102375779B (en) A kind of data processing method and data processing module
CN103984651B (en) Magnanimity CD off-line storage system and data of optical disk thereof automatically, method for rapidly positioning
CN103544097A (en) Journal storing method, journal storing system, journal reading method and journal reading system of embedded system
CN107577418B (en) Distributed storage system based on ARM architecture
CN103257928B (en) Flash memory device data managing method and system
CN104598164A (en) Optical disk exchange and data storage separated optical disk jukebox system and data reading and writing method
CN103714179A (en) Multi-language supporting method and system for system blog
EP1484687A3 (en) Emulation of auxiliary memory
CN105260130A (en) Read-write method for Seagate hard disk system file
CN105677244A (en) Solid state disk write amplification method capable of reducing TLC flash memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224