CN104615471A - System upgrading method and device for terminal - Google Patents

System upgrading method and device for terminal Download PDF

Info

Publication number
CN104615471A
CN104615471A CN201510097857.4A CN201510097857A CN104615471A CN 104615471 A CN104615471 A CN 104615471A CN 201510097857 A CN201510097857 A CN 201510097857A CN 104615471 A CN104615471 A CN 104615471A
Authority
CN
China
Prior art keywords
upgraded
current
upgrade bag
standby
unit
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
CN201510097857.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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201510097857.4A priority Critical patent/CN104615471A/en
Publication of CN104615471A publication Critical patent/CN104615471A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a system upgrading method and a device of a terminal, wherein the method comprises the following steps: adding a backup system to an operating system of the terminal in advance, wherein the operating system and the backup system are backups of each other; s1: detecting whether the backup system is a system which is not started after the upgrade is finished, if so, executing a step S2, otherwise, executing a step S3; s2: exchanging roles of the operating system and the backup system; s3: starting a current running system; s4: detecting whether a system upgrading package is to be upgraded, if so, executing a step S5, otherwise, ending the current process; s5: acquiring the system upgrading package to be upgraded; s6: and according to the obtained system upgrading package to be upgraded, carrying out system upgrading on the current backup system. The system upgrading method and device of the terminal can improve the system safety.

Description

A kind of method for upgrading system of terminal and device
Technical field
The present invention relates to electronic technology field, particularly a kind of method for upgrading system of terminal and device.
Background technology
At present, the terminal such as Set Top Box, advertisement machine, televisor has been widely used in various field.When these terminals of use, in order to repair system leak, ensure system stable operation, or increase new function etc. for system, need to carry out system upgrade to terminal.
In prior art, when carrying out system upgrade to terminal, need once during upgrading, the whole AKU required for this being upgraded all have upgraded.If when there is the fault such as power-off, system upgrade interruption in escalation process, system, when starting next time, just cannot normally start, and security of system is lower.
Summary of the invention
In view of this, the invention provides a kind of method for upgrading system and device of terminal, can security of system be improved.
The invention provides a kind of method for upgrading system of terminal, comprising: in advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other, and also comprise:
S1: whether detect described standby system is the system do not started after having upgraded, if so, then performs step S2, otherwise, perform step S3;
S2: the role exchanging operational system and standby system;
S3: start current operational system;
S4: detect whether there is system upgrade bag to be upgraded, if so, then performs step S5, otherwise, terminate current process;
S5: obtain described system upgrade bag to be upgraded;
S6: according to the system upgrade bag described to be upgraded obtained, system upgrade is carried out to current standby system.
Further, also comprise: pre-set for identifying the system state mark whether two current systems are the state of role to be exchanged;
Described S1, comprising: whether detection system status indicator is the state of role to be exchanged, if, then judge that described standby system is as the system do not started after having upgraded, and performs step S2, otherwise, judge that described standby system is not the system do not started after having upgraded, perform step S3;
After described S2, before described S3, also comprise: the state described system state mark being revised as non-role to be exchanged;
After described S6, also comprise: after current standby system has been upgraded, described system state mark is revised as the state of role to be exchanged.
Further, also comprise: the side-play amount pre-setting the progress downloaded for tag system AKU;
Described S5, comprising: the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
After described S4, before described S5, also comprise: when system upgrade bag to be upgraded being detected, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, if so, then perform described S5, otherwise, perform A1;
A1: the version information version information of described system upgrade bag being replaced with current system upgrade bag to be upgraded, initialization offset amount, performs described S5.
Further, described S5, comprising: the progress corresponding according to current side-play amount, and periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described S6, comprising: according to the data of the system upgrade bag of the default size of current download, carry out system upgrade to current standby system.
Further, in advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other, comprise: in advance for the first disk partition of described terminal increases a backup subregion, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described S2, comprising: by the bootargs parameter in amendment Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
On the other hand, the invention provides a kind of system upgrade device of terminal, comprising:
First setting unit, for increasing a standby system for the operational system of described terminal, described operational system and described standby system backup each other;
First detecting unit, for detect described standby system be whether upgraded after the system that do not start, when the test results is yes, then notify crosspoint, when testing result is no, then notify start unit;
Described crosspoint, for exchanging the role of operational system and standby system;
Described start unit, for starting current operational system;
Whether the second detecting unit, having system upgrade bag to be upgraded for detecting, when the test results is yes, then notifying acquiring unit;
Described acquiring unit, for obtaining described system upgrade bag to be upgraded;
Upgrade unit, for the system upgrade bag described to be upgraded obtained according to described acquiring unit, carries out system upgrade to current standby system.
Further, also comprise: the second setting unit, for pre-setting for identifying the system state mark whether two current systems are the state of role to be exchanged;
Described first detecting unit, for the state whether detection system status indicator is role to be exchanged, when the test results is yes, then judge that described standby system is as the system do not started after having upgraded, notify described crosspoint, when testing result is no, then judges that described standby system is not the system do not started after having upgraded, notify described second detecting unit;
Also comprise: the first amendment unit, for described system state mark being revised as the state of non-role to be exchanged;
Second amendment unit, after having upgraded, is revised as the state of role to be exchanged for current standby system by described system state mark.
Further, also comprise: the 3rd setting unit, for arranging the side-play amount of the progress downloaded for tag system AKU;
Described acquiring unit, for the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
Judging unit, for when described second detecting unit detects system upgrade bag to be upgraded, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, when judged result is for being, then notify described acquiring unit, when judged result is no, notice storage unit;
Described storage unit, for replacing with the version information of current system upgrade bag to be upgraded, initialization offset amount by the version information of described system upgrade bag.
Further, described acquiring unit, for the progress corresponding according to current side-play amount, periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described upgrade unit, for the data of the system upgrade bag of the default size according to the current download of described acquiring unit, carries out system upgrade to current standby system.
Further, described first setting unit, for increasing a backup subregion for the first disk partition of described terminal, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described crosspoint, for the bootargs parameter by revising in Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
The invention provides a kind of method for upgrading system and device of terminal, in advance for the operational system of terminal increases a standby system, when there being system upgrade bag to be upgraded, obtain this system upgrade bag to upgrade to standby system, the operational system of terminal can not be affected, and terminal can normally be run, when standby system interrupts in escalation process, terminal, when starting next time, still normally can start from operational system, improves the security of system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method for upgrading system of a kind of terminal that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the method for upgrading system of the another kind of terminal that one embodiment of the invention provides;
Fig. 3 is the schematic diagram of the system upgrade device of a kind of terminal that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the system upgrade device of the another kind of terminal that one embodiment of the invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of method for upgrading system of terminal, the method can comprise the following steps:
S0: in advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other;
S1: whether detect described standby system is the system do not started after having upgraded, if so, then performs step S2, otherwise, perform step S3;
S2: the role exchanging operational system and standby system;
S3: start current operational system;
S4: detect whether there is system upgrade bag to be upgraded, if so, then performs step S5, otherwise, terminate current process;
S5: obtain described system upgrade bag to be upgraded;
S6: according to the system upgrade bag described to be upgraded obtained, system upgrade is carried out to current standby system.
Embodiments provide a kind of method for upgrading system of terminal, in advance for the operational system of terminal increases a standby system, when there being system upgrade bag to be upgraded, obtain this system upgrade bag to upgrade to standby system, the operational system of terminal can not be affected, and terminal can normally be run, when standby system interrupts in escalation process, terminal, when starting next time, still normally can start from operational system, improves the security of system.
For in S1, can by pre-set system state mark realize to standby system be whether upgraded after the detection of system that do not start.The method comprises: pre-set for identifying the system state mark whether two current systems are the state of role to be exchanged.
For example, when standby system has been upgraded, and be not activated, then system state mark is set to the state of role to be converted; When standby system does not complete upgrading, or do not upgrade, or be activated after having upgraded, then system state mark is set to the state of non-role to be converted.
Described S1, comprising: whether detection system status indicator is the state of role to be exchanged, if, then judge that described standby system is as the system do not started after having upgraded, and performs step S2, otherwise, judge that described standby system is not the system do not started after having upgraded, perform step S3;
After described S2, before described S3, after the role exchanging operational system and standby system, also comprise: the state described system state mark being revised as non-role to be exchanged;
After described S6, also comprise: after current standby system has been upgraded, described system state mark is revised as the state of role to be exchanged.
In this implementation, after having exchanged role in S2, terminal will start the new system of having upgraded, and in order to avoid when starting next time, carries out role switching again, then system state mark is revised as the state of non-role to be exchanged.After S6, after standby system has been upgraded, standby system has been in the state that can enable, and in order to allow terminal can use the new system of having upgraded when next time starts, just described system state mark is revised as the state of role to be exchanged.
Can being interrupted in the process of system upgrade, in order to enable to continue upgrading from the place of interrupting last time during upgrading next time, embodiments providing following implementation:
The method also comprises: the side-play amount pre-setting the progress downloaded for tag system AKU;
Described S5, comprising: the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
After described S4, before described S5, also comprise: when system upgrade bag to be upgraded being detected, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, if so, then perform described S5, otherwise, perform A1;
A1: the version information version information of system upgrade bag being replaced with current system upgrade bag to be upgraded, initialization offset amount, performs described S5.
In this implementation, carry out the progress of tag system AKU download by arranging side-play amount, then during download system AKU, can download from breakpoint place according to side-play amount.Due to the AKU of not upgraded when system upgrade bag to be upgraded may be and upgrade last time, therefore need to check that whether current system upgrade bag is identical with the AKU that last time upgrades, if just can continue to download from breakpoint identical, from the beginning difference is then downloaded.Wherein, can judge that whether AKU is identical by the version information of system upgrade bag.
Have no progeny in system upgrade and from the beginning upgrade again, segmentation upgrading is adopted to system, by the data of segmentation download system AKU, often download one section and upgrade side-play amount with regard to corresponding, and according to the data of current download, system is upgraded.Described S5, comprising: the progress corresponding according to current side-play amount, and periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described S6, comprising: according to the data of the system upgrade bag of the default size of current download, carry out system upgrade to current standby system.
In this implementation, the data of segmentation download system AKU, until downloaded whole system AKU.
In a kind of possible implementation, can be separately positioned in different disk partition by two systems, the boot sequence then by arranging disk starts corresponding system, and then realizes the role swap of system.Described S0, comprise: in advance for the first disk partition of described terminal increases a backup subregion, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described S2, comprising: by the bootargs parameter in amendment Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
In addition, also can enter corresponding disk partition by the data brush of the system upgrade bag by download to the upgrading of system to realize.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
As shown in Figure 2, embodiments provide a kind of method for upgrading system of terminal, the method can comprise the following steps:
Step 201: in advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other, pre-setting for identifying the system state mark whether two current systems are the state of role to be exchanged, pre-setting the side-play amount of the progress downloaded for tag system AKU;
For example, described side-play amount can be the size of the data downloaded.The current data downloading altogether 100M, then can be set to 100M side-play amount.Two above-mentioned systems can be separately positioned in different disk partition, when carrying out system upgrade, only need operate the disk partition of correspondence.
Step 202: whether detection system status indicator is the state of role to be exchanged, if so, then performs step 203, otherwise performs step 204.
For example, detection system status indicator can be carried out by bootloader.
Step 203: the role exchanging operational system and standby system, is revised as the state of non-role to be exchanged by described system state mark.
Step 204: start current operational system.
Step 205: detect whether there is system upgrade bag to be upgraded, if so, then performs step 206, otherwise, terminate current process.
For example, system upgrade bag can be positioned on server, can be communicated by a background service with server.
Step 206: according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, if so, then performs step 208, otherwise, perform step 207.
Whether upgrading to distinguish current version, and can come to be realize by the version information of saved system AKU.The version information of the system upgrade bag preserved can be system upgrade bag title, or the version number of system upgrade bag.
Step 207: the version information version information of system upgrade bag being replaced with current system upgrade bag to be upgraded, initialization offset amount.
For example, when side-play amount is the size of the data downloaded, initialization offset amount can be that side-play amount is set to 0.
Step 208: the progress corresponding according to current side-play amount, periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount.
For example, default size is 4M, then each cycle downloads the data of 4M, and upgrades side-play amount.
Step 209: according to the data of the system upgrade bag of the default size of current download, system upgrade is carried out to current standby system.
Often download one piece of data, just carry out system upgrade according to the data downloaded.
Step 210: after current standby system has been upgraded, is revised as the state of role to be exchanged by described system state mark.
In addition, after current standby system has been upgraded, all right initialization offset amount, and the version information of clearing systems AKU.
As shown in Figure 3, Figure 4, a kind of system upgrade device of terminal is embodiments provided.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.Say from hardware view; as shown in Figure 3; for the embodiment of the present invention ... a kind of hardware structure diagram of place equipment; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message.For software simulating, as shown in Figure 4, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.The system upgrade device of a kind of terminal that the present embodiment provides, comprising:
First setting unit 401, for arranging two mutually redundant systems for described terminal, is respectively: operational system, standby system;
First detecting unit 402, for detect described standby system be whether upgraded after the system that do not start, when the test results is yes, then notify crosspoint 403, when testing result is no, then notify start unit 404;
Described crosspoint 403, for exchanging the role of operational system and standby system;
Described start unit 404, for starting current operational system;
Whether the second detecting unit 405, have system upgrade bag to be upgraded for detecting, and when the test results is yes, then notifies acquiring unit 406;
Described acquiring unit 406, for obtaining described system upgrade bag to be upgraded;
Upgrade unit 407, for the system upgrade bag described to be upgraded obtained according to described acquiring unit, carries out system upgrade to current standby system.
In a kind of possible implementation, this device also comprises:
Second setting unit, for pre-setting for identifying the system state mark whether two current systems are the state of role to be exchanged;
Described first detecting unit, for the state whether detection system status indicator is role to be exchanged, when the test results is yes, then judge that described standby system is as the system do not started after having upgraded, notify described crosspoint, when testing result is no, then judges that described standby system is not the system do not started after having upgraded, notify described second detecting unit;
Also comprise: the first amendment unit, for described system state mark being revised as the state of non-role to be exchanged;
Second amendment unit, after having upgraded, is revised as the state of role to be exchanged for current standby system by described system state mark.
In a kind of possible implementation, this device also comprises:
3rd setting unit, for arranging the side-play amount of the progress downloaded for tag system AKU;
Described acquiring unit, for the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
Judging unit, for when described second detecting unit detects system upgrade bag to be upgraded, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, when judged result is for being, then notify described acquiring unit, when judged result is no, notice storage unit;
Described storage unit, for replacing with the version information of current system upgrade bag to be upgraded, initialization offset amount by the version information of described system upgrade bag.
In this implementation, described acquiring unit, for the progress corresponding according to current side-play amount, periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described upgrade unit, for the data of the system upgrade bag of the default size according to the current download of described acquiring unit, carries out system upgrade to current standby system.
In a kind of possible implementation, this device comprises:
Described first setting unit, for increasing a backup subregion for the first disk partition of described terminal, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described crosspoint, for the bootargs parameter by revising in Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
The content such as information interaction, implementation between each unit in said apparatus, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
The method for upgrading system of a kind of terminal that the embodiment of the present invention provides and device, have following beneficial effect:
1, a kind of method for upgrading system and device of terminal is embodiments provided, in advance for the operational system of terminal increases a standby system, when there being system upgrade bag to be upgraded, obtain this system upgrade bag to upgrade to standby system, the operational system of terminal can not be affected, and terminal can normally be run, when standby system interrupts in escalation process, terminal, when starting next time, still normally can start from operational system, improves the security of system.
2, embodiments provide a kind of method for upgrading system and device of terminal, upgrading can be proceeded from the position of upgrading last time, avoid when upgrading is interrupted, from the beginning upgrade, improve the efficiency of system upgrade.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method for upgrading system for terminal, is characterized in that, in advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other, and also comprise:
S1: whether detect described standby system is the system do not started after having upgraded, if so, then performs step S2, otherwise, perform step S3;
S2: the role exchanging operational system and standby system;
S3: start current operational system;
S4: detect whether there is system upgrade bag to be upgraded, if so, then performs step S5, otherwise, terminate current process;
S5: obtain described system upgrade bag to be upgraded;
S6: according to the system upgrade bag described to be upgraded obtained, system upgrade is carried out to current standby system.
2. method according to claim 1, is characterized in that, also comprises: pre-set for identifying the system state mark whether two current systems are the state of role to be exchanged;
Described S1, comprising: whether detection system status indicator is the state of role to be exchanged, if, then judge that described standby system is as the system do not started after having upgraded, and performs step S2, otherwise, judge that described standby system is not the system do not started after having upgraded, perform step S3;
After described S2, before described S3, also comprise: the state described system state mark being revised as non-role to be exchanged;
After described S6, also comprise: after current standby system has been upgraded, described system state mark is revised as the state of role to be exchanged.
3. method according to claim 1, is characterized in that,
Also comprise: the side-play amount pre-setting the progress downloaded for tag system AKU;
Described S5, comprising: the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
After described S4, before described S5, also comprise: when system upgrade bag to be upgraded being detected, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, if so, then perform described S5, otherwise, perform A1;
A1: the version information version information of described system upgrade bag being replaced with current system upgrade bag to be upgraded, initialization offset amount, performs described S5.
4. method according to claim 3, is characterized in that, described S5, comprising: the progress corresponding according to current side-play amount, and periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described S6, comprising: according to the data of the system upgrade bag of the default size of current download, carry out system upgrade to current standby system.
5., according to the arbitrary described method of claim 1-4, it is characterized in that,
In advance for the operational system of described terminal increases a standby system, described operational system and described standby system backup each other, comprise: in advance for the first disk partition of described terminal increases a backup subregion, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described S2, comprising: by the bootargs parameter in amendment Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
6. a system upgrade device for terminal, is characterized in that, comprising:
First setting unit, for increasing a standby system for the operational system of described terminal, described operational system and described standby system backup each other;
First detecting unit, for detect described standby system be whether upgraded after the system that do not start, when the test results is yes, then notify crosspoint, when testing result is no, then notify start unit;
Described crosspoint, for exchanging the role of operational system and standby system;
Described start unit, for starting current operational system;
Whether the second detecting unit, having system upgrade bag to be upgraded for detecting, when the test results is yes, then notifying acquiring unit;
Described acquiring unit, for obtaining described system upgrade bag to be upgraded;
Upgrade unit, for the system upgrade bag described to be upgraded obtained according to described acquiring unit, carries out system upgrade to current standby system.
7. device according to claim 6, is characterized in that,
Also comprise: the second setting unit, for pre-setting for identifying the system state mark whether two current systems are the state of role to be exchanged;
Described first detecting unit, for the state whether detection system status indicator is role to be exchanged, when the test results is yes, then judge that described standby system is as the system do not started after having upgraded, notify described crosspoint, when testing result is no, then judges that described standby system is not the system do not started after having upgraded, notify described second detecting unit;
Also comprise: the first amendment unit, for described system state mark being revised as the state of non-role to be exchanged;
Second amendment unit, after having upgraded, is revised as the state of role to be exchanged for current standby system by described system state mark.
8. device according to claim 6, is characterized in that,
Also comprise: the 3rd setting unit, for arranging the side-play amount of the progress downloaded for tag system AKU;
Described acquiring unit, for the progress corresponding according to current side-play amount, obtains described system upgrade bag to be upgraded;
Judging unit, for when described second detecting unit detects system upgrade bag to be upgraded, according to the version information of the system upgrade bag preserved, judge that whether the system upgrade bag that current system upgrade bag to be upgraded is corresponding with described version information is identical, when judged result is for being, then notify described acquiring unit, when judged result is no, notice storage unit;
Described storage unit, for replacing with the version information of current system upgrade bag to be upgraded, initialization offset amount by the version information of described system upgrade bag.
9. device according to claim 8, is characterized in that,
Described acquiring unit, for the progress corresponding according to current side-play amount, periodic download presets the data of the system upgrade bag of size, and upgrades described side-play amount;
Described upgrade unit, for the data of the system upgrade bag of the default size according to the current download of described acquiring unit, carries out system upgrade to current standby system.
10., according to the arbitrary described device of claim 6-9, it is characterized in that,
Described first setting unit, for increasing a backup subregion for the first disk partition of described terminal, described backup subregion is second disk subregion, the operational system of described terminal is placed through the first disk partition to start, the standby system of described terminal is placed through second disk subregion and starts;
Described crosspoint, for the bootargs parameter by revising in Bootloader, the sequencing that the first disk partition in the table of exchange partition and second disk subregion start.
CN201510097857.4A 2015-03-05 2015-03-05 System upgrading method and device for terminal Pending CN104615471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510097857.4A CN104615471A (en) 2015-03-05 2015-03-05 System upgrading method and device for terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510097857.4A CN104615471A (en) 2015-03-05 2015-03-05 System upgrading method and device for terminal

