CN108874582A - A kind of system recovery method, device and terminal - Google Patents

A kind of system recovery method, device and terminal Download PDF

Info

Publication number
CN108874582A
CN108874582A CN201710338780.4A CN201710338780A CN108874582A CN 108874582 A CN108874582 A CN 108874582A CN 201710338780 A CN201710338780 A CN 201710338780A CN 108874582 A CN108874582 A CN 108874582A
Authority
CN
China
Prior art keywords
subregion
error
main partition
backup
starting
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
CN201710338780.4A
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.)
SHANGHAI BROADMOBI COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI BROADMOBI COMMUNICATION TECHNOLOGY 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 SHANGHAI BROADMOBI COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI BROADMOBI COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201710338780.4A priority Critical patent/CN108874582A/en
Publication of CN108874582A publication Critical patent/CN108874582A/en
Pending legal-status Critical Current

Links

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/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention provides a kind of system recovery method, device and terminal, and this method includes when system starts and malfunctions, and generation error mark, the error flag is used to identify the subregion for causing system starting to malfunction;Backup subregion corresponding to the error flag is copied into corresponding main partition;Restore activation system according to the main partition after duplication;Wherein, the main partition is the set of subregion required for system starts, and the backup subregion is subregion that is preset, being stored with main partition backup when subregion is arranged.Error flag is arranged by using in Error Location in the present invention, confirms the data subregion of error, then restarts setting and backup partition data is restored in main partition by identification error flag, the data for completing main partition are restored;After starting mistake occurs, error subregion can quickly be positioned by the above method, and the subregion that malfunctions targetedly is restored by backup subregion, realization system normally starts, and improves the reliability of embedded device.

Description

