Nothing Special   »   [go: up one dir, main page]

CN102317920A - Data processing method and equipment - Google Patents

Data processing method and equipment Download PDF

Info

Publication number
CN102317920A
CN102317920A CN2011800010563A CN201180001056A CN102317920A CN 102317920 A CN102317920 A CN 102317920A CN 2011800010563 A CN2011800010563 A CN 2011800010563A CN 201180001056 A CN201180001056 A CN 201180001056A CN 102317920 A CN102317920 A CN 102317920A
Authority
CN
China
Prior art keywords
image data
correction code
page
testing result
correct
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.)
Pending
Application number
CN2011800010563A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102317920A publication Critical patent/CN102317920A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the invention provides a kind of data processing method and equipment.Data processing method comprises: whether first Image Data in the detection of stored medium are correct and complete; First Image Data comprise the Image Data of all pages; Perhaps second Image Data are to move first Image Data or second Image Data according to first Image Data in the testing result load store medium, and second Image Data are the Backup Data that is stored in first Image Data in the storage medium.The technical scheme of the embodiment of the invention can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improves the reliability of end product effectively.

Description

Data processing method and equipment
Technical field
The embodiment of the invention relates to technical field of data storage, relates in particular to a kind of data processing method and equipment.
Background technology
Nand flash memory (Flash) is widely used in the end products such as mobile phone, digital camera, digital music broadcasting machine, Portable media player, STB as low-cost, large-capacity data storage medium.
Store boot and Image Data among the NAND Flash in the end product.When the terminal powered on, the boot in the end product can be transported to the Image Data of storing among the NAND Flash in the internal memory, moves master routine then, according to Image Data access stored data.
In realizing process of the present invention; The inventor finds to have following problem in the prior art at least: the end product of the NAND Flash storage medium of prior art is after powering on; Boot is not done any detection to the reflection data; Directly Image Data are transported in the internal memory, will cause the system of end product to use when the Image Data mistake is perhaps imperfect, end product breaks down.
Summary of the invention
The embodiment of the invention provides a kind of data processing method and equipment, in order to solve the end product of NAND Flash storage medium in the prior art, when Image Data mistake or the imperfect defective that causes end product to break down.
The embodiment of the invention provides a kind of data processing method, comprising:
Whether first Image Data in the detection of stored medium are correct and complete; Said first Image Data are the Image Data that are stored in the image area of said storage medium, and said first Image Data comprise the Image Data of all pages;
Load said first Image Data or second Image Data in the said storage medium to move said first Image Data or said second Image Data according to testing result, said second Image Data are the Backup Data that is stored in said first Image Data in the said storage medium.
The embodiment of the invention provides a kind of data processing equipment, comprising:
Detection module, whether first Image Data that are used for the detection of stored medium are correct and complete; Said first Image Data are the Image Data that are stored in the image area of said storage medium, and said first Image Data comprise the Image Data of all pages;
Processing module; Said first Image Data or second Image Data that are used for loading said storage medium according to testing result are to move said first Image Data or said second Image Data, and said second Image Data are the Backup Data that is stored in said first Image Data in the said storage medium.
The kind data processing method and the equipment of the embodiment of the invention, whether correct and complete through first Image Data in the detection of stored medium; These first Image Data are the Image Data that are stored in the image area of said storage medium, and these first Image Data comprise the Image Data of all pages; Perhaps second Image Data are to move first Image Data or second Image Data according to first Image Data in the testing result load store medium, and these second Image Data are the Backup Data of first Image Data.Adopt the technical scheme of the embodiment of the invention; Can be after end product powers on; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then i.e. second Image Data of the Backup Data that moves first Image Data or first Image Data according to testing result, can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improve the reliability of end product effectively.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The process flow diagram of the data processing method that Fig. 1 provides for an embodiment of the present invention.
The process flow diagram of the data processing method that Fig. 2 provides for another embodiment of the present invention.
The process flow diagram of the data processing method that Fig. 3 provides for yet another embodiment of the invention.
The structural representation of the data processing equipment that Fig. 4 provides for one embodiment of the invention.
The structural representation of the data processing equipment that Fig. 5 provides for another embodiment of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The process flow diagram of the data processing method that Fig. 1 provides for an embodiment of the present invention.As shown in Figure 1, the executive agent of the data processing method of present embodiment is a data processing equipment, and this data processing equipment specifically can be arranged in storage medium.The data processing method of present embodiment specifically can comprise as follows:
100, whether first Image Data in the data processing equipment detection of stored medium are correct and complete.
Wherein first Image Data are the Image Data that are stored in the image area of storage medium, and the Image Data in this storage medium are that the unit is stored with page or leaf (page).Therefore, these first Image Data comprise the Image Data of all pages.
Storage medium in the present embodiment can be NAND Flash.
101, data processing equipment according to first Image Data in the testing result load store medium or second Image Data to move first Image Data or second Image Data.
Wherein these second Image Data are the Backup Data that is stored in first Image Data in the storage medium, can when second Image Data can be for programming first Image Data, back up the Backup Data that obtains to first Image Data particularly.These second Image Data can be stored in the backup area of storage medium.
After the data processing method of present embodiment can be used to comprise that the end product of above-mentioned storage medium powers on, before the operate as normal, to realize the normal operation of end product.
Whether the kind data processing method of present embodiment is correct and complete through first Image Data in the detection of stored medium; According to first Image Data in the testing result load store medium or second Image Data to move first Image Data or second Image Data.Adopt the technical scheme of present embodiment; Can be after end product powers on; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then the Backup Data that loads first Image Data or first Image Data according to testing result promptly second Image Data to move first Image Data or second Image Data; Can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improve the reliability of end product effectively.
Alternatively; When second Image Data in the foregoing description are programming first Image Data first Image Data are backed up the Backup Data that obtains; And when end product is upgraded; After first Image Data of having upgraded, need back up first Image Data after upgrading simultaneously and obtain second Image Data, that is to say to remain at the data consistency that programming each time (comprising renewal) back guarantees first Image Data and second Image Data.Alternatively, in order to save the space in the storage medium effectively, these second Image Data can compressed format be stored in the backup area, can guarantee that so not only the space of storage medium is limited controlled, also can not bring the increase of storage medium cost.
The process flow diagram of the data processing method that Fig. 2 provides for another embodiment of the present invention.As shown in Figure 2, the data processing method of present embodiment specifically can comprise as follows:
Whether 200, data processing equipment detects the Image Data of each page in first Image Data correct; When the Image Data of certain one page in detecting first Image Data are incorrect, carry out 201; When the Image Data of all pages in first Image Data are all correct, carry out 202;
For example: whether the Image Data that data processing equipment detects each page in first Image Data correctly specifically can be through following modes:
(1) for the Image Data of each page in first Image Data; Data processing equipment triggers the Image Data that controller reads current page, and obtains first bug check and correction code (the Error Checking and Correcting of current page according to the Image Data of current page; Hereinafter to be referred as ECC);
(2) data processing equipment triggering controller judges whether an ECC two ECC corresponding with the current page of pre-stored of current page equates that when equal, the Image Data of then judging current page in first Image Data are correct; Otherwise when unequal, the Image Data of then judging current page in first Image Data are incorrect; The 2nd ECC is that the Image Data according to current page obtain when the Image Data of programming current page.
It is identical to obtain the algorithm of the 2nd ECC according to the Image Data of current page when wherein obtaining the Image Data of algorithm and programming current page of an ECC of current page according to the Image Data of current page, and specific algorithm can be with reference to prior art.
201, data processing equipment confirms that testing result is that first Image Data are incorrect; Carry out 205;
202, whether data processing equipment to detect the Image Data of all pages in first Image Data complete; When the Image Data of certain one page in detecting first Image Data are imperfect, carry out 203; When the Image Data of all pages in detecting first Image Data are all complete, carry out 204;
For example: data processing equipment detects that the Image Data of all pages in first Image Data are whether complete specifically can be carried out through mode once:
(a) data processing equipment obtains an ECC of each page correspondence in first Image Data;
(b) data processing equipment obtains the 3rd ECC according to an ECC of all pages correspondence;
(c) data processing equipment judges that whether the 3rd ECC four ECC corresponding with first Image Data of pre-stored equates, when equal, judges that then first Image Data are complete; Otherwise, when unequal, judge that then first Image Data are imperfect; The 4th ECC is that the 2nd ECC according to each page correspondence obtains when programming first Image Data.
It is identical that the algorithm that wherein obtains the 3rd ECC according to an ECC of all pages correspondence obtains the algorithm of the 4th ECC according to the 2nd corresponding in all pages ECC during with programming first Image Data, and specific algorithm can be with reference to prior art.
203, data processing equipment confirms that testing result is that first Image Data are imperfect; Carry out 205;
204, data processing equipment confirms that testing result is that first Image Data are correct and complete, carries out 206;
205, data processing equipment obtains second Image Data from the backup area of storage medium; Carry out 207;
206, data processing equipment loads first Image Data to move first Image Data, finishes.
Particularly, data processing equipment is loaded on internal memory with first Image Data, for these first Image Data of internal memory operation.
207, data processing equipment loads second Image Data to move second Image Data, finishes.
Particularly, data processing equipment is loaded on internal memory with second Image Data, for these second Image Data of internal memory operation.
Alternatively, between 205 and 207, can also comprise: utilize second Image Data to recover first Image Data.Like this can be when starting next time; Data processing equipment directly detects first Image Data in the map section; Correct and directly load when complete and move second Image Data when first mapping (enum) data for internal memory; And need not remove to obtain in the backup area second mapping (enum) data again, accelerate the preceding preliminary work of operation.In this moment 207, data processing equipment can load by first Image Data after the recovery of second Image Data and move this by first Image Data after the recovery of second Image Data for internal memory.
Specifically can be integrated with software in the data processing equipment in the present embodiment, for example can be integrated with the boot in the end product.Data processing equipment can be realized above-mentioned correlation technique step through integrated software.
The kind data processing method of present embodiment; Can be after end product powers on; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then the Backup Data that loads first Image Data or first Image Data according to testing result promptly second Image Data can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault for operation, improve the reliability of end product effectively.
The process flow diagram of the data processing method that Fig. 3 provides for yet another embodiment of the invention.As shown in Figure 3, in the data processing method of present embodiment be that the end product of NAND Flash is an example with the storage medium, introduce the technical scheme of the embodiment of the invention in detail.
300, the Board Power up of end product;
301, the operation of the boot in the end product;
302, whether first Image Data among the boot triggering NAND Flash controller detection NAND Flash are correct and complete; First Image Data that obtain among the NAND Flash when detection are correct and complete, carry out 303; Otherwise when detecting first Image Data that obtain among the NAND Flash is incorrect or incomplete, carries out 305;
Whether correct and complete process can be called the testing process of first Image Data among the NAND Flash being carried out correctness and integrality to first Image Data among the boot detection NAND Flash.Can detect the whether correct and complete step of first Image Data with reference to data processing equipment in the foregoing description in detail, repeat no more at this.
303, boot is loaded into first Image Data in the internal memory; Carry out 304;
304, internal memory moves first Image Data, the end product operate as normal.Finish.
305, boot is obtained second Image Data from the backup area of NAND Flash; Carry out 306;
306, boot utilizes second Image Data to recover first Image Data, makes the Image Data of winning correct and complete; Carry out 307;
307, first Image Data after boot will be recovered by second Image Data are loaded in the internal memory; Carry out 308;
308, first Image Data after the internal memory operation is recovered by second Image Data, the end product operate as normal.Finish.
The data processing method of present embodiment; Can be after end product powers on; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then i.e. second Image Data and move these first Image Data or second Image Data of the Backup Data that loads first Image Data or first Image Data according to testing result; Can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improve the reliability of end product effectively.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The structural representation of the data processing equipment that Fig. 4 provides for one embodiment of the invention.As shown in Figure 4, the data processing equipment of present embodiment specifically can comprise: detection module 10 and processing module 11.
Whether detection module 10 is used for first Image Data of detection of stored medium correct and complete; These first Image Data are the Image Data that are stored in the image area of storage medium, and these first Image Data comprise the Image Data of all pages.Processing module 11 is connected with detection module 10; Processing module 11 is used for according to first Image Data of the testing result load store medium of detection module 10 or second Image Data to move first Image Data or second Image Data; These second Image Data are stored in the Backup Data of first Image Data in the storage medium; When for example these second Image Data can be for programming first Image Data first Image Data are backed up the Backup Data that obtains, these second Image Data can be stored in the backup area of storage medium.
The data processing equipment of present embodiment realizes that through adopting above-mentioned module data handling procedure is identical with the implementation procedure of above-mentioned correlation technique embodiment, can repeat no more at this with reference to the description of above-mentioned correlation technique embodiment in detail.
The data processing equipment of present embodiment realizes through adopting above-mentioned module whether first Image Data in the detection of stored medium are correct and complete; According to first Image Data in the testing result load store medium or second Image Data to move first Image Data or second Image Data.Adopt the technical scheme of present embodiment; Can be after end product powers on; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then the Backup Data that loads first Image Data or first Image Data according to testing result promptly second Image Data to move first Image Data or second Image Data; Can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improve the reliability of end product effectively.
The structural representation of the data processing equipment that Fig. 5 provides for another embodiment of the present invention.As shown in Figure 5, the data processing equipment of present embodiment is on above-mentioned basis embodiment illustrated in fig. 4, and wherein detection module 10, comprising: first detecting unit 101 and second detecting unit 102.
Whether wherein first detecting unit 101 is used for detecting the Image Data of each page of first Image Data correct; When the Image Data of certain one page in detecting first Image Data were incorrect, testing result was that first Image Data are incorrect.Second detecting unit 102 is connected with first detecting unit 101; Second detecting unit 102 is used for when the Image Data of all pages of definite first Image Data of first detecting unit, 101 detections are all correct, and whether the Image Data that detect all pages in first Image Data are complete; When the Image Data of certain one page in detecting first Image Data were imperfect, testing result was that first Image Data are imperfect; When the Image Data of all pages in detecting first Image Data were all complete, testing result was that first Image Data are correct and complete.
Wherein alternatively, first detecting unit 101 in the present embodiment comprises: first handles subelement and second handles subelement.
For the Image Data of each page in first Image Data, first handles subelement is used to trigger the Image Data that controller reads current page, and obtains an ECC of current page according to the Image Data of current page.The second processing subelement and first is handled subelement and is connected; The second processing subelement is used to trigger controller and judges whether an ECC two ECC corresponding with the current page of pre-stored of the current page that the first processing subelement obtains equates; When equal, the Image Data of then judging current page in first Image Data are correct; Otherwise when unequal, the Image Data of then judging current page in first Image Data are incorrect; The 2nd ECC is that the Image Data according to current page obtain when the Image Data of programming current page.
Wherein alternatively, second detecting unit 102 in the present embodiment comprises: the 3rd handles subelement, the manages subelement and the 5th everywhere and handles subelement.
Wherein the 3rd processing subelement and the second processing subelement are connected; The 3rd handles subelement is used for handling subelement and detecting the Image Data of all pages of confirming first Image Data when all correct when handling subelement and second through first, receives the triggering of the second processing subelement to obtain an ECC of each page correspondence in first Image Data.The manages subelement and the 3rd everywhere handles subelement and is connected, the manage all pages correspondence that subelement is used for obtaining according to the 3rd processing subelement everywhere an ECC obtain the 3rd ECC.The 5th handles subelement and the manages subelement everywhere and is connected; The 5th handles subelement is used to judge that the manages subelement everywhere whether connect the 3rd ECC that obtains four ECC corresponding with first Image Data of pre-stored equal; When equal, judge that then first Image Data are complete; Otherwise, when unequal, judge that then first Image Data are imperfect; The 4th ECC is that the 2nd ECC according to each page correspondence obtains when programming first Image Data.
Alternatively, the processing module in the present embodiment 11 can comprise acquiring unit 111 and loading unit 112.
Wherein acquiring unit 111 can be connected with first detecting unit 101 or second detecting unit 102 respectively; Acquiring unit 111 be used for when first detecting unit, 101 testing results be that first Image Data testing result incorrect or second detecting unit 102 is first Image Data when imperfect, from the backup area of storage medium, obtain second Image Data.Loading unit 112 is connected with acquiring unit 111, and loading unit 112 is used to load second Image Data that acquiring unit 111 obtains to move second Image Data.
Alternatively, the processing module 11 in the data processing equipment of present embodiment can also comprise recovery unit 113, and recovery unit 113 is connected with loading unit 112 with acquiring unit 111 respectively.
Recovery unit 113 be used for when testing result be incorrect or first Image Data of first Image Data when imperfect, second Image Data that utilize acquiring unit 111 to obtain recover first Image Data.First Image Data that loading unit 112 specifically is used to load recovery unit 113 after handling first Image Data after the back is recovered by second Image Data and being recovered by second Image Data with operation.
Need to prove, the processing module 11 in the present embodiment specifically can also be used for when testing result be that the Image Data of all pages of first Image Data are all correct and when complete, load first Image Data to move first Image Data.
The data processing equipment of present embodiment realizes that through adopting above-mentioned module data handling procedure is identical with the implementation procedure of above-mentioned correlation technique embodiment, can repeat no more at this with reference to the description of above-mentioned correlation technique embodiment in detail.
The data processing equipment of present embodiment; Can be after end product powers on through adopting above-mentioned module to realize; Correctness and integrality to first Image Data in the storage medium in the end product detects earlier; And then the Backup Data that loads first Image Data or first Image Data according to testing result promptly second Image Data for operation; Can reduce because first Image Data are made mistakes or lost efficacy and cause the probability of end product fault, improve the reliability of end product effectively.
Device embodiment described above only is schematic; Wherein the unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed at least two NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying performing creative labour.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (17)

