CN107423080A - A kind of autosynchronous method and device of main preparation system firmware - Google Patents
A kind of autosynchronous method and device of main preparation system firmware Download PDFInfo
- Publication number
- CN107423080A CN107423080A CN201710221090.0A CN201710221090A CN107423080A CN 107423080 A CN107423080 A CN 107423080A CN 201710221090 A CN201710221090 A CN 201710221090A CN 107423080 A CN107423080 A CN 107423080A
- Authority
- CN
- China
- Prior art keywords
- firmware
- renewal
- subregion
- disk
- another
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a kind of autosynchronous method and device of main preparation system firmware, is related to the technology that Embedded Network Device firmware updates, there is provided one only needs an equipment just can complete the method that firmware recovers, updated automatically.Technical key point:Including system starting step:After device power, first start the system of last time firmware renewal, start another system if failure is started;Firmware synchronizing step:A certain system compares the firmware in current system disk partition after starting successfully and whether the firmware in another system disk subregion is identical, and as differed, the firmware in another system disk subregion is replaced with to the firmware in current system disk partition;Firmware updates step:When having detected firmware renewal, the firmware in another system disk subregion is replaced with to the firmware of renewal.
Description
Technical field
The present invention relates to Embedded Network Device technical field, especially synchronously, updates Embedded Network Device firmware
Method.
Background technology
The firmware renewal of the network equipment refers to that the network equipment obtains firmware from network(Automatically update)Or receive management
The firmware that personnel send(Renewal manually), firmware is put into memory, then the process of disk is write from network device memory.Net
Network equipment includes but is not limited to the equipment such as router, interchanger, AP.The firmware of the network equipment is during renewal, because magnetic
The reason such as disk write error or accident power-off, it can all cause firmware renewal failure, so as to cause the network equipment not start.
The network equipment for possessing firmware restoration function in the market is less.In only a few money products, some uses
Two-node cluster hot backup, cost are higher;Some needs manual operation to complete firmware restoration.These products can not all be taken into account into simultaneously
Sheet and using effect.
The content of the invention
The technical problems to be solved by the invention are:For above-mentioned problem, there is provided one only needs an equipment
Just the method that firmware recovers, updated automatically can be completed.
A kind of autosynchronous method of dual system firmware provided by the invention, including:
System starting step:After device power, first start the system of last time firmware renewal, start if failure is started another
An outer system;
Firmware synchronizing step:A certain system compares firmware and another system disk in current system disk partition after starting successfully
Whether the firmware in subregion is identical, and as differed, the firmware in another system disk subregion is replaced with into current system magnetic
Firmware in disk subregion;
Firmware updates step:When having detected firmware renewal, the firmware in another system disk subregion is replaced with more
New firmware.
Further, firmware synchronizing step is carried out in the current system normal course of operation.
Further, in firmware synchronizing step, whether the firmware content directly relatively in two systems disk partition is identical.
Further, two systems are identical.
Present invention also offers a kind of autosynchronous device of dual system firmware, including:
System starting module, for after device power, first starting the system of last time firmware renewal, if failure is started
Start another system;
Firmware synchronization module, for after a certain system starts successfully, compare the firmware in current system disk partition with it is another
Whether the firmware in system disk subregion is identical, as differed, the firmware in another system disk subregion is replaced with and worked as
Firmware in preceding system disk subregion;
Firmware update module, for when having detected firmware renewal, the firmware in another system disk subregion to be replaced
For the firmware of renewal.
Further, firmware synchronization module is used to compare current system disk point in the current system normal course of operation
Whether the firmware in area and the firmware in another system disk subregion are identical, another system disk as described in general if differing
Firmware in subregion replaces with the firmware in current system disk partition.
Further, whether the firmware content that firmware synchronization module is used to directly compare in two systems disk partition is identical.
The complete mirror image of two systems in the present invention, backups each other, and operation that can be independent simultaneously realizes embedded device
Repertoire.When a system can normally start, by the disk partition for being synchronized to another system in the system disk subregion,
Then preferentially renewal firmware is stored in the disk partition of back-up system when there is firmware renewal(Now current runtime is consolidated
Part is constant, and the firmware of back-up system is newest, and the firmware both when there is firmware renewal is asynchronous, and other situations are all synchronous
's), when equipment starts next time, first start the last update system of crossing firmware, the firmware that so just can guarantee that equipment is most
New, the firmware of such as renewal is not normally functioning, then starts another system, because another system is last time normal operation mistake
, it can so complete to update, and can ensures have a system normally to start all the time during firmware renewal failure, thoroughly avoids
The situation that equipment can not start because firmware damages.
To sum up, the present invention has advantages below:
1. firmware can recover automatically, it is not necessary to manual intervention.
2. independent of network during firmware restoration.
3. system business is not influenceed during firmware restoration.
Brief description of the drawings
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is flow chart of the present invention.
Embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusive
Feature and/or step beyond, can combine in any way.
Any feature disclosed in this specification, unless specifically stated otherwise, can be equivalent by other or with similar purpose
Alternative features are replaced.I.e., unless specifically stated otherwise, each feature is an example in a series of equivalent or similar characteristics
.
Exemplified by router, the implementation process of the present invention is expanded on further, referring to Fig. 1.
Two identical systems are included on router, two systems backup each other, and can realize user to router
It is required that repertoire.
The autosynchronous method of dual system firmware provided by the invention, including:
System starting step:After device power, first start the system of last time firmware renewal, start if failure is started another
An outer system.
Firmware synchronizing step:Any one in two systems compares consolidating in current system disk partition after starting successfully
Whether part and the firmware in another system disk subregion are identical, by the firmware in another system disk subregion if differing
Replace with the firmware in current system disk partition.Two such system is normally to start.
Firmware updates step:When having detected firmware renewal, the firmware in another system disk subregion is replaced
For the firmware of renewal.The priority of firmware renewal is synchronous higher than firmware, that is to say, that when there is firmware renewal, no matter it is described another
Firmware in system disk subregion is synchronous with current system firmware or original, all replaces with consolidating after renewal without exception
Part.Firmware in current system disk partition is constant, and such equipment first starts the system after firmware renewal when starting next time,
Renewal is completed if starting successfully, and is synchronized the firmware of another system by follow-up firmware synchronizing step, is such as started
Unsuccessful, because the firmware of another system can normally start, therefore even if equipment firmware renewal is unsuccessful, equipment also can be just
Often operation.
Firmware synchronizing step is carried out in the current system normal course of operation.
In a preferred embodiment, firmware synchronizing step, directly in the firmware relatively in two systems disk partition
Hold HASH values that are whether identical, rather than calculating both, then directly relatively HASH values, the present embodiment can so improve operation effect
Rate, it is ensured that the accuracy compared.
Present invention also offers a kind of autosynchronous device of dual system firmware, including:
System starting module, for after device power, first starting the system of last time firmware renewal, if failure is started
Start another system;
Firmware synchronization module, for after a certain system starts successfully, compare the firmware in current system disk partition with it is another
Whether the firmware in system disk subregion is identical, as differed, the firmware in another system disk subregion is replaced with and worked as
Firmware in preceding system disk subregion;
Firmware update module, for when having detected firmware renewal, the firmware in another system disk subregion to be replaced
For the firmware of renewal.
Firmware synchronization module is used in the current system normal course of operation compare in current system disk partition
Whether firmware and the firmware in another system disk subregion are identical, if differing in another system disk subregion by as described in
Firmware replace with firmware in current system disk partition.
In other embodiments, firmware synchronization module, which is used for the direct firmware content compared in two systems disk partition, is
It is no identical.
The invention is not limited in foregoing embodiment.The present invention, which expands to, any in this manual to be disclosed
New feature or any new combination, and disclose any new method or process the step of or any new combination.
Claims (8)
- A kind of 1. autosynchronous method of main preparation system firmware, it is characterised in that including:System starting step:After device power, first start the system of last time firmware renewal, start if failure is started another An outer system;Firmware synchronizing step:A certain system compares firmware and another system disk in current system disk partition after starting successfully Whether the firmware in subregion is identical, and as differed, the firmware in another system disk subregion is replaced with into current system magnetic Firmware in disk subregion;Firmware updates step:When having detected firmware renewal, the firmware in another system disk subregion is replaced with more New firmware.
- 2. a kind of autosynchronous method of main preparation system firmware according to claim 1, it is characterised in that firmware is the same as step by step Suddenly carried out in the current system normal course of operation.
- 3. a kind of autosynchronous method of main preparation system firmware according to claim 1, it is characterised in that firmware is the same as step by step In rapid, whether the firmware content directly relatively in two systems disk partition is identical.
- 4. a kind of autosynchronous method of main preparation system firmware according to claim 1, it is characterised in that two systems are complete It is exactly the same.
- A kind of 5. autosynchronous device of main preparation system firmware, it is characterised in that including:System starting module, for after device power, first starting the system of last time firmware renewal, if failure is started Start another system;Firmware synchronization module, for after a certain system starts successfully, compare the firmware in current system disk partition with it is another Whether the firmware in system disk subregion is identical, as differed, the firmware in another system disk subregion is replaced with and worked as Firmware in preceding system disk subregion;Firmware update module, for when having detected firmware renewal, the firmware in another system disk subregion to be replaced For the firmware of renewal.
- A kind of 6. autosynchronous device of main preparation system firmware according to claim 5, it is characterised in that firmware synchronization mould The firmware and another system that block is used to compare in the current system normal course of operation in current system disk partition Whether the firmware in disk partition is identical, and as differed, the firmware in another system disk subregion is replaced with into current system Firmware in system disk partition.
- A kind of 7. autosynchronous device of main preparation system firmware according to claim 5, it is characterised in that firmware synchronization mould Whether the firmware content that block is used to directly compare in two systems disk partition is identical.
- 8. a kind of autosynchronous device of main preparation system firmware according to claim 5, it is characterised in that two systems are complete It is exactly the same.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221090.0A CN107423080A (en) | 2017-04-06 | 2017-04-06 | A kind of autosynchronous method and device of main preparation system firmware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221090.0A CN107423080A (en) | 2017-04-06 | 2017-04-06 | A kind of autosynchronous method and device of main preparation system firmware |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107423080A true CN107423080A (en) | 2017-12-01 |
Family
ID=60424014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710221090.0A Pending CN107423080A (en) | 2017-04-06 | 2017-04-06 | A kind of autosynchronous method and device of main preparation system firmware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423080A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110442482A (en) * | 2019-07-31 | 2019-11-12 | 苏州中科全象智能科技有限公司 | A kind of the mistake proofing framework and its control method of high-speed industrial camera firmware |
CN111209143A (en) * | 2020-01-02 | 2020-05-29 | 广州广哈通信股份有限公司 | Embedded system recovery method and device, embedded equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1889042A (en) * | 2006-07-17 | 2007-01-03 | 华为技术有限公司 | Terminal staging method and system |
CN101452410A (en) * | 2007-12-06 | 2009-06-10 | 中兴通讯股份有限公司 | Data backup system for embedded database, and data backup and recovery method |
CN103455354A (en) * | 2013-09-06 | 2013-12-18 | 南京南自信息技术有限公司 | Method and equipment for preventing hardware update from failing |
CN103488494A (en) * | 2013-08-12 | 2014-01-01 | 浪潮电子信息产业股份有限公司 | Multi-firmware synchronous updating and upgrading method for blade server |
CN104156282A (en) * | 2014-08-15 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | System image file backup system and method |
CN104252369A (en) * | 2013-06-27 | 2014-12-31 | 上海博泰悦臻电子设备制造有限公司 | On-board equipment and dual-system backup method and device of on-board equipment |
US20150347153A1 (en) * | 2014-04-29 | 2015-12-03 | International Business Machines Corporation | System management controller and method of configuration file backup and recovery |
-
2017
- 2017-04-06 CN CN201710221090.0A patent/CN107423080A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1889042A (en) * | 2006-07-17 | 2007-01-03 | 华为技术有限公司 | Terminal staging method and system |
CN101452410A (en) * | 2007-12-06 | 2009-06-10 | 中兴通讯股份有限公司 | Data backup system for embedded database, and data backup and recovery method |
CN104252369A (en) * | 2013-06-27 | 2014-12-31 | 上海博泰悦臻电子设备制造有限公司 | On-board equipment and dual-system backup method and device of on-board equipment |
CN103488494A (en) * | 2013-08-12 | 2014-01-01 | 浪潮电子信息产业股份有限公司 | Multi-firmware synchronous updating and upgrading method for blade server |
CN103455354A (en) * | 2013-09-06 | 2013-12-18 | 南京南自信息技术有限公司 | Method and equipment for preventing hardware update from failing |
US20150347153A1 (en) * | 2014-04-29 | 2015-12-03 | International Business Machines Corporation | System management controller and method of configuration file backup and recovery |
CN104156282A (en) * | 2014-08-15 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | System image file backup system and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110442482A (en) * | 2019-07-31 | 2019-11-12 | 苏州中科全象智能科技有限公司 | A kind of the mistake proofing framework and its control method of high-speed industrial camera firmware |
CN111209143A (en) * | 2020-01-02 | 2020-05-29 | 广州广哈通信股份有限公司 | Embedded system recovery method and device, embedded equipment and storage medium |
CN111209143B (en) * | 2020-01-02 | 2023-12-22 | 广州广哈通信股份有限公司 | Recovery method and device of embedded system, embedded device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104486319B (en) | Suitable for the configuration file real-time synchronization method and its system of high-availability system | |
CN106776130B (en) | Log recovery method, storage device and storage node | |
CN108415793B (en) | Modifying membership of a replica group via a log operation | |
CN104301142B (en) | A kind of backup method and equipment of configuration file | |
CN111427728B (en) | State management method, main/standby switching method and electronic equipment | |
CN102521083A (en) | Backup method and system of virtual machine in cloud computing system | |
WO2014101409A1 (en) | Data backup method and related device and system | |
CN104216793A (en) | Application program backing up and restoring method and device | |
JP2010160764A (en) | Backup control device, storage system, backup control program, and backup control method | |
WO2016177231A1 (en) | Dual-control-based active-backup switching method and device | |
JP6455898B2 (en) | Data replication method, primary data storage controller, apparatus, system, and program | |
CN113051110A (en) | Cluster switching method, device and equipment | |
US9104609B2 (en) | Information processing apparatus, system time synchronization method and computer readable medium | |
CN103905220B (en) | Data synchronizing processing method and system | |
CN104133709A (en) | Upgrading method and device for embedded system | |
CN110781157B (en) | Backup and recovery method and device based on NAS | |
CN106709066B (en) | Data synchronization method and device | |
CN112052127B (en) | Data synchronization method and device for dual-computer hot standby environment | |
CN107423080A (en) | A kind of autosynchronous method and device of main preparation system firmware | |
CN103516667A (en) | System, method and apparatus used for safety information data disaster recovery backup | |
US11372727B2 (en) | Method, device, and computer-readable storage medium for managing storage system | |
CN106712997B (en) | Method, equipment and system for recovering table entry | |
JP2015088123A (en) | Monitoring control system, monitoring control device, and setting information backup method | |
CN110716828B (en) | Database real-time backup method | |
CN117667944A (en) | Copy capacity expansion method, device and system for distributed graph database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |