CN112612642A - Software starting and upgrading failure backspacing method and device and terminal equipment - Google Patents

Software starting and upgrading failure backspacing method and device and terminal equipment Download PDF

Info

Publication number
CN112612642A
CN112612642A CN202011495536.7A CN202011495536A CN112612642A CN 112612642 A CN112612642 A CN 112612642A CN 202011495536 A CN202011495536 A CN 202011495536A CN 112612642 A CN112612642 A CN 112612642A
Authority
CN
China
Prior art keywords
application program
storage area
equipment
file storage
software
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
CN202011495536.7A
Other languages
Chinese (zh)
Other versions
CN112612642B (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.)
Shanghai Xin'an Information Technology Co ltd
Original Assignee
Shanghai Xin'an Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xin'an Information Technology Co ltd filed Critical Shanghai Xin'an Information Technology Co ltd
Priority to CN202011495536.7A priority Critical patent/CN112612642B/en
Priority claimed from CN202011495536.7A external-priority patent/CN112612642B/en
Publication of CN112612642A publication Critical patent/CN112612642A/en
Application granted granted Critical
Publication of CN112612642B publication Critical patent/CN112612642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • 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/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention provides a software starting and upgrading failure rollback method, a device and a terminal device, wherein the method comprises the following steps: when the equipment is powered on and started, acquiring an initial identifier when the equipment is started; judging whether the initial identification changes or not; when the initial mark is not changed, the control equipment is reset, and the starting times are recorded; and when the starting times are more than the first preset times, restoring the application program in the factory file backup area to the execution file storage area so as to enable the equipment to normally operate. The method of the invention can ensure the normal work of the equipment when the application program upgrading is abnormal.

Description