1. a data processing method is characterized in that, comprising:
Whether first Image Data in the detection of stored medium are correct and complete; Said first Image Data are the Image Data that are stored in the image area of said storage medium, and said first Image Data comprise the Image Data of all pages;
Load said first Image Data or second Image Data in the said storage medium to move said first Image Data or said second Image Data according to testing result, said second Image Data are the Backup Data that is stored in said first Image Data in the said storage medium.
2. method according to claim 1 is characterized in that, whether first Image Data in the detection of stored medium are correct and complete, comprising:
Whether the Image Data that detect each page in said first Image Data are correct; When the Image Data of certain one page in detecting said first Image Data were incorrect, testing result was that said first Image Data are incorrect;
When the Image Data of all pages in said first Image Data were all correct, whether the Image Data that detect all pages in said first Image Data were complete; When the Image Data of certain one page in detecting said first Image Data were imperfect, testing result was that said first Image Data are imperfect; When the Image Data of all pages in detecting said first Image Data were all complete, testing result was that said first Image Data are correct and complete.
3. method according to claim 2 is characterized in that, whether the Image Data that detect each page in said first Image Data are correct, specifically comprise:
For the Image Data of each page in said first Image Data, trigger the Image Data that controller reads current page, and obtain first bug check and the correction code of said current page according to the Image Data of said current page;
Trigger said controller and judge whether said first bug check of said current page and correction code second bug check and the correction code corresponding with the said current page of pre-stored equate; When equal, judge that then the Image Data of current page described in said first Image Data are correct; Otherwise, when unequal, judge that then the Image Data of current page described in said first Image Data are incorrect; Said second bug check and correction code are that the Image Data according to current page obtain when the Image Data of the said current page of programming.
4. method according to claim 3 is characterized in that, when the Image Data of all pages in said first Image Data were all correct, whether the Image Data that detect all pages in said first Image Data were complete, specifically comprise:
Obtain first bug check and the correction code of each page correspondence in said first Image Data;
First bug check and correction code according to all pages correspondence are obtained the 3rd bug check and correction code;
Judge that whether the 4th bug check and correction code that said the 3rd bug check and correction code are corresponding with said first Image Data of pre-stored equate, when equal, judge that then said first Image Data are complete; Otherwise, when unequal, judge that then said first Image Data are imperfect; Said the 4th bug check and correction code are when said first Image Data of programming, to obtain according to second bug check and the correction code of each page correspondence.
5. method according to claim 2 is characterized in that, loads said first Image Data or second Image Data in the said storage medium to move said first Image Data or said second Image Data according to testing result, specifically comprises:
When said testing result is incorrect or said first Image Data of said first Image Data when imperfect, from the backup area of said storage medium, obtain said second Image Data;
Load said second Image Data to move said second Image Data.
6. method according to claim 5 is characterized in that, also comprises: when said testing result is incorrect or said first Image Data of said first Image Data when imperfect, utilize said second Image Data to recover said first Image Data.
7. method according to claim 6; It is characterized in that; Load said second Image Data to move said second Image Data, specifically comprise: load by first Image Data after said second Image Data recovery said by first Image Data after said second Image Data recovery to move.
8. method according to claim 2 is characterized in that, loads said first Image Data or second Image Data in the said storage medium to move said first Image Data or said second Image Data according to testing result, specifically comprises:
When said testing result is that the Image Data of all pages in said first Image Data are all correct and when complete, load said first Image Data to move said first Image Data.
9. according to the arbitrary described method of claim 1-8, it is characterized in that said second Image Data are stored with compressed format.
10. a data processing equipment is characterized in that, comprising:
Detection module, whether first Image Data that are used for the detection of stored medium are correct and complete; Said first Image Data are the Image Data that are stored in the image area of said storage medium, and said first Image Data comprise the Image Data of all pages;
Processing module; Said first Image Data or second Image Data that are used for loading said storage medium according to testing result are to move said first Image Data or said second Image Data, and said second Image Data are the Backup Data that is stored in said first Image Data in the said storage medium.
11. equipment according to claim 10 is characterized in that, said detection module comprises:
First detecting unit, whether the Image Data of each page that are used for detecting said first Image Data are correct; When the Image Data of certain one page in detecting said first Image Data were incorrect, testing result was that said first Image Data are incorrect;
Second detecting unit is used for when the Image Data of all pages of said first Image Data are all correct, and whether the Image Data that detect all pages in said first Image Data are complete; When the Image Data of certain one page in detecting said first Image Data were imperfect, testing result was that said first Image Data are imperfect; When the Image Data of all pages in detecting said first Image Data were all complete, testing result was that said first Image Data are correct and complete.
12. equipment according to claim 11 is characterized in that, said first detecting unit comprises:
First handles subelement, is used for the Image Data for each page of said first Image Data, triggers the Image Data that controller reads current page, and obtains first bug check and the correction code of said current page according to the Image Data of said current page;
Second handles subelement; Be used to trigger said controller and judge whether said first bug check of said current page and correction code second bug check and the correction code corresponding with the said current page of pre-stored equate; When equal, judge that then the Image Data of current page described in said first Image Data are correct; Otherwise, when unequal, judge that then the Image Data of current page described in said first Image Data are incorrect; Said second bug check and correction code are that the Image Data according to current page obtain when the Image Data of the said current page of programming.
13. equipment according to claim 12 is characterized in that, said second detecting unit comprises:
The 3rd handles subelement, is used for obtaining first bug check and the correction code of each page correspondence of said first Image Data;
Manages subelement everywhere, is used for obtaining the 3rd bug check and correction code according to first bug check and the correction code of all pages correspondence;
The 5th handles subelement, is used to judge whether said the 3rd bug check and correction code four bug check and the correction code corresponding with said first Image Data of pre-stored equate, when equal, judge that then said first Image Data are complete; Otherwise, when unequal, judge that then said first Image Data are imperfect; Said the 4th bug check and correction code are when said first Image Data of programming, to obtain according to second bug check and the correction code of each page correspondence.
14. equipment according to claim 11 is characterized in that, said processing module comprises:
Acquiring unit, be used for when said testing result be incorrect or said first Image Data of said first Image Data when imperfect, from the backup area of said storage medium, obtain said second Image Data;
Loading unit is used to load said second Image Data to move said second Image Data.
15. equipment according to claim 14 is characterized in that, said processing module also comprises:
Recovery unit, be used for when said testing result be incorrect or said first Image Data of said first Image Data when imperfect, utilize said second Image Data to recover said first Image Data.
16. equipment according to claim 15 is characterized in that, said loading unit specifically is used to load by first Image Data after said second Image Data recovery said by first Image Data after said second Image Data recovery to move.
17. equipment according to claim 11; It is characterized in that; Said processing module, specifically be used for when said testing result be that the Image Data of all pages of said first Image Data are all correct and when complete, load said first Image Data to move said first Image Data.
CN2011800010563A 2011-07-18 2011-07-18 Data processing method and equipment Pending CN102317920A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/077258 WO2012106897A1 (en) 2011-07-18 2011-07-18 Data processing method and device

Publications (1)

Publication Number Publication Date
CN102317920A true CN102317920A (en) 2012-01-11

Family

ID=45429416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011800010563A Pending CN102317920A (en) 2011-07-18 2011-07-18 Data processing method and equipment

Country Status (2)

Country Link
CN (1) CN102317920A (en)
WO (1) WO2012106897A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778356A (en) * 2016-11-17 2017-05-31 深圳市视维科技有限公司 Set-top box device prevents the method for losing core data
CN113504878A (en) * 2021-07-26 2021-10-15 浙江大华技术股份有限公司 File writing method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004053696A1 (en) * 2002-12-11 2004-06-24 Fujitsu Limited Backup system, backup control apparatus, backup data management method, backup control program, and computer-readable recording medium containing the program
CN1902583A (en) * 2003-12-31 2007-01-24 桑迪士克股份有限公司 Flash memory system startup operation
US7337374B2 (en) * 2002-04-23 2008-02-26 Hitachi, Ltd. Program, information processing method, information processing apparatus, and storage apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4534498B2 (en) * 2004-01-28 2010-09-01 ソニー株式会社 Semiconductor device and its startup processing method
CN1908909A (en) * 2006-08-24 2007-02-07 无敌科技(西安)有限公司 Supported system of startup program and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7337374B2 (en) * 2002-04-23 2008-02-26 Hitachi, Ltd. Program, information processing method, information processing apparatus, and storage apparatus
WO2004053696A1 (en) * 2002-12-11 2004-06-24 Fujitsu Limited Backup system, backup control apparatus, backup data management method, backup control program, and computer-readable recording medium containing the program
CN1902583A (en) * 2003-12-31 2007-01-24 桑迪士克股份有限公司 Flash memory system startup operation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778356A (en) * 2016-11-17 2017-05-31 深圳市视维科技有限公司 Set-top box device prevents the method for losing core data
CN113504878A (en) * 2021-07-26 2021-10-15 浙江大华技术股份有限公司 File writing method and device, storage medium and electronic device

Also Published As

Publication number Publication date
WO2012106897A1 (en) 2012-08-16

Similar Documents

Publication Publication Date Title
US20140337669A1 (en) On-Line Memory Testing Systems And Methods
CN102298545B (en) System startup boot processing method and device
CN106776122A (en) A kind of method of main-apparatus protection in start-up course based on Flash
CN103678030A (en) Multi-system equipment start system and method thereof
CN102385535A (en) Handling errors during device bootup from a non-volatile memory
US20150143172A1 (en) Computing device and method for automatically recovering bios of computing device
EP2960777B1 (en) Data protection method, apparatus and device
CN102508732A (en) Method and device for improving one-time programmable memory use performance
CN105808371A (en) Data backup and recovery method, control chip and storage device
CN110399247A (en) A kind of data reconstruction method, device, equipment and computer readable storage medium
CN104077167A (en) Boot loading method and device based on NAND FLASH
CN112631516A (en) FLASH file management system with service life management function
CN108089892B (en) Method and device for safely starting system, set top box and storage medium
CN103226505A (en) Method and equipment for checking basic input output system (BIOS)
US20060015769A1 (en) Program, method and apparatus for disk array control
CN1180346C (en) Autoamtic safe reset method of BIOS storage in computer system
CN102968089B (en) Programmable logic controller and implementing method
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
CN105279043A (en) Method and system for recovering single-chip microcomputer software error
CN102317920A (en) Data processing method and equipment
CN113094107A (en) Data protection method, device, equipment and computer storage medium
CN105786680B (en) Memory pre-analysis methods and its system after Kernel Panic
CN102184115B (en) Method for updating system software and terminal device
CN111273928A (en) Self-upgrading bootloader design method
CN103220569B (en) The automatic recovery method of a kind of Set Top Box and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20120111

RJ01 Rejection of invention patent application after publication