CN104850472A - Method and device for restoring backup of system application software - Google Patents

Method and device for restoring backup of system application software Download PDF

Info

Publication number
CN104850472A
CN104850472A CN201510254505.5A CN201510254505A CN104850472A CN 104850472 A CN104850472 A CN 104850472A CN 201510254505 A CN201510254505 A CN 201510254505A CN 104850472 A CN104850472 A CN 104850472A
Authority
CN
China
Prior art keywords
application software
print
backup
file
digital finger
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
CN201510254505.5A
Other languages
Chinese (zh)
Other versions
CN104850472B (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.)
Xi'an Nova Nebula Technology Co., Ltd.
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201510254505.5A priority Critical patent/CN104850472B/en
Publication of CN104850472A publication Critical patent/CN104850472A/en
Application granted granted Critical
Publication of CN104850472B publication Critical patent/CN104850472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a method and device for restoring a backup of system application software. The method comprises: (a) after an operating system is started, automatically starting a backup detecting and guiding program; (b) performing, by the backup detecting and guiding program, the following steps: performing digital fingerprint checking and testing on a file contained in target application software stored in a normal zone of a memory, if the step of digital fingerprint checking and testing fails, copying the file contained in the target application software stored in a backup zone of the memory to a restoration zone of the memory, and restarting the operating system after the copying is completed; (c) after the operating system is restarted, automatically starting a restoration detecting and guiding program; (d) after the restoration detecting and guiding program is started, performing, by the restoration detecting and guiding program, the following steps: checking whether application software which needs to be restored exists in the restoration zone, if exists, performing an restoring operation on the target application software, and starting a target application program after the restoring operation is completed. Therefore, the method and device according to the present invention can realize the self-restoration of the system application software.

Description

System software backup and restore method and device
Technical field
The present invention relates to system software administrative skill field, particularly a kind of system software backup and restore method and a kind of system software backup and reduction device.
Background technology
The development of internet and the continuous innovation of display screen control technology, impelled LED display to increase rapidly in off-line display, the LED display control system based on embedded system is arisen spontaneously.
As shown in Figure 1, embedded LED display screen control system basic composition comprises: media interface, cascaded-output mouth, microprocessor module, media store module, data processing module and display data output interface.Wherein, media interface is such as network interface, USB interface and/or SD card interface; Cascaded-output mouth is such as network interface, and it is suitable for being connected with the network interface of receiving card; Microprocessor module such as comprises ARM microprocessor; Media store module is such as the nonvolatile memories such as flash memory; Data processing module such as comprises programming device (as FPGA); Display data output interface is such as winding displacement interface, and it can directly be connected with LED lamp panel, also can be to be connected by being formed with multiple LED lamp panel after adapter (Hub card) expansion.
In the embedded LED display screen control system shown in Fig. 1, microprocessor module is as the core of whole control system, it is provided with embedded microprocessor, be similar to a personal computer, as the core of LED display control system, need operation display and control application software to carry out cooperated with LED display screen thereon and carry out display and control.
But, because (such as memory module is unstable, operation sequential is unstable) can cause the application software operated in wherein to occur File lose and damage when the oneself height of embedded microprocessor is integrated, appearance is unstable, software can not normally be run.Due to feature such as " letter, little " of embedded system, cannot self-recoverage when running software goes wrong, can only depot repair, it is higher to consume maintenance cost, and the cycle is longer; And running software can cause LED display out of hand when going wrong, LED display there will be long-term blank screen or display fault, causes a series of related accident to occur.
Summary of the invention
Therefore, for deficiency of the prior art, the present invention proposes a kind of system software backup and restore method and a kind of system software backup and reduction device.
Particularly, a kind of system software backup and restore method that the embodiment of the present invention provides, comprises step:
A after () os starting, automatically starting backup detects boot;
B () described backup detects after boot starts and performs step (b1) to step (b3), wherein, (b1) digital finger-print verification is carried out to the file that the intended application software in the normal district being stored in storer comprises, (b2) if digital finger-print verifies unsuccessfully, the file that the described intended application software that copy is stored in the backup area of described storer comprises is to the reducing zone of described storer, and (b3) makes described operating system restart after copy completes;
C () automatically starts reduction and detects boot after described operating system is restarted; And
D () described reduction detects after boot starts and performs step (d1) to step (d3), wherein, (d1) check whether described reducing zone exists the application software needing reduction, (d2) when detecting that described reducing zone exists and needs the described intended application software of reduction, restoring operation is carried out to described intended application software, and (d3) starts described destination application after described restoring operation completes.
In addition, a kind of system software backup and reduction device that the embodiment of the present invention provides, is applied to embedded system.Described system software backup and reduction device comprises backup and detects bootstrap module and reduction detection bootstrap module.Wherein, described backup detects bootstrap module for performing step (x1) to (x3), wherein, (x1) digital finger-print verification is carried out to the file that the intended application software in the normal district being stored in storer comprises, (x2) if digital finger-print verifies unsuccessfully, the file that the described intended application software that copy is stored in the backup area of described storer comprises is to the reducing zone of described storer, and (x3) makes operating system restart after copy completes.Described reduction detects bootstrap module for performing step (y1) to step (y3), wherein, (y1) check whether described reducing zone exists the application software needing reduction, (y2) when detecting that described reducing zone exists and needs the described intended application software of reduction, restoring operation is carried out to described intended application software, and (y3) starts described destination application after described restoring operation completes.
As from the foregoing, the embodiment of the present invention can make system reboot when application software fault appears in the system of detecting, carry out self-recoverage and without the need to depot repair, therefore can reduce maintenance cost and cycle, also can improve the stability of system such as embedded LED display screen control system.
By the detailed description below with reference to accompanying drawing, other side of the present invention and feature become obvious.But it should be known that this accompanying drawing is only the object design of explanation, instead of as the restriction of scope of the present invention, this is because it should with reference to additional claim.Should also be appreciated that, unless otherwise noted, unnecessaryly draw accompanying drawing to scale, they only try hard to structure described herein and flow process are described conceptually.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Fig. 1 is the high-level schematic functional block diagram of existing embedded LED display screen control system.
Fig. 2 is the schematic flow sheet of a kind of system software backup and restore method of the preferred embodiment of the present invention.
Fig. 3 is the module diagram of a kind of system software backup and reduction device of the preferred embodiment of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in detail the specific embodiment of the present invention below in conjunction with accompanying drawing.
Refer to Fig. 2, the schematic flow sheet of its a kind of system software backup and restore method provided for the preferred embodiment of the present invention.
As shown in Figure 2, after os starting (step S20), automatically starting backup detects boot (step S21) and reduction detects boot (step S26).The operating system of the present embodiment can be mounted in the operating system in the microprocessor module of embedded system, and be such as arranged on the Windows CE operating system in the arm processor module of embedded LED display screen control system, this is not restricted in the present invention.Preferably, after os starting, backup detects boot and detects boot startup prior to reduction.
Next, on the one hand, backup detection boot optionally carries out step S22, S23, S24 and S25 upon actuation.Be specially: backup detects boot and carries out digital finger-print verification (step S22) to the file that intended application software comprises, the digital finger-print file of the file that the intended application software that such as acquisition is stored in [the normal district] of storer comprises, and the digital finger-print that resolution digital file fingerprint stores in advance to obtain each file, the digital finger-print of each file in the file that the intended application software that calculating is stored in [the normal district] of storer comprises, and each digital finger-print of the digital finger-print of each file calculated and storage in advance is compared, judge digital finger-print verification whether failed (step S23) whereby, if had, file is few or digital finger-print contrast is not identical, then think that the file that the intended application software in [normal district] comprises exists loss or damages, also namely digital finger-print verifies unsuccessfully, otherwise, judge digital finger-print verification succeeds.If judge digital finger-print verification succeeds, then represent that backup detects boot and completes backup detection guiding function; If judge, digital finger-print verifies unsuccessfully, then start backup copy, the file that the intended application software of [backup area] of copy memories comprises is prepared to [reducing zone] (step S24) of storer for the restoring operation of succeeding target application software, and after copy completes, backup detects boot makes operating system restart (step S25) such as autoboot, so far completes backup and detects guiding function.It is worth mentioning that at this, making operating system restart reason is herein due to when backing up detection boot and starting, intended application software may run, if intended application software is in running status during reduction, may causes go back primary failure during reduction owing to taking.In addition, it should be noted that, [the normal district] of the present embodiment refers to the catalogue that intended application software normally runs, and [backup area] refers to the file directory of backup target application software, and [reducing zone] refers to the file directory of restore target application software; Above-mentioned storer is such as the nonvolatile memories such as flash memory; Above-mentioned digital finger-print verification is such as MD5 code check, can certainly be that other digital finger-print based on file content verifies; Above-mentioned intended application software is such as the LED display control software design being installed on embedded OS, but the present invention is not as limit.
On the other hand, reduction detection boot optionally carries out step S27, S28 and S29 upon actuation.Be specially: no matter be after the os starting of step S20 or the operating system of step S25 are restarted, detect after boot starts in reduction and can check whether storer [reducing zone] exists the application software (step S27) needing reduction.If there is no need the application software of reducing, then directly start intended application software (step S29); Such as, such as, otherwise if there is the application software needing reduction, being that [reducing zone] exists intended application software to be restored, then carrying out application software restoring operation (step S28), is carry out restoring operation to intended application software.After completing application software restoring operation, carry out step S29, also namely start intended application software.After startup intended application software, reduction detects boot and namely completes reduction detection guiding function.
In the above-described embodiments, the detection that backup detected and reduce is divided into two software programs and realizes, also likely damage, so one of them can not be relied on completely to complete startup and the detection of whole software because be backed up detection boot with reduction detection boot; And, backup-and-restore is realized respectively by using two software programs, reduction can be made to detect boot can automatically close after completing its work, to reduce the damage that long-play may cause, and the program making backup detect boot is run simple, the associated documents of access are less, to reduce the possibility of damage.
In addition, it is worth mentioning that, with the microprocessor module of embedded system as an example, it generally includes hardware layer, OEM (Original Equipment Manufacturer, original equipment manufacturer) layer, operating system layer and application layer, and above-mentioned backup detects boot and reduction detection boot belongs to application layer software.
Refer to Fig. 3, it is the module diagram of a kind of system software backup and reduction device of the preferred embodiment of the present invention.As shown in Figure 3, the microprocessor module that system software backup and reduction device 30 is such as applied to embedded system is as the arm processor module etc. of embedded LED display screen control system, and it comprises: backup detects bootstrap module 31 and reduction detects bootstrap module 33.In the present embodiment, backup detects bootstrap module 31 and reduction and detects bootstrap module 33 and can backup as shown in Figure 2 detect boot and reduction and detect boot and realize respectively, each step that its concrete function can detect boot with reference to aforesaid backup and reduce performed by detection boot, does not repeat them here.
It is worth mentioning that in addition, the system software backup and restore method of the previous embodiment of the above embodiment of the present invention and device are not limited to and are applied to embedded LED display screen control system, also LCD display control system etc. can be applied to, even be not confined to be applied to embedded system, can be applied to the equipment of the miniature tape operation systems such as microcomputer yet.
In sum, the embodiment of the present invention can make system reboot when application software fault appears in the system of detecting, carry out self-recoverage and without the need to depot repair, therefore can reduce maintenance cost and maintenance cycle, also can improve the stability of system such as embedded LED display screen control system.
So far, apply specific case herein and set forth the principle of system software backup and restore method of the present invention and device and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention; all will change in specific embodiments and applications; in sum, this description should not be construed as limitation of the present invention, and protection scope of the present invention should be as the criterion with appended claim.

Claims (10)

1. a system software backup and restore method, is characterized in that, comprises step:
A after () os starting, automatically starting backup detects boot;
B () described backup detects after boot starts and performs step (b1) to step (b3), wherein, (b1) digital finger-print verification is carried out to the file that the intended application software in the normal district being stored in storer comprises, (b2) if digital finger-print verifies unsuccessfully, the file that the described intended application software that copy is stored in the backup area of described storer comprises is to the reducing zone of described storer, and (b3) makes described operating system restart after copy completes;
C () automatically starts reduction and detects boot after described operating system is restarted; And
D () described reduction detects after boot starts and performs step (d1) to step (d3), wherein, (d1) check whether described reducing zone exists the application software needing reduction, (d2) when detecting that described reducing zone exists and needs the described intended application software of reduction, restoring operation is carried out to described intended application software, and (d3) starts described destination application after described restoring operation completes.
2. the system as claimed in claim 1 application software backup and restore method, is characterized in that, also comprises step:
In step (a), also automatically start described reduction after described os starting and detect boot; And
If digital finger-print verification succeeds, detect boot by described reduction and check described reducing zone starts described destination application when whether existing and need the application software of reduction and do not exist in described reducing zone and need the application software of reduction.
3. the system as claimed in claim 1 application software backup and restore method, is characterized in that, step (b1) comprising:
Obtain the digital finger-print file of file that the described intended application software that is stored in described normal district comprises and resolve described digital finger-print file to obtain the digital finger-print of each file;
The digital finger-print of each file of the file that the described intended application software that calculating is stored in described normal district comprises; And
The digital finger-print of the digital finger-print of each file of described acquisition and described each file calculated is compared to realize the verification of described digital finger-print.
4. the system as claimed in claim 1 application software backup and restore method, is characterized in that, described digital finger-print is verified as MD5 code check.
5. the system as claimed in claim 1 application software backup and restore method, is characterized in that, described intended application software is the LED display control software design being installed on embedded OS.
6. a system software backup and reduction device, is applied to embedded system; It is characterized in that, described system software backup and reduction device comprises:
Backup detects bootstrap module, for performing step (x1) to (x3), wherein, (x1) digital finger-print verification is carried out to the file that the intended application software in the normal district being stored in storer comprises, (x2) if digital finger-print verifies unsuccessfully, the file that the described intended application software that copy is stored in the backup area of described storer comprises is to the reducing zone of described storer, and (x3) makes operating system restart after copy completes; And
Reduction detects bootstrap module, for performing step (y1) to step (y3), wherein, (y1) check whether described reducing zone exists the application software needing reduction, (y2) when detecting that described reducing zone exists and needs the described intended application software of reduction, restoring operation is carried out to described intended application software, and (y3) starts described destination application after described restoring operation completes.
7. system software backup and reduction device as claimed in claim 6, it is characterized in that, described reduction detect bootstrap module also for: if digital finger-print verification succeeds, checking whether described reducing zone exists needs the application software of reduction and does not exist in described reducing zone when needing the application software of reduction to start described destination application.
8. system software backup and reduction device as claimed in claim 6, is characterized in that, described backup detect bootstrap module when carrying out described digital finger-print and verifying specifically for:
Obtain the digital finger-print file of file that the described intended application software that is stored in described normal district comprises and resolve described digital finger-print file to obtain the digital finger-print of each file;
The digital finger-print of each file of the file that the described intended application software that calculating is stored in described normal district comprises; And
The digital finger-print of the digital finger-print of each file of described acquisition and described each file calculated is compared to realize the verification of described digital finger-print.
9. system software backup and reduction device as claimed in claim 6, it is characterized in that, described digital finger-print is verified as MD5 code check.
10. system software backup and reduction device as claimed in claim 6, it is characterized in that, described embedded system is embedded LED display screen control system.
CN201510254505.5A 2015-05-18 2015-05-18 System software backup and reduction method and apparatus Active CN104850472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510254505.5A CN104850472B (en) 2015-05-18 2015-05-18 System software backup and reduction method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510254505.5A CN104850472B (en) 2015-05-18 2015-05-18 System software backup and reduction method and apparatus

Publications (2)

Publication Number Publication Date
CN104850472A true CN104850472A (en) 2015-08-19
CN104850472B CN104850472B (en) 2018-07-20

Family

ID=53850127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510254505.5A Active CN104850472B (en) 2015-05-18 2015-05-18 System software backup and reduction method and apparatus

Country Status (1)

Country Link
CN (1) CN104850472B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083393A (en) * 2019-01-30 2019-08-02 北京品驰医疗设备有限公司 Flash memory and implantable medical device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110231367A1 (en) * 2003-01-22 2011-09-22 Niles Ronald S System and method for backing up data
CN103365766A (en) * 2012-03-31 2013-10-23 京信通信系统(中国)有限公司 Method and system for protecting file integrity
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110231367A1 (en) * 2003-01-22 2011-09-22 Niles Ronald S System and method for backing up data
CN103365766A (en) * 2012-03-31 2013-10-23 京信通信系统(中国)有限公司 Method and system for protecting file integrity
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083393A (en) * 2019-01-30 2019-08-02 北京品驰医疗设备有限公司 Flash memory and implantable medical device

Also Published As

Publication number Publication date
CN104850472B (en) 2018-07-20

Similar Documents

Publication Publication Date Title
JP6291248B2 (en) Firmware upgrade error detection and automatic rollback
CN103116532B (en) Damage in fault from the storehouse embedded software system and recover
US8499295B2 (en) Microcontroller firmware running from RAM and applications of the same
CN106775610B (en) Electronic equipment starting method and electronic equipment
US7900091B2 (en) Method for recovering basic input output system and computer device thereof
CN105302593A (en) Remote upgrade system and method of PowerPC motherboard
US20090271660A1 (en) Motherboard, a method for recovering the bios thereof and a method for booting a computer
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
CN102331958A (en) Method for starting hard disk under Linux system
US7689981B1 (en) Mobile handset with efficient interruption point detection during a multiple-pass update process
WO2015176433A1 (en) Hard disk repairing method and device based on partition table
CN101930384A (en) Fault tolerance method and device for file system
CN104077167A (en) Boot loading method and device based on NAND FLASH
CN103186390A (en) Home gateway and software upgrading method thereof
CN105607972A (en) Abnormity remedying method and device
US20120131318A1 (en) Server and method for performing data recovery of the server
CA2780370A1 (en) Methods and systems for preboot data verification
CN101196839A (en) Data renovation and synchronization process of double-flash read-only memory
CN113254048A (en) Method, device and equipment for updating boot program and computer readable medium
CN102043634B (en) Embedded system and embedded software upgrading method
CN103049343A (en) Method and device for restoring operating system blue screen
CN101526908B (en) Device and method for firmware updating
CN105549985A (en) Method and system for enhancing reliability of Linux application system
US10296517B1 (en) Taking a back-up software agnostic consistent backup during asynchronous replication
US10824517B2 (en) Backup and recovery of configuration files in management device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Nova Nebula Technology Co., Ltd.

Address before: 710075 Qinfengge D District 401, Xi'an Software Park, 68 Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee before: Xian Novastar Electronic Technology Co., Ltd.

CP03 Change of name, title or address