[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104424047A - NVRAM data recovery method and NVRAM data recovery device - Google Patents

NVRAM data recovery method and NVRAM data recovery device Download PDF

Info

Publication number
CN104424047A
CN104424047A CN201310364271.0A CN201310364271A CN104424047A CN 104424047 A CN104424047 A CN 104424047A CN 201310364271 A CN201310364271 A CN 201310364271A CN 104424047 A CN104424047 A CN 104424047A
Authority
CN
China
Prior art keywords
nvram
configuration parameter
bios configuration
write
default value
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
CN201310364271.0A
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.)
SHENZHEN YANXIANGTONG SOFTWARE Co Ltd
EVOC Intelligent Technology Co Ltd
Original Assignee
SHENZHEN YANXIANGTONG SOFTWARE Co Ltd
EVOC Intelligent 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 SHENZHEN YANXIANGTONG SOFTWARE Co Ltd, EVOC Intelligent Technology Co Ltd filed Critical SHENZHEN YANXIANGTONG SOFTWARE Co Ltd
Priority to CN201310364271.0A priority Critical patent/CN104424047A/en
Publication of CN104424047A publication Critical patent/CN104424047A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an NVRAM (Non-Volatile Random Access Memory) data recovery method and an NVRAM data recovery device. The device comprises a data obtaining unit, an unlocking unit, an erasing unit, a write-in unit and a locking unit. The method comprises the following steps that: 1, when a recovery instruction is received, an NVRAM factory default of a terminal is read; 2, the read-write property of the NVRAM is set to be readable and writable; 3, current BIOS (Basic Input/Output System) configuration parameters stored in the NVRAM are erased; 4, if the erasing is successful, the read NVRAM default is written into a region, for storing the current BIOS configuration parameters, in the NVRAM; and 5, the read-write property of the NVRAM is set to be read-only. A terminal user is allowed to determine whether to clear the current BIOS configuration parameters stored in the NVRAM or not according to the actual demands; the NVRAM factory default of the terminal is loaded; the operation is simple; the efficiency is high; and the cost expenditure and the labor cost are reduced for both the terminal user and a manufacturer.

Description

A kind of nvram data restoration methods and device
Technical field
The present invention relates to computer realm, more particularly, relate to a kind of nvram data restoration methods and device.
Background technology
At POST(Power On Self-Test after computer booting, power-on self-test) phase user be by entering interface---BIOS(Basic Input & OutputSystem, the Basic Input or Output System (BIOS) of man-machine interaction by specific hot key (such as F2)) configuration menu.In BIOS configuration menu, user can revise the hardware parameter (such as clocked memory, processor frequency multiplication, processor check figure, main display device type, guiding device order etc.) of current computer according to the actual requirements, and then makes an amendment by specific hot key (such as F10) preservation institute and exit BIOS configuration menu.After system reboot, newly-installed hardware parameter will be enabled.
Traditional BIOS is stored in the parameter of user's amendment by RTC(Real Time Clock, real-time clock) in battery powered CMOS, when user arrange mistake cause system not start shooting or other dysfunction time, by two stitch specific on hardware jumper short circuit mainboard or mainboard RTC battery can be pulled out, realize removing user is arranged in CMOS parameter and load the default value of CMOS when machine dispatches from the factory, solve cause because user arranges mistake cannot the problem of normal boot-strap.
UEFI(Unified Extensible Firmware Interface, unified Extensible Firmware Interface) as Firmware Interface specification of new generation, instead of traditional BIOS gradually with a kind of brand-new BIOS framework.Under UEFI framework, the hardware parameter of the overwhelming majority is stored in NVRAM(Non-Volatile RandomAccess Memory, nonvolatile random access memory) in.NVRAM is specific one section of region in the Flash chip (Flash chip of this storage BIOS content is also referred to as BIOS chip usually) of storage BIOS content, is do not need RTC battery powered.When terminal user have modified BIOS option, amended parameter will be stored in NVRAM.For some important parameters of hardware, such as clocked memory, CPU frequency, main display device type etc., once the amendment of terminal user makes mistakes, will cause system can not normal boot-strap, start can not normally show or keyboard/mouse such as can not to use at the serious problems.Because NVRAM does not need the battery powered nonvolatile memory of RTC, traditional mistake cannot removed in NVRAM by hardware jumper or the method for pulling out the clear CMOS of mainboard RTC battery is arranged.
When there is above-mentioned condition, common processing mode allows user that the computing machine gone wrong is returned manufacturer, by the professional of manufacturer, BIOS chip is taken off, by BIOS cd-rom recorder again burning BIOS, and then BIOS chips welding on mainboard, finally again the computing machine fixed is posted and return user.No matter this is to manufacturer or user, is all that a trouble, length consuming time, efficiency are low, the thing of wasting manpower and material resources.
Summary of the invention
The present invention is directed to the above-mentioned defect of prior art, provide a kind of nvram data restoration methods and device, can, when receiving recovery instruction, be the data of correct configuration by the date restoring in NVRAM automatically.
The technical scheme that the present invention solves the employing of its technical matters is: provide a kind of nonvolatile random access memory (NVRAM) data reconstruction method, comprise the following steps:
If S1 receives recovery instruction, then NVRAM default value when reading terminals is dispatched from the factory;
S2, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S3, erasing NVRAM;
If S4 wipes successfully, then will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
S5, the read-write properties arranging NVRAM are read-only.
Preferably, nvram data restoration methods of the present invention is further comprising the steps of:
S6, between step S1 and S2, the NVRAM default value of reading to be saved between the first memory field.
Preferably, nvram data restoration methods of the present invention is further comprising the steps of:
S7, between step S4 and S5, judge to write in NVRAM the NVRAM default value storing the region of current BIOS configuration parameter whether identical with the NVRAM default value be stored in described first memory field, if then perform step S5, then perform S3 if not.
Preferably, step S1 comprises following sub-step:
If S11 receives recovery instruction, then the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup, if then perform step S13, then performs step S12 if not;
NVRAM default value when S12, reading terminals are dispatched from the factory, performs step S3;
S13, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S14, erasing NVRAM;
If S15 wipes successfully, then by storing the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM, perform step S5.
Preferably, step S1 also comprises following sub-step:
If S16 has backed up the last normal BIOS configuration parameter stored in NVRAM when starting, then, between step S11 and S13, the BIOS configuration parameter of backup is saved in the second memory headroom.
Preferably, sub-step S15 comprises following secondary sub-step:
If S151 wipes successfully, then will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM;
S152, whether with the BIOS configuration parameter that be stored in described second memory field in identical, if then perform step S5, then perform S14 if not if judging to write in NVRAM the BIOS configuration parameter storing the region of current BIOS configuration parameter.
A kind of nonvolatile random access memory (NVRAM) Data Recapture Unit is provided, comprises:
Data capture unit, for when receiving recovery instruction, NVRAM default value when reading terminals is dispatched from the factory;
Separating lock unit, is readable writing for arranging the read-write properties of NVRAM;
Erase unit, for wiping the current BIOS configuration parameter stored in NVRAM;
Writing unit, when the current BIOS configuration parameter for storing in described erase unit erasing NVRAM is successful, will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
Upper lock unit is read-only for arranging the read-write properties of NVRAM.
Preferably, nvram data recovery device of the present invention, also comprises:
Store performance element, for being saved between the first memory field by the NVRAM default value of reading;
Whether verification unit is identical with the NVRAM default value be stored in described first memory field for judging to write the NVRAM default value storing the region of current BIOS configuration parameter in NVRAM.
Preferably, described data capture unit comprises:
Judge module, for when receiving recovery instruction, the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup;
Default value acquisition module, during the BIOS configuration parameter stored in NVRAM during for once normally starting on not backing up, NVRAM default value when reading terminals is dispatched from the factory;
Unlocked state, during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the read-write properties arranging NVRAM are readable writing;
Erasing module, for wiping the current BIOS configuration parameter stored in NVRAM;
Writing module, when the current BIOS configuration parameter for storing in described erasing module erases NVRAM is successful, will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM.
Preferably, described data capture unit also comprises:
Storing execution module, during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the BIOS configuration parameter of backup being saved in the second memory headroom;
Said write module comprises:
Write submodule, if when the current BIOS configuration parameter for storing in described erasing module erases NVRAM is successful, will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM;
Whether syndrome module is identical with the BIOS configuration parameter be stored in described second memory field for judging to write the BIOS configuration parameter storing the region of current BIOS configuration parameter in NVRAM.
Nvram data restoration methods of the present invention and device have following beneficial effect: terminal user can determine whether to remove current BIOS configuration parameter that NVRAM stores according to the actual requirements and add NVRAM default value when mounted terminal dispatches from the factory, shirtsleeve operation is only needed to realize, avoid terminal user and send manufacturer the machine gone wrong, again machine is returned to terminal user after manufacturer professional keeps in repair, shorten the time of dealing with problems, improve efficiency, for terminal user and manufacturer all save expenses and human cost.
In addition, when the BIOS configuration parameter that can store in NVRAM when once normally starting on having backed up, when receiving recovery instruction, the current BIOS configuration parameter stored is reverted to the BIOS configuration parameter of backup in NVRAM.Further, if when still cannot normally start after reverting to the BIOS configuration parameter of backup, NVRAM default value is loaded, to realize normal start-up simulation machine.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of nvram data restoration methods first embodiment of the present invention;
Fig. 2 is the process flow diagram of nvram data restoration methods second embodiment of the present invention;
Fig. 3 is the functional block diagram of nvram data recovery device first embodiment of the present invention;
Fig. 4 is the workflow diagram of nvram data recovery device first embodiment of the present invention;
Fig. 5 is the functional block diagram of data capture unit in nvram data recovery device second embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples the present invention will be further explained explanation.
Fig. 1 is the process flow diagram of nvram data restoration methods first embodiment of the present invention, and as shown in Figure 1, in the present embodiment, method of the present invention comprises the following steps:
If S1 receives recovery instruction, then NVRAM default value when reading terminals is dispatched from the factory;
S2, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S3, erasing NVRAM;
If S4 wipes successfully, then will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
S5, the read-write properties arranging NVRAM are read-only.
NVRAM has a certain size storage space (common for 64KB), and some regions in storage space are for storing current BIOS configuration parameter, and other regions are for storing NVRAM default value and other data.When terminal is dispatched from the factory, NVRAM default value is just stored in a specific region of NVRAM storage space.
In the present embodiment, method of the present invention is in bios code, add extra functional module, when user wishes to remove NVRAM, only need trigger foregone conclusion part, this event then can call corresponding functional module after being detected by BIOS, realizes loading NVRAM default value function.
Concrete, in step sl, user needs under the state of alternating current of breaking, such as, with specific two stitch on jumping cap short circuit mainboard or be arranged on predefined keyboard/button (/ button) on terminal shell by pressing, this operation of user is by capture terminal, and the predefined zone bit that returns to form will be set to.During start, BIOS detects the change of this state flag bit, thinks and have received recovery instruction, then from the respective regions of NVRAM, read NVRAM default value.
Subsequently, in step s 2, be readable writing by the read-write properties of NVRAM, to unlock NVRAM.Then, in step s3, the region of current BIOS configuration parameter is stored in erasing NVRAM, to remove the current BIOS configuration parameter stored in NVRAM.
In step s 4 which, whether the region storing current BIOS configuration parameter in verification NVRAM wipes successfully, if success, then will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM, thus current BIOS configuration parameter (configuration parameter of mistake) is reverted to default value.If do not wipe successfully, then return step S3 and re-execute erasing, in the middle of other embodiments of the present invention, if do not clashed successfully, then return step S3.
After current BIOS configuration parameter is reverted to default value, in step s 5 the read-write properties of NVRAM are set to read-only, allow to carry out read operation to NVRAM, forbid carrying out write operation to NVRAM.
Nvram data restoration methods of the present invention achieves user and determines whether remove the current BIOS configuration parameter stored in NVRAM according to the actual requirements, and load the function of NVRAM default value, solve user and revise BIOS option or other reason when causing the problems such as system can not be started shooting, dysfunction, user cannot remove NVRAM and add that determine when mounted terminal dispatches from the factory can the NVRAM default value problem run of normal boot-strap.Implement the nvram data restoration methods in the present embodiment, terminal user can determine whether to remove current BIOS configuration parameter that NVRAM stores according to the actual requirements and add NVRAM default value when mounted terminal dispatches from the factory, shirtsleeve operation is only needed to realize, avoid terminal user and send manufacturer the machine gone wrong, again machine is returned to terminal user after manufacturer professional keeps in repair, shorten the time of dealing with problems, improve efficiency, for terminal user and manufacturer all save expenses and human cost.
Fig. 2 is the process flow diagram of nvram data restoration methods second embodiment of the present invention, and as shown in Figure 2, the difference of the first embodiment of the present embodiment and method of the present invention is, method of the present invention is further comprising the steps of:
S6, between step S1 and S2, the NVRAM default value of reading is saved between the first memory field;
S7, between step S4 and S5, judge to write in NVRAM the NVRAM default value storing the region of current BIOS configuration parameter whether identical with the NVRAM default value be stored in described first memory field, if then perform step S5, then perform S3 if not.
In this embodiment, the NVRAM default value read from the specific region in NVRAM is stored into the dynamic memory region (between the first memory field) in internal memory, after being loaded with NVRAM default value, and between NVRAM locked, whether the default value that verification has write NVRAM is identical with the default value stored in the first memory field, if both are identical, NVRAM is locked, if both are not identical, get back to step S3, re-execute erasing.Exactly the current BIOS configuration parameter stored in NVRAM is returned to default value, decrease the generation of mistake.
In the 3rd embodiment of nvram data restoration methods of the present invention, the difference of the second embodiment of the method for this embodiment and invention is, step S1 comprises following sub-step:
If S11 receives recovery instruction, then the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup, if then perform step S13, then performs step S12 if not;
NVRAM default value when S12, reading terminals are dispatched from the factory, performs step S3;
S13, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S14, erasing NVRAM;
If S15 wipes successfully, then by storing the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM, perform step S5.
In the present embodiment, after normal start-up simulation machine, before entering computer operating system, the current BIOS configuration parameter specific region (differing from the region storing current BIOS configuration parameter and the region storing NVRAM default value) in NVRAM stored in NVRAM can be backed up, and be 1 by Backup Data mark position.
In step s 11, when receiving recovery instruction, the state of Backup Data zone bit is judged, if 1, then represent the BIOS configuration parameter stored in NVRAM when having backed up last normal startup, if Backup Data zone bit is 0, then represent non-back-up BIOS configuration parameter.When non-back-up BIOS configuration parameter, NVRAM default value when reading terminals is dispatched from the factory, performs step S3-S7.
Consider the correctness of the BIOS configuration parameter loading backup, when judging to have backed up BIOS configuration parameter, then perform step S16, the BIOS configuration parameter of backup is saved in the second memory headroom, then perform step S13.In step s 13, the read-write properties of NVRAM are set to readable writing, to unlock NVRAM.Subsequently, in step S14, store the region of current BIOS configuration parameter in erasing NVRAM, to remove the current BIOS configuration parameter of storage.Then, in step S15, whether verification erasing is successful, if unsuccessful, get back to step S13 and re-execute erasing, if wipe successfully, then will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM, and whether judge to write the BIOS configuration parameter storing the region of current BIOS configuration parameter in NVRAM identical with the BIOS configuration parameter be stored in described second memory field, if then perform step S5 to be locked by NVRAM, if both are not identical, return step S14, re-execute from the work of erasing.
In addition, after the BIOS configuration parameter of the specific region write backup of above-mentioned steps in NVRAM, computing machine still cannot normally start, then NVRAM default value when reading terminals is dispatched from the factory, and performs step S3-S7.
Nvram data restoration methods in the present embodiment, can when on having backed up, once normally startup BIOS be the BIOS configuration parameter stored in NVRAM, when receiving recovery instruction, the current BIOS configuration parameter stored is reverted to the BIOS configuration parameter of backup in NVRAM.Further, if when still cannot normally start after reverting to the BIOS configuration parameter of backup, NVRAM default value is loaded, to realize normal start-up simulation machine.
Fig. 3 is the functional block diagram of nvram data recovery device 300 first embodiment of the present invention, and as shown in Figure 3, in the present embodiment, device 300 of the present invention comprises:
Data capture unit 310, for when receiving recovery instruction, NVRAM default value when reading terminals is dispatched from the factory;
Separating lock unit 320, is readable writing for arranging the read-write properties of NVRAM;
Erase unit 330, for wiping the current BIOS configuration parameter stored in NVRAM;
Writing unit 340, during for wiping the current BIOS configuration parameter success stored in NVRAM at erase unit 330, will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
Upper lock unit 350 is read-only for arranging the read-write properties of NVRAM;
Store performance element 360, for being saved between the first memory field by the NVRAM default value of reading;
Whether verification unit 370 is identical with the NVRAM default value be stored in described first memory field for judging to write the NVRAM default value storing the region of current BIOS configuration parameter in NVRAM.
Fig. 4 is the workflow diagram of nvram data recovery device 300 first embodiment of the present invention, as shown in Figure 4, when receiving recovery instruction, judge to need to load NVRAM default value, NVRAM default value when calling data acquiring unit 310 dispatches from the factory from the specific region reading terminals of NVRAM, and call store performance element 360 the NVRAM default value of reading is saved between the first memory field.Then call and separate lock unit 320, the read-write properties of NVRAM are set to readable writing.Then erase unit 330 is called, to wipe in NVRAM the region storing current BIOS configuration parameter.Then device 300 judges whether the region storing current BIOS configuration parameter in NVRAM wipes successfully, if then call writing unit 340 will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM, to realize loading NVRAM default value, wipe if wipe the unsuccessful erase unit 330 that again calls.Call verification unit 370 afterwards and whether successfully to judge to store in NVRAM the region write of current BIOS configuration parameter, concrete, whether verification unit 370 judges to write the NVRAM default value storing the region of current BIOS configuration parameter in NVRAM identical with the NVRAM default value be stored in described first memory field, if both are identical, verification succeeds, if both are not identical, verifies unsuccessful.If verify unsuccessful, call erase unit 330 and wipe, and subsequent operation of reruning is until NVRAM region writes successfully.Finally, call lock unit 350, the read-write properties of NVRAM are set to read-only.
In nvram data recovery device 300 second embodiment of the present invention, see Fig. 5, the difference of this embodiment and device of the present invention 300 first embodiment is, data capture unit 310 comprises:
Judge module 311, for when receiving recovery instruction, the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup;
Default value acquisition module 312, during the BIOS configuration parameter stored in NVRAM during for once normally starting on not backing up, NVRAM default value when reading terminals is dispatched from the factory;
Unlocked state 313, during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the read-write properties arranging NVRAM are readable writing;
Erasing module 314, for wiping the current BIOS configuration parameter stored in NVRAM;
Writing module 315, for when wiping module 314 and wiping the current BIOS configuration parameter success stored in NVRAM, will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM.
In the present embodiment, data capture unit 310 also comprises:
Storing execution module 316, during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the BIOS configuration parameter of backup being saved in the second memory headroom;
Writing module 315 comprises:
Write submodule 3151, if for when wiping module 314 and wiping the current BIOS configuration parameter success stored in NVRAM, will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM;
Whether syndrome module 3152 is identical with the BIOS configuration parameter be stored in the second memory field for judging to write the BIOS configuration parameter storing the region of current BIOS configuration parameter in NVRAM.
When receiving recovery instruction, call the state that judge module 311 judges Backup Data zone bit, if 1, then represent the BIOS configuration parameter stored in NVRAM when having backed up last normal startup, if Backup Data zone bit is 0, then represent non-back-up BIOS configuration parameter.When non-back-up BIOS configuration parameter, then call default value acquisition module 312, NVRAM default value when reading terminals is dispatched from the factory, device 300 performs the workflow recording NVRAM default value.When having backed up BIOS configuration parameter, calling and having stored execution module 316, the BIOS configuration parameter of backup has been saved in the second memory headroom.Then call unlocked state 313, the read-write properties of NVRAM are set to readable writing.Then erasing module 314 is called, the current BIOS configuration parameter stored in erasing NVRAM.Device 300 judges whether erasing completes, if complete, continues to call erasing module 314 until complete erasing work.After completing erasing, call write submodule 3151, the region of current BIOS configuration parameter will be stored in the BIOS configuration parameter of backup write NVRAM.Then syndrome module 3152 is called, judge to write the BIOS configuration parameter storing the region of current BIOS configuration parameter in NVRAM whether identical with the BIOS configuration parameter be stored in the second memory field, if both are not identical, call erasing module 314 and perform erasing, and perform follow-up work until syndrome module 3152 is by verification.The read-write properties of NVRAM, by calling lock unit 350 after verification, are set to read-only by syndrome module 3152.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.

Claims (10)

1. nonvolatile random access memory (NVRAM) data reconstruction method, is characterized in that, comprise the following steps:
If S1 receives recovery instruction, then NVRAM default value when reading terminals is dispatched from the factory;
S2, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S3, erasing NVRAM;
If S4 wipes successfully, then will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
S5, the read-write properties arranging NVRAM are read-only.
2. nvram data restoration methods according to claim 1, is characterized in that, further comprising the steps of:
S6, between step S1 and S2, the NVRAM default value of reading to be saved between the first memory field.
3. nvram data restoration methods according to claim 2, is characterized in that, further comprising the steps of:
S7, between step S4 and S5, judge to write in NVRAM the NVRAM default value storing the region of current BIOS configuration parameter whether identical with the NVRAM default value be stored in described first memory field, if then perform step S5, then perform S3 if not.
4. nvram data restoration methods according to claim 1, is characterized in that, step S1 comprises following sub-step:
If S11 receives recovery instruction, then the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup, if then perform step S13, then performs step S12 if not;
NVRAM default value when S12, reading terminals are dispatched from the factory, performs step S3;
S13, the read-write properties arranging NVRAM are readable writing;
The current BIOS configuration parameter stored in S14, erasing NVRAM;
If S15 wipes successfully, then by storing the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM, perform step S5.
5. nvram data restoration methods according to claim 4, is characterized in that, step S1 also comprises following sub-step:
If S16 has backed up the last normal BIOS configuration parameter stored in NVRAM when starting, then, between step S11 and S13, the BIOS configuration parameter of backup is saved in the second memory headroom.
6. nvram data restoration methods according to claim 5, is characterized in that, sub-step S15 comprises following secondary sub-step:
If S151 wipes successfully, then will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM;
S152, whether with the BIOS configuration parameter that be stored in described second memory field in identical, if then perform step S5, then perform S14 if not if judging to write in NVRAM the BIOS configuration parameter storing the region of current BIOS configuration parameter.
7. a nonvolatile random access memory (NVRAM) Data Recapture Unit (300), is characterized in that, comprising:
Data capture unit (310), for when receiving recovery instruction, NVRAM default value when reading terminals is dispatched from the factory;
Separating lock unit (320), is readable writing for arranging the read-write properties of NVRAM;
Erase unit (330), for wiping the current BIOS configuration parameter stored in NVRAM;
Writing unit (340), when the current BIOS configuration parameter for storing in described erase unit (330) erasing NVRAM is successful, will store the region of current BIOS configuration parameter in the NVRAM default value of reading write NVRAM;
Upper lock unit (350) is read-only for arranging the read-write properties of NVRAM.
8. nvram data recovery device (300) according to claim 7, is characterized in that, also comprise:
Store performance element (360), for being saved between the first memory field by the NVRAM default value of reading;
Whether verification unit (370) is identical with the NVRAM default value be stored in described first memory field for judging to write the NVRAM default value storing the region of current BIOS configuration parameter in NVRAM.
9. nvram data recovery device (300) according to claim 7, is characterized in that, described data capture unit (310) comprising:
Judge module (311), for when receiving recovery instruction, the BIOS configuration parameter stored in NVRAM when judging whether to have backed up last normal startup;
Default value acquisition module (312), during the BIOS configuration parameter stored in NVRAM during for once normally starting on not backing up, NVRAM default value when reading terminals is dispatched from the factory;
Unlocked state (313), during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the read-write properties arranging NVRAM are readable writing;
Erasing module (314), for wiping the current BIOS configuration parameter stored in NVRAM;
Writing module (315), when the current BIOS configuration parameter for storing in described erasing module (314) erasing NVRAM is successful, will store the region of current BIOS configuration parameter in the BIOS configuration parameter of backup write NVRAM.
10. nvram data recovery device (300) according to claim 9, is characterized in that, described data capture unit (310) also comprises:
Storing execution module (316), during the BIOS configuration parameter stored in NVRAM during for once normally starting on having backed up, the BIOS configuration parameter of backup being saved in the second memory headroom;
Said write module (315) comprising:
Write submodule (3151), for described erasing module (314) if store in erasing NVRAM the success of current BIOS configuration parameter time, the region of current BIOS configuration parameter will be stored in the BIOS configuration parameter of backup write NVRAM;
Whether syndrome module (3152) is identical with the BIOS configuration parameter be stored in described second memory field for judging to write the BIOS configuration parameter storing the region of current BIOS configuration parameter in NVRAM.
CN201310364271.0A 2013-08-20 2013-08-20 NVRAM data recovery method and NVRAM data recovery device Pending CN104424047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310364271.0A CN104424047A (en) 2013-08-20 2013-08-20 NVRAM data recovery method and NVRAM data recovery device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310364271.0A CN104424047A (en) 2013-08-20 2013-08-20 NVRAM data recovery method and NVRAM data recovery device

Publications (1)

Publication Number Publication Date
CN104424047A true CN104424047A (en) 2015-03-18

Family

ID=52973101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310364271.0A Pending CN104424047A (en) 2013-08-20 2013-08-20 NVRAM data recovery method and NVRAM data recovery device

Country Status (1)

Country Link
CN (1) CN104424047A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201604A (en) * 2016-07-01 2016-12-07 南京百敖软件有限公司 A kind of startup collocation method of the many application scenarios of computer
CN106815531A (en) * 2015-12-02 2017-06-09 比亚迪股份有限公司 The treating method and apparatus of equipment identification information
CN106855814A (en) * 2015-12-09 2017-06-16 广达电脑股份有限公司 The system and method for management basic input output system setting
CN108108197A (en) * 2016-11-25 2018-06-01 英业达科技有限公司 Computer system and its control method
WO2018120100A1 (en) * 2016-12-30 2018-07-05 深圳配天智能技术研究院有限公司 Power-off protection method and device, and computer
CN109992312A (en) * 2019-03-26 2019-07-09 联想(北京)有限公司 The starting method, apparatus and system of electronic equipment
CN111176686A (en) * 2019-12-29 2020-05-19 山东英信计算机技术有限公司 BIOS upgrading method and system, electronic equipment and storage medium
CN112035171A (en) * 2020-08-12 2020-12-04 中电科技(北京)有限公司 Factory setting restoration method and system based on UEFI firmware
CN115033089A (en) * 2022-05-13 2022-09-09 昆仑太科(北京)技术股份有限公司 System and method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output System)
CN117591196A (en) * 2023-11-23 2024-02-23 中科可控信息产业有限公司 Default value configuration method, default value configuration device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009009921A1 (en) * 2007-07-13 2009-01-22 Intel Corporation Key based hidden partition system
CN101470615A (en) * 2007-12-28 2009-07-01 技嘉科技股份有限公司 Single-key controlled method for automatically repairing system configuration
CN101840365A (en) * 2010-04-30 2010-09-22 广州广电运通金融电子股份有限公司 Safe protection method and system for BIOS (Basic Input/Output System)
CN102799497A (en) * 2011-05-24 2012-11-28 鸿富锦精密工业(深圳)有限公司 Data recovery system and method for non-volatile random access memory (NVRAM)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009009921A1 (en) * 2007-07-13 2009-01-22 Intel Corporation Key based hidden partition system
CN101470615A (en) * 2007-12-28 2009-07-01 技嘉科技股份有限公司 Single-key controlled method for automatically repairing system configuration
CN101840365A (en) * 2010-04-30 2010-09-22 广州广电运通金融电子股份有限公司 Safe protection method and system for BIOS (Basic Input/Output System)
CN102799497A (en) * 2011-05-24 2012-11-28 鸿富锦精密工业(深圳)有限公司 Data recovery system and method for non-volatile random access memory (NVRAM)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815531A (en) * 2015-12-02 2017-06-09 比亚迪股份有限公司 The treating method and apparatus of equipment identification information
CN106855814B (en) * 2015-12-09 2020-11-24 广达电脑股份有限公司 System and method for managing BIOS settings
CN106855814A (en) * 2015-12-09 2017-06-16 广达电脑股份有限公司 The system and method for management basic input output system setting
CN106201604A (en) * 2016-07-01 2016-12-07 南京百敖软件有限公司 A kind of startup collocation method of the many application scenarios of computer
CN108108197A (en) * 2016-11-25 2018-06-01 英业达科技有限公司 Computer system and its control method
WO2018120100A1 (en) * 2016-12-30 2018-07-05 深圳配天智能技术研究院有限公司 Power-off protection method and device, and computer
CN109992312B (en) * 2019-03-26 2021-09-14 联想(北京)有限公司 Starting method, device and system of electronic equipment
CN109992312A (en) * 2019-03-26 2019-07-09 联想(北京)有限公司 The starting method, apparatus and system of electronic equipment
CN111176686A (en) * 2019-12-29 2020-05-19 山东英信计算机技术有限公司 BIOS upgrading method and system, electronic equipment and storage medium
CN111176686B (en) * 2019-12-29 2022-03-22 山东英信计算机技术有限公司 BIOS upgrading method and system, electronic equipment and storage medium
CN112035171A (en) * 2020-08-12 2020-12-04 中电科技(北京)有限公司 Factory setting restoration method and system based on UEFI firmware
CN112035171B (en) * 2020-08-12 2023-10-03 昆仑太科(北京)技术股份有限公司 Factory setting restoration method and system based on UEFI firmware
CN115033089A (en) * 2022-05-13 2022-09-09 昆仑太科(北京)技术股份有限公司 System and method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output System)
CN115033089B (en) * 2022-05-13 2024-10-18 昆仑太科(北京)技术股份有限公司 System and method for triggering Clear CMOS under BIOS
CN117591196A (en) * 2023-11-23 2024-02-23 中科可控信息产业有限公司 Default value configuration method, default value configuration device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104424047A (en) NVRAM data recovery method and NVRAM data recovery device
US8423991B2 (en) Embedded network device and firmware upgrading method
US9672112B2 (en) Backing up firmware during initialization of device
TWI382346B (en) Computer system with dual bios protection mechanism and control method of the same
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
CN101373451B (en) Computer system for protecting double-basic input /output system program and control method thereof
CN103678030A (en) Multi-system equipment start system and method thereof
US20090271660A1 (en) Motherboard, a method for recovering the bios thereof and a method for booting a computer
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN108829449B (en) Method, device, equipment and medium for starting operating system by BIOS (basic input output System)
US20100049961A1 (en) Update method for basic input/output system and update system thereof
CN110413230A (en) A kind of embedded system construction method and storage medium
CN105786545B (en) Breakpoint recovery method and system based on heterogeneous hybrid memory
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
US9348603B2 (en) Electronic apparatus and booting method
CN109582332B (en) System upgrading method and device for Internet camera
CN104598256A (en) Computer BIOS (Basic Input /Output System) recovery system and method
CN103455750B (en) The high peace verification method of a kind of embedded device and device
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN104657232A (en) BIOS automatic recovery system and BIOS automatic recovery method
CN105630523A (en) Computer BIOS data recovery system and method
CN113377586A (en) Automatic server detection method and device and storage medium
JP2012194675A (en) Information apparatus and emergency access method for information apparatus
CN115951949A (en) Recovery method and device for configuration parameters of BIOS (basic input output System) and computing equipment
CN102831032A (en) Repair system and method for master boot record of hard disc

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150318