[go: up one dir, main page]

CN106020865A - System upgrading method and device - Google Patents

System upgrading method and device Download PDF

Info

Publication number
CN106020865A
CN106020865A CN201610305460.4A CN201610305460A CN106020865A CN 106020865 A CN106020865 A CN 106020865A CN 201610305460 A CN201610305460 A CN 201610305460A CN 106020865 A CN106020865 A CN 106020865A
Authority
CN
China
Prior art keywords
subregion
upgrading
image
new
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610305460.4A
Other languages
Chinese (zh)
Other versions
CN106020865B (en
Inventor
陈卓
吴名宇
吴明豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610305460.4A priority Critical patent/CN106020865B/en
Publication of CN106020865A publication Critical patent/CN106020865A/en
Application granted granted Critical
Publication of CN106020865B publication Critical patent/CN106020865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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
    • G06F11/1458Management of the backup or restore process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a system upgrading method and device. Embedded equipment at least comprises a first system partition and a second system partition. The method comprises the following steps: before the upgrading, carrying out backup on starting parameters of the last normal starting, and setting an upgrading zone bit; judging that a system partition where the current running system is located is the first system partition according to running system information, and carrying out data erasing and new system mirror image writing on the second system partition; if the new system mirror image writing succeeds, modifying the starting parameters and eliminating the upgrading zone bit aiming at the second system partition; and if the upgrading zone bit is set when the embedded equipment is started, carrying out starting by utilizing backed-up starting parameters, wherein the first system partition serves as a current running system partition. According to the system upgrading method and device provided by the invention, the safety and reliability of system upgrading of the embedded equipment can be improved.

Description

A kind of method for upgrading system and device
[technical field]
The present invention relates to Computer Applied Technology field, particularly to a kind of method for upgrading system and device.
[background technology]
Along with the fast development of electronics, communication and computer technology, embedded device is the most extensively applied In each field, every profession and trade to the requirement of systemic-function, performance and the scale of embedded device all day by day Improving, therefore the system upgrade for embedded device is the most frequent.
At present for the system upgrade of embedded device, mainly use " single system " upgrading scheme, And only store and operation set of system in whole embedded device, when needs are upgraded, first pass through network Or the modes such as serial ports download to Installed System Memory new system image, then start disposably to wipe and set Standby whole system subregion (including kernel subregion and file partition), the most again by new system mirror As writing system subregion, thus complete the system upgrade of embedded device.
But this " single system " upgrading scheme used in prior art is it is impossible to ensure that in escalation process Security reliability, when occurring the abnormal conditions such as power-off, suspension in escalation process, can set embedded For causing expendable loss, equipment is made to become " brick ", it is impossible to the most normally to start.
[summary of the invention]
In view of this, the invention provides a kind of method for upgrading system and device, in order to improve embedded The security reliability of device systems upgrading.
Concrete technical scheme is as follows:
The invention provides a kind of method for upgrading system, embedded device at least includes the first system subregion and the Two system subregion, the method includes:
Before upgrading, the start-up parameter of startup normal to the last time backs up, and arranges upgrading flag bit;
According to running system information, it is judged that the system partitioning at the system place being currently running is the first system subregion, Second system subregion is carried out data erasing and the write of new system image;
If new system image writes successfully, then revise start-up parameter for second system subregion and remove upgrading Flag bit;
When described embedded device starts, if described upgrading flag bit is set, then utilize the startup of backup Parameter starts, and the first system subregion is as the system partitioning being currently running.
According to the present invention one preferred implementation, the method also includes:
When described embedded device starts, if described upgrading flag bit is eliminated, then utilize current opening Dynamic parameter starts the system image in described second system subregion, and second system subregion as be currently running is System subregion.
According to the present invention one preferred implementation, described embedded device also includes safeguarding that described operation system is believed The operation system information subregion of breath.
According to the present invention one preferred implementation, the method also includes:
If new system image writes successfully, then the user configuration information of described the first system subregion is added extremely Described second system subregion.
According to the present invention one preferred implementation, the method also includes:
Before upgrading, obtain described new system image from network or serial ports, and write internal memory.
According to the present invention one preferred implementation, described, second system subregion is carried out data erasing with new Before the write of system image, also include:
Verifying the described new system image obtained, if verifying successfully, then it is described right to continue executing with Second system subregion carries out data erasing and the write of new system image;If verifying unsuccessfully, then terminate to work as Front escalation process.
According to the present invention one preferred implementation, described verification includes:
Described new system image is carried out integrity checking;And/or,
Check whether described new system image is applicable to described embedded device.
Present invention also offers a kind of system upgrade device, embedded device at least include the first system subregion and Second system subregion, this device includes:
Parameter maintenance unit, for before upgrading, the start-up parameter of startup normal to the last time backs up And upgrading flag bit is set;After new system image writes successfully, start ginseng for the amendment of second system subregion Count and remove upgrading flag bit;
Mirror image writing unit, for according to running system information, it is judged that the system at the system place being currently running Subregion is the first system subregion, and second system subregion carries out data erasing and the write of new system image;
System start-up unit, for when described embedded device starts, if described upgrading flag bit is set, The start-up parameter then utilizing backup starts, and the first system subregion is as the system partitioning being currently running.
According to the present invention one preferred implementation, described system start-up unit, it is additionally operable to embedded set described During standby startup, if described upgrading flag bit is eliminated, then current start-up parameter is utilized to start described second System image in system partitioning, second system subregion is as the system partitioning being currently running.
According to the present invention one preferred implementation, described parameter maintenance unit, it is additionally operable to running system information Subregion is safeguarded described operation system information.
According to the present invention one preferred implementation, this device also includes:
Configuring maintenance unit, if writing successfully, then by described the first system subregion for new system image User configuration information adds to described second system subregion.
According to the present invention one preferred implementation, this device also includes:
Mirror image acquiring unit, for before upgrading, obtains described new system image from network or serial ports, And write internal memory.
According to the present invention one preferred implementation, this device also includes:
Mirror image verification unit, for the described new system image obtained is verified, if verifying successfully, Then trigger the described data that second system subregion is carried out of described mirror image writing unit execution to wipe and new system mirror The write of picture;If verifying unsuccessfully, then terminate current escalation process.
According to the present invention one preferred implementation, the verification that described mirror image verification unit performs includes:
Described new system image is carried out integrity checking;And/or,
Check whether described new system image is applicable to described embedded device.
As can be seen from the above technical solutions, the present invention uses the mode of at least two system partitioning, will rise The new system image write that level uses divides except another system of the system partitioning at the system place being currently running District, and start-up parameter is backed up and upgrading flag bit is set, in order to write unsuccessfully in system image Time, it is also possible to utilize the start-up parameter of backup normally to start according to arranging of upgrading flag bit, improve embedding Enter the security reliability of formula device systems upgrading.
[accompanying drawing explanation]
A kind of method flow diagram that Fig. 1 provides for the embodiment of the present invention;
The structure drawing of device that Fig. 2 provides for the embodiment of the present invention.
[detailed description of the invention]
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specifically Embodiment describes the present invention.
The term used in embodiments of the present invention is only merely for describing the purpose of specific embodiment, rather than purport Limiting the present invention." one of singulative used in the embodiment of the present invention and appended claims Kind ", " described " and " being somebody's turn to do " be also intended to include majority form, unless context clearly shows that other implications.
Should be appreciated that term "and/or" used herein is only that a kind of association describing affiliated partner is closed System, can there are three kinds of relations, such as, A and/or B, can represent in expression: individualism A, simultaneously There is A and B, individualism B these three situation.It addition, character "/" herein, before and after typicallying represent Affiliated partner is the relation of a kind of "or".
Depend on linguistic context, word as used in this " if " can be construed to " ... time " Or " when ... " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context, short Language " if it is determined that " or " if detection (condition of statement or event) " can be construed to " when determining Time " or " in response to determining " or " when detecting (condition of statement or event) " or " in response to detection (condition of statement or event) ".
The system upgrade mode that the embodiment of the present invention provides, uses " dual system " upgrading scheme, but needs Illustrating, " dual system " herein refers to system partitioning and the liter at the system place being currently running The system partitioning used during level is two independent system partitionings, but and unrestricted can only use two systems Subregion, if there is greater number of system partitioning, the present invention is equally applicable.Subsequent implementation in the present invention Example is only described as a example by two system partitionings, in order to aspect describes, the two system partitioning is divided The most named the first system subregion and second system subregion, it addition, embedded device there is also other subregions For safeguarding other information, will relate in subsequent embodiment.
A kind of method flow diagram that Fig. 1 provides for the embodiment of the present invention, as it is shown in figure 1, the method is permissible Comprise the following steps:
In 101, the new system image write internal memory that will obtain.
When embedded device is upgraded by needs, can be by the way of network or the mode of serial ports Internal memory by new system image write embedded device.Such as, attendant can download new from network System image to the internal memory of embedded device.Or attendant can by the way of telecommunication, By new system image by network push to embedded device, embedded device write internal memory.Again or Person, attendant can obtain new from other such as USB flash disk, portable hard drive etc. storage devices by serial ports System image, and write the internal memory of embedded device;Etc..
In 102, before upgrading, the start-up parameter of startup normal to the last time backs up, and arranges liter Level flag bit.
The parameter used is needed, including the load address of such as system kernel when start-up parameter is system start-up Information, need the filesystem information of carry, etc..Lose in order to avoid upgrading in embodiments of the present invention Lose rear system cannot normally start, can before upgrading, the start-up parameter of startup normal to the last time is entered Row backup.
The embodiment of the present invention is provided with a new Information sign position, flag bit of i.e. upgrading, and is used for identifying liter Level whether success, is arranged by this upgrading flag bit, it is possible to make during system reboot, know on Subsystem upgrading is the most successful, determines whether to start from new system image.
Before upgrading, first to upgrading flag be configured, this be provided for instruction upgrading and not Success.Above-mentioned start-up parameter and upgrading flag bit can serve as starting volume in code (Bootloader) The environmental variable of outer interpolation.
In 103, the new system image obtained being verified, if verifying successfully, then continuing to hold Row 104;Otherwise terminate current escalation process.
Two kinds of information would generally be comprised: one is this system image file institute in the file header of system image The hardware information used, another is the MD5 value of system image file.
The verification carried out in this step can include checking whether the system image that this is new is applicable to this embedding Formula equipment, i.e. judges whether this embedded device meets the hardware information comprised in the file header of system image, If it is, illustrate that this new system image is applicable to this embedded device.
The verification carried out in this step can also include new system image being carried out integrity checking, such as File in new system image is carried out MD5 process, MD5 value and the new system image that will obtain File header in the MD5 value that comprises compare, if unanimously, then pass through integrity checking;Otherwise Do not pass through integrity checking.
This step is to improve the step that success rate for upgrading preferably is carried out, and is not that present invention institute is necessary Step.It addition, the execution of this step can also be carried out, only after new system image write internal memory Ensure to perform before step 104.If new system image verifies unsuccessfully, current except terminating Outside upgrading flow process, it is also possible to report an error, the new system image of prompting maintenance personnel verifies unsuccessfully.
In 104, according to running system information, it is judged that the system partitioning at the system place being currently running is The first system subregion, carries out data erasing and the write of new system image to second system subregion.
In embodiments of the present invention, a special subregion can be passed through, i.e. run system information subregion (ISSU, In Service System Upgrade) carrys out maintenance operation system information, believes from this operation system Breath may determine that the system place system partitioning being currently running.Certainly, except using the side of special subregion Outside formula is safeguarded, it is also possible to adopt in other ways, such as, identified currently by a flag bit The subregion at the system place run, etc..
This step actually the system after upgrading is installed on except when its outside the system of front operation His system partitioning, owing to the present embodiment is as a example by two system partitionings, is therefore carried out second system subregion Format and the write of new system image.
In the ablation process of new system image, possible All going well finally writes successfully, it is also possible to send out Raw such as power-off etc. are abnormal, therefore can be in 105, it is judged that whether new system image writes successfully, If it is, perform 106;Otherwise, after abnormal removing, embedded device is either automatically or manually carried out Restart, go to perform 107.
In 106, revise start-up parameter for second system subregion, and remove upgrading flag bit.Then Either automatically or manually carry out restarting of embedded device, perform 107.
If system image writes successfully, then next time, embedded device can start from second system subregion, Therefore start-up parameter is modified for second system subregion, to point to second system subregion.Remove upgrading Flag bit upgrades successfully with instruction, can start from second system subregion next time also for instruction, if rising Level flag bit is set, then can only start from the original system partitioning run.
In embodiments of the present invention, upgrading flag bit is set and upgrading can be removed in upgrading mark position 1 Flag can be by upgrading mark position 0.The setting of other upgrading flag bits can certainly be used with clear Except mode, differ a citing at this.
Owing to the write of new system image completes, in this step, it is also possible to further by the first system The user configuration information of subregion adds to second system subregion, in order to can after second system subregion starts Fast quick-recovery user configuration.This mode is actually and is copied by the user configuration information of the first system subregion Shellfish is to second system subregion, it is achieved mode is the easiest.
In 107, in embedded device start-up course, it is judged that whether upgrading flag bit is set, if It is to perform 108;Otherwise, 109 are performed.
If upgrading flag bit is in the state being set, then explanation upgrading is unsuccessful, therefore in 108, The start-up parameter utilizing backup starts, and the first system subregion is the system partitioning being currently running, and terminates This escalation process.Unsuccessful it is to say, upgrade it is also ensured that again open from the original system run Dynamic, it is ensured that equipment will not become " brick ".
If upgrading flag is eliminated, then illustrate that the system image in second system subregion is written to Merit, therefore in 109, according to current start-up parameter, starting the new of second system subregion write is System mirror image, second system subregion is the system partitioning being currently running, and this upgrading is considered as successfully.I.e. smooth Start the system after upgrading.
In follow-up embedded device start-up course, owing to start-up parameter is to revise for second system subregion After start-up parameter, the startup position of start-up parameter all points to second system subregion, say, that acquiescence Start from second system subregion.
But from which system partitioning can also start, if in second system subregion by selecting manually System image is written into successfully, is equivalent to be mounted with two systems in embedded device, i.e. before upgrading System and upgrading after system, the two system can be activated and run.Therefore, embedded In the start-up course of equipment, it is also possible to selected the system partitioning started by user, then select from user System partitioning starts system.
It is above the detailed description carried out for method provided by the present invention, below in conjunction with embodiment to this Bright provided device is described in detail.
The structure drawing of device that Fig. 2 provides for the embodiment of the present invention, this device is arranged at embedded device, should Embedded device at least includes the first system subregion and second system subregion, as in figure 2 it is shown, this device can To include: parameter maintenance unit 01, mirror image writing unit 02 and system start-up unit 03, it is also possible to enter One step includes configuring maintenance unit 04, mirror image acquiring unit 05 and mirror image verification unit 06.The most each The major function of component units is as follows:
When embedded device is upgraded by needs, mirror image acquiring unit 05 before upgrading, from network or Person's serial ports obtains new system image, and writes internal memory.
Parameter maintenance unit 01 is responsible for before upgrading, and the start-up parameter of startup normal to the last time backs up And upgrading flag bit is set;After new system image writes successfully, startup ginseng is set for second system subregion Count and remove upgrading flag bit.
The parameter used is needed, including the load address of such as system kernel when start-up parameter is system start-up Information, need the filesystem information of carry, etc..Lose in order to avoid upgrading in embodiments of the present invention Lose rear system cannot normally start, can before upgrading, the start-up parameter of startup normal to the last time is entered Row backup.
The embodiment of the present invention is provided with a new Information sign position, flag bit of i.e. upgrading, and is used for identifying liter Level whether success, is arranged by this upgrading flag bit, it is possible to make during system reboot, know on Subsystem upgrading is the most successful, determines whether to start from new system image.
Before upgrading, first to upgrading flag be configured, this be provided for instruction upgrading and not Success.
If system image writes successfully, then next time, embedded device can start from second system subregion, Therefore start-up parameter is arranged for second system subregion.Remove upgrading flag bit to upgrade successfully, also with instruction It is to indicate can start from second system subregion next time, if upgrading flag bit is set, then can only be from The system partitioning originally run starts.
Mirror image verification unit 06, for the new system image obtained is verified, if verifying successfully, Then trigger mirror image writing unit 02 and perform second system subregion is carried out writing of data erasing and new system image Enter;If verifying unsuccessfully, then terminate current escalation process.
Wherein, the verification that mirror image verification unit 06 performs includes:
New system image is carried out integrity checking;And/or, check new system image whether to be applicable to embedding Enter formula equipment.
Mirror image writing unit 02 is responsible for according to running system information, it is judged that the system at the system place being currently running Subregion is the first system subregion, and second system subregion carries out data erasing and the write of new system image.
Parameter maintenance unit 01 can be believed by maintenance operation system in an i.e. ISSU of special subregion Breath.Certainly, in addition to using the mode of special subregion to safeguard, it is also possible to adopt in other ways, The subregion at the system place of current operation is such as identified by a flag bit, etc..
System start-up unit 03 is responsible for when embedded device starts, if upgrading flag bit is set, then utilizes The start-up parameter of backup starts, and the first system subregion is as the system partitioning being currently running.If upgrading mark Will position is eliminated, then the system image utilizing current start-up parameter to start in second system subregion is (the newest System image), second system subregion is as the system partitioning being currently running.
In follow-up embedded device start-up course, due to start-up parameter be for second system subregion revise after Start-up parameter, the startup position of start-up parameter all points to second system subregion, say, that give tacit consent to from the Two system subregion starts.
But from which system partitioning can also start by selecting manually, if second system subregion is System mirror image be written into successfully, be equivalent in embedded device, be mounted with two systems, i.e. upgrading before be System after system and upgrading, the two system can be activated and run.Therefore, new system is being started Before mirror image, system start-up unit 03 can also point out user to select the system partitioning started;If user selects The first system subregion, then the system image from the first system subregion starts, and after starting successfully, triggers ginseng Number maintenance unit updates start-up parameter, and the first system subregion is as the system partitioning being currently running;If user selects Select second system subregion, then continue executing with the operation starting new system image.
Further, in order to recover user's configuration, configuring maintenance unit 04 is responsible for just preserving before upgrading User configuration information in the system run;If new system image writes successfully, then the user of preservation is joined Confidence breath adds to second system subregion.
The executive agent of method provided by the present invention, said apparatus the most provided by the present invention may be located at The application of local end system rank, or can also be plug-in unit or the software development of the application of this system circle The functional units such as tool kit (Software Development Kit, SDK), this is not entered by the embodiment of the present invention Row is particularly limited to.
At one concrete application scenarios of this measure:
Intelligent router is deployed in the public places such as such as market, hospital, station, airport, by necessarily The server communication of agreement and each companies deployment in rear end, complete the management to these intelligent routers.Wherein Management includes: upgrade, restart etc. operates.Because the renewal of system or the renewal of application software, generally need Intelligent router is carried out system upgrade operation, but the laying of these intelligent routers is quite varied and several Measuring the biggest, it is impossible to manually complete device upgrade one by one to scene, long-range management just becomes a kind of preferably side Formula.But in reality, if during remotely upgrading intelligent router, intelligent router occurs When the abnormal conditions such as power-off occur, intelligent router may be made to become " brick ", or user configuration information is lost Losing, intelligent router then cannot normally work, and this will be to safeguarding the increase bringing difficulty and cost.If Use the aforesaid way provided in the embodiment of the present invention, even if then can ensure that intelligent router is at escalation process In abnormal conditions occur, do not interfere with it yet and normally work.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, Can realize by another way.Such as, device embodiment described above is only schematically, Such as, the division of described unit, it is only a kind of logic function and divides, actual can have additionally when realizing Dividing mode.
The described unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one In individual unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds The form of SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) Or processor (processor) performs the part steps of method described in each embodiment of the present invention.And it is aforementioned Storage medium include: USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can To store the medium of program code.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in Within the scope of protection of the invention.

Claims (14)

1. a method for upgrading system, it is characterised in that embedded device at least include the first system subregion and Second system subregion, the method includes:
Before upgrading, the start-up parameter of startup normal to the last time backs up, and arranges upgrading flag bit;
According to running system information, it is judged that the system partitioning at the system place being currently running is the first system subregion, Second system subregion is carried out data erasing and the write of new system image;
If new system image writes successfully, then revise start-up parameter for second system subregion and remove upgrading Flag bit;
When described embedded device starts, if described upgrading flag bit is set, then utilize the startup of backup Parameter starts, and the first system subregion is as the system partitioning being currently running.
Method the most according to claim 1, it is characterised in that the method also includes:
When described embedded device starts, if described upgrading flag bit is eliminated, then utilize current opening Dynamic parameter starts the system image in described second system subregion, and second system subregion as be currently running is System subregion.
Method the most according to claim 1 and 2, it is characterised in that described embedded device also includes Safeguard the operation system information subregion of described operation system information.
Method the most according to claim 1 and 2, it is characterised in that the method also includes:
If new system image writes successfully, then the user configuration information of described the first system subregion is added extremely Described second system subregion.
Method the most according to claim 1, it is characterised in that the method also includes:
Before upgrading, obtain described new system image from network or serial ports, and write internal memory.
Method the most according to claim 1 or 5, it is characterised in that described to second system subregion Before carrying out the write of data erasing and new system image, also include:
Verifying the described new system image obtained, if verifying successfully, then it is described right to continue executing with Second system subregion carries out data erasing and the write of new system image;If verifying unsuccessfully, then terminate to work as Front escalation process.
Method the most according to claim 6, it is characterised in that described verification includes:
Described new system image is carried out integrity checking;And/or,
Check whether described new system image is applicable to described embedded device.
8. a system upgrade device, it is characterised in that embedded device at least include the first system subregion and Second system subregion, this device includes:
Parameter maintenance unit, for before upgrading, the start-up parameter of startup normal to the last time backs up And upgrading flag bit is set;After new system image writes successfully, start ginseng for the amendment of second system subregion Count and remove upgrading flag bit;
Mirror image writing unit, for according to running system information, it is judged that the system at the system place being currently running Subregion is the first system subregion, and second system subregion carries out data erasing and the write of new system image;
System start-up unit, for when described embedded device starts, if described upgrading flag bit is set, The start-up parameter then utilizing backup starts, and the first system subregion is as the system partitioning being currently running.
Device the most according to claim 8, it is characterised in that described system start-up unit, is additionally operable to When described embedded device starts, if described upgrading flag bit is eliminated, then current startup is utilized to join Number starts the system image in described second system subregion, and second system subregion divides as the system being currently running District.
Device the most according to claim 8 or claim 9, it is characterised in that described parameter maintenance unit, It is additionally operable to safeguard described operation system information in running system information subregion.
11. devices according to claim 8 or claim 9, it is characterised in that this device also includes:
Configuring maintenance unit, if writing successfully, then by described the first system subregion for new system image User configuration information adds to described second system subregion.
12. devices according to claim 8, it is characterised in that this device also includes:
Mirror image acquiring unit, for before upgrading, obtains described new system image from network or serial ports, And write internal memory.
Device described in 13. according to Claim 8 or 12, it is characterised in that this device also includes:
Mirror image verification unit, for the described new system image obtained is verified, if verifying successfully, Then trigger the described data that second system subregion is carried out of described mirror image writing unit execution to wipe and new system mirror The write of picture;If verifying unsuccessfully, then terminate current escalation process.
14. devices according to claim 13, it is characterised in that described mirror image verification unit performs Verification includes:
Described new system image is carried out integrity checking;And/or,
Check whether described new system image is applicable to described embedded device.
CN201610305460.4A 2016-05-10 2016-05-10 System upgrading method and device Active CN106020865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610305460.4A CN106020865B (en) 2016-05-10 2016-05-10 System upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610305460.4A CN106020865B (en) 2016-05-10 2016-05-10 System upgrading method and device

