CN101464817A - Data recovery method - Google Patents

Data recovery method Download PDF

Info

Publication number
CN101464817A
CN101464817A CNA2007101621625A CN200710162162A CN101464817A CN 101464817 A CN101464817 A CN 101464817A CN A2007101621625 A CNA2007101621625 A CN A2007101621625A CN 200710162162 A CN200710162162 A CN 200710162162A CN 101464817 A CN101464817 A CN 101464817A
Authority
CN
China
Prior art keywords
memory storage
setting value
previous setting
block
sign
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.)
Granted
Application number
CNA2007101621625A
Other languages
Chinese (zh)
Other versions
CN101464817B (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 in the mode of mapping, carries out data with protection.With reference to Fig. 1 D, in when shutdown, then the setting value of carrying out at that time can be stored in the 3rd block 130 of nonvolatile memory 200, with as previous setting value 130a, therefore when starting shooting next time, by 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, to use for 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 purpose of the present invention is to provide a kind of data reconstruction method, uses to solve many restrictions of existing in prior technology and shortcoming.
One of purpose of the present invention is to provide a kind of data reconstruction method, to save system space.
Therefore, for reaching above-mentioned purpose, the invention provides a kind of data reconstruction method, be applied to store the system of preset value and previous setting value, 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 entering 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; Be loaded into the execution block of first memory storage with being stored in preset value in first block of second 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 feature of the present invention and enforcement, will be described in detail as follows most preferred embodiment in conjunction with the accompanying drawings.
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 describing content of the present invention in detail, 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 is a system data management framework of using one embodiment of the invention.
This data reconstruction method is in order at least one preset value of recovery system.Described 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 every setting value of the software/hardware that presets when dispatching from the factory, or is the every setting value for the default software/hardware of system initialization use.Described previous setting value 530 can be every setting value of the software/hardware of the preceding system of last time shutdown, or is every 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 refer to Fig. 2, in the process (step 310) of general shutdown, system can be stored in the setting value (hereinafter referred to as previous setting value 530) of current execution in second block of second memory storage 500 (step 320), as shown in Figure 3A before shutdown.(step 330) during system boot afterwards carries out initialization, is loaded in the execution block of first memory storage 400 and becomes 410 (steps 340) being stored in whole group of preset value 510 in first block of second memory storage 500, shown in Fig. 3 B.After finishing 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 entering 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 enters the start completion status; When not detecting first sign, system can be loaded into the execution block of first memory storage 400 with being stored in whole group of previous setting value 530 in second block of second memory storage 500, 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 meanings, in another embodiment, system can judge whether that start is finished 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, then the execution block of first memory storage 400 is still carried out preset value 410, and directly enters the start completion status; If numerical value of this first sign is 1, then system can be loaded into the execution block of first memory storage 400 with being stored in whole group of previous setting value 530 in second block of second memory storage 500, 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 (hereinafter referred to as previous setting value 530) of current execution 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, described 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, detect the state of first sign 600 on the particular block of the particular block of first memory storage 400 or second memory storage 500 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 finishes 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), system can be stored in previous setting value 530 in second block of second memory storage 500, and store 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 (being the mark of the selected previous setting value that is not resumed) that can be corresponding to the selected previous setting value that is not resumed of user.
Similarly, 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, detect the state of first sign 600 on the particular block of the particular block of first memory storage 400 or second memory storage 500 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 the particular block of first memory storage 400 or second memory storage 500 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 the particular block of first memory storage 400 or second memory storage 500 whether store second sign, 610 (steps 370), when detecting second sign 610 the time, system is then according to second sign, read 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 finishing 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 enters the start completion status.
In another embodiment, when the user needs only general's part setting recovery to preset value, also can as second sign, 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, to override loaded corresponding preset value 510 on it, thereby the part of finishing 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 only is 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; do 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 entering the start completion status according to this first testing result.
2. data reconstruction method as claimed in claim 1 also comprises:
When not detecting described first when sign, be written into described previous setting value to cover this loaded preset value;
When detecting this first sign, this system enters described start completion status; And
According to this first the sign content judge whether the start finish.
3. data reconstruction method as claimed in claim 1 also comprises:
The described preset value of carrying out described system recovers; And
Store described first sign.
4. data reconstruction method as claimed in claim 1 also comprises:
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 comprises selected one mark that is not resumed previous setting value;
Select this previous setting value;
Generation is corresponding to this second sign of this previous setting value; And
Store this second sign.
5. data reconstruction method as claimed in claim 1 more comprises:
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;
Select this not to be resumed previous setting value; And
Store this and be not resumed previous setting value.
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;
Be loaded into the execution block of this first memory storage with being stored in this preset value in first block of this second memory storage;
First sign at least one special block that one of detects in this first memory storage and this second memory storage; And
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.
7. data reconstruction method as claimed in claim 6 also comprises:
This preset value of carrying out this system recovers; And
Store in this first at least one special block that one of indicates in this first memory storage and this second memory storage.
8. data reconstruction method as claimed in claim 6 also comprises:
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;
Select one not to be resumed previous setting value;
Generation is not resumed this second sign of previous setting value corresponding to this; And
In 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:
In at least one special block that one of is detected in this first memory storage and this second memory storage one 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 also comprises:
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 true CN101464817A (en) 2009-06-24
CN101464817B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793304A (en) * 2012-10-26 2014-05-14 纬创资通股份有限公司 Computer startup verification method and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793304A (en) * 2012-10-26 2014-05-14 纬创资通股份有限公司 Computer startup verification method and electronic device

Also Published As

Publication number Publication date
CN101464817B (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN100377120C (en) Non-volatile storage device control method
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
US7675776B2 (en) Bit map control of erase block defect list in a memory
CN103116532B (en) Damage in fault from the storehouse embedded software system and recover
US8015370B2 (en) Memory control method and memory system
US7971014B2 (en) Information processing apparatus and data recovering method
CN101593083A (en) Device, computing machine and method that computer profile is protected and recovered
WO2012030547A1 (en) Handling errors during device bootup from a non-volatile memory
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN103778964B (en) Process, using method and the device of a kind of NAND Flash programming data, system
CN103914407A (en) Secure digital memory (SD) card power down protection and restoring method and SD card with power down protection function
WO2016180093A1 (en) Read/write control circuit and method for flash chip, and amoled application circuit
CN105138433A (en) Backup method for UBIFS file system in embedded type Linux operating system
JPWO2009004674A1 (en) Storage device, disk device, write determination method, control device
CN105786545B (en) Breakpoint recovery method and system based on heterogeneous hybrid memory
US7096351B2 (en) Single-chip microcomputer and boot region switching method thereof
CN102005245B (en) Intelligent card erasing and writing protection method
CN110688141A (en) Firmware updating method
JP4661369B2 (en) Memory controller
KR20080066381A (en) Method for upgrading software
US20080313451A1 (en) Data recovery method
US20100077131A1 (en) Updating control information in non-volatile memory to control selection of content
CN101464817B (en) Data recovery method
JP4794530B2 (en) Semiconductor device and mobile phone

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