CN103514065A - Electronic device with automatic detection and recovery function and method - Google Patents

Electronic device with automatic detection and recovery function and method Download PDF

Info

Publication number
CN103514065A
CN103514065A CN201210221161.4A CN201210221161A CN103514065A CN 103514065 A CN103514065 A CN 103514065A CN 201210221161 A CN201210221161 A CN 201210221161A CN 103514065 A CN103514065 A CN 103514065A
Authority
CN
China
Prior art keywords
subregion
recovered
image file
boot
user data
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
CN201210221161.4A
Other languages
Chinese (zh)
Other versions
CN103514065B (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.)
Ambit Microsystems Shanghai Ltd
Original Assignee
Ambit Microsystems Shanghai Ltd
Hon Hai Precision Industry 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 Ambit Microsystems Shanghai Ltd, Hon Hai Precision Industry Co Ltd filed Critical Ambit Microsystems Shanghai Ltd
Priority to CN201210221161.4A priority Critical patent/CN103514065B/en
Publication of CN103514065A publication Critical patent/CN103514065A/en
Application granted granted Critical
Publication of CN103514065B publication Critical patent/CN103514065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an electronic device with the automatic detection and recovery function and a method. The electronic device with the automatic detection and recovery function comprises a processing unit and a storage unit, wherein the storage unit comprises a plurality of partitions and an image file partition, the image file partition is used for storing image files corresponding to the partitions, and the processing unit comprises a detection module and a recovery module. In the process of starting of the electronic device, the detection module determines whether the partitions are added to a list of partitions to be recovered by checking information of a guiding loading control module, checking whether one of a guiding loading program and a guiding loading program backup is complete or not, and a kernel program is complete or not, and checking whether system files, user data and caching data can be loaded successfully or not. The recovery module is used for determining the partitions to be recovered according to the list of the partitions to be recovered, obtaining the image files corresponding to the partitions to be recovered, and writing the image files in the corresponding partitions to recover the partitions to be recovered. The invention further provides a method for automatic detection and recovery. The electronic device and the method can automatically detect problems and automatically carry out recovery.

Description

Electronic installation and the method for the automatic detection of tool and restore funcitons
Technical field
The present invention relates to a kind of electronic installation, particularly a kind ofly can start failure or start electronic installation and the method for automatically recovering when abnormal.
Background technology
As everyone knows, adopt the electronic installations such as smart mobile phone, panel computer of Android (Android) system more and more general.Opening and ease for operation due to Android system platform, won vast user's approval.Due to the opening of Android system platform, user is upgrade-system version voluntarily often, yet not professional due to user, often has the thing that upgrading is failed to occur, thereby cause electronic installation to use.In addition, for some reason, for example, system file is destroyed, or data are destroyed, and some function of electronic installation is usually at start equal state in using of a very long time,, be not activated, for example, electronic installation was opened after a very long time, external storage card (for example SD card) is always in card reading status, and cannot read the multimedia file being stored in SD card, or media background service program cannot start, and causes user cannot use audio frequency and video application.At present, reparation electronic installation is because the mode of upgrading failure or appliance boot failure comprises two kinds, first kind of way is before equipment dispatches from the factory, will recover image file (recovery image) to be solidificated in electronic installation, when electronic installation cannot normally start, the AKU that user Ke Jiang manufacturer provides is placed in SD card, then SD is linked and is connected to electronic installation, restart electronic installation, by the shortcut (Hot Key) of pressing in instructions, enter recovery image, read AKU recovery system, yet, no matter which partial function of system goes wrong this kind of mode, all need to use the recovery system of this AKU integral body, the time of recovering required is grown and needs user to participate in.The second way is in the bootload device (Bootloader) of electronic installation, to realize starting fast (fastboot) agreement, and when equipment cannot start, the shortcut (Hot Key) that user can press in instructions enters quick start-up mode.With usb data line, connect devices on computer simultaneously, on computer, needing to be provided with USB drives and Android SDK(software development kit, SDK (Software Development Kit)), then image file manufacturer being provided leaves computer in, by quick startup instrument, image file is sent and is burnt to electronic installation, then according to image file, again recover electronic apparatus system.Yet the risk of this kind of mode is high, need user to have certain technical background knowledge, be not too suitable for domestic consumer.
Summary of the invention
In view of this, the invention provides a kind of electronic installation and method that can automatically detect and recover, can, when the system upgrade failure of electronic installation or the failure of a certain function on, automatically recover.
The electronic installation of the automatic detection of a kind of tool and restore funcitons, comprise a processing unit and a storage unit, this storage unit comprises the partition table subregion of storing the information such as the address of each subregion and content, store the Boot loader subregion of Boot loader, store the Boot loader backup subregion of Boot loader, store the kernel subregion of kernel program, store the boot-loader control module subregion of boot-loader control module, store data cached cache partitions, the user data subregion and the image file subregion that store the system file subregion of system file and store user data.This image file partitioned storage has image file that Boot loader subregion, kernel subregion, cache partitions, system file subregion, user data subregion are corresponding and the concordance list of each image file, this concordance list comprises image file title, storage first address and byte length that image file is corresponding.This processing unit comprises that a detection module and recovers module.This detection module is in electronic installation starting up process, by checking that the information in boot-loader control module subregion determines whether system file subregion to be increased to a partition list to be recovered, by checking that whether complete the determining whether of Boot loader and Boot loader backup is increased to partition list to be recovered by Boot loader subregion or Boot loader backup subregion, by checking that whether complete the determining whether of kernel program is increased to partition list to be recovered by kernel subregion, by check system file success, load and determine whether system file subregion to be increased to partition list to be recovered, by checking that fruit user data success loads, determine whether user data subregion to be increased to partition list to be recovered, and determine whether cache partitions to be increased to partition list to be recovered by checking that data cached success loads, thereby generate the partition list to be recovered after a renewal.The partition list to be recovered that this recovery module is upgraded for obtaining detection module, and judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered, then from image file subregion, read concordance list, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding, this recovery module is also for writing corresponding subregion by image file corresponding to subregion to be recovered, thereby recover this subregion to be recovered, after the subregion that this recovery module also needs having recovered to be recovered, control and start this electronic installation.
The electronic installation of the automatic detection of a kind of tool and restore funcitons, comprise a processing unit and a storage unit, this storage unit comprises stores the address of each subregion and the partition table subregion of content, store the Boot loader subregion of Boot loader, store the Boot loader backup subregion of Boot loader, store the kernel subregion of kernel program, store the boot-loader control module subregion of boot-loader control module, store data cached cache partitions, the user data subregion that stores the system file subregion of system file and store user data, this boot-loader control module can writing information.This storage unit also comprises an image file subregion, this image file partitioned storage has image file that Boot loader subregion, kernel subregion, cache partitions, system file subregion, user data subregion are corresponding and the concordance list of each image file, this concordance list comprises image file title, the address that image file is corresponding and byte length.This processing unit comprises that a detection module and recovers module.This detection module includes a partition list to be recovered, this partition list to be recovered is initially sky, this detection module is for after starting up, detect successively a plurality of key service, and whether detection has key service not start within a schedule time, if judgement has key service not start within this schedule time, if judgement has key service not start within this schedule time, this recovery system order is write to the boot-loader control module in boot-loader control module subregion, and this electronic installation is restarted in control; When this detection module has recovery system order in also boot-loader control module being detected when electronic installation starting up, system file subregion is increased to partition list to be recovered.This recovery module is used for obtaining partition list to be recovered, and judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered, then from image file subregion, read concordance list, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding, this recovery module is also for writing corresponding subregion by image file corresponding to subregion to be recovered, thereby recover this subregion to be recovered, after the subregion that this recovery module also needs having recovered to be recovered, control and start this electronic installation.
Detection and a restoration methods, comprise step: when electronic installation starting up, whether detection of stored has recovery system order in the boot-loader control module of boot-loader control module subregion; If, whether completely system file subregion is increased to the Boot loader backup that then partition list to be recovered detect in Boot loader in Boot loader subregion and Boot loader backup subregion, otherwise whether the Boot loader backup in the Boot loader in direct-detection Boot loader subregion and Boot loader backup subregion is complete; If detecting Boot loader and/or Boot loader backs up imperfect, Boot loader subregion and/or Boot loader backup subregion are increased to partition list to be recovered, whether the kernel program then detecting in kernel subregion is complete, otherwise whether the kernel program in direct-detection kernel subregion is complete; If the kernel program in kernel subregion is imperfect, kernel subregion is increased to partition list to be recovered, then the system file success in detection system partitions of file loads, otherwise whether the system file in direct-detection system file subregion can successfully load; If system file can not successfully load, system file subregion is increased to the user data success detecting in user data subregion and loads after recovering partition list, otherwise the user data success in direct-detection user data subregion loads; If user data can not successfully load, user data subregion is increased to partition list to be recovered, the data cached success that then continues to detect in cache partitions loads, otherwise the data cached success in direct-detection cache partitions loads; If data cached, can not successfully load ,Ze Jiang cache partitions and be increased to partition list to be recovered, thereby generate the partition list to be recovered after a renewal; Obtain the subregion row to be recovered that detection module upgrades; Judge whether this partition list to be recovered is empty; If partition list to be recovered is empty, unlocking electronic device, otherwise, according to this partition list to be recovered, determine subregion to be recovered; From read concordance list from image file subregion, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding; Image file corresponding to subregion to be recovered write to corresponding subregion, thereby recover this subregion to be recovered; Judge whether that needing to recover subregion does not recover, and when judging that not needing to be recovered subregion does not recover, start this electronic installation.
Detection and a restoration methods, comprise step: after starting up, detect successively a plurality of key service, and whether detection has within a schedule time key service not start; If judgement has key service not start within this schedule time, this recovery system order is write to the boot-loader control module in boot-loader control module subregion, and this electronic installation is restarted in control; While having recovery system order boot-loader control module detected when electronic installation starting up in, system file subregion is increased to partition list to be recovered; Obtain partition list to be recovered; Judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered; From image file subregion, read concordance list, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding; Image file corresponding to subregion to be recovered write to corresponding subregion, thereby recover this subregion to be recovered.
Electronic installation and the method for the automatic detection of tool of the present invention and restore funcitons, can automatically detect the startup item/functional software of problem and recover voluntarily.
Accompanying drawing explanation
Fig. 1 is that in first embodiment of the invention, tool automatically detects and the functional block diagram of the electronic installation of restore funcitons.
Fig. 2 is that in first embodiment of the invention, tool automatically detects and the subregion schematic diagram of the storage unit of the electronic installation of restore funcitons.
Fig. 3 is the process flow diagram of the automatic testing method in electronic installation starting up process in first embodiment of the invention.
Fig. 4 is the concordance list schematic diagram of each image file of image file section post storage in first embodiment of the invention.
Fig. 5 is the process flow diagram of the automatic recovery method of electronic installation in first embodiment of the invention.
Fig. 6 is in first embodiment of the invention, to be the process flow diagram to the detection method of each key service after starting up.
Fig. 7 is the method flow diagram of user data automated back-up in first embodiment of the invention.
Main element symbol description
Electronic installation 100
Processing unit 1
Storage unit 2
Detection module 10
Recover module 11
Backup module 12
Partition table subregion 20
Boot loader subregion 21
Boot loader backup subregion 22
Kernel subregion 23
Boot-loader control module subregion 24
Cache partitions 25
System file subregion 26
User data subregion 27
Image file subregion 28
Step S401-S413,S601-S607,S701-S704,S801-S804
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
See also Fig. 1-3, a kind of tool automatically detect and the electronic installation 100(of restore funcitons hereinafter referred to as electronic installation 100) comprise a processing unit 1 and storage unit 2.Wherein, processing unit 1 comprises detection module 10 and recovers module 11.Wherein, this electronic installation 100 is for having the electronic installation of Android operating system.
As shown in Figure 2, storage unit 2 minutes is for a plurality of subregions, comprise partition table subregion 20, Boot loader (bootloader) subregion 21, Boot loader backup (bootloader backup) subregion 22, kernel (Kernel) subregion 23, boot-loader control module (boot loader control block, BCB) subregion 24, cache partitions 25, system file subregion 26, user data subregion 27 and image file subregion 28.Wherein, this storage unit 2 is ROM (read-only memory) (ROM), and the subregion of this storage unit 2 is divided before electronic installation 100 dispatches from the factory by manufacturer.
Wherein, partition table subregion 20 is for storing the information such as the address of each subregion and content.Boot loader subregion 21 stores Boot loader, for the initialization startup of Android system.Boot loader backup subregion 22 is for storing the Backup Data of Boot loader, the Boot loader of this Backup Data and 21 storages of Boot loader subregion is in full accord, thereby when Boot loader is destroyed, can carry out initialization startup by the backup of Boot loader.Boot-loader control module subregion 24 is for storing a boot-loader control module.Cache partitions 25 is for memory buffers data.System file subregion 26 is for storage system file, for example Android system file.User data subregion 27 is used each application program of this electronic installation 100 to produce data for storing user, such as note, call record etc.
Image file subregion 28 is for storing this Boot loader subregion 21, kernel subregion 23, cache partitions 25, system file subregion 26 and the corresponding image file of user data subregion 27.
See also Fig. 3, Fig. 3 is the schematic diagram of the automatic testing method in electronic installation 100 starting up's processes.First, when electronic installation starting up, detection module 10 reads the information (S401) in boot-loader control module subregion 24.
Whether detection module 10 detection of stored have recovery system order (S402) in the boot-loader control module of boot-loader control module subregion 24.
If, detection module 10 is increased to a partition list to be recovered (S403) by system file subregion 26, otherwise detection module 10 continues to detect non-this and starts Boot loader in the Boot loader subregion 21 of use or the Boot loader backup in Boot loader backup subregion 22 whether complete (S404).Wherein, this partition list to be recovered is pre-stored within this detection module 10, and when initial, partition list to be recovered be sky.Wherein, during electronic installation starting up, one of them in only can backing up with this Boot loader and Boot loader starts, and another, i.e. it is detected object that non-this initialization starts loading formula used.
If it is imperfect non-Boot loader or Boot loader backup that this starts use to be detected, detection module 10 is increased to partition list to be recovered (S405) by non-Boot loader subregion or Boot loader backup subregion that this starts use, otherwise detection module 10 continues to detect the kernel program whether complete (S406) in kernel subregion 23.
If the kernel program in kernel subregion 23 is imperfect, detection module 10 is increased to partition list to be recovered (S407) by kernel subregion 23, otherwise the system file success that detection module 10 continues in detection system partitions of file 26 loads (S408).
If system file can not successfully load, detection module 10 is increased to partition list to be recovered (S409) by system file subregion 26, otherwise the user data success that detection module 10 continues to detect in user data subregion 27 loads (S410).
If user data can not successfully load, detection module 10 is increased to partition list to be recovered (S411) by user data subregion 27, otherwise the data cached success that detection module 10 continues to detect in cache partitions 25 loads (S412).
If data cached, can not successfully load, detection module 10Jiang cache partitions 25 is increased to partition list to be recovered (S413).
Wherein, the success such as detection module 10 detection system files, user data load, for the mode by mount detects, owing to being prior art, therefore do not repeat at this.
Obviously, as shown in Figure 3, when detection module 10, a certain subregion is being increased to after recovering partition list, is continuing to detect the data of next subregion.
Thereby, in electronic installation 100 starting up's processes, detection module 10 determines whether system file subregion 26 to be increased to partition list to be recovered by checking the information in boot-loader control module subregion 24, by checking that whether complete the determining whether of Boot loader and Boot loader backup is increased to partition list to be recovered by Boot loader subregion 21 or Boot loader backup subregion 22, by checking that whether complete the determining whether of kernel program is increased to partition list to be recovered by kernel subregion 23, by check system file success, load and determine whether system file subregion 26 to be increased to partition list to be recovered, by checking that fruit user data success loads, determine whether user data subregion 27 to be increased to partition list to be recovered, and determine whether cache partitions 25 to be increased to partition list to be recovered by checking that data cached success loads.Thereby generate a final partition list to be recovered.
See also Fig. 4-5.Image file subregion 29 also stores the concordance list of each image file, and Fig. 4 is the concordance list schematic diagram of each image file that image file subregion 29 stores.This concordance list comprises image file title, storage first address and byte length that image file is corresponding.In the present embodiment, each subregion the is corresponding title of image file and the title of subregion are consistent.
As shown in Figure 5, be the schematic diagram of the automatic recovery method in electronic installation 100 starting up's processes, first, recover module 11 and obtain the partition list to be recovered (S601) that detection module 10 upgrades.
Then, recover module 11 and judge whether this partition list to be recovered is empty (S602).
Empty if, step jumps to step S607, otherwise, recover module 11 and determine subregion (S603) to be recovered according to this partition list to be recovered.
Recover module 11 from read concordance list from image file subregion, according to concordance list, determine address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding (S604).
Recover module 11 image file corresponding to subregion to be recovered write to corresponding subregion, thereby recover this subregion to be recovered (S605).
Recover module 11 and judge whether that needing to recover subregion does not recover (S606).
If had, step is back to step S604, otherwise starts this electronic installation 100(S607).
Obviously, when this recovers module 11 when recovering those subregions, can control the process that display screen (not shown) shows this recovery simultaneously.
Seeing also Fig. 6, is the detection method schematic diagram to each key service after electronic installation 100 starting up.Wherein, the required necessary service of electronic installation that each key service is system default 100 work, the management service of SD card for example, media background service etc.
After starting up, detection module 10 also within a schedule time (for example, in two minutes) detect successively each key service and whether successfully start, and generate corresponding testing result (S701).Wherein, be less than this schedule time the detection time of all key service, detection module 10 detects corresponding key service and successfully starts and generate successfully the testing result starting, otherwise generate, starts failed testing result.
Then, detection module 10 has judged whether that according to testing result key service starts unsuccessfully (S702) after all key service detect.
If all key service start successfully, flow process finishes, if there is key service to start unsuccessfully, detection module 10 continues to judge whether detection time is less than this schedule time (S703).
If whether detection time is less than this schedule time, flow process is returned to step S701, otherwise detection module 10 writes the boot-loader control module in boot-loader control module subregion 24 by this recovery system order, and this electronic installation 100(S704 is restarted in control).
Obviously, after electronic installation 100 is restarted, as previously mentioned, in the start-up course of electronic installation 100, owing to there being recovery system order in boot-loader control module, detection module 10 is increased to partition list to be recovered by system file subregion 26, thereby by system file subregion is recovered to repair this, at least one starts overtime functional software by the automatic recovery method of aforesaid electronic installation 100.
In other embodiments, this detection module 10 judges while having at least one key service not start in the given time, system file subregion is increased to partition list to be recovered, and electronic installation 100 is restarted in control, in the start-up course of electronic installation 100, this detection module does not detect other subregions.Thereby recover module 11 and obtain partition list to be recovered, according to this partition list to be recovered, determine that subregion to be recovered is system file subregion 26, then obtain the image file of system file subregion 26 correspondences, by image file writing system partitions of file 26 corresponding to system file subregion, thereby recover this system file subregion 26, then control and start this electronic installation 100.Thereby, complete can not starting problem to some or a plurality of key service recovery.
See also Fig. 7, in present embodiment, the method flow diagram of user data automated back-up.Wherein, this processing unit 1 also comprises a backup module 12, this backup module 12 for example, detects whether there is data transmission (S801) at interval of the schedule time (half an hour), wherein, this output transmission comprises usb data transmission, and the Wireless Data Transmission being undertaken by networks such as bluetooth, wifi and GSM, CDMA.
If judgement has data transmission, flow process finishes, otherwise backup module 12 continues to judge that whether display screen (not shown) is in locking/sleep state (S802).
If display screen is not in the lock state, illustrate that user is using this electronic installation 100, flow process finishes, otherwise whether the data that backup module 12 continues relatively to judge the image file that in user data in user data subregion and image file subregion, this user data subregion is corresponding consistent (S803).
If consistent, flow process finishes, otherwise backup module 12 is the user data (S804) in this user data subregion by the Data Update of the image file that in this image file subregion, this user data subregion is corresponding.That is, backup module 12 is consistent the data of the image file that in image file subregion, this user data subregion is corresponding and the user data in user data subregion.
Thereby this data backup can be carried out in the idle stage (not operated the stage of use by user) at electronic installation 100, does not affect the usability of electronic installation 100.
Obviously, in the present invention, this storage unit 2 also comprises a media file subregion 28, this detection module 10 also can be after having detected cache partitions 25 when starting up, continue to detect this media file subregion 28, this image file subregion 29 comprises the image file of media file subregion 28 equally, and when finding that media file loads unsuccessfully, the image file corresponding by media file recovers media file subregion 28.
Electronic installation and the method for the automatic detection of tool of the present invention and restore funcitons, can automatically detect the startup item/functional software of problem and recover voluntarily.

Claims (13)

1. a tool detects and the electronic installation of restore funcitons automatically, comprise a processing unit and a storage unit, this storage unit comprises stores the address of each subregion and the partition table subregion of content, store the Boot loader subregion of Boot loader, store the Boot loader backup subregion of Boot loader, store the kernel subregion of kernel program, store the boot-loader control module subregion of boot-loader control module, store data cached cache partitions, the user data subregion that stores the system file subregion of system file and store user data, this boot-loader control module can writing information, it is characterized in that:
This storage unit also comprises an image file subregion, this image file partitioned storage has image file that Boot loader subregion, kernel subregion, cache partitions, system file subregion, user data subregion are corresponding and the concordance list of each image file, this concordance list comprises image file title, the address that image file is corresponding and byte length;
This processing unit comprises:
One detection module, include a partition list to be recovered, this partition list to be recovered is initially sky, this detection module is in electronic installation starting up process, by the information in the boot-loader control module of inspection boot-loader control module subregion, determine whether system file subregion to be increased to a partition list to be recovered, by checking that Boot loader or whether complete the determining whether of Boot loader backup of non-startup use is increased to partition list to be recovered by the Boot loader subregion of non-startup use or Boot loader backup subregion, by checking that whether complete the determining whether of kernel program is increased to partition list to be recovered by kernel subregion, by check system file success, load and determine whether system file subregion to be increased to partition list to be recovered, by checking that fruit user data success loads, determine whether user data subregion to be increased to partition list to be recovered, and determine whether cache partitions to be increased to partition list to be recovered by checking that data cached success loads, thereby generate the partition list to be recovered after a renewal,
One recovers module, the partition list to be recovered of upgrading for obtaining detection module, and judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered, then from image file subregion, read concordance list, according to concordance list, determine address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding, this recovery module is also for writing corresponding subregion by image file corresponding to subregion to be recovered, thereby recover this subregion to be recovered, after the subregion that this recovery module also needs having recovered to be recovered, control and start this electronic installation.
2. tool as claimed in claim 1 automatically detects and the electronic installation of restore funcitons, it is characterized in that, described detection module is also for after starting up, detect successively a plurality of key service, and whether detection has key service not start within a schedule time, if judgement has key service not start within this schedule time, detection module writes the boot-loader control module in boot-loader control module subregion by this recovery system order, and this electronic installation is restarted in control.
3. tool as claimed in claim 1 automatically detects and the electronic installation of restore funcitons, it is characterized in that, when detection module detects and has recovery system order in boot-loader control module, system file subregion is increased to partition list to be recovered; Detection module detects and checks when Boot loader, Boot loader backup or kernel program are imperfect, and Boot loader subregion, Boot loader backup subregion or kernel subregion are increased to partition list to be recovered; Detection module, when detection system file, user data and data cached can not successfully loading, is increased to partition list to be recovered by system file subregion, user data subregion or cache partitions.
4. tool as claimed in claim 1 automatically detects and the electronic installation of restore funcitons, it is characterized in that, this processing unit also comprises a backup module, this backup module is for after opening at electronic installation, at interval of the schedule time, detect whether there is data transmission, if judgement is without data transmission, backup module continues to judge that whether display screen is in locking/sleep state, if display screen is in the lock state, backup module continues relatively to judge that whether the data of the image file that in user data in user data subregion and image file subregion, this user data subregion is corresponding are consistent, backup module at comparative result while being inconsistent, by the Data Update of the image file that in this image file subregion, this user data subregion is corresponding, it is the user data in this user data subregion.
5. the electronic installation of the automatic detection of tool as claimed in claim 4 and restore funcitons, is characterized in that, this data transmission comprises usb data transmission, and the Wireless Data Transmission being undertaken by bluetooth, wifi, GSM or cdma network.
6. a tool detects and the electronic installation of restore funcitons automatically, comprise a processing unit and a storage unit, this storage unit comprises stores the address of each subregion and the partition table subregion of content, store the Boot loader subregion of Boot loader, store the Boot loader backup subregion of Boot loader, store the kernel subregion of kernel program, store the boot-loader control module subregion of boot-loader control module, store data cached cache partitions, the user data subregion that stores the system file subregion of system file and store user data, this boot-loader control module can writing information, it is characterized in that:
This storage unit also comprises an image file subregion, this image file partitioned storage has image file that Boot loader subregion, kernel subregion, cache partitions, system file subregion, user data subregion are corresponding and the concordance list of each image file, this concordance list comprises image file title, the address that image file is corresponding and byte length;
This processing unit comprises:
One detection module, include a partition list to be recovered, this partition list to be recovered is initially sky, this detection module is for after starting up, detect successively a plurality of key service, and whether detection has key service not start within a schedule time, detection module writes the boot-loader control module in boot-loader control module subregion by this recovery system order, and this electronic installation is restarted in control, wherein, when this detection module has recovery system order in also boot-loader control module being detected when electronic installation starting up, system file subregion is increased to partition list to be recovered,
One recovers module, be used for obtaining partition list to be recovered, and judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered, then from image file subregion, read concordance list, according to concordance list, determine address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding, this recovery module is also for writing corresponding subregion by image file corresponding to subregion to be recovered, thereby recover this subregion to be recovered, after the subregion that this recovery module also needs having recovered to be recovered, control and start this electronic installation.
7. tool as claimed in claim 6 automatically detects and the electronic installation of restore funcitons, it is characterized in that, this processing unit also comprises a backup module, this backup module is for after opening at electronic installation, at interval of the schedule time, detect whether there is data transmission, if judgement is without data transmission, backup module continues to judge that whether display screen is in locking/sleep state, if display screen is in the lock state, backup module continues relatively to judge that whether the data of the image file that in user data in user data subregion and image file subregion, this user data subregion is corresponding are consistent, backup module at comparative result while being inconsistent, by the Data Update of the image file that in this image file subregion, this user data subregion is corresponding, it is the user data in this user data subregion.
8. the electronic installation of the automatic detection of tool as claimed in claim 7 and restore funcitons, is characterized in that, this data transmission comprises usb data transmission, and the Wireless Data Transmission being undertaken by bluetooth, wifi, GSM or cdma network.
9. automatically detect and a restoration methods, for electronic installation as claimed in claim 1, it is characterized in that, the method comprising the steps of:
When electronic installation starting up, whether detection of stored has recovery system order in the boot-loader control module of boot-loader control module subregion;
If, whether completely system file subregion is increased to the Boot loader backup that then partition list to be recovered detect in Boot loader in Boot loader subregion and Boot loader backup subregion, otherwise whether the Boot loader backup in the Boot loader in direct-detection Boot loader subregion and Boot loader backup subregion is complete;
If detecting Boot loader and/or Boot loader backs up imperfect, Boot loader subregion and/or Boot loader backup subregion are increased to partition list to be recovered, whether the kernel program then detecting in kernel subregion is complete, otherwise whether the kernel program in direct-detection kernel subregion is complete;
If the kernel program in kernel subregion is imperfect, kernel subregion is increased to partition list to be recovered, then the system file success in detection system partitions of file loads, otherwise the system file success in direct-detection system file subregion loads;
If system file can not successfully load, system file subregion is increased to the user data success detecting in user data subregion and loads after recovering partition list, otherwise the user data success in direct-detection user data subregion loads;
If user data can not successfully load, user data subregion is increased to partition list to be recovered, the data cached success that then continues to detect in cache partitions loads, otherwise the data cached success in direct-detection cache partitions loads;
If data cached, can not successfully load ,Ze Jiang cache partitions and be increased to partition list to be recovered, thereby generate the partition list to be recovered after a renewal;
Obtain the subregion row to be recovered that detection module upgrades;
Judge whether this partition list to be recovered is empty;
If partition list to be recovered is empty, unlocking electronic device, otherwise, according to this partition list to be recovered, determine subregion to be recovered;
From read concordance list from image file subregion, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding;
Image file corresponding to subregion to be recovered write to corresponding subregion, thereby recover this subregion to be recovered;
Judge whether that needing to recover subregion does not recover, and when judging that not needing to be recovered subregion does not recover, start this electronic installation.
10. automatic detection as claimed in claim 9 and restoration methods, is characterized in that, described method also comprises step:
Detect successively a plurality of key service, and whether detection there is within a schedule time key service not start;
If judgement has key service not start within this schedule time, detection module writes the boot-loader control module in boot-loader control module subregion by this recovery system order; And
This electronic installation is restarted in control.
11. automatic detection as claimed in claim 9 and restoration methods, is characterized in that, the method also comprises step:
After electronic installation is opened, at interval of the schedule time, detect whether there is data transmission;
If judgement without data transmission, continues to judge that whether display screen is in locking/sleep state;
If display screen is in the lock state, backup module continues relatively to judge that whether the data of the image file that in user data in user data subregion and image file subregion, this user data subregion is corresponding are consistent;
At comparative result, while being inconsistent, by the Data Update of the image file that in this image file subregion, this user data subregion is corresponding, be the user data in this user data subregion.
12. 1 kinds are detected and restoration methods automatically, and for electronic installation as claimed in claim 6, the method comprising the steps of:
After starting up, detect successively a plurality of key service, and whether detection there is within a schedule time key service not start;
If judgement has key service not start within this schedule time, this recovery system order is write to the boot-loader control module in boot-loader control module subregion, and this electronic installation is restarted in control;
While having recovery system order boot-loader control module detected when electronic installation starting up in, system file subregion is increased to partition list to be recovered;
Obtain partition list to be recovered;
Judge when recovering partition list not for sky, according to this partition list to be recovered, determine subregion to be recovered;
From image file subregion, read concordance list, according to concordance list, determine storage first address and the byte length of the image file that subregion to be recovered is corresponding, thereby obtain the image file that subregion to be recovered is corresponding;
Image file corresponding to subregion to be recovered write to corresponding subregion, thereby recover this subregion to be recovered.
13. automatic detection as claimed in claim 11 and restoration methods, is characterized in that, the method also comprises step:
After electronic installation is opened, at interval of the schedule time, detect whether there is data transmission;
If judgement without data transmission, continues to judge that whether display screen is in locking/sleep state;
If display screen is in the lock state, backup module continues relatively to judge that whether the data of the image file that in user data in user data subregion and image file subregion, this user data subregion is corresponding are consistent;
At comparative result, while being inconsistent, by the Data Update of the image file that in this image file subregion, this user data subregion is corresponding, be the user data in this user data subregion.
CN201210221161.4A 2012-06-29 2012-06-29 Tool automatically detects and recovers electronic installation and the method for function Active CN103514065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210221161.4A CN103514065B (en) 2012-06-29 2012-06-29 Tool automatically detects and recovers electronic installation and the method for function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210221161.4A CN103514065B (en) 2012-06-29 2012-06-29 Tool automatically detects and recovers electronic installation and the method for function

Publications (2)

Publication Number Publication Date
CN103514065A true CN103514065A (en) 2014-01-15
CN103514065B CN103514065B (en) 2016-08-10

Family

ID=49896830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210221161.4A Active CN103514065B (en) 2012-06-29 2012-06-29 Tool automatically detects and recovers electronic installation and the method for function

Country Status (1)

Country Link
CN (1) CN103514065B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal
CN104679554A (en) * 2014-12-26 2015-06-03 苏州佳世达电通有限公司 Operating system updating method
CN104850472A (en) * 2015-05-18 2015-08-19 西安诺瓦电子科技有限公司 Method and device for restoring backup of system application software
CN104932908A (en) * 2014-03-18 2015-09-23 珠海全志科技股份有限公司 Flash method and flash system
WO2016062080A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 Profile protecting method and device, and storage medium
CN107357682A (en) * 2017-06-27 2017-11-17 苏州蜗牛数字科技股份有限公司 A kind of method and device for recovering to go back original system
CN109358864A (en) * 2018-12-13 2019-02-19 晶晨半导体(上海)股份有限公司 Method for upgrading system and device
CN109408282A (en) * 2018-08-31 2019-03-01 深圳市有方科技股份有限公司 Application Backup restoration methods, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818869A (en) * 2006-03-15 2006-08-16 浙江大学 Mirror starting optimization of built-in operation system
CN1825283A (en) * 2006-03-31 2006-08-30 浙江大学 Method for implementing hardware image starting optimizing of embedded operating system
US20090249120A1 (en) * 2008-03-27 2009-10-01 Jiewen Yao Remote firmware recovery
US20120054540A1 (en) * 2010-08-25 2012-03-01 Smartsynch, Inc. System and method for automated unattended recovery for remotely deployed intelligent communication devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818869A (en) * 2006-03-15 2006-08-16 浙江大学 Mirror starting optimization of built-in operation system
CN1825283A (en) * 2006-03-31 2006-08-30 浙江大学 Method for implementing hardware image starting optimizing of embedded operating system
US20090249120A1 (en) * 2008-03-27 2009-10-01 Jiewen Yao Remote firmware recovery
US20120054540A1 (en) * 2010-08-25 2012-03-01 Smartsynch, Inc. System and method for automated unattended recovery for remotely deployed intelligent communication devices

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932908B (en) * 2014-03-18 2018-08-28 珠海全志科技股份有限公司 Brush machine method and system
CN104932908A (en) * 2014-03-18 2015-09-23 珠海全志科技股份有限公司 Flash method and flash system
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal
CN104298618B (en) * 2014-09-10 2018-03-13 青岛海信移动通信技术股份有限公司 The command handling method and device of a kind of intelligent terminal
WO2016062080A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 Profile protecting method and device, and storage medium
CN104679554B (en) * 2014-12-26 2018-04-17 苏州佳世达电通有限公司 Operating system update method
CN104679554A (en) * 2014-12-26 2015-06-03 苏州佳世达电通有限公司 Operating system updating method
CN104850472B (en) * 2015-05-18 2018-07-20 西安诺瓦电子科技有限公司 System software backup and reduction method and apparatus
CN104850472A (en) * 2015-05-18 2015-08-19 西安诺瓦电子科技有限公司 Method and device for restoring backup of system application software
CN107357682A (en) * 2017-06-27 2017-11-17 苏州蜗牛数字科技股份有限公司 A kind of method and device for recovering to go back original system
CN109408282A (en) * 2018-08-31 2019-03-01 深圳市有方科技股份有限公司 Application Backup restoration methods, equipment and computer readable storage medium
CN109408282B (en) * 2018-08-31 2022-05-27 深圳市有方科技股份有限公司 Application program backup recovery method and device and computer readable storage medium
CN109358864A (en) * 2018-12-13 2019-02-19 晶晨半导体(上海)股份有限公司 Method for upgrading system and device

Also Published As

Publication number Publication date
CN103514065B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN103514065A (en) Electronic device with automatic detection and recovery function and method
CN101436138B (en) Control device and control method for software upgrade and dynamic rolling back
CN105094927B (en) A kind of device firmware upgrade method and apparatus
US20140310698A1 (en) Apparatus and method for upgrading firmware of mobile terminal
CN105094903A (en) Method and device for upgrading firmware
KR101143679B1 (en) Automated firmware recovery
CN103150231A (en) Computer booting method and computer system
CN104834575A (en) Firmware recovery method and device
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
CN101930372A (en) System and method for updating programs
JP3629517B2 (en) A boot device switching method for an information processing apparatus.
US20080184073A1 (en) Power on self test method
CN106649098A (en) Method and device for achieving version-release-software debugging on terminal device
CN102609290B (en) The method for upgrading software of electronic product
CN100395713C (en) Method of automatic repairing basic input output system element and module
US8176309B2 (en) Boot system has BIOS that reads rescue operating system from memory device via input/output chip based on detecting a temperature of a hard disk
CN102043634B (en) Embedded system and embedded software upgrading method
CN102122258A (en) Method for repairing damaged embedded equipment file system
CN104866397A (en) Computer System And Control Method
CN113032183A (en) System management method, device, computer equipment and storage medium
CN112015587B (en) Method and device for enhancing reliability of operating system
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN114237722A (en) System starting method, device, equipment and engineering vehicle
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180226

Address after: Shanghai City, Songjiang Export Processing Zone South Road No. 1925

Patentee after: Ambit Microsystems (Shanghai) Co., Ltd.

Address before: 201613 Shanghai City, Songjiang District Songjiang Export Processing Zone South Road No. 1925

Co-patentee before: Hon Hai Precision Industry Co., Ltd.

Patentee before: Ambit Microsystems (Shanghai) Co., Ltd.

TR01 Transfer of patent right