Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for formatting flash memory

A technology of flash memory and starting position, which is applied in the computer field, can solve problems such as abnormal startup and long loading time, and achieve the effects of reducing erasing actions, reducing time, and prolonging life

Active Publication Date: 2013-08-07
ZTE CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The problem to be solved by the present invention is to provide a method and device for formatting flash memory to solve the problems of long loading time and abnormal startup of the jffs2 file system in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for formatting flash memory
  • Method and device for formatting flash memory
  • Method and device for formatting flash memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The core idea of ​​the present invention is: by reading flash memory information, this flash memory information includes flash memory type and erase block size; According to this flash memory information, obtains the related information of jffs2 node header, and this related information includes the starting position of described jffs2 node header and size; erase blocks are erased; according to the flash memory type and the relevant information, create the jffs2 node header corresponding to the erase block of the erase process, wherein the jffs2 node header is used to indicate the erase process The erase block of the flash memory conforms to the standard of the jffs2 file system, and the erase block of the flash memory can conform to the standard of the jffs2 file system before loading the jffs2 file system, which greatly reduces the time for initial loading of the jffs2 file system and ensures the stability of the system. At the same time, it can The erasing action on t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for formatting a flash memory, which belongs to the field of computers. The method comprises the following steps: reading the information of the flash memory, wherein the information of the flash memory includes the type of the flash memory and the size of an erasure block; acquiring the relevant information of a jffs2 node head according to the information of the flash memory, wherein the relevant information includes the original position and size of the jffs2 node head; carrying out erasure processing on the erasure block; and according to the type of the flash memory and the relevant information, creating the jffs2 node head corresponding to the erasure block subject to erasure processing, wherein the jffs2 node head is used for instructing the erasure block subject to erasure processing to meet the standards of a jffs2 file system. The technical scheme of the invention has the advantages that before the jffs2 file system is loaded, the erasure block of the flash memory can meet the standards of the jffs2 file system, thereby greatly reducing the time for loading the jffs2 file system for the first time, and ensuring the stability ofthe system.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for formatting a flash memory (flash). Background technique [0002] The Jffs2 file system is a part of the Linux system and is a file system for flash memory. When the system is powered on for the first time or the format command is called to format the flash memory, the flash memory is in the initial state and there is no data on it. Since each erase block of the flash memory has a limit on the number of erase times, erase blocks exceeding a certain number of erase times will be damaged. Therefore, the jffs2 file system must consider that the number of erase blocks for each erase block should be as balanced as possible. For this reason, the nodes of the jffs2 file system have no indexing function. Although there is no data in the erase block in the initial state, this type of erase block does not meet the standard of the jffs2 file system, which will cause a long ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 冯骏陆小飞
Owner ZTE CORP