CN114115945A - Remote upgrading method for anti-downtime of embedded system - Google Patents
Remote upgrading method for anti-downtime of embedded system Download PDFInfo
- Publication number
- CN114115945A CN114115945A CN202111395804.2A CN202111395804A CN114115945A CN 114115945 A CN114115945 A CN 114115945A CN 202111395804 A CN202111395804 A CN 202111395804A CN 114115945 A CN114115945 A CN 114115945A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- firmware
- remote
- boot
- downtime
- 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
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012360 testing method Methods 0.000 claims abstract description 9
- 241000282472 Canis lupus familiaris Species 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
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
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the technical field of remote upgrading, in particular to a remote upgrading method for preventing a downtime of an embedded system. The method comprises the following specific steps of remote upgrading: the remote server issues an upgrading instruction and firmware, and the equipment judges the integrity of the firmware after receiving the instruction and the firmware; backing up the current system, writing an upgrading flag bit and upgrading the position of the firmware, adjusting a program to boot, and booting from the new firmware by the boot; starting new firmware; after the new system can be started normally, the main function module test is operated after the upgrading zone bit is read, the remote server is connected after no problem is detected, the upgrading is reported successfully, the upgrading zone bit is cleared after the server response is received, and the upgrading is successful. The invention provides a remote upgrading method for preventing downtime of an embedded system, which can restore equipment to the system before upgrading even if the equipment with a problem in the firmware of remote upgrading can be upgraded, and the downtime loss can not occur.
Description
Technical Field
The invention relates to the technical field of remote upgrading, in particular to a remote upgrading method for preventing a downtime of an embedded system.
Background
The existing remote upgrading method has the problems that the upgrading process is interrupted or the upgrading firmware cannot be started due to the fact that uncertain factors such as sudden power failure and the like occur in the upgrading process or certain functions cannot be operated due to the fact that the upgrading firmware cannot be started or the certain functions cannot be operated after the upgrading firmware is started, and under the conditions, remote upgrading fails, equipment cannot be operated, only field maintenance can be carried out, and time and labor are wasted. For example, if uncertain factors such as sudden power failure in the upgrading process cause sudden interruption of the upgrading process or the upgrading of firmware is problematic, the system cannot run after upgrading, the equipment is down and cannot be recovered after being disconnected with the server, remote upgrading can only be carried out on site, and in order to avoid the problem, the equipment can be recovered to the system before upgrading even if the equipment with the problem of the remotely upgraded firmware is remotely upgraded, and the condition of down and disconnection cannot occur.
Disclosure of Invention
The invention provides a remote upgrading method for preventing downtime of an embedded system, which can restore equipment to the system before upgrading even if the equipment with a problem in the firmware of remote upgrading can be upgraded, and the downtime loss can not occur.
The technical scheme adopted by the invention is as follows: a remote upgrading method for preventing downtime of an embedded system is characterized by comprising the following steps: the method comprises the following specific steps of remote upgrading:
s1: the remote server issues an upgrading instruction and firmware, and the equipment judges the integrity of the firmware after receiving the instruction and the firmware;
s2: backing up the current system, writing an upgrading flag bit and upgrading the position of the firmware, adjusting a program to boot, and booting from the new firmware by the boot;
s3: after the new firmware is started, if the firmware cannot be started due to a problem, the hardware watchdog is restarted at regular time, and the boot judges that the upgrading flag bit is not duplicated after the firmware is restarted for multiple times, the new firmware cannot be operated, namely, the new firmware is restored to the backup firmware starting;
s4: after the new system can be normally started, reading an upgrading flag bit and then running a main function module test, connecting a remote server after no problem exists in the test, reporting that the upgrading is successful, clearing the upgrading flag bit after receiving a response of the server, wherein the upgrading is successful, the system normally runs, a hardware watchdog starts to normally feed dogs, and the hardware watchdog starts to feed dogs only after the upgrading is successful, so that other unpredictable problems of the firmware are not restarted to a boot;
s5: the upgraded firmware is only successfully connected with the server, and the upgrading flag bit is cleared after the successful upgrading confirmation is received, which represents that the upgrading is completed, the hardware watchdog of the equipment is restarted, the upgrading cannot be completed after repeated restarting, and the boot restores the system to the firmware before upgrading.
In the step S1, if the firmware is not complete, the upgrade is failed, and if the firmware is complete, the next step is performed.
In the step S2, the current firmware is backed up to an external flash or other places where the firmware can be stored, and the system can be restored to the original system when the upgrade fails.
The invention has the beneficial effects that:
in the remote upgrading process, if uncertain factors such as sudden power failure and the like are met, the upgrading process is interrupted, or the upgraded firmware cannot run due to the problem, the upgrading failure can be detected and the system before upgrading can be recovered by using the scheme under the condition, the downtime condition can not be caused, and the trouble that the remote maintenance cannot be carried out after the downtime is caused by the upgrading failure is avoided.
Drawings
Fig. 1 is a workflow diagram of a method for remotely upgrading a downtime-prevention embedded system according to the present invention.
Fig. 2 is a test process diagram of upgrading failure caused by upgrading wrong firmware in the remote upgrading method for preventing downtime of an embedded system according to the present invention.
Fig. 3 is a diagram of a correct upgrading process of the method for remotely upgrading the downtime-prevention of the embedded system according to the present invention.
Detailed Description
The present invention is further described below.
A remote upgrading method for preventing downtime of an embedded system is characterized by comprising the following steps: the method comprises the following specific steps of remote upgrading:
s1: the remote server issues an upgrading instruction and firmware, and the equipment judges the integrity of the firmware after receiving the instruction and the firmware;
s2: backing up the current system, writing an upgrading flag bit and upgrading the position of the firmware, adjusting a program to boot, and booting from the new firmware by the boot;
s3: after the new firmware is started, if the firmware cannot be started due to a problem, the hardware watchdog is restarted at regular time, and the boot judges that the upgrading flag bit is not duplicated after the firmware is restarted for multiple times, the new firmware cannot be operated, namely, the new firmware is restored to the backup firmware starting;
s4: after the new system can be normally started, reading an upgrading flag bit and then running a main function module test, connecting a remote server after no problem exists in the test, reporting that the upgrading is successful, clearing the upgrading flag bit after receiving a response of the server, wherein the upgrading is successful, the system normally runs, a hardware watchdog starts to normally feed dogs, and the hardware watchdog starts to feed dogs only after the upgrading is successful, so that other unpredictable problems of the firmware are not restarted to a boot;
s5: the upgraded firmware is only successfully connected with the server, and the upgrading flag bit is cleared after the successful upgrading confirmation is received, which represents that the upgrading is completed, the hardware watchdog of the equipment is restarted, the upgrading cannot be completed after repeated restarting, and the boot restores the system to the firmware before upgrading.
In the step S1, if the firmware is not complete, the upgrade is failed, and if the firmware is complete, the next step is performed.
In the step S2, the current firmware is backed up to an external flash or other places where the firmware can be stored, and the system can be restored to the original system when the upgrade fails.
Example 1
Uploading an upgrade package, when the upgrade package is wrong, newly establishing an upgrade task, upgrading equipment, successfully verifying md5 after downloading firmware of the equipment, restarting a hardware watchdog, jumping to a boot after the firmware is complete, transferring the boot to new firmware for multiple times, failing to operate the new firmware, restarting the hardware watchdog for multiple times, trying to recover the original firmware after the boot fails to start the new firmware for multiple times, starting the system back to the old firmware after the firmware is recovered, and reporting the upgrade failure after the firmware is started, wherein the specific process is as shown in fig. 2.
The above is a test for upgrading a wrong firmware resulting in an upgrade failure.
Example 2
Firstly, an upgrade task is created, the equipment downloads the firmware, after the verification is complete, the boot is jumped to, after the upgrade, the response is successful, and the server receives the successful upgrade, and the specific process is as shown in fig. 3.
The above is the correct upgrade process.
In summary, in the remote upgrading process, if uncertain factors such as sudden power failure and the like are encountered, the upgrading process is interrupted, or the upgraded firmware is in a problem, so that the upgraded system cannot run.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (3)
1. A remote upgrading method for preventing downtime of an embedded system is characterized by comprising the following steps: the method comprises the following specific steps of remote upgrading:
s1: the remote server issues an upgrading instruction and firmware, and the equipment judges the integrity of the firmware after receiving the instruction and the firmware;
s2: backing up the current system, writing an upgrading flag bit and upgrading the position of the firmware, adjusting a program to boot, and booting from the new firmware by the boot;
s3: after the new firmware is started, if the firmware cannot be started due to a problem, the hardware watchdog is restarted at regular time, and the boot judges that the upgrading flag bit is not duplicated after the firmware is restarted for multiple times, the new firmware cannot be operated, namely, the new firmware is restored to the backup firmware starting;
s4: after the new system can be normally started, reading an upgrading flag bit and then running a main function module test, connecting a remote server after no problem exists in the test, reporting that the upgrading is successful, clearing the upgrading flag bit after receiving a response of the server, wherein the upgrading is successful, the system normally runs, a hardware watchdog starts to normally feed dogs, and the hardware watchdog starts to feed dogs only after the upgrading is successful, so that other unpredictable problems of the firmware are not restarted to a boot;
s5: the upgraded firmware is only successfully connected with the server, and the upgrading flag bit is cleared after the successful upgrading confirmation is received, which represents that the upgrading is completed, the hardware watchdog of the equipment is restarted, the upgrading cannot be completed after repeated restarting, and the boot restores the system to the firmware before upgrading.
2. The method for remotely upgrading the downtime of an embedded system according to claim 1, wherein: in the step S1, if the firmware is not complete, the upgrade is failed, and if the firmware is complete, the next step is performed.
3. The method for remotely upgrading the downtime of an embedded system according to claim 1, wherein: in the step S2, the current firmware is backed up to an external flash or other places where the firmware can be stored, and the system can be restored to the original system when the upgrade fails.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111395804.2A CN114115945A (en) | 2021-11-23 | 2021-11-23 | Remote upgrading method for anti-downtime of embedded system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111395804.2A CN114115945A (en) | 2021-11-23 | 2021-11-23 | Remote upgrading method for anti-downtime of embedded system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114115945A true CN114115945A (en) | 2022-03-01 |
Family
ID=80440287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111395804.2A Pending CN114115945A (en) | 2021-11-23 | 2021-11-23 | Remote upgrading method for anti-downtime of embedded system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114115945A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116185461A (en) * | 2023-04-28 | 2023-05-30 | 广东华芯微特集成电路有限公司 | Firmware upgrading method and framework |
-
2021
- 2021-11-23 CN CN202111395804.2A patent/CN114115945A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116185461A (en) * | 2023-04-28 | 2023-05-30 | 广东华芯微特集成电路有限公司 | Firmware upgrading method and framework |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6291248B2 (en) | Firmware upgrade error detection and automatic rollback | |
AU2018374925B2 (en) | Starting method of energy storage system and energy storage device | |
US5901320A (en) | Communication system configured to enhance system reliability using special program version management | |
US8713553B2 (en) | Disk array apparatus and firmware update method therefor | |
CN100525206C (en) | Realizing method and system for automatic restoring equipment fault | |
CN101221508A (en) | Equipment starting method and device | |
US20080072030A1 (en) | Computer System and Method for Updating Program Code | |
CN105677398A (en) | Universal embedded computer software on-line upgrading method | |
CN111182033B (en) | Method and equipment for restoring switch | |
CN103713925A (en) | Method and device for avoiding service interruption of storage array in upgrading process | |
CN114115945A (en) | Remote upgrading method for anti-downtime of embedded system | |
CN101013390A (en) | Fast restoration method of computer system and apparatus | |
CN101207519A (en) | Version server, operation maintenance unit and method for restoring failure | |
CN111767172A (en) | Self-repairing method for set top box based on watchdog and bootloader | |
CN115809164A (en) | Embedded equipment, embedded system and hierarchical reset control method | |
CN115202680A (en) | System and method for automatically upgrading local client on line in remote manner | |
JP2010067115A (en) | Data storage system and data storage method | |
JP5683088B2 (en) | Recovery system, recovery method, and backup control system | |
CN111309388A (en) | Automatic rollback system and method for system software version of device | |
CN115509815A (en) | Method and device for protecting data in server | |
US9529581B2 (en) | Circuit and method for writing program codes of basic input/output system | |
CN106776997A (en) | A kind of moving method of database | |
CN112395130A (en) | System backup method and device | |
CN110597609A (en) | Cluster migration and automatic recovery method and system | |
JP3102962B2 (en) | Firmware recovery method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20220301 |
|
WD01 | Invention patent application deemed withdrawn after publication |