A kind of system recovery method, device and terminal
Technical field
The present invention relates to embedded system technology fields, more particularly to a kind of system recovery method, device and terminal.
Background technique
Technical grade module usually requires that high stability, i.e., keeps working normally in the presence of a harsh environment.Wherein, it is resistant to Power supply instability and remained to after tens of thousands of secondary power-on and power-off normally start operation, be the basic demand of a technical grade module.
Currently, embedded device is widely used in industrial production as a kind of common technical grade module.Embedded The memories such as ROM and NAND flash are usually provided in equipment, for storing the bootstrap loader (English of embedded device Text:) and subregion etc. bootloader.When starting embedded device, bootloader can successively load multiple subregions, such as needle To the embedded device of high pass 9x07 platform, start-up course needs to undergo from pbl (English:Primary Bootloader, in Text:Primary boot loader) it is (English to sbl:Secondary Bootloader, Chinese:Secondary bootstrap loader), then Sequence load tz subregion, rpm subregion, aboot subregion, system subregion, Modem subregion and efs subregion.
However, inventors discovered through research that, only guaranteed bootloader guidance loads is embedded under no abnormal conditions Formula equipment could normally start.In actual use, due to unreasonable NAND flash timing configuration or high temperature ring The bit bit flipping of NAND flash under border, especially when carrying out NAND flash write operation unexpected power down be easy to generate it is certain Bit are reversed perhaps to be deteriorated and are will lead in bootloader loading procedure or during system normal load in this way There is exception, so that embedded device can not start.Moreover, the subregion loaded needed for bootloader is more, a subregion adds Setting out mistake all can cause equipment not start normally, this is even more to greatly increase the abnormal probability of starting occur, so as to cause insertion The poor reliability of formula equipment.
Therefore, how also embedded device can be allowed normally to start in the case where subregion error, and then improves it The technical issues of reliability is those skilled in the art's urgent need to resolve.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of system recovery methods, device And terminal, for solving the problems, such as embedded device poor reliability in the prior art.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one Kind system recovery method, this approach includes the following steps:
When system, which starts, to malfunction, generation error mark, the error flag, which is used to identify, leads to system starting error Subregion;
Backup subregion corresponding to the error flag is copied into corresponding main partition;
Restore activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, when the backup subregion is setting subregion Subregion that is preset, being stored with the main partition backup.
Optionally, the generation error mark includes:
The starting error message that acquisition system returns, when the starting error message occurs for identifying system starting error Launching process;
Judge whether subregion corresponding with the launching process malfunctions;
If so, generating the error flag according to the subregion of error.
When optionally, before the launching process is located at starting kernel, the judgement is corresponding with the launching process Subregion whether malfunction, including:
Startup file each in main partition is verified respectively;
Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
Optionally, the startup file includes tz subregion startup file, rpm subregion startup file and the starting of aboot subregion One or more combinations of file.
Optionally, when the launching process is carry file system, determine that system subregion malfunctions, and described in generation Error flag corresponding to system subregion.
Optionally, when the launching process is to read partitioned file, corresponding with the launching process point of the judgement Whether area malfunctions, including:
Each partitioned file to be read is verified;
Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error.
Optionally, the main partition and the backup subregion are set on same nand flash memory.
Optionally, before backup subregion corresponding to the error flag being copied to corresponding main partition, further include:
The corresponding main partition of the error flag is formatted.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of system recovery device, which includes:
Mark module, for when system start malfunction when, generation error mark, the error flag for identify cause be The subregion of system starting error;
Backup module, for backup subregion corresponding to the error flag to be copied to corresponding main partition;
Restore starting module, for restoring activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, when the backup subregion is setting subregion Subregion that is preset, being stored with the main partition backup.
Optionally, the mark module is used for,
The starting error message that acquisition system returns, when the starting error message occurs for identifying system starting error Launching process;
Judge whether subregion corresponding with the launching process malfunctions;
The error flag is generated according to the subregion of error.
Optionally, the mark module is used for,
When before the launching process being located at starting kernel, startup file each in main partition is verified respectively;
Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
Optionally, the startup file includes tz subregion startup file, rpm subregion startup file and the starting of aboot subregion One or more combinations of file.
Optionally, the mark module is used for, and when the launching process is carry file system, determines system subregion Error, and generate error flag corresponding to the system subregion.
Optionally, the mark module is used for,
When the launching process is to read partitioned file, each partitioned file to be read is verified;
Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error.
Optionally, the main partition and the backup subregion are set on same nand flash memory.
According to the third aspect of the invention we, the embodiment of the present invention also provides a kind of terminal, and the terminal includes at least one Processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor can:
When system, which starts, to malfunction, generation error mark, the error flag, which is used to identify, leads to system starting error Subregion;
Backup subregion corresponding to the error flag is copied into corresponding main partition;
Restore activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, when the backup subregion is setting subregion Subregion that is preset, being stored with the main partition backup.
As described above, system recovery method of the invention, device and terminal, have the advantages that:When system starts When error, generation error mark, the error flag is used to identify the subregion for leading to system starting error;By the error flag Corresponding backup subregion copies to corresponding main partition;Restore activation system according to the main partition after duplication;Wherein, the master Subregion is the set of subregion required for system starts, and the backup subregion is preset when being setting subregion, is stored with the master The subregion of Area-Specific Archive.Error flag is arranged by using in Error Location in the present invention, confirms the data subregion of error, then weighs It opens setting and backup partition data is restored in main partition by identification error flag, the data for completing main partition are restored;Work as hair After raw starting mistake, error subregion can quickly be positioned by the above method, and targetedly restore to malfunction by backup subregion Subregion, realization system normally start, and improve the reliability of embedded device.
Detailed description of the invention
Fig. 1 is shown as a kind of flow diagram of system recovery method provided in an embodiment of the present invention.
Fig. 2 is shown as a kind of flow diagram of error flag generation method provided in an embodiment of the present invention.
Fig. 3 is shown as a kind of flow diagram of subregion error judgment method provided in an embodiment of the present invention.
Fig. 4 is shown as the flow diagram of another subregion error judgment method provided in an embodiment of the present invention.
Fig. 5 is shown as a kind of structural schematic diagram of system recovery device provided in an embodiment of the present invention.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.
Fig. 1 is please referred to Fig. 5.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way The basic conception of invention, only shown in diagram then with related component in the present invention rather than package count when according to actual implementation Mesh, shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its Assembly layout kenel may also be increasingly complex.
It is a kind of flow diagram of system recovery method provided in an embodiment of the present invention referring to Fig. 1, as shown in Figure 1, this The processor that inventive embodiments show built-in terminal implements the process of system recovery method:
Step S101:When system, which starts, to malfunction, generation error mark, the error flag causes system to open for identifying The subregion of dynamic error.
In embodiments of the present invention, when system, which starts, to malfunction, generation error mark, the error flag is led for identifying The subregion of cause system starting error.Specifically, it malfunctions if it is starting caused by tz subregion, can be in the error flag The number or words identification for carrying tz subregion can be for example the error code of forms such as " 0xFE0021EF ", so that memory It can know it is the starting error of system caused by tz subregion by parsing the error flag.Certainly, above embodiment is only One exemplary embodiment, the error flag can also carry the reason of leading to system starting error information, such as file is lost Mistake or file corruption etc., in embodiments of the present invention without limitation.
In order to generate the error flag, to enable a processor to quickly carry out system recovery according to the error flag, It referring to fig. 2, is a kind of flow diagram of error flag generation method provided in an embodiment of the present invention, as shown in Fig. 2, this method Including:
Step S1011:The starting error message that acquisition system returns, the starting error message is for identifying system starting Launching process when error occurs.
Different launching process can be entered according to preset boot sequence upon power-up of the system, such as system launching process can It can include load startup file, load kernel, carry file system and reading partitioned file etc..When system launches into phase The launching process answered, when mistake occurs for the launching process, system can return to corresponding starting error message.Wherein, described to open Dynamic error message is used to identify launching process when system starting error occurs, and processor can be according to the starting error message Determine that corresponding launching process occurs for starting mistake;In one exemplary embodiment, the starting error message can be phase The error code answered is further processed device and parses the error code, determines launching process locating when starting mistake occurs.
Step S1012:Judge whether subregion corresponding with the launching process malfunctions.
It is a kind of subregion error judgment method provided in an embodiment of the present invention referring to Fig. 3 under the first performance Flow diagram is handled when before the launching process being located at starting kernel as shown in figure 3, the embodiment of the present invention is shown Device judges the process of subregion error:
Step S201:Startup file each in main partition is verified respectively.
In an exemplary implementation, the startup file may include tz subregion startup file, rpm subregion startup file and One or more combinations of aboot subregion startup file.Processor can verify each startup file, in an example In property embodiment, the startup file of each subregion is corresponding with respective criteria check code, such as the check code can be Hash Check code etc. is in embodiments of the present invention without limitation;When startup file is changed due to the position bit in nand flash memory, meter The check value of the startup file is calculated, the check value is different from criteria check code, so that it is determined that startup file verification failure;And work as Startup file calculates the check value of the startup file, the check value is identical as criteria check code, then can be true when no change has taken place The fixed startup file verifies successfully.
Step S202:Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
If startup file verification failure, using subregion corresponding to the startup file of verification failure as point of error Area, further according to the subregion generation error mark of the error.For example, if the verification failure of rpm subregion startup file, table Show that rpm subregion startup file is the reason of leading to system starting error, then to make the corresponding rpm subregion of rpm subregion startup file For the subregion of error, and according to rpm subregion generation error mark, so in the next steps, according to carrying rpm partition information Error flag, corresponding system resumes operation can be carried out.
Under second of performance, when the launching process is carry file system, processor determines system points Area's error, and generate error flag corresponding to the system subregion.According to the starting error message of step S1011, if When determining that corresponding launching process is carry file system when starting mistake occurs, due to carry file system launching process with System subregion is related, then can determine that mistake occurs for system subregion, is further generated according to system subregion corresponding wrong Accidentally indicate, so that processor can carry out system for system subregion and restore behaviour according to the error flag in the next steps Make.
Under the third performance, referring to fig. 4, for another subregion error judgment method provided in an embodiment of the present invention Flow diagram handled when the launching process is to read partitioned file as shown in figure 4, the embodiment of the present invention is shown Device judges the process of subregion error:
Step S301:Each partitioned file to be read is verified.
Do not occur to start mistake when launching process have passed through load startup file, load kernel and carry file system, When mistake occurs when entering and reading partitioned file process, processor can carry out school to each partitioned file to be read It tests.Wherein, specific verification mode, which can be used, calculates the file verifications modes such as hash check code, in embodiments of the present invention, It repeats no more.
Step S302:Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error.
According to the check results of step S301, using subregion corresponding to the partitioned file of verification failure as point of error Area.
Step S1013:If so, generating the error flag according to the subregion of error.
It can determine the subregion of error by the judgement of step S1012, institute further can be generated according to the subregion of error Error flag is stated, such processor in the next steps, can carry out phase for the subregion of error by parsing the error flag The system resumes operation answered.If it is determined that subregion does not malfunction, then judgement terminates, and further executes subsequent step.
Step S102:Backup subregion corresponding to the error flag is copied into corresponding main partition.
Wherein, the main partition is the set of subregion required for system starts, when the backup subregion is setting subregion Subregion that is preset, being stored with the main partition backup.In the specific implementation, it can be opened when system partitioning is arranged for system Subregion required for dynamic respectively corresponds plus a backup subregion, and each backup subregion is used for recovery of stomge data;Moreover, will be literary Number of packages according to programming to main partition while, also identical data of corresponding burning to respective backup subregion.In addition, the master point Area and the backup subregion can be set on same nand flash memory.Specifically, if the subregion that system drive needs is tz points When area, rpm subregion, aboot subregion, system subregion, modem subregion and efs subregion, then correspondingly, setting tz subregion Backup subregion, the backup subregion of rpm subregion, the backup subregion of aboot subregion, the backup subregion of system subregion, modem subregion Backup subregion and efs subregion backup subregion;Further, programming tz subregion simultaneously the identical data of programming to tz subregion Backup subregion, programming rpm subregion simultaneously the identical data of programming to rpm subregion backup subregion, in programming aboot subregion Backup subregion of the identical data of programming to aboot subregion simultaneously, the identical data of programming while programming system subregion To the backup subregion of system subregion, backup point of the identical data of programming to modem subregion while programming modem subregion Area, and backup subregion of the identical data of programming to efs subregion while programming efs subregion.
After starting mistake occurs, processor read error mark causes starting wrong by parsing the error flag and determining Subregion accidentally, and backup subregion corresponding to the subregion is copied into main partition.In order to guarantee the reliability of system recovery, one In exemplary embodiment, before backup subregion corresponding to error flag is copied to corresponding main partition, can also include:It is right The corresponding main partition of the error flag is formatted, and after formatting, the corresponding backup subregion of error flag is copied to Main partition.
Step S103:Restore activation system according to the main partition after duplication.
After restoring main partition by way of copy backup subregion, processor control system reenters Booting sequence, with Pass through the main partition recovery system after duplication.
By the description of above-described embodiment as it can be seen that a kind of system recovery method provided in an embodiment of the present invention, including work as system When starting error, generation error mark, the error flag is used to identify the subregion for leading to system starting error;By the mistake The corresponding backup subregion of mark copies to corresponding main partition;Restore activation system according to the main partition after duplication;Wherein, institute The set that main partition is subregion required for system starts is stated, preset when is subregion is arranged in the backup subregion, storage is State the subregion of main partition backup.Error flag is arranged by using in Error Location in the present invention, confirms the data subregion of error, so After restart setting backup partition data be restored in main partition by identification error flag, complete the data recovery in main partition; After starting mistake occurs, error subregion can quickly be positioned by the above method, and targetedly restore by backup subregion Malfunction subregion, and realization system normally starts, and improves the reliability of embedded device.
Corresponding with system recovery method embodiment provided by the invention, the present invention also provides a kind of system recovery devices.
It is a kind of structural schematic diagram of system recovery device provided in an embodiment of the present invention referring to Fig. 5, as shown in figure 5, should System recovery device includes:
Mark module 11, for when system starts and malfunctions, generation error mark, the error flag to cause for identifying The subregion of system starting error;
Backup module 12, for backup subregion corresponding to the error flag to be copied to corresponding main partition;
Restore starting module 13, for restoring activation system according to the main partition after duplication;Wherein, the main partition is to be The set of subregion required for system starts, the backup subregion is preset when being setting subregion, is stored with the main partition backup Subregion.
Optionally, the mark module 11 is used for, and obtains the starting error message that system returns, the starting error message For identifying launching process when system starting error occurs;Judge whether subregion corresponding with the launching process malfunctions; The error flag is generated according to the subregion of error.
When optionally, before the launching process is located at starting kernel, the mark module 11 is used for, respectively to main point Each startup file is verified in area;Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
Optionally, the startup file includes tz subregion startup file, rpm subregion startup file and the starting of aboot subregion One or more combinations of file.
Optionally, when the launching process is carry file system, the mark module 11 is used for, and determines system points Area's error, and generate error flag corresponding to the system subregion.
Optionally, when the launching process is to read partitioned file, the mark module 11 is used for, to be read each A partitioned file is verified;Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error
Optionally, the main partition and the backup subregion are set on same nand flash memory.
The embodiment of the present invention also provides a kind of terminal, and the terminal includes at least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor can:
When system, which starts, to malfunction, generation error mark, the error flag, which is used to identify, leads to system starting error Subregion;
Backup subregion corresponding to the error flag is copied into corresponding main partition;
Restore activation system according to the main partition after duplication;Wherein, the main partition is subregion required for system starts Set, the backup subregion is subregion that is preset, being stored with main partition backup when subregion is arranged.
Certainly, it should be noted that the processor in the terminal can be additionally configured to execute above system restoration methods System recovery method described in embodiment.
In conclusion the present invention provides a kind of system recovery method, device and terminal, it is arranged by using in Error Location Error flag confirms the data subregion of error, then restarts setting and is restored to backup partition data by identification error flag In main partition, the data for completing main partition are restored;After starting mistake occurs, the present invention can quickly position error subregion, and Targetedly restore the subregion that malfunctions by backup subregion, realization system normally starts, and improves the reliability of embedded device.Institute With the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (16)