Publications (2)

Publication Number Publication Date
CN106020865A true CN106020865A (en) 2016-10-12
CN106020865B CN106020865B (en) 2020-07-10

Family

ID=57099125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610305460.4A Active CN106020865B (en) 2016-05-10 2016-05-10 System upgrading method and device

Country Status (1)

Country Link
CN (1) CN106020865B (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168734A (en) * 2017-04-27 2017-09-15 纳瓦电子(上海)有限公司 A kind of embedded system upgrading backup method
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN109343885A (en) * 2018-11-01 2019-02-15 百度在线网络技术(北京)有限公司 Method for upgrading system and multi-system equipment
CN109445828A (en) * 2018-12-12 2019-03-08 上海伟世通汽车电子系统有限公司 The upgrade method of vehicle-mounted terminal system
WO2019062576A1 (en) * 2017-09-26 2019-04-04 晶晨半导体(上海)股份有限公司 Protection method against abnormal power disconnection during system upgrade and terminal device
CN109582372A (en) * 2018-11-12 2019-04-05 青岛海信电器股份有限公司 A kind of starting method and device of system
CN109614155A (en) * 2018-12-13 2019-04-12 上海二三四五网络科技有限公司 A kind of control method and control device for ROM upgrading power-off protection
CN109960523A (en) * 2017-12-22 2019-07-02 浙江宇视科技有限公司 A kind of firmware upgrade method and device of embedded device
CN109992312A (en) * 2019-03-26 2019-07-09 联想(北京)有限公司 The starting method, apparatus and system of electronic equipment
CN110333969A (en) * 2019-06-17 2019-10-15 Oppo广东移动通信有限公司 Using starting abnormality eliminating method and device, medium and equipment after system upgrade
CN110580167A (en) * 2018-06-11 2019-12-17 海能达通信股份有限公司 system upgrading method, intelligent device and server
WO2019237222A1 (en) * 2018-06-11 2019-12-19 海能达通信股份有限公司 System upgrading method, smart device, and server
CN110737449A (en) * 2019-08-23 2020-01-31 上海商米科技集团股份有限公司 Method, apparatus, and machine-readable storage medium for processing device firmware
CN110780890A (en) * 2019-10-24 2020-02-11 百度在线网络技术(北京)有限公司 System upgrading method and device, electronic equipment and medium
CN111209141A (en) * 2019-12-30 2020-05-29 晶晨半导体(深圳)有限公司 Dual-system switching method and device applied to system iteration
CN112328287A (en) * 2020-11-24 2021-02-05 杭州海康威视数字技术股份有限公司 Embedded equipment system updating method, device, equipment and storage medium
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN113064608A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 OTA (over the air) upgrading method, device, equipment and medium
CN113641390A (en) * 2021-10-18 2021-11-12 苏州万店掌软件技术有限公司 System upgrading method, device, equipment and storage medium
CN113687851A (en) * 2021-08-31 2021-11-23 高新兴科技集团股份有限公司 Embedded device upgrade method and device
CN113867823A (en) * 2021-10-12 2021-12-31 湖北亿咖通科技有限公司 Method, device and electronic device for setting configuration parameters of in-vehicle terminal
CN114281391A (en) * 2022-01-27 2022-04-05 广东美房智高机器人有限公司 An electronic device and a system software upgrade method, device and medium thereof
CN114296765A (en) * 2021-12-30 2022-04-08 深圳市慧海云联科技有限公司 Embedded equipment, firmware upgrading method and device
CN114327534A (en) * 2021-11-26 2022-04-12 惠州华阳通用智慧车载系统开发有限公司 Method for upgrading real-time operating system
CN114741119A (en) * 2022-03-22 2022-07-12 深圳数马电子技术有限公司 System starting method and device, computer equipment and storage medium
CN115328518A (en) * 2022-08-22 2022-11-11 中京天裕科技(杭州)有限公司 Industrial control system software safety upgrading method supporting state rollback
CN115801570A (en) * 2022-10-13 2023-03-14 苏州涌现智能科技有限公司 A method of remote upgrading

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102722394A (en) * 2012-06-08 2012-10-10 深圳路迪网络有限公司 Start upgrading method of embedded equipment
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN104699514A (en) * 2015-04-01 2015-06-10 江苏惠通集团有限责任公司 Remote-control end system updating method and device
CN105554577A (en) * 2015-12-21 2016-05-04 Tcl集团股份有限公司 Smart television over-the-air technology (OTA) upgrading method and device, smart television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102722394A (en) * 2012-06-08 2012-10-10 深圳路迪网络有限公司 Start upgrading method of embedded equipment
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN104699514A (en) * 2015-04-01 2015-06-10 江苏惠通集团有限责任公司 Remote-control end system updating method and device
CN105554577A (en) * 2015-12-21 2016-05-04 Tcl集团股份有限公司 Smart television over-the-air technology (OTA) upgrading method and device, smart television

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168734A (en) * 2017-04-27 2017-09-15 纳瓦电子(上海)有限公司 A kind of embedded system upgrading backup method
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
WO2019062576A1 (en) * 2017-09-26 2019-04-04 晶晨半导体(上海)股份有限公司 Protection method against abnormal power disconnection during system upgrade and terminal device
CN109960523A (en) * 2017-12-22 2019-07-02 浙江宇视科技有限公司 A kind of firmware upgrade method and device of embedded device
CN109960523B (en) * 2017-12-22 2023-07-21 浙江宇视科技有限公司 Firmware upgrading method and device for embedded equipment
WO2019237222A1 (en) * 2018-06-11 2019-12-19 海能达通信股份有限公司 System upgrading method, smart device, and server
CN110580167A (en) * 2018-06-11 2019-12-17 海能达通信股份有限公司 system upgrading method, intelligent device and server
CN109343885A (en) * 2018-11-01 2019-02-15 百度在线网络技术(北京)有限公司 Method for upgrading system and multi-system equipment
CN109582372A (en) * 2018-11-12 2019-04-05 青岛海信电器股份有限公司 A kind of starting method and device of system
CN109445828A (en) * 2018-12-12 2019-03-08 上海伟世通汽车电子系统有限公司 The upgrade method of vehicle-mounted terminal system
CN109614155A (en) * 2018-12-13 2019-04-12 上海二三四五网络科技有限公司 A kind of control method and control device for ROM upgrading power-off protection
CN109992312A (en) * 2019-03-26 2019-07-09 联想(北京)有限公司 The starting method, apparatus and system of electronic equipment
CN110333969A (en) * 2019-06-17 2019-10-15 Oppo广东移动通信有限公司 Using starting abnormality eliminating method and device, medium and equipment after system upgrade
CN110737449A (en) * 2019-08-23 2020-01-31 上海商米科技集团股份有限公司 Method, apparatus, and machine-readable storage medium for processing device firmware
CN110780890A (en) * 2019-10-24 2020-02-11 百度在线网络技术(北京)有限公司 System upgrading method and device, electronic equipment and medium
CN110780890B (en) * 2019-10-24 2023-06-06 百度在线网络技术(北京)有限公司 System upgrading method, device, electronic equipment and medium
CN111209141A (en) * 2019-12-30 2020-05-29 晶晨半导体(深圳)有限公司 Dual-system switching method and device applied to system iteration
CN111209141B (en) * 2019-12-30 2023-10-20 晶晨半导体(深圳)有限公司 Dual-system switching method and device applied to system iteration
CN113064608A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 OTA (over the air) upgrading method, device, equipment and medium
CN112328287B (en) * 2020-11-24 2024-05-03 杭州海康威视数字技术股份有限公司 Method, device, equipment and storage medium for updating embedded equipment system
CN112328287A (en) * 2020-11-24 2021-02-05 杭州海康威视数字技术股份有限公司 Embedded equipment system updating method, device, equipment and storage medium
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN113687851A (en) * 2021-08-31 2021-11-23 高新兴科技集团股份有限公司 Embedded device upgrade method and device
CN113867823A (en) * 2021-10-12 2021-12-31 湖北亿咖通科技有限公司 Method, device and electronic device for setting configuration parameters of in-vehicle terminal
CN113641390A (en) * 2021-10-18 2021-11-12 苏州万店掌软件技术有限公司 System upgrading method, device, equipment and storage medium
CN114327534A (en) * 2021-11-26 2022-04-12 惠州华阳通用智慧车载系统开发有限公司 Method for upgrading real-time operating system
CN114296765A (en) * 2021-12-30 2022-04-08 深圳市慧海云联科技有限公司 Embedded equipment, firmware upgrading method and device
CN114281391A (en) * 2022-01-27 2022-04-05 广东美房智高机器人有限公司 An electronic device and a system software upgrade method, device and medium thereof
CN114741119A (en) * 2022-03-22 2022-07-12 深圳数马电子技术有限公司 System starting method and device, computer equipment and storage medium
CN115328518A (en) * 2022-08-22 2022-11-11 中京天裕科技(杭州)有限公司 Industrial control system software safety upgrading method supporting state rollback
CN115801570A (en) * 2022-10-13 2023-03-14 苏州涌现智能科技有限公司 A method of remote upgrading

Also Published As

Publication number Publication date
CN106020865B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN106020865A (en) System upgrading method and device
US8732527B2 (en) Secure recovery apparatus and method
CN101593083B (en) device, computer and method for protecting and restoring computer configuration information
CN107783776B (en) Method and device for processing firmware upgrade package, and electronic device
CN109032632B (en) FOTA upgrading method, wireless communication terminal and storage medium
CN103718165A (en) BIOS flash attack protection and notification
CN107678762B (en) System version upgrading method and device
CN102521289B (en) File synchronization method, device and system
CN107239411B (en) Memory management method and system for vehicle-mounted controller
WO2015103917A1 (en) Management method and apparatus of wireless routing device
CN113254048B (en) Method, device and equipment for updating boot program and computer readable medium
CN106201640A (en) A kind of method and device of BootLoader program of upgrading
WO2014120205A1 (en) Replacement of a corrupt driver variable record
CN104220981A (en) Firmware package to modify active firmware
CN116501573A (en) Firmware detection method, firmware detection device, electronic device, storage medium and program product
US7885647B2 (en) Secure booting method and mobile terminal for the same
CN105677409B (en) A kind of method for upgrading system and device
CN111090546B (en) Method, device and equipment for restarting operating system and readable storage medium
US8949588B1 (en) Mobile telephone as bootstrap device
CN113032183A (en) System management method, device, computer equipment and storage medium
CN109375953B (en) Operating system starting method and device
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN113868023A (en) Snapshot method, device, electronic device and readable storage medium of storage system
CN112905218B (en) Firmware upgrading method, device and equipment
CN104850472B (en) System software backup and reduction method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant