A kind of CMOS of preventing is provided with improper and causes the unsettled control method of system biosTechnical field
The present invention relates to a kind of control method, be meant a kind of unsettled control method of system bios that can prevent to cause especially because CMOS is provided with improper.
Background technology
Along with improving constantly of the continuous progress of society, people's living standard, people's productive life strided forward towards the big step of digital information, the various electronic apparatuss that can promote people's work efficiency and quality of life spread to people's work and life gradually, and therefore computing machine also becomes the standing instrument of numerous work units and family.
Computing machine is commonly called as computer, is a kind ofly can carry out the modernized intelligent electronic device of massive values computation and information processing automatically, at high speed according to prior program stored.The primary structure of computing machine has: central processing unit (CPU), storer, external unit (input-output device) and Various types of data connecting line.During computer operation, at first, require the various forms of information translation such as data, character, literal, figure and program of Computer Processing to be deposited in the storer of computing machine the user by the input equipment in the computer peripheral by the receptible form of computing machine; Secondly, mainly lean on the central processing unit of computing machine to the specified executable operations of carrying out one by one of program in the data based storer of store memory storage; At last, the result of computing machine is exported by computer output equipments such as screen display, literal printing, voice audio amplifiers with the form that the user needs.
Computer technology is in continuous progress, the function of computer motherboard is also more and more, the setting of the CPU kind of supporting, frequency, voltage is tending towards diversification, computer peripheral is of a great variety especially, add the in vogue day by day of DIY, computer peripheral equipments such as the internal memory in some user's computer, hard disk, video card also all are by the needs institute device of user according to oneself.As everyone knows, BIOS except to the detecting of peripheral hardwares such as the frequency size of CPU model frequency, internal memory, hard disk with drive, with other the project that is provided with according to set a property, purposes is divided into tens sports, the user goes down to adjust relevant parameters to certain project, and these parameter values can store and be recorded in the CMOS chip.Before start next time,, activate or close a certain function by the needs that are provided with of BIOS according to the user.The operational mode of computing machine is more and more flexible, yet above-mentioned BIOS still exists a series of defective when concrete work.
At first, because a large amount of uses of all kinds of computer peripheral devices, so these computing machines are in the process of work, though Basic Input or Output System (BIOS) has gone to detect the action of these peripherals as much as possible, but can't take into account all peripherals, the peripherals that will use in the time of can only starting shooting at some is handled, and some function then keeps when some equipment of giving is loaded onto just enables, if enable the speed of start that to slow down rashly, even can cause the conflict between system hardware.
Secondly, because the BIOS parameter value of some computing machine, relate to the characteristic limited degrees of hardware etc., these parameters are according to chipset, CPU even follow the design of mainboard, the parts of use that confidential relation is all arranged, and before dispatching from the factory, mainboard manufacturer has been provided with the most stable and optimal value, if these loaded down with trivial details hardware option are provided with arbitrarily, may cause computer speed slack-off, operation exception, serious even can't start shooting.CPU overclocking for example, overclocking must go to be provided with in the BIOS the inside, but just in case the overclocking failure, the mainboard that has is not done the overclocking failure allows system reset, client just have to cabinet is opened automatically, goes to remove the setting of BIOS the inside.
At last, because industrial computer often will be provided with some display modes, as: can select CRT, LVDS or both to show simultaneously, still be not provided with the LVDS demonstration because of carelessness if meet LVDS at BIOS, CRT just can't show this moment, industrial computer has the external unit that connects a lot, and opening cabinet, to go manually to remove the difficulty that BIOS is provided with not little, operates very inconvenient.Be the major defect of conventional art as mentioned above.
Summary of the invention
The invention provides a kind of CMOS of preventing is provided with improper and causes the unsettled control method of system bios, it provides a kind of simple, effectively, need not open cabinet go to remove before the operation that is convenient for people to use of the control method of setting in the BIOS, and this is to be fundamental purpose of the present invention.
To achieve these goals, the technical solution used in the present invention is: a kind of CMOS of preventing is provided with the improper unsettled control method of system bios that causes, and it comprises the steps.
The first step, system boot also move the Boothlock module and detect.
Second step, carry out Power-On Self-Test operation, this step be when rigidly connecting energize for computer or single-chip microcomputer to the detection of hardware components, also be called Power-On Self-Test, function is to check whether computer or single-chip microcomputer good.
The 3rd goes on foot, judges whether to start setting.
If thereby the operator need start setting then need in the push keyboard DEL key to enter into to start state is set in this step, if the operator does not need to start setting then carried out for the 4th step.
The 4th step, judge whether to be provided with automatically switching manipulation, switching manipulation is set in this step if desired automatically then carries out the operation that optimal value is set, if do not need switching manipulation is set automatically then carry out normal boot-strap.
The aforesaid operation that optimal value is set comprises the steps:
A, be provided with in the window in startup and increase by one and be used to judge whether to allow system boot remove the option of LOADdefault automatically, and called after Auto Load Bios Default value.
B, be set as consistent with the value of fail-safe default the optimized default among the BIOS.
C, according to the value of Auto Load Bios Default value, whether decision removes to set the zone bit of autoload default, if its value is enabled, the Default value of a BIOS of backfill in CMOS just, if not the words of opening, system bios is not done any action, and BIOS normally carries out the POST operation.
The present invention utilizes the power fail of CMOS battery to realize as mentioned above.
Specifically describe in aforesaid the 4th step, when the value of Auto Load BiosDefault value in BIOS is enabled, the default value of this option is opened, it is unstable or do not drive machine to prevent that the user is provided with the improper system that causes, each boot system BIOS can go to judge whether this zone bit is put, system boot all can be read the Battery Power Status of CMOS at every turn, when the value of Auto Load Default value is enabled, the batterystatus of CMOS is set to fail, this moment when mode bit is fail, the checksum that Destroy_Cmos_Cksum removes to destroy CMOS will call in system, and then the optimized value of BIOS is written back among the CMOS.
When the value of Auto Load Default value is Disabled, although system boot still can be read CMOS Battery Power Status this moment, but CMOS battery status can be arranged to fail this moment, so just can not remove to destroy Cmos_Cksum, Auto Load default does not just have effect yet, and the user can arbitrarily change the setting of BIOS under this state.
As mentioned above because option Auto Load Bios Default has been arranged, thereby can realize the whether automatically optimized function of load BIOS of easily control, some option of BIOS is set if desired, can be made as Disabled to the value of Auto Load Bios Default value gets final product, easy to operate simple, and can not have influence on other function of system.
As mentioned above, because the present invention utilizes the power fail of CMOS battery to go to realize this function, when the power of CMOS battery Status is Fail, that system runs is the Default of Fail-safe, so also will be arranged to the Default of Fail-safe identically with optimized value, what each start was run in concrete operations like this all is optimized value.
The invention has the beneficial effects as follows: system bios has been done the action of some detecting peripherals as much as possible in practice, but it can not all be looked after all peripherals, the peripherals that will use in the time of can only starting shooting at some is handled earlier, some function then keeps when some equipment of giving is loaded onto just enables, if enable the speed of start that to slow down rashly, even can cause the conflict between system hardware.Therefore, except the moment of start, the model frequency of central processing unit and the frequency size of internal memory, outside the detecting and driving of basic peripheral hardware such as hard disk, basically BIOS is provided with project with these, and according to setting a property, purposes is divided into tens sports, the user goes down to adjust relevant parameters to certain project, and these parameter values can store and be recorded in the CMOS chip.Before start next time, by the be provided with needs of BIOS, activate or close a certain function according to the user, Here it is, and so-called BIOS is provided with.Some BIOS parameter value but, relate to the characteristic limited degrees of hardware etc., these parameters are according to chipset, CPU even with the design of mainboard, the parts that use all have confidential relation, before dispatching from the factory, mainboard manufacturer has been provided with the most stable and optimal value, and this value is exactly the said optimized value of the present invention, if these loaded down with trivial details hardware option are provided with arbitrarily, may cause computer speed slack-off, operation exception, serious even can't start shooting.CPU overclocking for example, overclocking must go to be provided with in the BIOS the inside, but just in case the overclocking failure, the mainboard that has is not done the overclocking failure allows system reset, client just have to cabinet is opened automatically, goes to remove the setting of BIOS the inside.For example others is provided with password in you BIOS again, if unclear except that the setting of just can't entering later.Also have industrial computer often some display modes will be set, as can selecting CRT, LVDS, perhaps both show simultaneously, if do not meet LVDS, show that but be provided with LVDS because of carelessness CRT just can't show this moment, as you know at BIOS, industrial computer has the external unit that connects a lot, opening cabinet, to go manually to remove the difficulty that BIOS is provided with not little, operates very inconveniently, utilizes method of the present invention can solve above-mentioned inconvenience.
Description of drawings
Fig. 1 is a controlling party block diagram of the present invention;
The functional-block diagram that Fig. 2 utilizes the power fail of CMOS battery to realize for the present invention.
Embodiment
As shown in Figure 1, a kind of CMOS of preventing is provided with improper and causes the unsettled control method of system bios, and it comprises the steps.
The first step, system boot also move the Boothlock module and detect, and this system refers to computer equipment or other the equipment with single-chip microcomputer.
Above-mentioned Boothlock is meant that the bootstrap block Boot BlockBoothlock on the mainboard of computer or single-chip microcomputer is one section specific zone among the BIOS, include the minimum instruction collection that is used to guide, normal BIOS updating operation can not be eliminated this segment information, the failure if BIOS upgrades can utilize BOOTBLOK to recover again.
Second step, carry out Power-On Self-Test operation, this step be when rigidly connecting energize for computer or single-chip microcomputer to the detection of hardware components, also be called Power-On Self-Test (Power On Self Test, be called for short POST), function is whether inspection computer or single-chip microcomputer be good, complete POST self check will comprise CPU usually, base memory, the exented memory that 1M is above, ROM, mainboard, CMOS memory, serial paralled interface, display card, the soft or hard disc subsystem, keyboard etc. are tested.
The 3rd goes on foot, judges whether to start setting (SETUP setting).
If thereby the operator need start setting then need in the push keyboard DEL key to enter into to start state is set in this step, if the operator does not need to start setting then carried out for the 4th step.
The 4th step, judge whether to be provided with automatically switching manipulation, switching manipulation is set in this step if desired automatically then carries out the operation that optimal value is set, if do not need switching manipulation is set automatically then carry out normal boot-strap.
The aforesaid operation that optimal value is set comprises the steps:
A, be provided with in the window in startup and increase by one and be used to judge whether the option (ITEM) that allows system boot remove LOADdefault automatically and called after Auto Load Bios Default value.
B, be set as consistent with the value of fail-safe default the optimized default among the BIOS.
C, according to the value of Auto Load Bios Default value, whether decision removes to set the zone bit of autoload default, if its value is enabled, the Default value of a BIOS of backfill in CMOS just, if not the words of opening, system bios is not done any action, and BIOS normally carries out the POST operation.
As shown in Figure 2, the present invention utilizes the power fail of CMOSbattery to realize as mentioned above.
Specifically describe in aforesaid the 4th step, when the value of Auto Load BiosDefault value in BIOS is enabled, the default value of this option is opened, it is unstable or do not drive machine to prevent that the user is provided with the improper system that causes, each boot system BIOS can go to judge whether this zone bit is put, system boot all can be read the Battery Power Status of CMOS at every turn, when the value of Auto Load Default value is enabled, the batterystatus of CMOS is set to fail, this moment when mode bit is fail, the checksum that Destroy_Cmos_Cksum removes to destroy CMOS will call in system, and then the optimized value of BIOS is written back among the CMOS, although under this state, the value that the user is provided with also can be write into CMOS, but owing to just go once optimized value write-back in start next time position very early, user's setting is just invalid like this, thereby the system that can guarantee to greatest extent operates under the stable status all the time.
When the value of Auto Load Default value is Disabled, although system boot still can be read CMOS Battery Power Status this moment, but CMOS battery status can be arranged to fail this moment, so just can not remove to destroy Cmos_Cksum, Auto Load default does not just have effect yet, and the user can arbitrarily change the setting of BIOS under this state.
As mentioned above because option Auto Load Bios Default has been arranged, thereby can realize the whether automatically optimized function of load BIOS of easily control, some option of BIOS is set if desired, can be made as Disabled to the value of Auto Load Bios Default value gets final product, easy to operate simple, and can not have influence on other function of system.
As mentioned above, because the present invention utilizes the power fail of CMOS battery to go to realize this function, when the power of CMOS battery Status is Fail, that system runs is the Default of Fail-safe, so also will be arranged to the Default of Fail-safe identically with optimized value, what each start was run in concrete operations like this all is optimized value.