Publications (1)

Publication Number Publication Date
CN104615471A true CN104615471A (en) 2015-05-13

Family

ID=53149930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510097857.4A Pending CN104615471A (en) 2015-03-05 2015-03-05 System upgrading method and device for terminal

Country Status (1)

Country Link
CN (1) CN104615471A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912365A (en) * 2016-04-14 2016-08-31 惠州Tcl移动通信有限公司 Method and system for updating mobile terminal system
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN106130808A (en) * 2016-09-07 2016-11-16 深圳创维数字技术有限公司 A kind of method and system of WIFI device upgrade
CN107391216A (en) * 2017-09-26 2017-11-24 郑州云海信息技术有限公司 A kind of method for upgrading software and device
CN107589955A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of upgrade method and system of double CMC firmware versions
CN108694051A (en) * 2018-05-18 2018-10-23 深圳市先河系统技术有限公司 Upgrade method, device based on dual system and storage device
CN111651175A (en) * 2020-04-27 2020-09-11 厦门科灿信息技术有限公司 Upgrading method, device, terminal and storage medium of data center monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174689A1 (en) * 2005-11-23 2007-07-26 Inventec Corporation Computer platform embedded operating system backup switching handling method and system
CN102087603A (en) * 2009-12-08 2011-06-08 国家纳米技术与工程研究院 Method for backing up main edition and spare edition on single chip
CN102129375A (en) * 2010-01-12 2011-07-20 中国移动通信集团公司 Method and equipment for system upgrade of mobile terminal
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174689A1 (en) * 2005-11-23 2007-07-26 Inventec Corporation Computer platform embedded operating system backup switching handling method and system
CN102087603A (en) * 2009-12-08 2011-06-08 国家纳米技术与工程研究院 Method for backing up main edition and spare edition on single chip
CN102129375A (en) * 2010-01-12 2011-07-20 中国移动通信集团公司 Method and equipment for system upgrade of mobile terminal
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912365A (en) * 2016-04-14 2016-08-31 惠州Tcl移动通信有限公司 Method and system for updating mobile terminal system
CN105912365B (en) * 2016-04-14 2020-01-14 惠州Tcl移动通信有限公司 Mobile terminal system updating method and system
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN106130808A (en) * 2016-09-07 2016-11-16 深圳创维数字技术有限公司 A kind of method and system of WIFI device upgrade
WO2018045958A1 (en) * 2016-09-07 2018-03-15 深圳创维数字技术有限公司 Method and system for upgrading wireless fidelity (wi-fi) device
CN107589955A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of upgrade method and system of double CMC firmware versions
CN107589955B (en) * 2017-09-19 2021-06-25 郑州云海信息技术有限公司 Method and system for upgrading double-CMC (carboxy methyl cellulose) firmware version
CN107391216A (en) * 2017-09-26 2017-11-24 郑州云海信息技术有限公司 A kind of method for upgrading software and device
CN108694051A (en) * 2018-05-18 2018-10-23 深圳市先河系统技术有限公司 Upgrade method, device based on dual system and storage device
CN111651175A (en) * 2020-04-27 2020-09-11 厦门科灿信息技术有限公司 Upgrading method, device, terminal and storage medium of data center monitoring system

