CN102567135B - Refreshing/recovering method and electronic equipment - Google Patents

Refreshing/recovering method and electronic equipment Download PDF

Info

Publication number
CN102567135B
CN102567135B CN201010586665.7A CN201010586665A CN102567135B CN 102567135 B CN102567135 B CN 102567135B CN 201010586665 A CN201010586665 A CN 201010586665A CN 102567135 B CN102567135 B CN 102567135B
Authority
CN
China
Prior art keywords
data
memory cell
control unit
electronic equipment
refreshing
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.)
Active
Application number
CN201010586665.7A
Other languages
Chinese (zh)
Other versions
CN102567135A (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.)
Lenovo Shanghai Electronics Technology Co Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201010586665.7A priority Critical patent/CN102567135B/en
Publication of CN102567135A publication Critical patent/CN102567135A/en
Application granted granted Critical
Publication of CN102567135B publication Critical patent/CN102567135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

An embodiment of the invention discloses a refreshing/recovering method and electronic equipment. The electronic equipment comprises a first storage unit, a second storage unit and a control unit. The method includes the steps: utilizing the control unit to acquire operation instructions for instructing to refresh/recover first data; utilizing the control unit to set up data transmission paths between the control unit and the first storage unit and between the control unit and the second storage unit; and utilizing the control unit to read second data in the second storage unit, and writing the corresponding data in the second data into the first storage unit through the data transmission path to substitute for the first data, so that the first data are refreshed/recovered. By the aid of the refreshing/recovering method and the electronic equipment in the embodiment, during refreshing/recovering of initialized data, a storage tool stored with the initialized data does not need to be subjected to complicated processes such as being burned again and the like, but the data are directly read and written inside the electronic equipment, so that the refreshing/recovering process of the initialized data is more convenient, simpler and quicker.

Description

Refreshing/recovering method and a kind of electronic equipment
Technical field
The present invention relates to computer realm, more particularly, relate to a kind of refreshing/recovering method and a kind of electronic equipment.
Background technology
In the electronic device, in the process of general start, the initialization of hardware is carried out in capital, but its hardware that makes stored in electronic equipment carries out initialized data once damaged, this initialization procedure just can not proceed, cause electronic equipment normally not run, to refresh or recovering this initialization data, operating process is then more loaded down with trivial details.
For computer, BIOS (Basic Input Output System in computer, i.e. basic input/output) be cured to the batch processing in the rom chip on computer motherboard, the program of the most important basic input output system of its in store computer, system set-up information, startup self-detection program and system self-triggered program etc., that provide the bottom for computer, the most basic hardware setting and control.
The refresh work of general BIOS, the USB device by storing BIOS refurbishing procedure, CD-ROM drive, floppy drive or by downloading data file and the refurbishing procedure of BIOS on network, by computer starting to (as DOS, OS/2 etc.) under corresponding operating system, upgraded by corresponding refresh tool afterwards.But, if once BIOS data are destroyed, as mistake, the power interruptions or software fault etc. of user, then by computer guiding under corresponding operating system, and then the refreshing of BIOS cannot cannot be completed.
Run into the situation that BIOS data are destroyed, to continue to realize the refresh activity of BIOS or recovering existing BIOS data, generally just BIOS chip can only be taken off in prior art, be placed on the BIOS data of the existing BIOS data of typing or renewal again on cd-rom recorder, operating process is loaded down with trivial details.
Summary of the invention
The embodiment of the present invention provides a kind of refreshing/recovering method and a kind of electronic equipment, makes the refreshing of initialization data/recovery operation process convenient, simple, quick.
For achieving the above object, following technical scheme is embodiments provided:
A kind of refreshing/recovering method, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, makes the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data and/or described first data; Described control unit establishes a connection by bus and described first memory cell and the second memory cell; The method comprises:
Described control unit obtains the operational order that instruction refreshes/recover described first data;
Described control unit sets up described control unit and the data transmission path between described first memory cell and the second memory cell;
Described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
Preferably, described control unit, by after described first memory cell of described second data write, also comprises:
Disconnect the data transmission path between described control unit and described first memory cell.
Preferably, described electronic equipment also comprises bus switch, for control unit described in break-make and the bus between described first memory cell.
Preferably, to set up and the process of data transmission path that disconnects between described control unit and described first memory cell is specially:
Described control unit sends the signal of the data transmission path of instruction connection or disconnection and the first memory cell;
After described bus switch receives described signal, connect or disconnect the bus between described control unit and described first memory cell.
Preferably, after setting up described data transmission path, before carrying out the refreshing/recovery of described first data, also comprise:
Judge whether described first data are damaged and/or whether described first data have renewal, if so, start refreshing/restore funcitons, carry out the refreshing/recovery of described first data.
Preferably, described deterministic process comprises:
Described control unit reads the second data in described second memory cell and the first data in described first memory cell;
The code information of more described second data and/or version information whether identical with the first data, if different, then start refreshing/restore funcitons, carry out the refreshing/recovery of described first data.
Preferably, described control unit obtains and indicates the process refreshing/recover the operational order of described first data to comprise:
Under described electronic equipment off-mode, trigger the hot key or function key that pre-set, send the operational order that instruction starts refreshing/restore funcitons.
Preferably, described control unit also comprises before reading the second data in described second memory cell:
Stop described control unit other handling process except refreshing/recover action.
The embodiment of the invention also discloses a kind of electronic equipment, comprising:
First memory cell, during for storing the startup of described electronic equipment, makes the first data of described electronic equipment hardware initialization;
Second memory cell, for storing the second data, described second data comprise the renewal version of described first data and/or described first data;
Control unit, for obtain instruction refresh/recover the operational order of described first data after, foundation and the data transmission path between described first memory cell and the second memory cell, and the second data read in described second memory cell, by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
Preferably, described electronic equipment also comprises;
Bus switch, for control unit described in break-make and the bus between described first memory cell.
Preferably, described control unit comprises:
Instruction reception unit, refreshes for receiving instruction/recovers the operational order of described first data;
Read-write cell, for reading described first data and/or the second data, and by described first memory cell of described second data write;
Transmitting element, for sending the signal of the data transmission path of instruction connection or disconnection and the first memory cell.
Preferably, described control unit also comprises:
Abort unit, for after the data transmission channel establishing described control unit and described first memory cell and the second memory cell, stops other handling process except refreshing/recover action in described control unit.
The embodiment of the invention also discloses a kind of refreshing/recovering method, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, make the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data and/or described first data; Described control unit is connected with the second memory cell with described first memory cell by bus; The method comprises:
Before described electronic equipment carries out hardware initialization according to described first data, obtain the operational order that instruction refreshes/recover described first data;
Set up described control unit and the data transmission path between described first memory cell and the second memory cell;
Described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
As can be seen from above-mentioned technical scheme, the embodiment of the present invention is by adding control unit and the second memory cell in the electronic device, intact initialization data is at least comprised in second memory cell, afterwards by setting up control unit and the data transmission channel between described first memory cell and the second memory cell, and then initialization data intact in the second memory cell can be write in the first memory cell, reach impaired the first data maybe needing to upgrade in alternative first memory cell, thus complete the refreshing/recovery process of initialization data.
The embodiment of the present invention is in the refreshing/recovery process of carrying out initialization data, without the need to carrying out the process of the complexity such as burning again to the storage tool storing initialization data, but directly carried out the read-write of data by electronic equipment internal, thus make the refreshing/recovery process of initialization data convenient, simple, quick.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of Fig. 1 a kind of refreshing/recovering method disclosed in the embodiment of the present invention one;
The structure chart of Fig. 2 computer disclosed in the embodiment of the present invention one;
The flow chart of Fig. 3 a kind of refreshing/recovering method disclosed in the embodiment of the present invention two;
The flow chart of Fig. 4 a kind of refreshing/recovering method disclosed in the embodiment of the present invention three;
The flow chart of Fig. 5 a kind of refreshing/recovering method disclosed in the embodiment of the present invention three;
The flow chart of Fig. 6 a kind of refreshing/recovering method disclosed in the embodiment of the present invention four;
The flow chart of Fig. 7 BIOS refreshing/recovering method disclosed in the embodiment of the present invention four;
The structure chart of Fig. 8 electronic equipment disclosed in the embodiment of the present invention five;
The flow chart of Fig. 9 a kind of refreshing/recovering method disclosed in the embodiment of the present invention six.
Detailed description of the invention
The embodiment of the invention discloses a kind of refreshing/recovering method and a kind of electronic equipment, by adding control unit in the electronic device and at least comprising the second memory cell of intact initialization data, afterwards by setting up control unit and the data transmission channel between described first memory cell and the second memory cell, and then initialization data intact in the second memory cell can be write in the first memory cell, reach the impaired original initialization data maybe needing to upgrade in alternative first memory cell, this process is without the need to carrying out the process of the complexity such as burning again to the storage tool storing initialization data, but the read-write of data is directly carried out by electronic equipment internal, thus make the refreshing/recovery process of initialization data convenient, simply, fast.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described further, it should be noted that, in this description, each embodiment adopts the mode of going forward one by one to describe, what each embodiment stressed is the difference with other embodiment, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Embodiment one
The flow chart of refreshing/recovering method disclosed in the present embodiment as shown in Figure 1, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, make the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data and/or described first data; Described control unit establishes a connection by bus and described first memory cell and the second memory cell;
The method comprises the following steps:
Step S101: described control unit obtains the operational order that instruction refreshes/recover described first data;
Wherein, the mode that described control unit obtains described operational order can be the instruction of active obtaining aforesaid operations, also can be passive reception external information, thus obtain described operational order, be not specifically limited in obtain manner the present embodiment of aforesaid operations instruction.
It should be noted that, control unit described in the present embodiment can be embedded controller EC, also can be the controller of the various ways such as single-chip microprocessor MCU, this control unit refreshes mainly through receiving instruction/recovers the operational order of described first data, by various mode, read-write operation etc. is carried out to described first memory cell and the second memory cell.
In fact, in the hardware setting of electronic equipment, this control unit can be hardware module newly-increased in the electronic device, also can for hardware existing in electronic equipment be improved accordingly, make it have the function of embodiment of the present invention control unit, concrete mode is determined according to electronic equipment actual conditions, repeats no more here.
Step S102: set up described control unit and the data transmission path between described first memory cell and the second memory cell;
Wherein, the mode setting up the data transmission path between three has a lot, is only described in the mode connected by bus in the present embodiment.Further, the control unit in the present embodiment can keep connection status with the second memory cell always, also can connect when needs, concrete which kind of connection status of selection, depends on that the hardware of the second memory cell is selected; In theory, the connection status of control unit and the first memory cell is also like this, but actual connection also needs the actual conditions in conjunction with electronic equipment to determine its connected mode.
Step S103: described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
Wherein, the first data in described first memory cell can be the data of impaired initialize routine, also can be data to be updated, the second data in described second memory cell at least will comprise at least one item number certificate in the renewal version of intact first data and the first data, so just can guarantee to recover the first impaired data, also multinomial data can be comprised in certain second data, according to the demand of user, selectively described first data can be refreshed or be recovered.
And, the second data in described second memory cell can for the initialization data just set when electronic equipment dispatches from the factory, also real-time renewal can be carried out by user to described second data, also can by electronic equipment self by network implementation time by up-to-date initialization data stored in described second memory cell, do not do concrete restriction here.
Adopt the refreshing/recovering method of the present embodiment when recovering the initialization data of electronic equipment or refresh, because described second memory cell has been the hardware that electronic equipment carries, therefore do not need the external device such as CD-ROM drive or floppy disk is installed again, can directly refresh the initialization data of electronic equipment, and when the first corrupted data in the first memory cell, only need start this refreshing/restore funcitons, set up control unit and the data transmission channel between the first memory cell and the second memory cell, by the read-write operation of electronic equipment internal hardware, the recovery of the first data in the first memory cell can be realized, and do not need the process of the first memory cell being carried out to the complexity such as burning again, thus make the refreshing/recovery process of initialization data convenient, simply, fast.
More than describe and describe the basic thought of the embodiment of the present invention, below with the refreshing of the bios program of computer/revert to example, the method for the embodiment of the present invention is described in detail.
In a computer, first memory cell is BIOS chip (as BIOS Flash), first data are bios program, bios program is stored in BIOS chip, also bios program is stored in second memory cell in the present embodiment, under normal circumstances, BIOS chip is generally connected with south bridge ICH or PCH of computer by spi bus, PCH or ICH is connected with the CPU of computer by north bridge.
Under normal circumstances, when starting shooting, bios program carries out power-on self-test (Power On Self Test to each equipment of computer-internal, be called for short POST), after POST process completes, the hardware of computer is initialized, and be directed to DOS or other operating system, thus complete the startup of computer, afterwards by the various functions of operating system computer for controlling.If because some reason bios program is damaged, then cannot complete the processes such as power-on self-test, initialization, boot, make a mistake in each process, computer all can be reported to the police by different way.
Be embedded controller EC below with control unit be example, illustrate in the present embodiment and run into bios program damage or the processing mode under needing refresh case, now, the second memory cell can be ECFlash on hardware, and the structure of each unit of the computer in the present embodiment as shown in Figure 2.
When BIOS damage maybe needs to refresh, system sends instruction and refreshes/recover the operational order of bios program to EC, after EC obtains this operational order, be connected with EC Flash with BIOS chip by spi bus or other channel, disconnect the connection of BIOS chip and PCH or ICH simultaneously, to ensure that follow-up work is carried out smoothly from interference, and then the data transmission path between EC and the BIOS chip set up and EC Flash, wherein, EC is connected with PCH or ICH by LPC interface, to carry out other work, EC reads the bios program stored in EC Flash afterwards, and by the data transmission path between three, by the bios program write BIOS chip in EC Flash, with original bios program in alternative BIOS chip, thus complete refreshing or the recovery of original bios program in BIOS chip.
It should be noted that, the producing method that instruction refreshes/recover the operational order of bios program has multiple, can be in start process, because of BIOS damage cannot carry out normal boot program time, system alarm also produces this operational order simultaneously, automatically this operational order is sent to EC afterwards by system; Also can be in the power-offstate, trigger default operating key by user to produce, EC obtains described operational order by the described default operating key of monitoring, and off-mode described in the present embodiment refers to that the key of computer does not start, but EC maintains the state of electricity; Also can be under open state, system obtains by network or alternate manner the information that bios program has new version, thus producing this operational order etc., the producing method of this operational order includes but not limited to above-mentioned three kinds of modes, and the present embodiment does not do concrete restriction to this.
Wherein, the mode automatically being produced the operational order of refreshing/recovery bios program by system can be divided into two kinds of situations, and one is produce when bios program damages, and two is need carry out more producing under news at bios program.If the former, when user does not know that bios program damages, its producing method can be system alarm in start process, and produces this operational order simultaneously, thus triggers the action of EC; If the latter, the producing method of this operational order can have multiple, if system is once confirm that bios program has the information of renewal, or stores the bios program of renewal in EC Flash, and then triggers the refreshing of bios program.
Below be only with the refreshing of the bios program in computer/revert to example, the method of the present embodiment is illustrated, known from the above description, when bios program damages, adopt the method for the present embodiment directly can realize the refreshing to bios program by computer itself, and do not need storage tool to external world to carry out the complicated operation such as burning again, and then make the refreshing of bios program/resume work quicker, easy and effectively.
It will be appreciated by those skilled in the art that, the method of the present embodiment can be applicable to the refreshing/recovery of computer initialization program, also refreshing/the recovery of mobile phone, PDA or other electronic equipment initialize routine can be applied to, and, the hardware of described control unit, the first memory cell and the second memory cell is selected and connected mode includes but not limited to above disclosed content, as long as configure accordingly according to the actual conditions of different electronic equipments.
Embodiment two
The flow chart of refreshing/recovering method disclosed in the present embodiment as shown in Figure 3, the present embodiment adds step S204 on the basis of a upper embodiment: after described control unit is by described first memory cell of described second data write, disconnect the data transmission path between described control unit and described first memory cell, so that normally carrying out of refreshing/resume work next time.
Still to have the refreshing of the computer BIOS program of EC and EC Flash/revert to example, the course of work of the present embodiment is:
When BIOS damage maybe needs to refresh, system sends instruction and refreshes/recover the operational order of bios program to EC, after EC obtains this operational order, be connected with EC Flash with BIOS Flash by spi bus or other channel, disconnect the connection of BIOS Flash and PCH or ICH simultaneously, thus the data transmission path between EC and the BIOS Flash set up and EC Flash, EC reads the bios program stored in EC Flash afterwards, and by the bios program write BIOS Flash in EC Flash, substitute original bios program in BIOS Flash, after the refreshing completing original bios program in BIOS Flash or recovery, disconnect spi bus between EC and BIOS Flash to connect, and BIOS Flash is connected with PCH or ICH by spi bus, other operation of computer is carried out smoothly.
If the refreshing of the bios program carried out in the power-offstate and recovery, after the refreshing of bios program and recovery complete, disconnect the connection of EC and BIOS Flash, make BIOS Flash and PCH or ICH connection, the smooth starting up of computer can be enable.
In practical operation, to realize the break-make of the bus between control unit and the first memory cell, described electronic equipment also should comprise bus switch, for control unit described in break-make and the bus between described first memory cell.
It should be noted that, the process of the data transmission path set up in the present embodiment and disconnect between described control unit and described first memory cell is specially:
Described control unit sends the signal of the data transmission path of instruction connection or disconnection and the first memory cell;
After described bus switch receives described signal, connect or disconnect the bus between described control unit and described first memory cell.
Still to have the computer of EC and EC Flash, described bus switch can be an isolation/router, EC comprises at least one SPI controller, the signal that described SPI controller connects for sending instruction or disconnects the spi bus between EC and BIOS Flash, and perform the read-write operation of EC to the bios program in BIOS Flash, this isolation/router carries out corresponding action after receiving the signal of SPI controller transmission.
In addition, the SPI controller of a control EC Flash in EC, can also be comprised, can break-make between control EC and EC Flash and EC to the read-write operation of the bios program in EC Flash.That is EC has two SPI controllers, respectively control EC Flash and BIOS Flash, if EC hardware is not supported two SPI controllers, then bus extender GPIO can be adopted to realize the function of SPI controller.
Embodiment three
The flow chart of refreshing/recovering method disclosed in the present embodiment as shown in Figure 4, the present embodiment and a upper embodiment unlike, after setting up control unit and the data transmission path between the first memory cell and the second memory cell, before carrying out the refreshing/recovery of described first data, add step S303: judge whether described first data are damaged and/or whether described first data have renewal, if so, enter step S304, otherwise, enter step S305;
Step S304: start refreshing/restore funcitons, carry out the refreshing/recovery of described first data, namely described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data;
Step S305: determine that described first data are not damaged, without renewal version, does not carry out the refreshing/recovery of the first data yet.
Wherein, see Fig. 5, the deterministic process of step S303 specifically comprises:
Step S303a: described control unit reads the second data in described second memory cell and the first data in described first memory cell;
Step S303b: the code information of more described second data and/or version information whether identical with the first data, if different, enter step S304, start refreshing/restore funcitons, carry out the refreshing/recovery of described first data, if identical, then do not carry out the refreshing/recovery of the first data.
It should be noted that, judge in the present embodiment whether described first data have the mode of renewal can be carried out the mode that the first data and the second data compare by control unit, also can by under open state, the information of system being searched for from network the first data stored in the information of the first data of the latest edition obtained and described first memory cell compares, according to comparative result, thus show whether the first data that electronic equipment itself stores need to upgrade.
Be described for the method for computer to the present embodiment with EC, isolation/router and EC Flash below.
EC receives the operational order that instruction refreshes/recover bios program, EC sends the instruction of the spi bus connected between EC and BIOS Flash to isolation/router, after isolation/router receives this instruction, disconnect the connection of BIOS Flash and PCH or ICH, the spi bus at BIOS Flash place is connected with EC, simultaneously, if be disconnect between EC and EC Flash, also the two to be connected, thus set up data transmission path between EC and BIOS Flash and EC Flash, afterwards, two SPI controllers of control BIOS Flash and EC Flash respectively in EC, read the information of the bios program in BIOS Flash and EC Flash respectively, relatively whether BIOS Flash is consistent with version information with the code of the bios program in EC Flash, if different, then by EC, the bios program in EC Flash is write in BIOS Flash, to replace the bios program in BIOS Flash.
It should be noted that, said process can carry out in the power-offstate, also can carry out under open state, and the interface channel between EC Flash and BIOS Flash can be set up by EC, also can be set up by alternate manner, and the work of the version and code that compare the bios program stored in EC Flash and BIOS Flash can be done by EC, also can be done by other hardware, such as under open state, these work just can be done by operating system, and it is suitable then to be compared by EC in the power-offstate.
In addition, if under open state, judge whether the bios program stored in BIOS Flash needs the mode upgraded, can also for the information of searching for the bios program of the latest edition obtained in a network and the bios program that self stores being compared by operating system, if the version number of the bios program that the version number that search obtains stores higher than self, any time then under open state, automatically can upgrade the bios program of self, also can back up in the bios program of latest edition write EC Flash.
Embodiment four
The flow chart of refreshing/recovering method disclosed in the present embodiment as shown in Figure 6, the present embodiment and a upper embodiment unlike, obtaining described control unit indicates the mode refreshing/recover the operational order of described first data to limit, add step S401: under described electronic equipment off-mode, trigger the hot key or function key that pre-set, send the operational order that instruction starts refreshing/restore funcitons.
Define described refreshing/recovering method in the present embodiment to carry out under electronic equipment off-mode, and the refreshing/recovery of the hardware initialization program to electronic equipment of the prior art is carried out in start process or under open state, by contrast, the method of the present embodiment is safer, can not have any impact to the operation of electronic equipment.
In addition, also add step S402 in the present embodiment: control unit waits for that user inputs the operator password that instruction starts refreshing/restore funcitons;
Step S403: after user's input operation password, judges that whether the operator password that user inputs is correct, just carries out next step when described operator password is correct, by the refreshing/resume work of control unit startup initialize routine.
The step increasing input operation password can avoid user to trigger refreshing/recovery action when maloperation, also ensure that the security of operation simultaneously.
Further, described control unit also comprises: step S406: control unit enters refresh mode before reading the second data in described second memory cell, stops described control unit other handling process except refreshing/recover action, to avoid system perturbations.
As shown in Figure 7, still to have the computer of EC, isolation/router and EC Flash, computer in the present embodiment is described, in the power-offstate the state of automatic decision bios program and the refreshing/recovery process to bios program, detailed process comprises the following steps:
Step S501: under computer shutdown state, is initiatively triggered the hot key or function key that pre-set by user, send the operational order that instruction starts bios program refreshing/restore funcitons;
Step S502:EC waits for that user inputs the operator password that instruction starts bios program refreshing/restore funcitons;
Step S503: after user inputs described operator password, judges that whether described operator password is correct, if so, enters step S504;
Step S504:EC enters bios program refresh mode, and termination EC goes out other handling process outside the refreshing/recovery action of bios program, attentively carries out the refreshing/recovery of bios program;
Step S505:EC sends the information connecting BIOS Flash to isolation/router;
Step S506: isolation/router disconnects the connection of BIOS Flash and PCH or ICH, is connected by BIOS Flash with EC, thus sets up the interface channel between EC and EC Flash and BIOS Flash by spi bus;
Step S507:EC reads the bios program version number in EC Flash and BIOS Flash respectively;
Step S508: judge that whether EC Flash is identical with the version number of the bios program stored in BIOS Flash, if different, enters step S509, if identical, enters step S510;
Step S509: the bios program determining in BIOS Flash has the version of upgrading, by EC by the bios program write BIOS Flash in EC Flash, with the bios program stored in alternative BIOS Flash;
Step S510: read the bios program code stored in EC Flash and BIOS Flash, compare EC Flash whether identical with the bios program code stored in BIOS Flash, if different, enter step S511, if identical, enter step S512;
Step S511: determine that the bios program in BIOS Flash is damaged, by EC by the bios program write BIOS Flash in EC Flash, with the bios program stored in alternative BIOS Flash;
Step S512: determine that the bios program in BIOS Flash is intact, does not carry out refreshing/recovering;
The signal that step S513: after the refreshing/recovery action completing bios program, EC output instruction IOS program updating completes is to isolation/router;
Step S514: the connection of spi bus between isolation/router drops EC and BIOS Flash, is connected BIOSFlash and PCH or ICH;
Step S515:EC exits bios program refresh mode, and the indicator lamp that instruction bios program has refreshed is bright, represents that bios program refreshes/is recovered, and waits for user's start.
Above-mentioned deterministic process is based upon the bios program stored in EC Flash to comprise on the basis of the bios program of latest edition, this just requires under open state, system is once confirm the redaction having bios program in network, will by the bios program of this redaction stored in EC Flash, at this moment the controller increasing EC Flash in systems in which is just needed, the renewal of the bios program in control EC Flash.
Embodiment five
Corresponding with embodiment of the method, present embodiment discloses a kind of electronic equipment, its structure chart as shown in Figure 8, comprises following functions unit:
First memory cell 11, during for storing the startup of described electronic equipment, makes the first data of described electronic equipment hardware initialization;
Second memory cell 13, for storing the second data, described second data comprise the renewal version of described first data and/or described first data;
Control unit 12, for obtain instruction refresh/recover the operational order of described first data after, foundation and the data transmission path between described first memory cell and the second memory cell, and the second data read in described second memory cell, by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
In addition, this electronic equipment also comprises, bus switch 18, for control unit described in break-make and the bus between described first memory cell.
Wherein, described control unit 12 comprises:
Instruction reception unit 14, refreshes for receiving instruction/recovers the operational order of described first data;
Read-write cell 15, for reading described first data and/or the second data, and by described first memory cell of described second data write;
Transmitting element 16, for sending the signal of the data transmission path of instruction connection or disconnection and the first memory cell.
Corresponding with embodiment of the method, described control unit 12 also comprises:
Abort unit 17, for after the data transmission channel establishing described control unit and described first memory cell and the second memory cell, stops other handling process except refreshing/recover action in described control unit.
Described electronic equipment can be computer, also can be mobile phone, PDA etc., when described electronic equipment is computer, described first data can be the bios program of computer, described first memory cell can be BIOS Flash, described control unit can be the various controller such as EC, MCU, CPU, and described second memory cell can be the memories such as EC Flash, and described bus switch can be isolation/router.
If the electronic equipment in the present embodiment is computer, the structure of this computer can be as shown in Figure 8, comprise: the hardware such as BIOS Flash, PCH or ICH, isolation/router, EC, EC Flash, when carrying out the refreshing of bios program, be connected with EC by spi bus by isolation/router control BIOS Flash, set up the data transmission path between EC, BIOS Flash and EC Flash, after the refreshing of bios program completes, disconnected the connection of BIOS Flash and EC by isolation/router, BIOS Flash is connected with PCH or ICH by spi bus.
Embodiment six
The flow chart of refreshing/recovering method disclosed in the present embodiment as shown in Figure 8, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, make the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data and/or described first data; Described control unit is connected with the second memory cell with described first memory cell by bus; The method comprises:
Step S601: before described electronic equipment carries out hardware initialization according to described first data, obtains the operational order that instruction refreshes/recover described first data;
Step S602: set up described control unit and the data transmission path between described first memory cell and the second memory cell;
Step S603: described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
The method of the present embodiment and above embodiment unlike, in the present embodiment, by which kind of mode, instruction is obtained to which functional unit of electronic equipment and refresh/recover the operational order of described first data, and the process which functional unit to control to set up described control unit and the data transmission path between described first memory cell and the second memory cell by does not do any restriction.
And, control unit in the present embodiment includes but not limited to the hardware of control unit described in above each embodiment or the form of software, control unit in the present embodiment can be the hardware such as EC, MCU, also the form of software can be adopted to realize, as long as can realize the function of control unit in the present embodiment, this control unit can be arranged in the hardware such as EC, MCU, also can according to the feature of electronic equipment itself, be arranged in other hardware, repeat no more here.
The emphasis of the method for the present embodiment is, define the time of carrying out the refreshing/recovery of electronic equipment initialization data, the time of refreshing electronic equipment initialization data/recovering in the present embodiment is before electronic equipment carries out hardware initialization according to described first data, namely the operation of this refreshing/recovery can be carried out under the off-mode of electronic equipment, also can carry out in start process, as long as carried out before electronic equipment hardware initialization, concrete operations mode has been described in detail in above embodiment of the method, repeats no more here.
Corresponding with above embodiment of the method, the method for the present embodiment also after the refreshing/recovery completing the first data, can disconnect the data transmission path between described control unit and described first memory cell.
In addition, the mode starting the refreshing/recovery of electronic equipment initialization data in the present embodiment can for be started by user, also automatically can be started by electronic equipment, various Starting mode and operating process have been described in detail in the embodiment above, cross-referenced.
It should be noted that, between each embodiment of the present invention, changing progressive embodiment can combine with above-mentioned multiple related embodiment respectively, but only illustrates on the basis of a upper embodiment when illustrating.
It will be understood by those skilled in the art that and any one in much different technique and technology can be used to represent information, message and signal.Such as, the message mentioned in above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or more any combination.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (13)

1. a refreshing/recovering method, it is characterized in that, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, make the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data or comprise the renewal version of described first data and described first data; Described control unit establishes a connection by bus and described first memory cell and the second memory cell; Wherein, described first memory cell and described second memory cell are hardware different in electronic equipment;
The method comprises:
Described control unit obtains the operational order that instruction refreshes/recover described first data;
Described control unit sets up described control unit and the data transmission path between described first memory cell and the second memory cell; Wherein, described control unit and described second memory cell can keep connection status always, also can keep connection status when needs;
Described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
2. method according to claim 1, is characterized in that, described control unit, by after described first memory cell of described second data write, also comprises:
Disconnect the data transmission path between described control unit and described first memory cell.
3. method according to claim 2, is characterized in that, described electronic equipment also comprises bus switch, for control unit described in break-make and the bus between described first memory cell.
4. method according to claim 3, is characterized in that, the process of the data transmission path set up and disconnect between described control unit and described first memory cell is specially:
Described control unit sends the signal of the data transmission path of instruction connection or disconnection and the first memory cell;
After described bus switch receives described signal, connect or disconnect the bus between described control unit and described first memory cell.
5. method according to claim 2, is characterized in that, after setting up described data transmission path, before carrying out the refreshing/recovery of described first data, also comprises:
Judge whether described first data are damaged and/or whether described first data have renewal, if so, start refreshing/restore funcitons, carry out the refreshing/recovery of described first data.
6. method according to claim 5, is characterized in that, described deterministic process comprises:
Described control unit reads the second data in described second memory cell and the first data in described first memory cell;
The code information of more described second data and/or version information whether identical with the first data, if different, then start refreshing/restore funcitons, carry out the refreshing/recovery of described first data.
7. the method according to any one of claim 1-6, is characterized in that, described control unit obtains and indicates the process refreshing/recover the operational order of described first data to comprise:
Under described electronic equipment off-mode, trigger the hot key or function key that pre-set, send the operational order that instruction starts refreshing/restore funcitons.
8. method according to claim 7, is characterized in that, described control unit also comprises before reading the second data in described second memory cell:
Stop described control unit other handling process except refreshing/recover action.
9. an electronic equipment, is characterized in that, comprising:
First memory cell, during for storing the startup of described electronic equipment, makes the first data of described electronic equipment hardware initialization;
Second memory cell, for storing the second data, described second data comprise the renewal version of described first data or comprise the renewal version of described first data and described first data;
Wherein, described first memory cell and described second memory cell are hardware different in electronic equipment;
Control unit, for obtain instruction refresh/recover the operational order of described first data after, foundation and the data transmission path between described first memory cell and the second memory cell, and the second data read in described second memory cell, by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data;
Wherein, described control unit and described second memory cell can keep connection status always, also can keep connection status when needs.
10. electronic equipment according to claim 9, is characterized in that, described electronic equipment also comprises;
Bus switch, for control unit described in break-make and the bus between described first memory cell.
11. electronic equipments according to claim 10, is characterized in that, described control unit comprises:
Instruction reception unit, refreshes for receiving instruction/recovers the operational order of described first data;
Read-write cell, for reading described first data and/or the second data, and by described first memory cell of described second data write;
Transmitting element, for sending the signal of the data transmission path of instruction connection or disconnection and the first memory cell.
12. electronic equipments according to claim 11, is characterized in that, described control unit also comprises:
Abort unit, for after the data transmission channel establishing described control unit and described first memory cell and the second memory cell, stops other handling process except refreshing/recover action in described control unit.
13. 1 kinds of refreshing/recovering methods, it is characterized in that, the method is applied to an electronic equipment, described electronic equipment comprises the first memory cell, the second memory cell and control unit, when described first memory cell starts for storing described electronic equipment, make the first data of described electronic equipment hardware initialization; Described second memory cell is for storing the second data, and described second data comprise the renewal version of described first data or comprise the renewal version of described first data and described first data; Described control unit is connected with the second memory cell with described first memory cell by bus; Wherein, described first memory cell and described second memory cell are hardware different in electronic equipment;
The method comprises:
Before described electronic equipment carries out hardware initialization according to described first data, obtain the operational order that instruction refreshes/recover described first data;
Set up described control unit and the data transmission path between described first memory cell and the second memory cell; Wherein, described control unit and described second memory cell can keep connection status always, also can keep connection status when needs;
Described control unit reads the second data in described second memory cell, and by described data transmission path by described first memory cell of corresponding data write in described second data, substitute described first data, to realize the refreshing/recovery of described first data.
CN201010586665.7A 2010-12-13 2010-12-13 Refreshing/recovering method and electronic equipment Active CN102567135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010586665.7A CN102567135B (en) 2010-12-13 2010-12-13 Refreshing/recovering method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010586665.7A CN102567135B (en) 2010-12-13 2010-12-13 Refreshing/recovering method and electronic equipment

Publications (2)

Publication Number Publication Date
CN102567135A CN102567135A (en) 2012-07-11
CN102567135B true CN102567135B (en) 2015-04-29

Family

ID=46412618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010586665.7A Active CN102567135B (en) 2010-12-13 2010-12-13 Refreshing/recovering method and electronic equipment

Country Status (1)

Country Link
CN (1) CN102567135B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577279B (en) * 2012-07-30 2016-08-17 联想(北京)有限公司 The data parameters restoration methods of a kind of communication module and electronic equipment
CN105335248B (en) * 2014-06-27 2018-08-31 联想(北京)有限公司 Information processing method and electronic equipment
CN105824666B (en) * 2016-03-14 2019-02-01 美的集团股份有限公司 Data Recapture Unit and method
CN106125656B (en) * 2016-08-31 2019-04-23 余超 Intelligent control anti-misoperation system and its method
CN110309095B (en) * 2017-09-10 2021-08-06 上海必卓电子科技有限公司 Multifunctional industrial controller mainboard
CN108037942B (en) * 2017-12-06 2021-04-09 中电科蓉威电子技术有限公司 Adaptive data recovery and update method and device for embedded equipment
CN108121562B (en) * 2017-12-25 2024-01-23 联想(北京)有限公司 Firmware version switching method, electronic device and BIOS chip
CN109582375A (en) * 2018-12-03 2019-04-05 郑州云海信息技术有限公司 A kind of storage system BIOS restoration methods and storage system
CN113778210B (en) * 2021-08-20 2023-03-10 江苏嘉擎信息技术有限公司 MCU-based ACPI management method, system and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017441A (en) * 2007-02-27 2007-08-15 华为技术有限公司 Electric device, start method of electric and update method of BIOS
CN101051284A (en) * 2006-04-06 2007-10-10 威刚科技股份有限公司 Secure digital storage device and associated controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW548574B (en) * 2001-10-19 2003-08-21 Micro Star Int Co Ltd Display interface with dual basic input/output system and the computer having the same
CN100504782C (en) * 2006-12-18 2009-06-24 纬创资通股份有限公司 Computer system capable of avoiding update failure of basic input /output system program
US8074037B2 (en) * 2009-03-30 2011-12-06 Inventec Corporation Storage service device with dual controller and backup method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051284A (en) * 2006-04-06 2007-10-10 威刚科技股份有限公司 Secure digital storage device and associated controller
CN101017441A (en) * 2007-02-27 2007-08-15 华为技术有限公司 Electric device, start method of electric and update method of BIOS

Also Published As

Publication number Publication date
CN102567135A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102567135B (en) Refreshing/recovering method and electronic equipment
US10860425B2 (en) Method for recovering basic input/output system image file of a computer system and the computer system
CN103136012B (en) Computer system and update method of basic input-output system thereof
CN104220958B (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
CN106020875B (en) Firmware update management method and device of embedded terminal
CN102339242A (en) Computer system data recovery device
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN101909366A (en) Wireless LAN apparatus and wireless lan adapter
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN112134765A (en) WIFI (Wireless Fidelity) back-connection test method and device, test terminal and readable storage medium
CN109344104A (en) Electronic equipment and method for transmitting signals
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN103488516A (en) System repair method and electronic equipment
CN104951348A (en) Interruptible recovery upgrading method and device
WO2022048331A1 (en) Method and device for card reidentification when sim card is disconnected, computer device, and medium
CN112433739B (en) Firmware upgrading method
CN100410893C (en) Method and apparatus for master-controlled applied programm of self-repairing built-in equipment
CN105183673A (en) Method and apparatus for supporting hot swap of external storage device under recovery mode
CN104796967A (en) Wireless network data recovery method and device
CN103648029A (en) Energizing protection method and system for smart television set
CN103747239B (en) A kind of method and intelligent television entering debugging mode
CN109901117A (en) A kind of radar method for restarting and device
CN103455454A (en) Method and device for controlling startup of memory
EP4131888B1 (en) Method for searching for interrupted device, slave device, master device, and storage medium

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160518

Address after: 201203 Shanghai Zhangjiang High Tech Park of Pudong New Area Chunxiao Road No. 289 Room 501

Patentee after: Lenovo (Shanghai) Information Technology Co., Ltd.

Address before: 100085 Beijing, Haidian District information industry base on the road No. 6

Patentee before: Lenovo (Beijing) Co., Ltd.