Software starting and upgrading failure backspacing method and device and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a software starting and upgrading failure rollback method, a software starting and upgrading failure rollback device, a terminal device, a computer device and a non-transitory computer readable storage medium.
Background
Along with the development of society, intelligent equipment is more and more, and the development cycle of equipment is also shorter and shorter, and along with there is also very big risk in reliability and the stability of product. In addition, the original functions cannot meet the development requirements, and the factors can require the equipment software to be upgraded to solve some problems.
However, when the device is upgraded, due to some factors, such as interference occurring when the device hardware is operated during upgrading, a fault rate allowed to exist in the hardware device itself, and the like, the device upgrading is unsuccessful, which causes serious problems, and some devices cannot work normally.
Disclosure of Invention
The invention provides a software starting and upgrading failure rollback method for solving the technical problems, and can ensure the normal work of equipment when an application program is upgraded to be abnormal.
The technical scheme adopted by the invention is as follows:
a software starting and upgrading failure rollback method comprises the following steps: when the equipment is powered on and started, acquiring an initial identifier when the equipment is started; judging whether the initial identification changes or not; when the initial mark is not changed, controlling the equipment to reset, and recording the starting times; and when the starting times are more than the first preset times, restoring the application program in the factory file backup area to the execution file storage area so as to enable the equipment to normally operate.
According to an embodiment of the present invention, the software start-up and upgrade failure rollback method further includes: and when the initial identifier is not changed and the starting times are greater than second preset times, restoring the application program in the file backup area to the execution file storage area so as to enable the equipment to normally operate, wherein the second preset times are less than the first preset times.
According to an embodiment of the present invention, further comprising: backing up the application program in the execution file storage area to a file backup area; and decompressing the application program in the undecapsulated file storage area to the decapsulated file storage area, and copying the application program to the execution file storage area to finish application program upgrading.
According to another embodiment of the present invention, further comprising: backing up the application program in the execution file storage area to a file backup area; and decompressing the application program in the undecapsulated file storage area to the execution file storage area to finish application program upgrading.
The invention also provides a software starting and upgrading failure rollback device, which comprises: the device comprises an acquisition module, a judging module and a judging module, wherein the acquisition module is used for acquiring an initial identifier when the device is started when the device is powered on and started; the judging module is used for judging whether the initial identifier changes or not; and the control module is used for controlling the equipment to reset when the initial identifier is not changed, recording the starting times, and restoring the application program in the factory file backup area to the execution file storage area when the starting times are greater than a first preset time so as to ensure that the equipment normally runs.
The invention also provides terminal equipment which comprises the software starting and upgrading failure rollback device.
The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the software starting and upgrading failure rollback method is realized.
The present invention also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the software boot and upgrade failure rollback method described above.
The invention has the beneficial effects that:
firstly, when equipment is powered on and started, acquiring an initial identifier when the equipment is started; judging whether the initial identification changes or not, and when the initial identification does not change, controlling the equipment to reset and recording the starting times; when the starting times are larger than the first preset times, the application program in the factory file backup area is restored to the execution file storage area, so that the equipment can normally operate, and the normal work of the equipment can be ensured when the application program is updated to be abnormal.
Drawings
FIG. 1 is a flowchart of a software boot and upgrade failure rollback method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the division of a storage area of a prior art device;
FIG. 3 is a diagram illustrating the partitioning of a device memory area according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a software boot and upgrade failure rollback apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a software boot and upgrade failure rollback method according to an embodiment of the present invention.
As shown in fig. 1, a software boot and upgrade failure rollback method according to an embodiment of the present invention may include the following steps:
and S1, acquiring the initial identification of the equipment when the equipment is started when the equipment is powered on.
And S2, judging whether the initial mark is changed.
And S3, when the initial mark is not changed, the control device is reset and records the starting times.
And S4, when the starting times are more than the first preset times, restoring the application program in the factory file backup area to the execution file storage area so as to enable the equipment to normally operate. The first preset times can be calibrated according to actual conditions.
Specifically, as shown in fig. 2, the general storage area of the device is generally divided into a flag information area a, an execution file storage area B, a file backup area C, and an undecapsulated file storage area D. The mark information area a records some identifiers, such as whether new software is downloaded or not, and what version of software is currently running; the execution file storage area B is an area for storing the currently applied software, and the software in the area is operated by default after the equipment is powered on; the file backup area C is used for backing up the software to be overwritten and executed or the software in the backup storage area B.
Generally, upgrade failure occurs in a situation where an original program is covered, but the existing upgrade program does not work normally, and in this situation, the original program is backed up before upgrade, and related information is built in the flag area a. When the new version software can not work normally, the original program is covered to the area B after the equipment is reset, and then the original program is operated according to the original starting. At this time, if the contents of the backup execution file storage region B fail, the device may not operate normally. Therefore, as shown in fig. 3, a factory file backup area F may be added to store a factory backup program, and when the application program copied to the file backup area C cannot be used, the application program in the factory file backup area F is restored to the execution file storage area, so that the device operates normally.
Specifically, a small number of addresses are reserved in the highest address part in the RAM address area and used for recording the device starting initial value identification and starting a device hardware watchdog at the same time. When the application program is successfully started, a hardware watchdog is fed to prevent hardware reset caused by timeout of the watchdog, the device starting initial value identification in the RAM is changed, meanwhile, the related identification in the storage area A is changed to indicate that the software of the version can normally run, and the subsequent reset can know that the software of the version can normally start when started. If the application program is not normally started, the initialization identification value at the corresponding RAM is not changed, and the hardware watchdog is not fed in time, so that the overtime equipment is reset. After the reset is started, the program finds that the corresponding identifiers (the identifier in the RAM and the identifier in the storage area A) are not changed, and records the accumulation times. When the operation times reach a certain number and the equipment is still not normally started, the application program in the factory file backup area is restored to the execution file storage area, so that the equipment normally runs.
According to an embodiment of the present invention, the software start-up and upgrade failure rollback method further includes: and when the initial identifier is not changed and the starting times are greater than a second preset time, restoring the application program in the file backup area to the execution file storage area so as to enable the equipment to normally operate, wherein the second preset time is less than the first preset time and can be calibrated according to actual conditions.
That is to say, after the device is upgraded, the application program is started, if the application program cannot be started normally, the hardware watchdog is not fed in time, so that the overtime device is reset, at this time, the initial identifier is not changed, the starting times are recorded, the upgraded application program is started again, when the starting times exceed the second preset times, the upgraded version of the application program is abnormal, and the application program in the file backup area is restored to the execution file storage area, so that the device can operate normally.
After the application program in the file backup area is restored to the execution file storage area, the initial identification of the equipment during starting is continuously obtained, whether the initial identification changes or not is judged, if the application program cannot be started normally, the hardware watchdog is not timely fed to cause the overtime equipment to reset, the initial identification does not change at the moment, the application program backed up in the file backup area is possibly abnormal, the equipment is reset at the moment, the starting times are recorded, the upgraded application program is started again, when the starting times exceed the first preset times, the application program backed up in the file backup area is abnormal, and the application program in the outgoing file backup area is restored to the execution file storage area so that the equipment can run normally.
It should be noted that the first preset number of times at this time is the number of times of starting counting from the occurrence of an exception to the upgraded software. That is, when the initial identifier is not changed, the process of restoring the application program in the file backup area to the execution file storage area is performed first, and if the initial identifier is not changed yet, the process of restoring the application program in the factory file backup area to the execution file storage area is performed. The first predetermined number is therefore the total number of starts.
According to an embodiment of the present invention, the software start-up and upgrade failure rollback method further includes: backing up the application program in the execution file storage area to a file backup area; and decompressing the application program in the non-decapsulated file storage area to the decapsulated file storage area, and copying the application program to the execution file storage area to complete application program upgrading.
Specifically, when the storage area has sufficient capacity and the decapsulated file storage area E is increased, the software of the original version does not need to be covered when the decapsulated and upgraded file is performed, the storage area may have software of three versions (a factory version, an existing version and a version to be upgraded), and then when the version is required to be rolled back, various options are available. For example, when an upgrade package exists, the original program is backed up to the file backup area C, the upgrade file is decapsulated to the decapsulated file storage area E, and the decapsulated file is copied to the executable file storage area B, so that three different versions are included, that is, a factory version exists in the factory file backup area F, an existing version exists in the file backup area C, and an upgrade book needs to be updated in the execution file storage area B. The advantage of adding the decapsulated file storage area E is that after decapsulation, the version to be upgraded after decapsulation can be verified, and the risk of application program upgrade failure is reduced.
According to another embodiment of the present invention, the software startup and upgrade failure rollback method further includes: backing up the application program in the execution file storage area to a file backup area; and decompressing the application program in the undecapsulated file storage area to an execution file storage area to complete application program upgrading.
That is, when the decapsulated file storage area E is not added, the application program is upgraded by backing up the application program in the execution file storage area to the file backup area and then copying the decompressed application program to the execution file storage area to complete the upgrade of the application program.
It should be noted that, regardless of the upgrade of the application program or the rollback mode of the application program, after the upgrade of the application program or the rollback mode of the application program is completed, a related start identifier needs to be set, so that when the device is started next time, the corresponding identifier is directly started.
In summary, according to the software start and upgrade failure rollback method of the present invention, when the device is powered on and started, an initial identifier of the device during start is obtained; when an application program is started, judging whether an initial identifier changes, and when the initial identifier does not change, controlling equipment to reset and recording starting times; when the starting times are larger than the first preset times, the application program in the factory file backup area is restored to the execution file storage area, so that the equipment can normally operate, and the normal work of the equipment can be ensured when the application program is updated to be abnormal.
Corresponding to the software starting and upgrading failure rollback method of the above embodiment, the invention also provides a software starting and upgrading failure rollback device.
Fig. 4 is a block diagram illustrating a software boot and upgrade failure rollback apparatus according to an embodiment of the present invention.
As shown in fig. 4, the software start and upgrade failure rollback apparatus according to an embodiment of the present invention may include: the device comprises an acquisition module 10, a judgment module 20 and a control module 30.
The obtaining module 10 is configured to obtain an initial identifier when the device is started when the device is powered on. The judging module 20 is configured to judge whether the initial identifier changes when the application program is started. The control module 30 is configured to control the device to reset when the initial identifier is not changed, record the starting times, and restore the application program in the factory file backup area to the execution file storage area when the starting times are greater than a first preset time, so that the device operates normally.
According to an embodiment of the present invention, the control module 30 is further configured to, when the initial identifier is not changed and the number of times of starting is greater than a second preset number of times, restore the application program in the file backup area to the execution file storage area, so that the device operates normally, where the second preset number of times is less than the first preset number of times.
According to an embodiment of the present invention, the control module 30 is further configured to backup the application program in the execution file storage area to the file backup area before the application program is started; and decompressing the application program in the non-decapsulated file storage area to the decapsulated file storage area, and copying the application program to the execution file storage area to complete application program upgrading.
According to an embodiment of the present invention, the control module 30 is further configured to backup the application program in the execution file storage area to the file backup area before the application program is started; and decompressing the application program in the undecapsulated file storage area to an execution file storage area to complete application program upgrading.
It should be noted that, for details that are not disclosed in the software start-up and upgrade failure rollback apparatus according to the embodiment of the present invention, please refer to details disclosed in the software start-up and upgrade failure rollback method according to the embodiment of the present invention, and details are not repeated herein.
According to the software starting and upgrading failure rollback device provided by the embodiment of the invention, when the equipment is powered on and started, the acquisition module acquires the initial identifier when the equipment is started, the judgment module judges whether the initial identifier is changed or not, when the initial identifier is not changed, the control module controls the equipment to reset, records the starting times, and restores the application program in the factory file backup area to the execution file storage area when the starting times are greater than the first preset times so as to enable the equipment to normally operate.
The invention further provides a terminal device corresponding to the embodiment.
Fig. 5 is a block diagram of a terminal device according to an embodiment of the present invention.
As shown in fig. 5, the terminal device 100 of the embodiment of the present invention: including the software boot and upgrade failure rollback apparatus 110 described above.
According to the terminal equipment of the embodiment of the invention, through the software starting and upgrading failure rollback device, normal operation of the equipment can be ensured when the application program upgrading is abnormal.
The invention further provides a computer device corresponding to the embodiment.
The computer device of the embodiment of the invention comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the computer program, the software starting and upgrading failure rollback method according to the embodiment of the invention can be realized.
According to the computer equipment of the embodiment of the invention, when the processor executes the computer program stored on the memory, firstly, when the equipment is powered on and started, the initial identification of the equipment during starting is obtained; judging whether the initial identification changes or not, and when the initial identification does not change, controlling the equipment to reset and recording the starting times; when the starting times are larger than the first preset times, the application program in the factory file backup area is restored to the execution file storage area, so that the equipment can normally operate, and the normal work of the equipment can be ensured when the application program is updated to be abnormal.
The invention also provides a non-transitory computer readable storage medium corresponding to the above embodiment.
A non-transitory computer readable storage medium of an embodiment of the present invention has a computer program stored thereon, and when the computer program is executed by a processor, the software start and upgrade failure rollback method according to the above-described embodiment of the present invention can be implemented.
According to the non-transitory computer-readable storage medium of the embodiment of the present invention, when the processor executes the computer program stored thereon, first, when the device is powered on and started, the initial identifier of the device when being started is obtained; judging whether the initial identification changes or not, and when the initial identification does not change, controlling the equipment to reset and recording the starting times; when the starting times are larger than the first preset times, the application program in the factory file backup area is restored to the execution file storage area, so that the equipment can normally operate, and the normal work of the equipment can be ensured when the application program is updated to be abnormal.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The meaning of "plurality" is two or more unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (8)

1. A software starting and upgrading failure rollback method is characterized by comprising the following steps:
when the equipment is powered on and started, acquiring an initial identifier when the equipment is started;
judging whether the initial identification changes or not;
when the initial mark is not changed, controlling the equipment to reset, and recording the starting times;
and when the starting times are more than the first preset times, restoring the application program in the factory file backup area to the execution file storage area so as to enable the equipment to normally operate.
2. The software startup and upgrade failure rollback method according to claim 1, further comprising:
and when the initial identifier is not changed and the starting times are greater than second preset times, restoring the application program in the file backup area to the execution file storage area so as to enable the equipment to normally operate, wherein the second preset times are less than the first preset times.
3. The software startup and upgrade failure rollback method according to claim 1, further comprising, before the application program starts up:
backing up the application program in the execution file storage area to a file backup area;
and decompressing the application program in the undecapsulated file storage area to the decapsulated file storage area, and copying the application program to the execution file storage area to finish application program upgrading.
4. The software startup and upgrade failure rollback method according to claim 1, further comprising, before the application program starts up:
backing up the application program in the execution file storage area to a file backup area;
and decompressing the application program in the undecapsulated file storage area to the execution file storage area to finish application program upgrading.
5. A software boot and upgrade failure rollback apparatus, comprising:
the device comprises an acquisition module, a judging module and a judging module, wherein the acquisition module is used for acquiring an initial identifier when the device is started when the device is powered on and started;
the judging module is used for judging whether the initial identifier changes or not;
and the control module is used for controlling the equipment to reset when the initial identifier is not changed, recording the starting times, and restoring the application program in the factory file backup area to the execution file storage area when the starting times are greater than a first preset time so as to ensure that the equipment normally runs.
6. A terminal device, characterized by comprising a software start-up and upgrade failure rollback apparatus according to claim 5.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the software boot and upgrade failure rollback method according to any one of claims 1-4 when executing the program.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the software boot and upgrade failure rollback method according to any of claims 1-4.
CN202011495536.7A 2020-12-17 Method and device for rollback of software start and upgrade failure and terminal equipment Active CN112612642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011495536.7A CN112612642B (en) 2020-12-17 Method and device for rollback of software start and upgrade failure and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011495536.7A CN112612642B (en) 2020-12-17 Method and device for rollback of software start and upgrade failure and terminal equipment

Publications (2)

Publication Number Publication Date
CN112612642A true CN112612642A (en) 2021-04-06
CN112612642B CN112612642B (en) 2024-06-07

Family

ID=

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703801A (en) * 2021-07-14 2021-11-26 深圳市有为信息技术发展有限公司 Vehicle-mounted terminal firmware upgrading method and electronic device
CN114675902A (en) * 2022-03-11 2022-06-28 潍柴动力股份有限公司 Software version management method and management device based on embedded equipment
CN117493057A (en) * 2023-11-07 2024-02-02 上海合芯数字科技有限公司 Debugging method, equipment and medium for probabilistic startup failure of system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070074015A1 (en) * 2005-09-29 2007-03-29 Nec Corporation Control apparatus, upgrade method and program product of the same
CN102023908A (en) * 2010-12-03 2011-04-20 中兴通讯股份有限公司 Method and device for backing up boot program
CN105573864A (en) * 2015-12-15 2016-05-11 广州视源电子科技股份有限公司 Terminal system recovery method and system thereof
CN105930236A (en) * 2016-07-15 2016-09-07 深圳市沃特玛电池有限公司 Application program version returning method based on BMS Bootloaderupgrade
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070074015A1 (en) * 2005-09-29 2007-03-29 Nec Corporation Control apparatus, upgrade method and program product of the same
CN102023908A (en) * 2010-12-03 2011-04-20 中兴通讯股份有限公司 Method and device for backing up boot program
WO2012071945A1 (en) * 2010-12-03 2012-06-07 中兴通讯股份有限公司 Method and device for backing up and upgrading bootstrap
CN105573864A (en) * 2015-12-15 2016-05-11 广州视源电子科技股份有限公司 Terminal system recovery method and system thereof
CN105930236A (en) * 2016-07-15 2016-09-07 深圳市沃特玛电池有限公司 Application program version returning method based on BMS Bootloaderupgrade
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩艳芬 等: "一种二次Bootloader升级和回退的设计与实现", 《计算机技术与发展》, vol. 19, no. 10, pages 89 - 95 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703801A (en) * 2021-07-14 2021-11-26 深圳市有为信息技术发展有限公司 Vehicle-mounted terminal firmware upgrading method and electronic device
CN114675902A (en) * 2022-03-11 2022-06-28 潍柴动力股份有限公司 Software version management method and management device based on embedded equipment
CN114675902B (en) * 2022-03-11 2023-08-18 潍柴动力股份有限公司 Management method and management device for software version based on embedded equipment
CN117493057A (en) * 2023-11-07 2024-02-02 上海合芯数字科技有限公司 Debugging method, equipment and medium for probabilistic startup failure of system