1. a kind of system recovery method, which is characterized in that include the following steps:
When system, which starts, to malfunction, generation error mark, the error flag is used to identify the subregion for leading to system starting error;
Backup subregion corresponding to the error flag is copied into corresponding main partition;
Restore activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, and the backup subregion is default when being setting subregion , subregion that be stored with main partition backup.
2. system according to claim 1 restoration methods, which is characterized in that the generation error mark includes:
The starting error message that acquisition system returns, the starting error message are used to identify opening when system starting error occurs Dynamic process;
Judge whether subregion corresponding with the launching process malfunctions;
If so, generating the error flag according to the subregion of error.
3. system recovery method according to claim 2, which is characterized in that when the launching process be located at starting kernel it It is described to judge whether subregion corresponding with the launching process malfunctions when preceding, including:
Startup file each in main partition is verified respectively;
Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
4. system recovery method according to claim 3, which is characterized in that the startup file includes tz subregion starting text One or more combinations of part, rpm subregion startup file and aboot subregion startup file.
5. system recovery method according to claim 2, which is characterized in that when the launching process is carry file system When, determine that system subregion malfunctions, and generate error flag corresponding to the system subregion.
6. system according to claim 1 restoration methods, which is characterized in that when the launching process is to read partitioned file When, whether the judgement subregion corresponding with the launching process malfunctions, including:
Each partitioned file to be read is verified;
Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error.
7. system according to claim 1 restoration methods, which is characterized in that the main partition and backup subregion setting In on same nand flash memory.
8. system according to claim 1 restoration methods, which is characterized in that by backup corresponding to the error flag point Area copies to before corresponding main partition, further includes:
The corresponding main partition of the error flag is formatted.
9. a kind of system recovery device, which is characterized in that including:
Mark module, for when system starts and malfunctions, generation error mark, the error flag to cause system to open for identifying The subregion of dynamic error;
Backup module, for backup subregion corresponding to the error flag to be copied to corresponding main partition;
Restore starting module, for restoring activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, and the backup subregion is default when being setting subregion , subregion that be stored with main partition backup.
10. system recovery device according to claim 9, which is characterized in that the mark module is used for,
The starting error message that acquisition system returns, the starting error message are used to identify opening when system starting error occurs Dynamic process;
Judge whether subregion corresponding with the launching process malfunctions;
The error flag is generated according to the subregion of error.
11. system recovery device according to claim 10, which is characterized in that the mark module is used for,
When before the launching process being located at starting kernel, startup file each in main partition is verified respectively;
Determine that subregion corresponding to the startup file of verification failure is the subregion of error.
12. system recovery device according to claim 11, which is characterized in that the startup file includes the starting of tz subregion One or more combinations of file, rpm subregion startup file and aboot subregion startup file.
13. system recovery device according to claim 10, which is characterized in that the mark module is used for, and is opened when described It when dynamic process is carry file system, determines that system subregion malfunctions, and generates the mark of mistake corresponding to the system subregion Will.
14. system recovery device according to claim 10, which is characterized in that the mark module is used for,
When the launching process is to read partitioned file, each partitioned file to be read is verified;
Determine that subregion corresponding to the partitioned file of verification failure is the subregion of error.
15. system recovery device according to claim 9, which is characterized in that the main partition and the backup subregion are set It is placed on same nand flash memory.
16. a kind of terminal, which is characterized in that the terminal includes at least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by least one described processor It executes, so that at least one described processor can:
When system, which starts, to malfunction, generation error mark, the error flag is used to identify the subregion for leading to system starting error;
Backup subregion corresponding to the error flag is copied into corresponding main partition;
Restore activation system according to the main partition after duplication;
Wherein, the main partition is the set of subregion required for system starts, and the backup subregion is default when being setting subregion , subregion that be stored with main partition backup.
CN201710338780.4A 2017-05-15 2017-05-15 A kind of system recovery method, device and terminal Pending CN108874582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710338780.4A CN108874582A (en) 2017-05-15 2017-05-15 A kind of system recovery method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710338780.4A CN108874582A (en) 2017-05-15 2017-05-15 A kind of system recovery method, device and terminal

Publications (1)

Publication Number Publication Date
CN108874582A true CN108874582A (en) 2018-11-23

Family

ID=64320161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710338780.4A Pending CN108874582A (en) 2017-05-15 2017-05-15 A kind of system recovery method, device and terminal

Country Status (1)

Country Link
CN (1) CN108874582A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725945A (en) * 2018-12-30 2019-05-07 龙尚科技(上海)有限公司 A kind of mould group starting method, apparatus, equipment and storage medium
CN109783150A (en) * 2019-01-31 2019-05-21 深兰科技(上海)有限公司 A kind of anti-brick method and device of embedded system starting
CN109815061A (en) * 2019-01-31 2019-05-28 深兰科技(上海)有限公司 A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system
CN109933464A (en) * 2019-02-28 2019-06-25 深圳市伟文无线通讯技术有限公司 Mifi software self-regeneration method
CN111124760A (en) * 2019-12-28 2020-05-08 北京浪潮数据技术有限公司 Uboot-based embedded equipment starting method and apparatus
CN111736908A (en) * 2020-06-24 2020-10-02 上海麦腾物联网技术有限公司 Control method for staged starting in embedded dual system
CN113805967A (en) * 2021-09-17 2021-12-17 远峰科技股份有限公司 MPU (micro processing Unit) safe starting method and MPU safe starting system
CN115130114A (en) * 2022-08-31 2022-09-30 杭州云动智能汽车技术有限公司 Gateway safety starting method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615365B1 (en) * 2000-03-11 2003-09-02 Powerquest Corporation Storing a computer disk image within an imaged partition
US20070050667A1 (en) * 2005-08-26 2007-03-01 Xiv Ltd. Method and apparatus for ensuring data integrity in redundant mass storage systems
CN101004702A (en) * 2006-01-19 2007-07-25 刘文斌 Data protection and restore method based on instant restore type protection card for hard disk
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
WO2015195589A1 (en) * 2014-06-18 2015-12-23 Microsoft Technology Licensing, Llc Scalable eventual consistency system using logical document journaling
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN106610840A (en) * 2015-10-22 2017-05-03 深圳市中兴微电子技术有限公司 FOTA (Firmware Over-The-Air) upgrade method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615365B1 (en) * 2000-03-11 2003-09-02 Powerquest Corporation Storing a computer disk image within an imaged partition
US20070050667A1 (en) * 2005-08-26 2007-03-01 Xiv Ltd. Method and apparatus for ensuring data integrity in redundant mass storage systems
CN101004702A (en) * 2006-01-19 2007-07-25 刘文斌 Data protection and restore method based on instant restore type protection card for hard disk
WO2015195589A1 (en) * 2014-06-18 2015-12-23 Microsoft Technology Licensing, Llc Scalable eventual consistency system using logical document journaling
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN106610840A (en) * 2015-10-22 2017-05-03 深圳市中兴微电子技术有限公司 FOTA (Firmware Over-The-Air) upgrade method and system
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHUNG-YU LIU: "A Study of Flight-Critical Computer System Recovery from Space Radiation-Induced Error", 《IEEE AESS SYSTEMS MAGAZINE》 *
唐磊: "基于扩展LMP的LSP保护与恢复研究", 《福建师范大学学报》 *
王奇: "《嵌入式操作系统内核调度 底层开发者手册》", 31 January 2015 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725945A (en) * 2018-12-30 2019-05-07 龙尚科技(上海)有限公司 A kind of mould group starting method, apparatus, equipment and storage medium
CN109783150A (en) * 2019-01-31 2019-05-21 深兰科技(上海)有限公司 A kind of anti-brick method and device of embedded system starting
CN109815061A (en) * 2019-01-31 2019-05-28 深兰科技(上海)有限公司 A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system
CN109933464A (en) * 2019-02-28 2019-06-25 深圳市伟文无线通讯技术有限公司 Mifi software self-regeneration method
CN109933464B (en) * 2019-02-28 2021-04-30 深圳市伟文无线通讯技术有限公司 Self-repairing method for mifi software
CN111124760A (en) * 2019-12-28 2020-05-08 北京浪潮数据技术有限公司 Uboot-based embedded equipment starting method and apparatus
CN111124760B (en) * 2019-12-28 2022-03-22 北京浪潮数据技术有限公司 Uboot-based embedded equipment starting method and apparatus
CN111736908A (en) * 2020-06-24 2020-10-02 上海麦腾物联网技术有限公司 Control method for staged starting in embedded dual system
CN113805967A (en) * 2021-09-17 2021-12-17 远峰科技股份有限公司 MPU (micro processing Unit) safe starting method and MPU safe starting system
CN115130114A (en) * 2022-08-31 2022-09-30 杭州云动智能汽车技术有限公司 Gateway safety starting method and device, electronic equipment and storage medium
CN115130114B (en) * 2022-08-31 2022-12-23 杭州云动智能汽车技术有限公司 Gateway secure starting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108874582A (en) A kind of system recovery method, device and terminal
CN102289397B (en) Method and device for automatically restoring embedded system of set top box
CN102385535B (en) Handling errors during device bootup from a non-volatile memory
US9286164B2 (en) Electronic device to restore MBR, method thereof, and computer-readable medium
US9164756B2 (en) Software updating process for an embedded device
CN102270144B (en) Embedded network equipment and method for upgrading firmware by using same
US10303459B2 (en) Electronic system with update control mechanism and method of operation thereof
CN102760090B (en) Debugging method and computer system
CN106776122A (en) A kind of method of main-apparatus protection in start-up course based on Flash
CN102298545B (en) System startup boot processing method and device
CN109558160A (en) Upgrade method, embedded system
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
US20150199190A1 (en) System and method for updating firmware
CN104123153A (en) Apparatus and method for firmware upgrade using USB
CN105760191A (en) Embedded system equipment programming mass production method
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN104424047A (en) NVRAM data recovery method and NVRAM data recovery device
US6081892A (en) Initial program load
CN103455750B (en) The high peace verification method of a kind of embedded device and device
CN105677409A (en) System upgrading method and device
CN114895845A (en) EMmC data storage control method and embedded mainboard
CN109189499B (en) Java program management method, java program management device, computer device and storage medium
CN108647119A (en) The startup method, apparatus and equipment of linux system
CN100476745C (en) Method for implementing automatic fault-tolerance of image file in Linux operating system booting process

Legal Events

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

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication