Method for recovering flash memory data at power-off of built-in Linux system

An embedded, flash memory technology, applied to the redundancy in the operation for data error detection, electrical digital data processing, special data processing applications, etc., can solve the problems of file system damage, inconvenience, data loss, etc., to avoid Effects of data loss

Active Publication Date: 2009-07-08
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF0 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The JFFS2 file system can improve the erasing efficiency of flash memory and reduce wear and tear through the log structure storage method and garbage collection mechanism. It has certain fault-tolerant processing and is often used as a conversion layer in embedded Linux systems. In some solutions of embedded Linux systems , the flash file system usually has only one partition, that is, the root file system, and this file system is loaded in a readable

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 for recovering flash memory data at power-off of built-in Linux system
  • Method for recovering flash memory data at power-off of built-in Linux system
  • Method for recovering flash memory data at power-off of built-in Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] See attached figure 2 , the present invention aims to create a backup consistent with the factory configuration information for the configuration information that may be modified. When it is detected that the modified configuration information cannot make the system start normally, the backup configuration information is used to restore the factory default configuration. The system can start normally. Mainly take the following two-step measures: the invention proposes a method for recovering flash memory data during a power failure in an embedded Linux system, the method is between the computer, the embedded Linux system and the flash memory device, and between the system file and the flash memory device It is jointly implemented by the JFFS2 file system serving as the conversion layer. In some solutions of the embedded Linux system, the flash device file system has only one partition, that is, the root file system, and its loading method is readable and writable. The...

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

A method for recovering flash data in the event of power-off in an embedded Linux system solves the problem that sudden power-off at the time of read and write data flashing causes the defects of data loss or file system damage. The invention adopts the technical scheme as follows: defining and dividing a root file system in the flash memory into a fixation area, a modification area and a backup area; giving deferent loading manners to the subareas through a system file JFFS2; distributing configuration information in the root file system to the catalogues in the fixation area; and storing the temporary file produced during the system operation in the root file system in the memory. When data loss is caused by accidental power-off of the file system, the Linux system transfers the file system in spare subarea to carry out recovery of default setting and judges whether the current file system is damaged or not; whether to continuously conduct file loading to the file system is decided according to the detection to the system file with important parameters of system setting. The invention has the beneficial effects that the data recovery to the flash in the event of power-off is realized, and data loss in flashing process is avoided.

Description

technical field [0001] The invention relates to a flash memory recovery data setting method, in particular to a method for restoring flash memory data when power is off in an embedded Linux system. Background technique [0002] The file system running on the flash memory in the prior art generally adopts a flash conversion layer provided between the file system and the flash memory, and its function is to simulate the underlying flash memory into a standard block device with 512-byte sectors, and simulate One-to-one mapping of the block device to the flash memory, for the file system, just like working on a common block device. The JFFS2 file system can improve the erasing efficiency of flash memory and reduce wear and tear through the log structure storage method and garbage collection mechanism. It has certain fault-tolerant processing and is often used as a conversion layer in embedded Linux systems. In some solutions of embedded Linux systems , the flash file system usu...

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
IPC IPC(8): G06F11/14G06F17/30
Inventor 周波张馨胡祖敏王喜祝何滔李剑新黄洪波邓永坚朱海斌江惠秋吕文正周华海
Owner SHENZHEN GONGJIN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products