CN104537075B - Application process of the Yaffs file system in NorFlash - Google Patents

Application process of the Yaffs file system in NorFlash Download PDF

Info

Publication number
CN104537075B
CN104537075B CN201410849277.1A CN201410849277A CN104537075B CN 104537075 B CN104537075 B CN 104537075B CN 201410849277 A CN201410849277 A CN 201410849277A CN 104537075 B CN104537075 B CN 104537075B
Authority
CN
China
Prior art keywords
norflash
data
page
interface
file system
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.)
Active
Application number
CN201410849277.1A
Other languages
Chinese (zh)
Other versions
CN104537075A (en
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.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric 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 Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201410849277.1A priority Critical patent/CN104537075B/en
Publication of CN104537075A publication Critical patent/CN104537075A/en
Application granted granted Critical
Publication of CN104537075B publication Critical patent/CN104537075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • 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/18File system types
    • G06F16/1847File system types specifically adapted to static storage, e.g. adapted to flash memory or SSD

Landscapes

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

Abstract

The invention discloses a kind of application process of Yaffs file system in NorFlash, comprise the following steps:(1) each piece in NorFlash, is divided into some pages;(2), the bottom data random read take program, bottom data random writing program, bottom data for writing out NorFlash with program language according to NorFlash storage device data handbook wipe interface routine by block;(3), said procedure is packaged on bottom data interface according to the size of data field, block size;(4) the data field size of page, block size, data in NorFlash, are read into interface by page, interface is write by page, are filled into by block erasing interface parameters in the structure of Yaffs file system.This method will can be not easy to be applied in NorFlash storage devices by the factors such as electrostatic, frequent power-on and power-off interference Yaffs file system.

Description

Application process of the Yaffs file system in NorFlash
Technical field
The present invention relates to a kind of file system that can be applied in NorFlash storage devices, is especially a kind of Application process of the Yaffs file system in NorFlash.
Background technology
It is a kind of conventional Product development plan that vxworks operating system, which carries NorFlash storage devices,.It is existing In VxWorks kernel using it is most wide be dosFS file system.But in the actual motion of product, due to dosFS files System is more fragile in itself, therefore is easily influenceed by factors such as electrostatic interference, frequent power-on and power-off and cause the dosFS texts of VxWorks The file information table damage of part system, so as to cause whole dosFS file system corruptions, file is lost, and then influences VxWorks The normal operation of operating system.Therefore, for these reasons, it would be highly desirable to need a kind of Yaffs file system in NorFlash Application process, this method will can be not easy to be applied by the factors such as electrostatic, frequent power-on and power-off interference Yaffs file system In NorFlash storage devices, to solve the above problems.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of application process of Yaffs file system in NorFlash, This method can will be not easy to be applied by the factors such as electrostatic, frequent power-on and power-off interference Yaffs file system and be set in NorFlash storages In standby.
The technical scheme is that, there is provided a kind of application process of Yaffs file system in NorFlash, including with Lower step:
(1) each piece in NorFlash, is divided into some pages, every page includes data field and idle domain;
(2), according to NorFlash storage device data handbook with program language write out NorFlash bottom data with Machine-readable program fetch, bottom data random writing program, bottom data are by block erasing interface routine;
(3), according to the size of data field, block size on bottom data interface by bottom data random read take program, bottom Layer data random writing program, bottom data by block erasing interface routine be packaged, with realize data can be read by page, by Page write-in, is wiped by block;
The data field size of page, block size, data in NorFlash (4), are read into interface by page, interface is write by page, It is filled into by block erasing interface parameters in the structure of Yaffs file system.
After above method, the present invention compared with prior art, has advantages below:
Application process application of the Yaffs file system of the present invention in NorFlash be not easy to be disturbed by electrostatic, frequently on The Yaffs file system that the factors such as lower electricity influence, because the characteristics of Yaffs file system is meeting after file information table is damaged Going to scan whole NorFlash equipment, the file that will identify that is re-recorded in literary information table, i.e., file will not be caused to lose, Therefore Yaffs can ensure to complete to search the file information table of Yaffs file system rapidly and extensive under the influence of above-mentioned factor It is multiple, so as to ensure the normal operation of whole Yaffs file system, and then it ensure that the normal operation of vxworks operating system.
Embodiment
With reference to specific embodiment, the invention will be further described.
The Yaffs file system for aiming at NandFlash exploitations is applied to NorFlash.
Difference maximum NandFlash and NorFlash is:NandFlash allows have bad block;NandFlash minimum numbers It is page according to unit, every page includes data field and idle domain, and data field is real data, and idle domain includes bad block message, school Information etc. is tested, for bad block management.NandFlash data manipulations are read by page, are write by page, are wiped by block.And NorFlash minimum data unit is block, and data manipulation supports random read take, random writing, data wiped by block.Therefore, will Yaffs file system is applied to NorFlash, and key is that NorFlash improves NandFlash data unit structure.
A kind of application process of the Yaffs file system of the present invention in NorFlash, comprises the following steps:
(1) each piece in NorFlash, is divided into some pages, every page includes data field and idle domain;If NandFlash data field and idle domain is divided into 512 bytes and 16 bytes, then one piece of NorFlash, Ke Yiji for 64K bytes Calculate each piece and include page 124.
(2), according to NorFlash storage device data handbook with program language write out NorFlash bottom data with Machine-readable program fetch, bottom data random writing program, bottom data are by block erasing interface routine;Typically write out using C language Program is stated, that is, those of ordinary skill in the art can compile out according to the rule of NorFlash storage device data handbooks Said procedure, because bottom data random read take program, bottom data random writing program, bottom data are by block erasing interface journey The literary style of sequence is varied, and the program that different programming persons writes out is diversified, therefore will not be described in detail herein.
(3), according to the size of data field, block size on bottom data interface by bottom data random read take program, bottom Layer data random writing program, bottom data by block erasing interface routine be packaged, with realize data can be read by page, by Page write-in, is wiped by block;It can realize that data are read in NorFlash storage devices by page by the program or software of encapsulation Take, write by page, wiped by block.
The data field size of page, block size, data in NorFlash (4), are read into interface by page, interface is write by page, It is filled into by block erasing interface parameters in the structure of Yaffs file system.Bottom data random read take program, bottom data with Machine write-in program, bottom data can read corresponding number by block erasing interface routine according to the structure of Yaffs file system According to.
Only highly preferred embodiment of the present invention is described above, but is not to be construed as limiting the scope of the invention.This Invention is not limited only to above example, and its concrete structure allows to change.In every case in the protection model of independent claims of the present invention It is within the scope of the present invention to enclose interior made various change.

Claims (1)

  1. A kind of 1. application process of Yaffs file system in NorFlash, it is characterised in that:Comprise the following steps:
    (1) each piece in NorFlash, is divided into some pages, every page includes data field and idle domain;
    (2) NorFlash bottom data random write, is write out with program language according to NorFlash storage device data handbook Program fetch, bottom data random writing program, bottom data are by block erasing interface routine;
    (3), according to the size of data field, block size on bottom data interface by bottom data random read take program, bottom number It is packaged according to random writing program, bottom data by block erasing interface routine, to realize that data can be read by page, write, Wiped by block;
    (4) the data field size of page, block size, data in NorFlash, are read into interface by page, interface are write by page, by block Erasing interface parameters is filled into the structure of Yaffs file system.
CN201410849277.1A 2014-12-30 2014-12-30 Application process of the Yaffs file system in NorFlash Active CN104537075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849277.1A CN104537075B (en) 2014-12-30 2014-12-30 Application process of the Yaffs file system in NorFlash

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849277.1A CN104537075B (en) 2014-12-30 2014-12-30 Application process of the Yaffs file system in NorFlash

Publications (2)

Publication Number Publication Date
CN104537075A CN104537075A (en) 2015-04-22
CN104537075B true CN104537075B (en) 2017-11-28

Family

ID=52852603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849277.1A Active CN104537075B (en) 2014-12-30 2014-12-30 Application process of the Yaffs file system in NorFlash

Country Status (1)

Country Link
CN (1) CN104537075B (en)

Families Citing this family (1)

* 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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127004A (en) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 System and method for accessing data on flash memory
CN101364166A (en) * 2008-09-23 2009-02-11 杭州华三通信技术有限公司 Method and device for simulating Nand flash of 2048 byte page into hard disk
CN101539891A (en) * 2008-03-17 2009-09-23 凤凰微电子(中国)有限公司 Embedded type flash memory, storage system and method for power fail safeguard of data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8312204B2 (en) * 2009-01-23 2012-11-13 Seagate Technology Llc System and method for wear leveling in a data storage device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127004A (en) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 System and method for accessing data on flash memory
CN101539891A (en) * 2008-03-17 2009-09-23 凤凰微电子(中国)有限公司 Embedded type flash memory, storage system and method for power fail safeguard of data
CN101364166A (en) * 2008-09-23 2009-02-11 杭州华三通信技术有限公司 Method and device for simulating Nand flash of 2048 byte page into hard disk

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于容错CAN总线的车载多功能显示终端的研究与设计;徐平霞;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110915(第9期);第16页 *

Also Published As

Publication number Publication date
CN104537075A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
CN107957957B (en) Test case obtaining method and device
CN103473067B (en) Built-in Linux subregion and data restoration method, system and system development method
CN103597451B (en) Memory image and redundancy generation for high availability
CN104662583A (en) Gpu memory buffer pre-fetch and pre-back signaling to avoid page-fault
CN106021031B (en) A kind of the deletion data reconstruction method and device of BTRFS file system
CN103970585A (en) Method and device for creating virtual machine
CN103677654A (en) Method and electronic equipment for storing data
CN104133775A (en) Method and apparatus for managing memory
CN108664657A (en) A kind of big data method for scheduling task, electronic equipment, storage medium and platform
CN105138284A (en) Virtual machine disk mirror image synchronization operation optimization system and method
CN103488523A (en) Page access method, page access device and server
CN102024021A (en) Method for logging metadata in logical file system
CN109074311A (en) Selective data in computing system retains
CN104407990B (en) A kind of disk access method and device
CN103677745A (en) Method for writing and reading equipment identification in Loongson mainboard
CN104598293B (en) A kind of method and apparatus of online snapshot
CN104516929A (en) Method and device for file system
CN104537075B (en) Application process of the Yaffs file system in NorFlash
CN109343863B (en) Interface configuration method and system for HDFS (Hadoop distributed File System) permission
CN104765775B (en) A kind of log preservation method and device
CN106708479B (en) A kind of page rendering method and device
EP3264254B1 (en) System and method for a simulation of a block storage system on an object storage system
CN101751283B (en) Virtual machine monitor, dummy machine system and client operation system state acquiring method
CN102207907B (en) Method and device for data operation and computer
CN103823637B (en) A kind of data processing method and equipment

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: NINGBO SANXING INTELLIGENT ELECTRIC CO., LTD.

Free format text: FORMER OWNER: NINGBO SANXING ELECTRIC CO., LTD.

Effective date: 20150513

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150513

Address after: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant after: Ningbo Samsung intelligent electric company limited

Address before: 315131, AUX Industrial Park, Mingguang North Road, Jiangshan Town, Ningbo, Yinzhou District, Zhejiang 1166, China

Applicant before: Ningbo Sanxing Electric Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160129

Address after: 315191 Yinzhou Industrial Park, Zhejiang, Ningbo, Yinzhou District, Ningbo

Applicant after: NINGBO SANXING MEDICAL ELECTRIC CO., LTD.

Address before: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant before: Ningbo Samsung intelligent electric company limited

GR01 Patent grant
GR01 Patent grant