Similar Documents

Publication Publication Date Title
CN104615471A (en) System upgrading method and device for terminal
CN104007996B (en) The authentic firmware upgrading of a kind of dcs realizes method
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
CN109086079B (en) Mounting management method and device for storage equipment
CN106547653B (en) Computer system fault state detection method, device and system
CN108197476B (en) Vulnerability detection method and device for intelligent terminal equipment
CN107516547A (en) The processing method and processing device of internal memory hard error
CN109543417B (en) Vulnerability mining method and device based on Qemu platform
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN110471693A (en) Application issued, operation method and equipment
CN107992322B (en) DSP code self-updating method for radar signal processor
CN104216771A (en) Restarting method and device for software program
CN107967192B (en) System crash processing method and device for intelligent terminal
CN105512562A (en) Vulnerability mining method and device and electronic equipment
CN105183580A (en) Storage method and fault recovery method for bootstrap program, and devices
CN112099826B (en) Parameter upgrading control method, controller, electronic equipment and excavator
CN113127035A (en) Traceable upgrading method based on single chip microcomputer
CN108920338A (en) A kind of method and terminal indicating file system state
CN105975322A (en) Device and method for program update and microcontroller
CN110928570A (en) Firmware upgrading method and device and readable storage medium
CN110990177A (en) Fault repairing method, device, system, storage medium and electronic equipment
CN115756935A (en) Abnormal fault positioning method, device and equipment of embedded software system
CN103106089B (en) A kind of upgrade method of intelligent platform management controller and system
CN113900914A (en) Exception handling method and device, electronic equipment and computer storage medium
CN111966599A (en) Virtualization platform reliability testing method, system, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150513

WD01 Invention patent application deemed withdrawn after publication