A kind of double BIOS systems and its implementation based on platform of soaring
Technical field
The invention belongs to basic I/O system technology field, specifically, being related to a kind of double based on platform of soaring
BIOS system and its implementation.
Background technology
BIOS:BIOS is the initialism of English " Basic Input Output System ", literally rear Chinese
It is exactly " basic input output system ".It is one group of program being cured in computer on mainboard on a rom chip, it is preserved
The most important basic input and output of computer program, booting after self-check program and system self-triggered program, it can be from CMOS
The specifying information of middle read-write system setting.Its major function be for computer provide the bottom, most direct hardware setting and
Control.In addition, BIOS also provides some systematic parameters to operating system.The variation of system hardware is hidden by BIOS, and program makes
With BIOS functions rather than directly control hardware.
Existing Feiteng processor platform motherboard BIOS is only an executable file, not including any check information and BIOS
Synchronization module;It stores also without reserved storage information in the medium of BIOS executable files, Feiteng processor is by wire jumper
Mode determines chip selection signal, and then selects the single BIOS being connect with it, as shown in Figure 1.Existing Feiteng processor with
BIOS chips connect, and are mainly made of Feiteng processor, BIOS chips and wire jumper circuit.Wherein, BIOS chips are one piece of storage
The integrated circuit of single BIOS system, which is only an executable file, not including any check information and BIOS
Synchronization module;Simultaneously also information is stored without reserved data block on BIOS chips;Feiteng processor sends piece on wire jumper circuit
Signal is selected, realization communicates with the BIOS chips that it is connect.
If there is corrupted data situation, such as because the Flash chip of storage BIOS in the BIOS in platform motherboard that soars
Position saltus step occur leads to BIOS corrupt datas, then only BIOS system error frequently can lead to the platform master that entirely soars
Plate is all unable to normal use.In addition, in the case of other, if platform motherboard of soaring need to upgrade BIPS could solve the problems, such as it is certain
Situation, then due to not supporting BIOS online upgrading functions, so can only be by the way that mainboard of soaring is returned factory replacement BIOS or is led to
The replacement of professional technician scene is crossed, user can not settle a dispute by the parties concerned themselves.
Existing BIOS starts the methods and techniques of control, solves the more of BIOS upgradings, does not account for and is based on soaring
The stationary problem after double BIOS system online upgrading problems and upgrading under processor platform.
Chinese invention patent (application number CN200410086696.0) proposes a kind of basic input output system and rises online
The method of grade, the BIOS program for starting to guiding device operating system realize online upgrading, the method includes:It will be used for
The BIOS program of upgrading is loaded into BIOS program power down keep medium;Setting BIOS upgrade status mark is simultaneously saved in mark guarantor
It deposits in power down keep medium;After the equipment restarts, according to the operation of BIOS upgrade status mark for the BIOS of upgrading
Program;If the BIOS program for upgrading runs failure, former BIOS program is run.The invention can upgrade to avoid BIOS loses
The risk that equipment is caused not start normally is lost, ensures the normal startup of equipment, but was not considered based on processing of soaring
The BIOS system online upgrading problem of device platform.
Chinese invention patent (application number CN00101113.8) proposes a kind of by system bios upgrading ROM
New edition BIOS program is compressed into a upgrade file so that its data volume is greatly reduced, so by method in advance using the principle of compression
Upgrade file can be greatly reduced as the time needed for storage media are packed into system storage, to save time and cost;Again
The decompressing function code added in cooperation upgrading tool program, the upgrade file through overcompression is decompressed, and is restored
New edition BIOS program is obtained to carry out the operation of subsequent programmable BIOS ROM.The invention did not considered to be based on
The BIOS system online upgrading problem of Feiteng processor platform.
Chinese invention patent (application number CN200610058031.8) proposes system and the side of a kind of BIOS refreshing and upgradings
Method, including remote control service device end and terminal computer, remote control service device end and terminal computer all include IPMI,
BMC, with outer NIC, in the IPMI of terminal computer, update control module including BIOS, for reading refresh flags position, and determine
Whether read BIOS update files and carry out BIOS update upgradings;The terminal computer further includes upgrade file memory module,
For storing BIOS update upgrade files, and refresh flags position is set as needing to update BIOS file, and updated and controlled by BIOS
Molding block is after the completion of BIOS updates by the mark bit clear;Remote control service device end further includes BIOS file transmission mould
Block, for obtaining and BIOS update upgrade files being sent to terminal computer by network.The invention did not considered to fly
Double BIOS system stationary problems after rising BIOS system online upgrading problem in platform and upgrading.
Chinese invention patent (application number CN201611126615.4) discloses a kind of method of remote automatic upgrading BIOS,
Including:Step S100:When loading BIOS on the client device for needing to upgrade, user controls client device by HOTKEY
To server send BIOS upgrade requests, and by client device information by the Internet transmission to server;Step S200:When
Server receives client device BIOS upgrade requests, compares client device information and server prestored information, judges visitor
Whether family end equipment, which needs, upgrades, and if necessary to upgrade, sends upgrade command and BIOS upgrade files to client device, enters
Step S300, on the contrary not upgrade command is sent to client, enter step S400;Step S300:Client device will receive
Upgrade command and upgrade file, client device update BIOS;Step S400:Client device loads BIOS, start-up operation
System.Although the invention is controlled in BIOS load phases by user using hot key, using automatic networking between equipment and server
Detection upgrading promotes BIOS upgrading efficiency, but after not considering online upgrading problem and upgrading based on platform of soaring
Double BIOS system stationary problems.
Chinese invention patent (application number CN201610001571.6) discloses BIOS and BMC in ARM platforms and starts simultaneously
When ensure the optimization algorithm of synchronizing information, the algorithm sets a FLAG when BMC start completions, starts the in BIOS
It goes to read this FLAG by IPMI when primary access BMC, if FLAG is provided, then begin to read BMC, such as
Fruit is not provided, then just goes to read the value of CPU Power Fail registers, if CPU Power Fail registers
Value be 1, then delay the long period, then return again to read BMC FLAG, if the value of CPU Power Fail registers
It is 0, then then the delay short period returns again to the FLAG for reading BMC, the value until reading correct FLAG.It although should
Invention completes BIOS and BMC synchronizing informations by the software code by UEFI BIOS, but does not consider platform of soaring
In double BIOS system stationary problems, be also not involved with BIOS system online upgrading problem.
Chinese invention patent (application number CN201710178532.8) discloses a kind of BIOS upgrade methods, and step includes:
1) USB flash disk is checked for;2) it such as checks there are USB flash disk, then continues checking for the presence or absence of BIOS upgrade files in USB flash disk, it is described
BIOS upgrade files include the upgrade file of 64bit and the upgrade file of 32bit;3) it such as checks USB flash disk there are system bios liters
Grade file, then the current system of system judgement is 32bit or 64bit;4) such as judge that current system is 32bit, then system
The upgrade file of 32bit is run, it is 64bit such as to judge current system, then the upgrade file of system operation 64bit;5) system
After entering corresponding upgrade file, read upgrade file contents and be written in memory;6) restart system.Although the invention
Method is without using cd-rom recorder and does not depend on particular hardware and realizes BIOS upgrade methods, but in the platform that do not considered to soar
Double BIOS system stationary problems after BIOS system online upgrading problem and upgrading.
Invention content
In view of this, the present invention provides a kind of flat based on soaring to solve defect and deficiency of the existing technology
The double BIOS systems and its implementation of platform, double BIOS system contents are that may be present inconsistent in the platform that can solve to soar
Problem, and double BIOS systems in the platform that solves the problems, such as to soar after BIOS system online upgrading and upgrading are that may be present asynchronous
Problem.
In order to solve the above-mentioned technical problem, the invention discloses a kind of based on the double BIOS systems for platform of soaring and its realization
Method, and realized using following technical scheme.
A kind of double BIOS systems based on platform of soaring, including Feiteng processor, switching connection circuit, BIOS_1 systems and
BIOS_2 systems;The Feiteng processor is electrically connected with the switching connection circuit, and circuit is connected to BIOS by the switching
System is into the read-write of row information;The switching connection circuit is electrically connected respectively with the BIOS_1 systems and the BIOS_2 systems
It connects.
Further, the switching connection circuit is respectively by corresponding chip selection signal and the BIOS_1 and described
BIOS_2 is electrically connected.
A kind of double BIOS system online upgrading methods based on platform of soaring, step include:
S11, the BIOS system information for reading upgraded version;
S12, the verification for calculating the BIOS system and, if verification error, exits the online upgrading flow;Otherwise,
Into in next step;
S13, BIOS system to be upgraded is written in the BIOS system of the upgraded version;
S14, its storage location is written in upgrading mark.
Further, the S13 is specially upgrade procedure operation switching connection circuit, is directed toward its chip selection signal to be upgraded
BIOS_1 systems either BIOS_2 systems the BIOS system of the upgraded version be written the BIOS_1 systems or
In BIOS_2.
Further, the S14 is specially that the upgrading mark write-in is stored the BIOS system to be upgraded
In Flash chip.
A kind of double BIOS system synchronous method based on platform of soaring, powering on synchronizing process and answering including Feiteng processor
Bit synchronization process;Synchronization program switches the feature register of connection circuit by reading to determine the information of current BIOS system,
Then the switching connection circuit is operated, the chip selection signal being connect with the Feiteng processor is controlled to select BIOS to be synchronized
System simultaneously synchronizes.
Further, the synchronizing process specific steps that power on include:
S21, start BIOS_1 systems;
If S22, the BIOS_1 systems start successfully, S26 is entered step;If the BIOS_1 systems start failure,
Start BIOS_2 systems;
If S23, the BIOS_2 systems start failure, synchronization failure;
If S24, the BIOS_2 systems start successfully but verification malfunctions, synchronization failure;
If S25, the BIOS_2 systems start successfully and verification and correct, described in the BIOS_2 system synchronizations
BIOS_1 systems, and judge that the upgrading of the BIOS_2 systems identifies whether effectively, into S28;
S26, the verification BIOS_1 systems, start the BIOS_2 systems, and enter the S23 if error is verified;
If S27, BIOS_1 system checks success, judge that the upgrading of the BIOS_1 systems identifies whether effectively;
If the upgrading mark of the BIOS_1 systems is invalid, reads and verify the BIOS_2 systems, institute is synchronized if error is verified
State BIOS_2 systems;The synchronizing process that powers on is completed if verification is correct;If the upgrading mark of the BIOS_1 systems is effective,
Into in next step;
If S28, the upgrading mark are effective, upgrade described in the BIOS_1 systems or the BIOS_2 systems and erasing
Upgrading mark, it is described to power on synchronizing process completion.
Further, the specific steps for resetting synchronizing process include:
S31, judge whether current BIOS system can start, judge whether spare BIOS can start if failure is started;If
The current BIOS system success, then into S35;
If S32, the spare BIOS start failure, synchronization failure;If the spare BIOS starts successfully, under entering
One step;
S33, reading simultaneously verify the spare BIOS information;The synchronization failure if failure is verified;If verifying successfully, enter
In next step;
S34, the current BIOS is synchronized by the spare BIOS;The reset synchronizing process is completed;
S35, the current BIOS information is read, and is verified;If verifying successfully, enter in next step;If verification is lost
It loses, then read and verifies the spare BIOS, reset synchronization failure if the spare BIOS verifications failure;It is if described spare
BIOS is verified successfully, then synchronizes the current BIOS, and the reset synchronizing process is completed;
S36, reading simultaneously verify the spare BIOS, and the reset synchronizing process is completed if verifying successfully;If verification is lost
It loses, then the spare BIOS is synchronized by the current BIOS, the reset synchronizing process is completed.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of online upgrading method described above and/or the synchronous method are realized when calculation machine program is executed by processor.
A kind of device including memory, processor and is stored in the memory and can transport on the processor
Capable computer program, the processor realize online upgrading method described above and/or institute when performing the computer program
State synchronous method the step of.
Compared with prior art, the present invention can be obtained including following technique effect:
1) two BIOS systems are not the main and standby relations on ordinary meaning, but the relationship of equity completely;Pass through special journey
Sequence, can be with online upgrading BIOS system;
2) value of circuit feature register can be connected by switching to judge the BIOS system being currently up;
3) synchronization module as a part of compiling link of BIOS system executable file into BIOS system, at the beginning of BIOS
It is performed automatically after beginningization minimum system, it is ensured that primary, spare BIOS system content is consistent.
Certainly, implementing any of the products of the present invention must be not necessarily required to reach all the above technique effect simultaneously.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the present invention, this hair
Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is existing Feiteng processor and BIOS chip connection diagrams.
Fig. 2 is the BIOS and upgrading mark schematic diagram stored in the Flash chip of one embodiment of the invention.
Fig. 3 is the schematic diagram that the Feiteng processor of one embodiment of the invention is connect through switching connection circuit with double BIOS.
Fig. 4 is BIOS online upgradings schematic diagram provided by one embodiment of the present invention.
Fig. 5 is that Feiteng processor power up BIOS provided by one embodiment of the present invention synchronizes schematic diagram.
Fig. 6 is that Feiteng processor reseting procedure BIOS provided by one embodiment of the present invention synchronizes schematic diagram.
Specific embodiment
Carry out the embodiment that the present invention will be described in detail below in conjunction with accompanying drawings and embodiments, thereby how the present invention is applied
Technological means can fully understand and implement according to this to solve technical problem and reach the realization process of technical effect.
A kind of double BIOS systems based on platform of soaring, design procedure include:
First, the chip selection signal of BIOS chips is accessed using Feiteng processor, circuit is connected by switching, realization is soared flat
Double BIOS system mechanism of platform mainboard;
Secondly, by adding in CRC check information and BIOS system synchronization module in BIOS system executable file, upper
When electricity or reset, BIOS synchronization modules are performed in BIOS, it can be ensured that primary, spare BIOS system is completely the same;When wherein one
When corrupted data occurs in a BIOS system (but the chip of storage BIOS does not damage), BIOS system synchronization module actively uses another
Good BIOS system synchronizes the BIOS system currently damaged, effectively improves the reliabilty and availability of Feiteng processor platform;
Finally, BIOS system upgrade procedure can first read upgraded version BIOS system, be then written to BIOS_ to be upgraded
1 system, while upgrading is set to identify;Next, after BIOS system synchronization module synchronizes upgrading by judgement upgrading mark
BIOS system, it is ensured that the primary, spare BIOS system after upgrading is completely the same, promotes the maintainability of Feiteng processor platform.
BIOS and the structure diagram of upgrading mark are stored in Flash chip, as shown in Figure 2.Storage organization generation
Step includes:First, after writable BIOS being generated in compiling, using the computational algorithm of crc value, the crc value of the BIOS is acquired;
Secondly, analyze the link script of BIOS, find out the 4 of the continuous blank bytes not utilized in BIOS, this 4 bytes using as
Simultaneously record the location address in the insertion position of crc value;Finally, the last one data in the Flash chip of storage BIOS are reserved
4 bytes of head of block are as upgrading flag.
The schematic diagram that Feiteng processor is connect by switching connection circuit with double BIOS, as shown in Figure 3.It is main to include soaring
Processor, two BIOS_1 systems, BIOS_2 systems and switching connection circuit.Wherein, two BIOS systems include BIOS_1 master
System and BIOS_2 back-up systems.The chip selection signal that switching connection circuit control Feiteng processor is connected with two BIOS, and
Current chip selection signal is able to record when resetting.Upon power-up, Feiteng processor is attempted to start from BIOS_1 systems, if failure
Then enter and reset flow.When set, switching connection circuit automatically switches chip selection signal to complete according to the chip selection signal of record
The switching of two standby usage BIOS systems.Current chip selection signal recorded in switching connection circuit is stored in its feature register
In, software reads this feature register and may determine that the BIOS system that should currently start.
Fig. 4 shows one embodiment of BIOS system online upgrading process according to the present invention.Specific embodiment step
It is as follows:
Step S401:Start upgrade procedure, the BIOS system of upgraded version is read from system;
Step S402:Calculate upgraded version BIOS system verification and, if verification error, prompt the upgraded version
BIOS verifications are wrong and exit entire online upgrading process;Otherwise, into next step;
Step S403:Upgrade procedure operation switching connection circuit, makes its chip selection signal be directed toward BIOS_1 systems to be upgraded
(or BIOS_2 systems) upgraded version BIOS system is written in BIOS_1 systems to be upgraded;
Step S404:Upgrading is identified the last one memory block in the Flash chip of write-in storage BIOS_1 systems;
Step S405:Whole system is closed in power-off.
Feiteng processor BIOS synchronization module synchronizing processes provided in an embodiment of the present invention are broadly divided into, in Feiteng processor
Electric process flow synchronous with the BIOS system of reseting procedure.Due to a part compiled chain of the synchronization module as bios code
It is connected in executable BIOS system, so being performed before operating system is guided.Synchronization program can read switching connection circuit
Feature register determines current BIOS system, and then operation switching connection circuit, controls the BIOS pieces being connect with Feiteng processor
Signal is selected to synchronize BIOS system.
In Feiteng processor power up BIOS system synchronize flow diagram as shown in figure 5, specific embodiment step such as
Under:
Step S501:Acquiescence starts from BIOS_1 when powering on;
Step S502:It attempts to start from BIOS_2 if failure is started;
Step S503:The buzzer alert if BIOS_2 starts failure prompts to need replacing BIOS;
Step S504:If BIOS_2 starts successfully but verification error, buzzer alert, prompting need replacing BIOS;
Step S505:BIOS_2 starts successfully and verification is with correctly, then synchronizes BIOS_1 with BIOS_2 and marked according to upgrading
Whether knowledge effectively judges whether to need to wipe upgrading mark;
Step S506:BIOS_1 starts successfully, verifies BIOS_1, and BIOS_2 is read if verifying and malfunctioning, and then if
BIOS_2 also verifies mistake and then enters step S503;Otherwise, S505 is entered step;
Step S507:BIOS_1 is verified successfully, judges that upgrading identifies whether effectively, to read if upgrading mark is invalid
BIOS_2, and then BIOS_2 verifications are carried out, if verifying and malfunctioning BIOS_2 is synchronized with BIOS_1;
Step S508:If upgrading mark is effective, upgrading mark is simultaneously wiped in upgrading BIOS _ 2.
In Feiteng processor reseting procedure BIOS system synchronize flow diagram as shown in fig. 6, specific embodiment step such as
Under:
Step S601:Current BIOS system starts failure, is switched to spare BIOS and starts;
Step S602:The buzzer alert if spare BIOS also starts failure prompts to need replacing BIOS;
Step S603:If spare BIOS starts successfully but verification error, buzzer alert, prompting need replacing BIOS;
Step S604:If spare BIOS starts successfully and verification is with correctly, current BIOS is synchronized with spare BIOS;
Step S605:If current BIOS starts successfully but verification error, read spare BIOS and judge its verify with such as
The spare BIOS of fruit is verified and is correctly then entered step S604, otherwise enters step S602;
Step S606:If current BIOS starts successfully and verification and correct, read spare BIOS and judge its verify with,
With current BIOS synchronized reserves BIOS if spare BIOS bad checksums.
The beneficial effects of the invention are as follows:
1) two BIOS systems are not the main and standby relations on ordinary meaning, but the relationship of equity completely;Pass through special journey
Sequence, can be with online upgrading BIOS system;
2) value of circuit feature register can be connected by switching to judge the BIOS system being currently up;
3) synchronization module as a part of compiling link of BIOS system executable file into BIOS system, at the beginning of BIOS
It is performed automatically after beginningization minimum system, it is ensured that primary, spare BIOS system content is consistent.
A kind of double BIOS systems and its implementation based on platform of soaring provided above the embodiment of the present invention, into
It has gone and has been discussed in detail.The explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention;It is meanwhile right
In those of ordinary skill in the art, thought according to the present invention has change in specific embodiments and applications
Part, in conclusion the content of the present specification should not be construed as limiting the invention.
Some vocabulary has such as been used to censure specific components or module in specification and claim.Art technology
Personnel are, it is to be appreciated that different institutions may call same component or module with different nouns.This specification and right will
It asks not in a manner that the difference of title is used as and distinguishes component, but area is used as with the difference of component or module functionally
The criterion divided.As being open language, therefore should solve in specification in the whole text and claim "comprising", " comprising " mentioned in
It is interpreted into " including but not limited to "." substantially " refer in receivable error range, those skilled in the art can be certain
The technical problem is solved in error range, basically reaches the technique effect.Specification subsequent descriptions are to implement the present invention's
Better embodiment, so description is that the model of the present invention is not limited to for the purpose of illustrating the rule of the present invention
It encloses.Protection scope of the present invention is when subject to appended claims institute defender.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that commodity or system including a series of elements not only include those elements, but also including without clear and definite
It the other element listed or further includes as this commodity or the intrinsic element of system.In the feelings not limited more
Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity including the element or system also
There are other identical elements.
Several preferred embodiments of the present invention have shown and described in above description, but as previously described, it should be understood that the present invention
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations,
Modification and environment, and can in innovation and creation contemplated scope described herein, by the technology of above-mentioned introduction or related field or
Knowledge is modified.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, then it all should be
In the protection domain of appended claims of the present invention.