CN117520047A - Recovery method of equipment system abnormality, computer equipment and storage medium - Google Patents

Recovery method of equipment system abnormality, computer equipment and storage medium Download PDF

Info

Publication number
CN117520047A
CN117520047A CN202210895097.1A CN202210895097A CN117520047A CN 117520047 A CN117520047 A CN 117520047A CN 202210895097 A CN202210895097 A CN 202210895097A CN 117520047 A CN117520047 A CN 117520047A
Authority
CN
China
Prior art keywords
equipment
abnormal
parameter
mirror image
recovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210895097.1A
Other languages
Chinese (zh)
Inventor
冯波
刘建兵
唐宗汇
徐圣杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanvil Technology Co ltd
Original Assignee
Fanvil 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 Fanvil Technology Co ltd filed Critical Fanvil Technology Co ltd
Priority to CN202210895097.1A priority Critical patent/CN117520047A/en
Publication of CN117520047A publication Critical patent/CN117520047A/en
Pending legal-status Critical Current

Links

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/142Reconfiguring to eliminate the error
    • 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/1438Restarting or rejuvenating

Abstract

The application provides a recovery method of equipment system abnormality, which comprises the following steps: starting the equipment with abnormal system; inserting a storage device storing a mirroring system into a development board running the device; triggering the equipment to enter an abnormal mechanism and generating a first parameter; sending the first parameter to an exception mechanism program and entering a recovery program; and reading the first parameter and the mirror image system in the storage equipment, and recovering an abnormal system of the equipment. By means of the method, the device for recovering the system abnormality can be recovered in a simple, reliable, universal and safe mode.

Description

Recovery method of equipment system abnormality, computer equipment and storage medium
Technical Field
The application relates to the technical field of android system running equipment, in particular to a recovery method for equipment system abnormality, computer equipment and a storage medium.
Background
With the current vigorous development of Android (Android) systems, hundreds of millions of Android devices exist, system anomalies of some devices occur, the Android devices cannot be used continuously, and cannot be recovered through OTA (over the air upgrade), but the hardware of the Android devices is complete and has no problem. In another aspect, the production may be a simple secondary brushing scheme, which quickly replaces the firmware. This requires an Android system to be restored in a simple, reliable, universal and secure manner. How to recover from system anomalies in a simple, reliable, general-purpose, secure manner is a matter of concern for the skilled developer.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method for recovering an abnormal device system, a computer device, and a storage medium, which can recover an abnormal device system in a simple, reliable, general and safe manner.
In order to solve the above technical problems, an embodiment of the present application provides a recovery method for an equipment system exception, where the recovery method includes: starting the equipment with abnormal system; inserting a storage device storing a mirroring system into a development board running the device; triggering the equipment to enter an abnormal mechanism and generating a first parameter; sending the first parameter to an exception mechanism program and entering a recovery program; and reading the first parameter and the mirror image system in the storage equipment, and recovering an abnormal system of the equipment.
Wherein the reading the first parameter and the mirrored system in the storage device, and recovering the abnormal system of the device, comprises: detecting whether the mirror image system is mounted or not; signing and verifying the mirror image system, and opening the mirror image system after verification is passed; and erasing the data partition according to the first parameter and the mirroring system, erasing the self-defined partition part file storing the version customized file and mirroring the partition burning.
Wherein after the reading the first parameter and the mirror system in the storage device and recovering the abnormal system of the device, the method further comprises:
setting related parameters of the equipment after the abnormal system replies, and triggering restarting; and initializing a system of the equipment according to the setting parameters of the abnormal mechanism program in the restarting process of the equipment.
The storage device is one of a secure digital card and a USB flash disk.
The first parameter comprises the name and the display language of the upgrade package.
The equipment with abnormal starting system passes through an active Ethernet or a direct current adapter.
The triggering mode comprises one of a screen and a key of the equipment.
Wherein the touching the screen of the device comprises continuously pressing four corners of the screen of the device, and the key pressing mode comprises one or a combination of long pressing, short pressing or multiple pressing
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the processor implements the steps of the method for recovering from an abnormality of a device system according to any one of the above steps when executing the computer readable instructions.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions: the computer readable storage medium stores computer readable instructions, which when executed by a processor, implement the steps of the method for recovering from an equipment system exception described above.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
the device is simple, reliable and safe to use, convenient to put into use, outstanding in use effect, capable of being rapidly deployed from 0 to 1, simple and unified to use, expandable and flexible and universal for devices needing abnormal recovery, and can be used for recovering the abnormality of a complete board mirror image system of hardware as long as the device runs the android system with the built-in abnormal recovery program.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed in the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic flow chart of an embodiment of a method for recovering from system anomalies in an apparatus of the present application;
FIG. 2 is a flow chart of an embodiment of step S140 of the present application;
fig. 3 is a schematic structural view of an embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 1, fig. 1 is a flowchart of an embodiment of a recovery method for system anomalies of a device according to the present application, where the recovery method provided in the present application as shown in fig. 1 includes the following steps:
s100, starting equipment with abnormal system.
In a specific embodiment of the present application, if there is a system abnormality in the device, the device cannot be used continuously, and cannot be recovered through OTA, but the hardware of the device is complete and has no problem, the recovery method of the abnormal system of the present application may be adopted. Firstly, starting the equipment with abnormal system (powering up the equipment with abnormal system), and specifically powering up the equipment through an active Ethernet (poe) or a direct current adapter (DC).
S110, inserting the storage device stored with the mirror image system into a development board of the running device.
Further, the storage device storing the system image is inserted into a development board of the running device. The system image refers to a normal compiled image system, and the storage device may be one of a secure digital card (sd card) or a usb disk, which is not limited herein.
S120, triggering the device to enter an exception mechanism and generating a first parameter.
Further, the triggering device enters an exception mechanism, wherein the triggering manner may include one of touching a screen and pressing a button of the device. In particular embodiments, touching the screen of the device includes constantly pressing four corners of the screen of the device, and the manner of pressing the key includes one or a combination of long presses, short presses, or multiple presses. Of course, in other embodiments, other manners are possible, and are not specifically limited herein.
Further, after the kernel detects the mode, triggering a corresponding callback function, writing a first parameter into the MIsc partition for triggering the device to enter an abnormal mechanism for analysis, wherein the first parameter can comprise the name and the display language of the upgrade package.
S130, the first parameter is sent to the exception mechanism program and enters a recovery program.
The first parameter generated after triggering is sent to an abnormal mechanism program, the abnormal mechanism program is restarted and enters the abnormal mechanism program through a kernel restarting command, and the abnormal mechanism program loads a system mirror image and executes a specific function responsible for upgrading
And S140, reading the first parameter and the mirror image system in the storage equipment, and recovering the abnormal system of the equipment.
Referring to fig. 2, fig. 2 is a flow chart illustrating an embodiment of step S140 of the present application, where step S140 of fig. 2 further includes the following sub-steps:
s141, detecting whether the mirror image system is mounted.
After entering the recovery program, the current system is detected and the first parameter (name of the upgrade package and display language) is read, and the mirror image system in the storage device is read, firstly, whether the mirror image system is mounted is detected, and if the mirror image system is detected to be mounted, step S142 is entered.
S142, signing and verifying the mirror image system, and opening the mirror image system after verification is passed.
Further, the mirror image system is signed and verified, and the signature and verification of the mirror image system in the application can be performed in a conventional operation manner, which is not specifically limited herein. After the mirror image system signs and verifies the signature and passes the verification, the mirror image system is opened, loading is performed to recover the abnormal system of the equipment, and the UI interface displays the upgrading progress in real time.
S143, erasing the data partition, erasing the self-defined partition part file storing the version customized file and burning and mirroring the partition according to the first parameter and the mirroring system.
Specifically, according to the first parameter and the mirror system, if the first parameter includes an erase partition, the data erase partition of the partition such as data, cache, oembk and the like is erased. Specifically, in the embodiment of the present application, the device disk storage content is cleared, and the partition burning mirror image may be further adapted to prompt such as LED, so as to start to recover from an abnormality.
Further, after the abnormal system is recovered, the method further comprises the following steps:
s150, setting relevant parameters of the equipment after the abnormal system replies, and triggering restarting.
S160, initializing a system of the equipment according to the setting parameters of the exception mechanism program in the restarting process of the equipment.
Specifically, in the restarting process of the device, according to the setting parameters of the abnormal mechanism program, a mode which is entered after restarting, a normal starting mode, a downloading mode which is entered, and the like are set, and the system of the device is initialized.
In the embodiment, the abnormal recovery program is designed and written and built into the android system, so that the abnormal recovery of the board mirror image system with complete hardware can be realized as long as the android system with the built-in abnormal recovery program is operated by the equipment, and the board mirror image system is simple, reliable and safe in use and very convenient to put into use. The use effect is outstanding, and for the equipment that needs the unusual recovery, can arrange fast, from 0 to 1 to use simple unified, can expand, nimble general.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 3, fig. 3 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 300 comprises a memory 301, a processor 302, a network interface 303 communicatively coupled to each other via a system bus. It should be noted that only computer device 300 having components 301-303 is shown in FIG. 3, but it should be understood that not all of the illustrated components need be implemented and that more or fewer components may alternatively be implemented. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 301 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 301 may be an internal storage unit of the computer device 300, such as a hard disk or a memory of the computer device 300. In other embodiments, the memory 301 may also be an external storage device of the computer device 300, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 300. Of course, the memory 301 may also include both internal storage units and external storage devices of the computer device 300. In this embodiment, the memory 301 is typically used to store an operating system and various application software installed on the computer device 300, such as computer readable instructions of an interface calling method. In addition, the memory 301 may be used to temporarily store various types of data that have been output or are to be output.
The processor 302 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 302 is generally used to control the overall operation of the computer device 300. In this embodiment, the processor 302 is configured to execute computer readable instructions stored in the memory 301 or process data, such as computer readable instructions for executing a recovery method of an equipment system exception.
The network interface 303 may include a wireless network interface or a wired network interface, which network interface 303 is typically used to establish communication connections between the computer device 300 and other electronic devices.
In the embodiment, the abnormal recovery program is designed and written and built into the android system, so that the abnormal recovery of the board mirror image system with complete hardware can be realized as long as the android system with the built-in abnormal recovery program is operated by the equipment, and the board mirror image system is simple, reliable and safe in use and very convenient to put into use. The use effect is outstanding, and for the equipment that needs the unusual recovery, can arrange fast, from 0 to 1 to use simple unified, can expand, nimble general.
The present application also provides another embodiment, namely, a computer-readable storage medium, where computer-readable instructions are stored, where the computer-readable instructions are executable by at least one processor to cause the at least one processor to perform the steps of a method for recovering from an equipment system anomaly as described above.
In the embodiment, the abnormal recovery program is designed and written and built into the android system, so that the abnormal recovery of the board mirror image system with complete hardware can be realized as long as the android system with the built-in abnormal recovery program is operated by the equipment, and the board mirror image system is simple, reliable and safe in use and very convenient to put into use. The use effect is outstanding, and for the equipment that needs the unusual recovery, can arrange fast, from 0 to 1 to use simple unified, can expand, nimble general.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (10)

1. A method for recovering from an anomaly in a system of devices, the method comprising:
starting the equipment with abnormal system;
inserting a storage device storing a mirroring system into a development board running the device;
triggering the equipment to enter an abnormal mechanism and generating a first parameter;
sending the first parameter to an exception mechanism program and entering a recovery program;
and reading the first parameter and the mirror image system in the storage equipment, and recovering an abnormal system of the equipment.
2. The restoration method as recited in claim 1, wherein the reading the first parameter and the mirrored system in the storage device and restoring the abnormal system of the device comprises:
detecting whether the mirror image system is mounted or not;
signing and verifying the mirror image system, and opening the mirror image system after verification is passed;
and erasing the data partition according to the first parameter and the mirroring system, erasing the self-defined partition part file storing the version customized file and mirroring the partition burning.
3. The restoration method according to claim 1, wherein after the reading the first parameter and the mirror system in the storage device and restoring the abnormal system of the device, further comprises:
setting related parameters of the equipment after the abnormal system replies, and triggering restarting;
and initializing a system of the equipment according to the setting parameters of the abnormal mechanism program in the restarting process of the equipment.
4. The recovery method of claim 1, wherein the storage device is one of a secure digital card or a usb disk.
5. The restoration method according to claim 1, wherein the first parameter includes a name and a display language of an upgrade package.
6. The restoration method according to claim 1, wherein the device that the startup system is abnormal passes through an active ethernet or a direct current adapter.
7. The recovery method of claim 1, wherein the triggering means comprises touching one of a screen and a key of the device.
8. The restoration method according to claim 7, wherein the touching the screen of the device includes continuously pressing four corners of the screen of the device, and the key-press manner includes one or a combination of long presses, short presses, or multiple presses.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which when executed by the processor implement the steps of the recovery method of any of claims 1 to 8.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the recovery method according to any of claims 1 to 8.
CN202210895097.1A 2022-07-28 2022-07-28 Recovery method of equipment system abnormality, computer equipment and storage medium Pending CN117520047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210895097.1A CN117520047A (en) 2022-07-28 2022-07-28 Recovery method of equipment system abnormality, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210895097.1A CN117520047A (en) 2022-07-28 2022-07-28 Recovery method of equipment system abnormality, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117520047A true CN117520047A (en) 2024-02-06

Family

ID=89742564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210895097.1A Pending CN117520047A (en) 2022-07-28 2022-07-28 Recovery method of equipment system abnormality, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117520047A (en)

Similar Documents

Publication Publication Date Title
US8468389B2 (en) Firmware recovery system and method of baseboard management controller of computing device
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
US7929706B2 (en) Encryption key restoring method, information processing apparatus, and encryption key restoring program
US20110154484A1 (en) Information processing apparatus, method of controlling authentication process, and recording medium
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
US11599426B2 (en) Recovery via backups of recovery information
CN106155713B (en) Startup information management method and device
US7725705B2 (en) Bios setting method
CN117520047A (en) Recovery method of equipment system abnormality, computer equipment and storage medium
CN111831976A (en) Linux operating system-based copyright protection method and equipment
KR20180023575A (en) Firmware auto updating method and computer readable recording medium writing firmware auto updating method
CN115827069A (en) Starting control method, system and device for server mainboard
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN103713917A (en) Startup method, hot key switching startup graphics device method and electronic device
CN110134456A (en) For managing the method, apparatus, equipment and storage medium of operating system
JP2009080592A (en) Firmware rewriting method
CN116932010B (en) System firmware upgrading method, device and server
CN113986635B (en) BIOS testing method, system, storage medium and device
KR101225841B1 (en) Apparatus and method of updating restoration for firmware
CN117492799A (en) Software upgrading method and device, terminal equipment and storage medium
CN117675576A (en) Method and device for upgrading server firmware, server and electronic equipment
CN117714281A (en) Upgrading method and device of switch firmware and related products
CN110197067B (en) File searching and killing method, device and storage medium
CN114579971A (en) Starting method of safety control module and related device

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