CN101464817B - Data recovery method - Google Patents

Data recovery method Download PDF

Info

Publication number
CN101464817B
CN101464817B CN2007101621625A CN200710162162A CN101464817B CN 101464817 B CN101464817 B CN 101464817B CN 2007101621625 A CN2007101621625 A CN 2007101621625A CN 200710162162 A CN200710162162 A CN 200710162162A CN 101464817 B CN101464817 B CN 101464817B
Authority
CN
China
Prior art keywords
memory storage
setting value
sign
previous setting
preset value
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
CN2007101621625A
Other languages
Chinese (zh)
Other versions
CN101464817A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN2007101621625A priority Critical patent/CN101464817B/en
Publication of CN101464817A publication Critical patent/CN101464817A/en
Application granted granted Critical
Publication of CN101464817B publication Critical patent/CN101464817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A data recovery method is applied to a system in which a preset value and a previous set value are stored. The method comprises the following steps of executing system initialization; loading the preset value; detecting the state of a first mark to produce a first detection result; and deciding whether entering a start completion state according to the first detection result.

Description

Data reconstruction method
Technical field
The present invention relates to a kind of system data management method, particularly a kind of data reconstruction method.
Background technology
Traditionally, the nonvolatile memory of system (non-volatile memory; NVM) 100; For example: flash memory (flash memory); Have four blocks (following branch have another name called first block 110, second block 120, the 3rd block 130 and the 4th block 140), respectively in order to the preset value 140a of storage preset value 110a, current setting value 120a, previous setting value 130a and reduction usefulness.
With reference to Figure 1A; When initialization (initialing) process of start; Can the preset value 110a in first block 110 of nonvolatile memory 100 be loaded in the volatile memory 200, for example by memory control unit: DDR (double date rate) storer.
With reference to Figure 1B, then, again with write down in the 3rd block 130 last time shut down the time performed setting value (below be referred to as previous setting value 130a) be loaded in the volatile memory 200, revise preset value 110a according to this.Thus, system can carry out the action of access apace to volatile memory 200.
With reference to Fig. 1 C, in system's implementation, current performed setting value (below be referred to as current setting value 120a) can be stored in second block 120 of nonvolatile memory 100 with the mode of mapping, carries out data with protection.With reference to Fig. 1 D; In when shutdown, then can the setting value of carrying out at that time be stored in the 3rd block 130 of nonvolatile memory 200, with as previous setting value 130a; Therefore when starting shooting next time, through be written into previous setting value 130a can with last time identical setting value executive system.
With reference to Fig. 1 E, when the user selected carry out to recover preset value, the preset value 140a that system then will be stored in the 4th block 140 of nonvolatile memory 100 read, and writes in the volatile memory 200.
Known system data management framework need utilize two spaces to store preset value, uses to supply initialization and when reduction respectively.Yet along with the trend of device microminiaturization and systemic-function diversification, how the saving of management system space and storer and storage space all is considerable subject under discussion.
Summary of the invention
One of the object of the invention is to provide a kind of data reconstruction method, uses to solve many restrictions of existing in prior technology and shortcoming.
One of the object of the invention is to provide a kind of data reconstruction method, to save system space.
Therefore, for reaching above-mentioned purpose, the present invention provides a kind of data reconstruction method, is applied to store the system of preset value and previous setting value, and this method comprises: the initialization of executive system; Be written into preset value; Detect the state of first sign, to produce first testing result; And determine whether getting into the start completion status according to first testing result.
The present invention also provides a kind of data reconstruction method; At least one group of preset value in order to recovery system; This system includes first memory storage and at least one second memory storage; Store preset value on first block of second memory storage, this method comprises: store previous setting value in second block of second memory storage, wherein previous setting value is the setting value that system is carried out; Preset value in first block that is stored in second memory storage is loaded into the execution block of first memory storage; First sign at least one the special block that one of detects in first memory storage and second memory storage; And when not detecting for first when sign, the previous setting value in second block of second memory storage is loaded into the execution block of first memory storage, with the corresponding preset value on the execution block that covers first memory storage.
About characteristic of the present invention and enforcement, will combine accompanying drawing that most preferred embodiment is specified as follows.
Description of drawings
Figure 1A to 1E is the synoptic diagram of known system data management framework;
Fig. 2 is the process flow diagram of data reconstruction method according to an embodiment of the invention;
Fig. 3 A to 3E is corresponding to the synoptic diagram according to the embodiment of the system data management framework of data reconstruction method of the present invention; And
Fig. 3 F to 3H is corresponding to the synoptic diagram according to another embodiment of the system data management framework of data reconstruction method of the present invention.
The main element symbol description:
100 nonvolatile memories
110 first blocks
The 110a preset value
120 second blocks
The current setting value of 120a
130 the 3rd blocks
The previous setting value of 130a
140 the 4th blocks
The 140a preset value
200 volatile memory
400 first memory storages
500 second memory storages
410,510 preset values
530 previous setting values
600 first signs
610 second signs
The 612 previous setting values that are not resumed
Embodiment
Below enumerate specific embodiment specifying content of the present invention, and with accompanying drawing as aid illustration.The symbol of mentioning in the explanation is with reference to the symbol of accompanying drawing.
With reference to Fig. 2, Fig. 2 is data reconstruction method according to an embodiment of the invention, and Fig. 3 A to 3D system is for using the system data management framework of one embodiment of the invention.
This data reconstruction method is in order at least one preset value of recovery system.Said system includes first memory storage 400 and second memory storage 500.,, cooperate actual demand here, more than one first memory storage 400 and/or more than one second memory storage 500 also can be set in system though only demonstrate one first memory storage 400 and one second memory storage 500.
Store one group of preset value 510 and one group of previous setting value 530 at second memory storage 500, be stored in respectively in first block and second block.Here, preset value 510 can be each item setting value of the software/hardware that presets when dispatching from the factory, or is each item setting value that supplies the preset software/hardware of system initialization use.Said previous setting value 530 can be each item setting value of the software/hardware of the preceding system of last time shutdown, or is each item setting value of recovering the software/hardware of the preceding system of preset value.In one embodiment, promptly include preset value 510 in the system boot program.
Please with reference to Fig. 2, in the process (step 310) of general shutdown, system can be stored in the setting value of current executed (below be called previous setting value 530) in second block of second memory storage 500 (step 320), shown in Fig. 3 A before shutdown.(step 330) during system boot afterwards carried out initialization, whole group of preset value 510 in first block that is stored in second memory storage 500 is loaded in the execution block of first memory storage 400 and becomes 410 (steps 340), shown in Fig. 3 B.After accomplishing initialization; Then detect on the particular block of first memory storage 400 or the state of first sign on the particular block of second memory storage 500; Producing first testing result, and determine whether getting into start completion status (step 350) according to this first testing result.When detecting first sign; System will not be stored in the execution block that previous setting value 530 in second block of second memory storage 500 is loaded into first memory storage 400; Then the execution block of first memory storage 400 is still carried out preset value 410, and directly gets into the start completion status; When not detecting first sign; System can be with whole group in second block that is stored in second memory storage 500 previous setting value 530 be loaded into the execution block of first memory storage 400; To override loaded corresponding preset value 410 (step 360) on it, shown in Fig. 3 C.Please note; Here first sign also can be represented different significance; In another embodiment, system can judge whether that start is accomplished or needs are written into previous setting value 530 according to the content of first sign, for example; If the numerical value of this first sign is 0; Then this system will not be stored in the execution block that previous setting value 530 in second block of second memory storage 500 is loaded into first memory storage 400, and then the execution block of first memory storage 400 is still carried out preset value 410, and directly gets into the start completion status; If the numerical value of this first sign is 1, then system can be with whole group in second block that is stored in second memory storage 500 previous setting value 530 be loaded into the execution block of first memory storage 400, to override loaded corresponding preset value 410 on it.
When user's selective system is recovered; When promptly confirming the preset value recovery (step 312) of executive system; System can be stored in the setting value of current executed (below be called previous setting value 530) in second block of second memory storage 500; And store first sign 600 on the particular block of second memory storage 500 (step 322), shown in Fig. 3 D.Note that in another embodiment first sign 600 also can be stored on the particular block of first memory storage 400.Wherein, said first sign 600 recovers the mark of preset value flow process for execution for the expression System Operation.Can see through the continue initialization of executive system of system restart (step 332) then; Or directly carry out initialization; Be loaded into the preset value 510 in first block that will be stored in second memory storage 500 on the execution block of first memory storage 400 (step 340), shown in Fig. 3 E.Then, the state that detects first sign 600 on the particular block of particular block or second memory storage 500 of first memory storage 400 is to produce first testing result (step 350).When detecting first sign 600 the time, the previous setting value 530 that system then no longer will be stored in second block of second memory storage 500 is loaded on the execution block of first memory storage 400, thereby accomplishes preset value and recover action.
In addition; When the user needs only general's part setting recovery to preset value; The part of the preset value of executable system is recovered (step 312), and system can be stored in previous setting value 530 in second block of second memory storage 500, and stores first sign 600 on the particular block of first memory storage 400 or second memory storage 500 (step 322); And second sign 610 is stored on the particular block of first memory storage 400 or second memory storage 500 (step 324), shown in Fig. 3 F.
In other words, second sign 610 can be stored on the same particular block or different particular block of same memory storage with first sign 600, also can be stored on the different memory storages.
In the above-described embodiments, second sign, 610 marks (promptly being selected the mark of the previous setting value that is not resumed) that can be corresponding to the selected previous setting value that is not resumed of user.
Likewise; Can see through the continue initialization of executive system of system restart (step 332); Or directly carry out initialization, be loaded into the preset value 510 in first block that will be stored in second memory storage 500 on the execution block of first memory storage 400 (step 340).Then, the state that detects first sign 600 on the particular block of particular block or second memory storage 500 of first memory storage 400 is to produce first testing result (step 350); And determine whether continue detecting second sign 610 according to first testing result.For example; When detecting first sign 600 the time; The state that system then continues to detect second sign 610 on the particular block of particular block or second memory storage 500 of first memory storage 400 to be producing second testing result, and decides follow-up processing according to this second testing result.For example; System detects on the particular block of particular block or second memory storage 500 of first memory storage 400 whether store second sign, 610 (steps 370); When detecting second sign 610 the time, system is then according to second sign, reads the not previous setting value recovered of desire of user in the previous setting value in second block that is stored in second memory storage 500; And the previous setting value that will read is loaded into the execution block of first memory storage 400; To override loaded corresponding preset value 510 (step 380) on it, shown in Fig. 3 G, thereby the part of accomplishing preset value is recovered action.When not detecting second sign 610 the time, then the execution block of first memory storage 400 is still carried out preset value 410, and directly gets into the completion status of starting shooting.
In another embodiment; When the user needs only general's part setting recovery to preset value; Also can as second sign generally, be stored in addition on the special block of first memory storage 400 or second memory storage 500 directly with the selected previous setting value 612 that is not resumed of user; Thereby after system detects first sign 600, can continue to detect the special block of the previous setting value 612 that is not resumed in order to storage, to confirm whether to have the previous setting value 612 that is not resumed; When in special block, detecting the previous setting value 612 that is not resumed; Directly this previous setting value 612 that is not resumed is read; And the previous setting value 612 that is not resumed that will read is loaded into the execution block of first memory storage 400; Overriding loaded corresponding preset value 510 on it, thereby the part of accomplishing preset value recovers action, shown in Fig. 3 H.
Wherein, First memory storage and second memory storage can be volatile memory or/and nonvolatile memory; For example: DDR (double date rate) storer, register (register), flash memory (flash memory) etc.; But this is merely a kind of of embodiment, and scope of the present invention is not as limit.
Thus, use the present invention, system can remove a large amount of identical data of repeated storage from, and then can reach the saving system space.
Though technology contents of the present invention discloses as above with embodiment; Right its is not in order to limit the present invention; Any those skilled in the art; Not breaking away from spirit of the present invention a little change and the retouching done, all should be covered by in the category of the present invention, so protection scope of the present invention is as the criterion when looking appended the claim person of defining.

Claims (10)

1. data reconstruction method is applied to store the system of preset value and previous setting value, and this method comprises:
Carry out the initialization of this system;
Be written into this preset value;
Detect the state of first sign, to produce first testing result; And
Determine whether getting into the start completion status according to this first testing result,
Wherein
When not detecting said first when sign, be written into said previous setting value to cover this loaded preset value;
When detecting this first sign, this system gets into said start completion status.
2. data reconstruction method as claimed in claim 1 also comprises:
When the said preset value of selecting the said system of execution recovers,
Store said first sign.
3. data reconstruction method as claimed in claim 1 also comprises:
After detecting first sign, detect second sign to produce second testing result;
Determine whether being written into this previous setting value according to this second testing result, to cover this preset value, wherein this second sign comprise be selected one be not resumed previous setting value mark;
Wherein, when selection returns to preset value with the part setting value, select this previous setting value, produce also storage this second sign corresponding to this previous setting value.
4. data reconstruction method as claimed in claim 1 more comprises:
After detecting first sign, detect one and be not resumed previous setting value;
When detecting this and be not resumed previous setting value, be written into this and be not resumed previous setting value to cover this loaded preset value;
Wherein, when selection returns to preset value with the part setting value, select and store this not to be resumed previous setting value.
5. data reconstruction method is applied to store the system of preset value and previous setting value, and this method comprises:
Carry out the initialization of this system;
Be written into this preset value;
Detect the content of first sign, judge whether that according to the content of this first sign start accomplishes,
Wherein,
First be masked as at 1 o'clock at this, be written into said previous setting value to cover this loaded preset value;
First be masked as at 0 o'clock at this, this system gets into start completion status.
6. data reconstruction method, in order at least one preset value of recovery system, this system includes first memory storage and at least one second memory storage, stores this preset value on first block of this second memory storage, and this method comprises:
Storage one previous setting value is in second block of this second memory storage, and wherein this previous setting value is the setting value of this system's execution;
This preset value in first block that is stored in this second memory storage is loaded into the execution block of this first memory storage;
First sign at least one special block that one of detects in this first memory storage and this second memory storage;
When not detecting this first when sign, this previous setting value in second block of this second memory storage is loaded into the execution block of this first memory storage, with corresponding this preset value on the execution block that covers this first memory storage; And
When detecting this first sign, accomplish preset value and recover action.
7. data reconstruction method as claimed in claim 6 also comprises:
When this preset value of select carrying out this system recovers, store in this first at least one special block of one of indicating in this first memory storage and this second memory storage.
8. data reconstruction method as claimed in claim 6 also comprises:
After detecting first sign, second sign at least one special block that one of detects in this first memory storage and this second memory storage; And
According to this second sign this previous setting value in second block of this second memory storage is loaded into the execution block of this first memory storage, with corresponding this preset value on the execution block that covers this first memory storage;
Wherein, When selection returns to preset value with the part setting value; Select one not to be resumed previous setting value; Generation is not resumed this second sign of previous setting value corresponding to this, and at least one special block that this second sign one of is stored in this first memory storage and this second memory storage.
9. data reconstruction method as claimed in claim 6 also comprises:
After detecting first sign, one at least one special block that one of is detected in this first memory storage and this second memory storage is not resumed previous setting value; And
When detecting this and be not resumed previous setting value, this is not resumed the execution block that previous setting value is loaded into this first memory storage, with corresponding this preset value on the execution block that covers this first memory storage.
10. data reconstruction method as claimed in claim 9, wherein:
When selection returns to preset value with the part setting value, select this not to be resumed previous setting value; And
This is not resumed at least one special block that previous setting value one of is stored in this first memory storage and this second memory storage.
CN2007101621625A 2007-12-21 2007-12-21 Data recovery method Active CN101464817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101621625A CN101464817B (en) 2007-12-21 2007-12-21 Data recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101621625A CN101464817B (en) 2007-12-21 2007-12-21 Data recovery method

Publications (2)

Publication Number Publication Date
CN101464817A CN101464817A (en) 2009-06-24
CN101464817B true CN101464817B (en) 2012-01-04

Family

ID=40805410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101621625A Active CN101464817B (en) 2007-12-21 2007-12-21 Data recovery method

Country Status (1)

Country Link
CN (1) CN101464817B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201416976A (en) * 2012-10-26 2014-05-01 Wistron Corp Verifying method of computer and electronic device

Also Published As

Publication number Publication date
CN101464817A (en) 2009-06-24

Similar Documents

Publication Publication Date Title
US10664355B2 (en) Data storage device performing recovery operation after sudden power-off and operating method thereof
CN106095620B (en) A kind of development approach of built-in Linux partition holding
US7639537B2 (en) Method for writing data in a non volatile memory unit
CN101373451B (en) Computer system for protecting double-basic input /output system program and control method thereof
US20040139310A1 (en) Information processing apparatus, memory management apparatus, memory management method, and information processing method
WO2016180093A1 (en) Read/write control circuit and method for flash chip, and amoled application circuit
CN101398765A (en) Method for updating firmware and firmware updating device
TW200947214A (en) Memory system
CN102799497A (en) Data recovery system and method for non-volatile random access memory (NVRAM)
US20070250254A1 (en) On-vehicle control apparatus
CN105138433A (en) Backup method for UBIFS file system in embedded type Linux operating system
JP2010086009A (en) Storage device and memory control method
CN110688141B (en) Firmware updating method
CN102005245B (en) Intelligent card erasing and writing protection method
US8055890B2 (en) Data recovery method
JP4661369B2 (en) Memory controller
CN101464817B (en) Data recovery method
CN112863582A (en) Data power failure holding method and device, computer equipment and storage medium
US20100077131A1 (en) Updating control information in non-volatile memory to control selection of content
CN102591738B (en) Data managing method, Memory Controller and in-line memory storage device
JP2008047155A (en) Batch erasable nonvolatile memory and mobile phone
CN115202579A (en) Memory data storage method and system
CN100456243C (en) Memory device and method of controlling operation of the memory device
US20160275011A1 (en) Microcomputer with built-in flash memory, method for writing data to built-in flash memory of microcomputer, and program for writing data to flash memory
JP4973844B2 (en) Object-oriented vehicle control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant