CN104657233A - Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system - Google Patents
Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system Download PDFInfo
- Publication number
- CN104657233A CN104657233A CN201510044065.0A CN201510044065A CN104657233A CN 104657233 A CN104657233 A CN 104657233A CN 201510044065 A CN201510044065 A CN 201510044065A CN 104657233 A CN104657233 A CN 104657233A
- Authority
- CN
- China
- Prior art keywords
- block
- backup
- bootstrap block
- bios
- main boot
- 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
Links
Abstract
The invention provides a backup restoration method and system for a BIOS (Basic Input Output System) boot block in an X86 system. The method comprises the following steps: S1, starting the X86 system through a main boot block when the system is started; S2, if the main boot block is damaged, starting the system through the backup boot block; S3, after a screen is lighted, copying all contents of the backup boot block to the main boot block. According to the backup restoration method and system for the BIOS boot block in the X86 system, the backup of the Boot Block can be realized with only one BIOS chip, and the selection of two Boot Blocks can be realized without a chip selection circuit, so the design complexity is effectively reduced and the cost is saved.
Description
Technical field
The present invention relates to standby system and the backup method of a kind of BIOS (Basic Input Output System, Basic Input or Output System (BIOS)) bootstrap block, particularly relate to recovery backup method and the standby system of BIOS bootstrap block in a kind of X86 system.
Background technology
BIOS is one group of program being cured in computing machine on mainboard on a rom chip, self-check program and system self-triggered program after the program of the most important basic input and output of in store computing machine, system set-up information, start, thus for computing machine provide the bottom, the most direct hardware setting and control.Bootstrap block (Boot Block) is one section of specific region in BIOS, includes the minimum instruction collection for guiding, and normal BIOS updating operation can not eliminate this segment information.
In X86 computer system, BIOS is stored in SPI BIOS ROM, reads thus provide power up function for X86 system.The X86 computer system of high reliability needs the redundancy of BIOS, especially Boot Block part.Because once BootBlock partial destruction, just have no idea to realize start.
In prior art, when carrying out protection and the backup of Boot Block, adopt two SPI BIOS ROM, and select which BIOS enable by corresponding chip select circuit and BIOS handover module.But said method has the following disadvantages:
(1) need two SPI BIOS rom chips, one as primary, one, as subsequent use, causes the increase of use cost;
(2) need SPIS chip select circuit and BIOS handover module, cause the increase of design complexities, the raising of design cost.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide recovery backup method and the standby system of BIOS bootstrap block in a kind of X86 system, the backup of Boot Block can be realized by means of only a BIOS chip, the selection of two Boot Block can be realized without the need to chip select circuit, significantly reduce design complexities, save cost.
For achieving the above object and other relevant objects, the invention provides the recovery backup method of BIOS bootstrap block in a kind of X86 system, BIOS comprises main boot block and backup bootstrap block, and described main boot block is used for guidance system and starts; The backup of leading bootstrap block described in described backup bootstrap block; In described X86 system, the recovery backup method of BIOS bootstrap block comprises the following steps: when step S1, X86 system boot, by described main boot block start up system; If the described main boot block of step S2 damages, by described backup bootstrap block start up system; Step S3, after screen is lighted, the content of described backup bootstrap block is all copied to described main boot block.
According to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: in described step S1, when X86 system boot, the output of GPIO55 is defaulted as low level, represents by described main boot block start up system.
According to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: in described step S2, when having exceeded the regular hour, when screen is not still lit, judge that described main boot block has damage.
According to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: in described step S2, EC sends control command to CPLD, requires by described backup bootstrap block start up system; The output of GPIO55 is set to high level by CPLD; When the output of GPIO55 is high level, by described backup bootstrap block start up system.
According to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: also comprise step S4, arrange next time start time, by described main boot block start up system.
Further, according to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: in described step S4, when after os starting, the control command that CPLD sends according to EC, is set to low level by the output of GPIO55, and start next time is started by described main boot block.
According to the recovery backup method of BIOS bootstrap block in above-mentioned X86 system, wherein: the content of described backup bootstrap block is in write-protect state, can not be erasable.
Meanwhile, the present invention also provides the recovery standby system of BIOS bootstrap block in a kind of X86 system, and BIOS comprises main boot block and backup bootstrap block, and described main boot block is used for guidance system and starts; The backup of leading bootstrap block described in described backup bootstrap block; Described recovery standby system comprises startup module, handover module and replication module;
Described startup module is used for when X86 system boot by described main boot block start up system;
Described handover module is used for, when described main boot block damages, switching to by described backup bootstrap block start up system;
Described replication module is used for after screen is lighted, and the content of described backup bootstrap block is all copied to described main boot block.
According to the recovery standby system of BIOS bootstrap block in above-mentioned X86 system, wherein: the content of described backup bootstrap block is in write-protect state, can not be erasable.
According to the recovery standby system of BIOS bootstrap block in above-mentioned X86 system, wherein: described handover module comprises CPLD and EC, described EC is for the output level of control GPIO55, and described CPLD is for realizing the switching of GPIO55 level; When the output of GPIO55 is low level, represent by described main boot block start up system; When the output of GPIO55 is high level, represent by described backup bootstrap block start up system.
As mentioned above, the recovery backup method of BIOS bootstrap block and standby system in X86 system of the present invention, have following beneficial effect:
(1) a SPI BIOS rom chip is only needed, cost-saving;
(2) do not need chip select circuit, design complexities is low;
(3) capacity of each Boot Block reaches 1M, practical requirement;
(4) only need can judge to start which bootstrap block according to the level of GPIO55;
(5) back up bootstrap block Boot Block2 and be in write-protect state, thus ensure to have at least a bootstrap block to be intact.
Accompanying drawing explanation
Fig. 1 is shown as the structural representation of BIOS system of the present invention;
Fig. 2 is shown as the process flow diagram of the recovery backup method of BIOS bootstrap block in X86 system of the present invention;
Fig. 3 is shown as the structural representation of the standby system of BIOS bootstrap block in X86 system of the present invention;
Fig. 4 is shown as the fundamental diagram of the standby system of BIOS bootstrap block in X86 system of the present invention.
Element numbers explanation
1 starts module
2 handover modules
3 replication modules
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
As shown in Figure 1, in the present invention, BIOS is except comprising ME (management Engine, management engine), NVRAM (Non-Volatile Random Access Memory, nonvolatile random access memory), outside Main BIOS, also comprise these two bootstrap blocks of BootBlock and BootBlock2.Wherein, Boot Block is used as main boot block, starts for guidance system; BootBlock2 is used as backup bootstrap block, for identical with Boot Block one is backed up.
With reference to Fig. 2, in X86 system of the present invention, the recovery backup method of BIOS bootstrap block comprises the following steps:
When step S1, X86 system boot, by main boot block start up system.
Particularly when X86 system boot, processing platform (CPU/PCH/ME) is from Boot Block deactivation.The output of GPIO55 is defaulted as low level, and namely 0.
If step S2 main boot block damages, by backup bootstrap block start up system.
When having exceeded the regular hour, when screen is not still lit, judge that Boot Block can be detrimental to bad.Now, start up system is carried out by Boot Block2.Particularly, by EC (Embed Controller, embedded controller) as SES/BMC, send out control command to CPLD (Complex Programmable Logic Device, CPLD), require from Boot Block2 start up system.The output of GPIO55 is set to high level by CPLD, and namely 1.When the output of GPIO55 is high level, processing platform (CPU/PCH/ME) starts from backup bootstrap block.
Step S3, after screen is lighted, by backup bootstrap block content all copy to main boot block.
Particularly, when screen is lighted, BIOS can all copy to BootBlock part, to repair BootBlock part the content of BootBlock2 part.
Preferably, also comprise step S4, arrange next time start time, by main boot block start up system.
When successfully starting to OS (Operating System, operating system) after, CPLD can notify that EC system has successfully started up, then EC sends out control command to CPLD, require the output of GPIO55 to be set to low level, make start next time from BootBlock deactivation.
It should be noted that, the content backing up bootstrap block Boot Block2 in the present invention is in write-protect state, can not be erasable.Like this, can ensure to have at least one to be intact in two bootstrap blocks.Even if when main boot block Boot Block damages, the normal startup of system also can be ensured.
Therefore, the present invention is without the need to the SPI chip select circuit of complexity, and warp can be determined from which bootstrap block to start by the output level of GPIO55.And the output level of GPIO55 is controlled by EC, and realized the switching of GPIO55 level by CPLD.
With reference to Fig. 3 and Fig. 4, in X86 system of the present invention, the recovery standby system of BIOS bootstrap block comprises startup module 1, handover module 2 and replication module 3.
Start module 1 for when X86 system boot by main boot block Boot Block start up system.
Handover module 2, for when main boot block Boot Block damages, switches to by backup bootstrap block Boot Block2 start up system.
The content of backup bootstrap block Boot Block2, for after screen is lighted, is all copied to main boot block Boot Block by replication module 3.
Wherein, handover module comprises CPLD and EC, and EC is for the output level of control GPIO55, and CPLD is for realizing the switching of GPIO55 level; When the output of GPIO55 is low level, represent by main boot block start up system; When the output of GPIO55 is high level, represent by backup bootstrap block start up system.
Particularly, when X86 system boot, GPIO55 is low level, from main boot block start up system; When main boot block damages, EC sends control command, to CPLD, CPLD, the output of GPIO55 is set to high level, from backup bootstrap block start up system, and after screen is lighted, the content of backup bootstrap block is all copied to main boot block; When after os starting, EC sends control command, to CPLD, CPLD, the output of GPIO55 is set to low level.
It should be noted that, the content backing up bootstrap block Boot Block2 in the present invention is in write-protect state, can not be erasable.Like this, can ensure to have at least one to be intact in two bootstrap blocks.Even if when main boot block Boot Block damages, the normal startup of system also can be ensured.
Therefore, the present invention is without the need to the SPI chip select circuit of complexity, and warp can be determined from which bootstrap block to start by the output level of GPIO55.And the output level of GPIO55 is controlled by EC, and realized the switching of GPIO55 level by CPLD.
In sum, in X86 system of the present invention, the recovery backup method of BIOS bootstrap block and standby system only need a SPIBIOS rom chip, cost-saving; Do not need chip select circuit, design complexities is low; The capacity of each Boot Block reaches 1M, practical requirement; Only need can judge to start which Boot Block according to the level of GPIO55; Backup bootstrap block BootBlock2 is in write-protect state, thus ensures to have at least a bootstrap block to be intact.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.
Claims (10)
1. the recovery backup method of BIOS bootstrap block in X86 system, is characterized in that: BIOS comprises main boot block and backup bootstrap block, and described main boot block is used for guidance system and starts; The backup of leading bootstrap block described in described backup bootstrap block;
In described X86 system, the recovery backup method of BIOS bootstrap block comprises the following steps:
When step S1, X86 system boot, by described main boot block start up system;
If the described main boot block of step S2 damages, by described backup bootstrap block start up system;
Step S3, after screen is lighted, the content of described backup bootstrap block is all copied to described main boot block.
2. the recovery backup method of BIOS bootstrap block in X86 system according to claim 1, it is characterized in that: in described step S1, when X86 system boot, the output of GPIO55 is defaulted as low level, represents by described main boot block start up system.
3. the recovery backup method of BIOS bootstrap block in X86 system according to claim 1, is characterized in that: in described step S2, when having exceeded the regular hour, when screen is not still lit, judging that described main boot block has damage.
4. the recovery backup method of BIOS bootstrap block in X86 system according to claim 1, is characterized in that: in described step S2, and EC sends control command to CPLD, requires by described backup bootstrap block start up system; The output of GPIO55 is set to high level by CPLD; When the output of GPIO55 is high level, by described backup bootstrap block start up system.
5. the recovery backup method of BIOS bootstrap block in X86 system according to claim 1, is characterized in that: also comprise step S4, when arranging start next time, by described main boot block start up system.
6. the recovery backup method of BIOS bootstrap block in X86 system according to claim 5, it is characterized in that: in described step S4, when after os starting, the control command that CPLD sends according to EC, the output of GPIO55 is set to low level, start next time is started by described main boot block.
7. the recovery backup method of BIOS bootstrap block in X86 system according to claim 1, is characterized in that: the content of described backup bootstrap block is in write-protect state, can not be erasable.
8. the recovery standby system of BIOS bootstrap block in X86 system, is characterized in that: BIOS comprises main boot block and backup bootstrap block, and described main boot block is used for guidance system and starts; The backup of leading bootstrap block described in described backup bootstrap block; Described recovery standby system comprises startup module, handover module and replication module;
Described startup module is used for when X86 system boot by described main boot block start up system;
Described handover module is used for, when described main boot block damages, switching to by described backup bootstrap block start up system;
Described replication module is used for after screen is lighted, and the content of described backup bootstrap block is all copied to described main boot block.
9. the recovery standby system of BIOS bootstrap block in X86 system according to claim 8, is characterized in that: the content of described backup bootstrap block is in write-protect state, can not be erasable.
10. the recovery standby system of BIOS bootstrap block in X86 system according to claim 8, it is characterized in that: described handover module comprises CPLD and EC, described EC is for the output level of control GPIO55, and described CPLD is for realizing the switching of GPIO55 level; When the output of GPIO55 is low level, represent by described main boot block start up system; When the output of GPIO55 is high level, represent by described backup bootstrap block start up system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510044065.0A CN104657233A (en) | 2015-01-28 | 2015-01-28 | Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510044065.0A CN104657233A (en) | 2015-01-28 | 2015-01-28 | Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104657233A true CN104657233A (en) | 2015-05-27 |
Family
ID=53248405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510044065.0A Pending CN104657233A (en) | 2015-01-28 | 2015-01-28 | Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657233A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106354514A (en) * | 2016-09-23 | 2017-01-25 | 成都爱斯顿科技有限公司 | Method for rapidly guiding BIOS (basic input output system) of ShenWei processor |
CN109344005A (en) * | 2018-09-20 | 2019-02-15 | 浪潮电子信息产业股份有限公司 | A kind of basic input-output system BIOS redundancy backup method and device |
CN112199235A (en) * | 2020-09-30 | 2021-01-08 | 联想(北京)有限公司 | Electronic equipment and starting method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1707442A (en) * | 2005-03-28 | 2005-12-14 | 联想(北京)有限公司 | Method for recoverying basic inputting and outputting system chip |
CN101807151A (en) * | 2009-02-18 | 2010-08-18 | 英业达股份有限公司 | Basic input-output system, computer device and basic input-output system recovering method |
CN103678018A (en) * | 2012-09-04 | 2014-03-26 | 联想(北京)有限公司 | Method and device for recovering data |
US20140089615A1 (en) * | 2011-05-23 | 2014-03-27 | Nec Infrontia Corporation | Computer and computer control method |
WO2014175862A1 (en) * | 2013-04-23 | 2014-10-30 | Hewlett-Packard Development Company, L.P. | Redundant system boot code in a secondary non-volatile memory |
-
2015
- 2015-01-28 CN CN201510044065.0A patent/CN104657233A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1707442A (en) * | 2005-03-28 | 2005-12-14 | 联想(北京)有限公司 | Method for recoverying basic inputting and outputting system chip |
CN101807151A (en) * | 2009-02-18 | 2010-08-18 | 英业达股份有限公司 | Basic input-output system, computer device and basic input-output system recovering method |
US20140089615A1 (en) * | 2011-05-23 | 2014-03-27 | Nec Infrontia Corporation | Computer and computer control method |
CN103678018A (en) * | 2012-09-04 | 2014-03-26 | 联想(北京)有限公司 | Method and device for recovering data |
WO2014175862A1 (en) * | 2013-04-23 | 2014-10-30 | Hewlett-Packard Development Company, L.P. | Redundant system boot code in a secondary non-volatile memory |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106354514A (en) * | 2016-09-23 | 2017-01-25 | 成都爱斯顿科技有限公司 | Method for rapidly guiding BIOS (basic input output system) of ShenWei processor |
CN106354514B (en) * | 2016-09-23 | 2019-06-25 | 成都爱斯顿科技有限公司 | A kind of method of quick guidance Shen prestige processor BIOS |
CN109344005A (en) * | 2018-09-20 | 2019-02-15 | 浪潮电子信息产业股份有限公司 | A kind of basic input-output system BIOS redundancy backup method and device |
CN109344005B (en) * | 2018-09-20 | 2022-03-22 | 浪潮电子信息产业股份有限公司 | Basic input output system BIOS redundancy backup method and device |
CN112199235A (en) * | 2020-09-30 | 2021-01-08 | 联想(北京)有限公司 | Electronic equipment and starting method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9910664B2 (en) | System and method of online firmware update for baseboard management controller (BMC) devices | |
CN102804134B (en) | Apparatus and method for handling exception events | |
US9471435B2 (en) | Information processing device, information processing method, and computer program | |
CN104424008A (en) | System and method for secure boot ROM patch | |
CN102388366B (en) | Method and device for realizing compatibility of different processors | |
WO2016206514A1 (en) | Startup processing method and device | |
CN104360877A (en) | ECU (electronic control unit) firmware updating method based on Bootloader self update | |
US10481901B2 (en) | System and method for performing firmware update by patching | |
CN105808270A (en) | Firmware variable updating method | |
CN104331318A (en) | Embedded type dual system and working method thereof | |
CN105653405B (en) | A kind of fault handling method and system of Generic Bootstrap | |
CN105159738A (en) | Hot patch implementation method and system | |
CN108874582A (en) | A kind of system recovery method, device and terminal | |
CN104657233A (en) | Backup restoration method and system for BIOS (Basic Input Output System) boot block in X86 system | |
CN104573529A (en) | BIOS firmware dividing and updating method and system | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN101241442A (en) | Computer system possessing double boot-strap program code area and its startup method | |
CN109582332B (en) | System upgrading method and device for Internet camera | |
US20070050612A1 (en) | Boot program update and restoration system and method thereof | |
JP6175788B2 (en) | Electronic devices that can update microprograms | |
CN106843764B (en) | Method and system for creating soft independent redundant disk array | |
CN109614153A (en) | Multi core chip and system | |
CN111142922A (en) | Application program updating method and device, terminal and server | |
CN104572198A (en) | Service restoration method and device | |
JP2004338883A (en) | Elevator controller |
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: 20150527 |