Similar Documents

Publication Publication Date Title
EP1110147B1 (en) Boot failure recovery
US9286164B2 (en) Electronic device to restore MBR, method thereof, and computer-readable medium
US20140310698A1 (en) Apparatus and method for upgrading firmware of mobile terminal
CN107315659B (en) Metadata redundancy backup method and device
CN110647333A (en) Firmware upgrading method and equipment configured to upgrade firmware therein
CN107918568B (en) Method for preventing Linux system from failing to restart
CN112596672B (en) Storage processing method and device of main control chip, processor and electronic equipment
KR100339051B1 (en) Auto-recovery system of LINUX using a flash card
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN113190256B (en) Upgrading method, device and equipment
CN113641390A (en) System upgrading method, device, equipment and storage medium
CN113626262A (en) BMC recovery method, system, equipment and medium
CN112612642A (en) Software starting and upgrading failure backspacing method and device and terminal equipment
CN112612642B (en) Method and device for rollback of software start and upgrade failure and terminal equipment
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN116257384A (en) Terminal starting method, electronic device and computer readable storage medium
CN111897583A (en) Equipment starting method and embedded equipment
CN111813748A (en) File system mounting method and device, electronic equipment and storage medium
CN115576743B (en) Operating system recovery method, operating system recovery device, computer equipment and storage medium
CN116204353B (en) Recovery and restoration method, device and equipment of vehicle-mounted system and storage medium
JP3070681B2 (en) Failure processing dynamic change method, failure processing dynamic change device, and recording medium therefor
CN115639969B (en) Storage disk main-standby switching method and device and computer equipment
CN112685086B (en) Information processing method and electronic equipment
CN116414622A (en) MDVR system repairing method, MDVR and driving monitoring system
CN115291966A (en) System starting method, device, equipment and storage medium of equipment

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
GR01 Patent grant