CN113867829B - Method, device, equipment and storage medium for switching Bios option schemes - Google Patents
Method, device, equipment and storage medium for switching Bios option schemes Download PDFInfo
- Publication number
- CN113867829B CN113867829B CN202110960584.7A CN202110960584A CN113867829B CN 113867829 B CN113867829 B CN 113867829B CN 202110960584 A CN202110960584 A CN 202110960584A CN 113867829 B CN113867829 B CN 113867829B
- Authority
- CN
- China
- Prior art keywords
- bios
- option
- configuration file
- module
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000012545 processing Methods 0.000 claims description 17
- 238000012544 monitoring process Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 claims description 4
- 230000001419 dependent effect Effects 0.000 abstract description 8
- 238000012986 modification Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 7
- 238000013461 design Methods 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method, a device, equipment and a storage medium for switching a Bios option scheme, wherein the method comprises the following steps: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options; when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command; judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, validating and restarting the Bios according to the option set values in the Bios option configuration file in the starting process of the Bios; if not, the Bios are started unchanged according to the original Bios option value. The method avoids the manual change of the Bios option according to the requirement of a customer, and greatly improves the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
Description
Technical Field
The application relates to the technical field of Bios option switching, in particular to a method, a device, equipment and a storage medium for switching a Bios option scheme.
Background
The Bios option is an interface that the Bios provides to the server user to modify CPU, memory, and PCIE configurations. For the server client, multiple Bios options are often modified differently according to different requirements of actual use. When a user needs a key to implement multiple Bios option modifications, the following two basic approaches are used: save as User Default and Restore User Default interfaces in the Bios option interface are used, but the mode can only realize one-key setting of one scheme, and has poor expansibility; another way is to implement a one-touch setup by the BMC sending a profile of the non-Bios option scheme, but this scheme requires the BMC to coordinate.
The prior art method for configuring the Bios option according to the requirement of a customer by one key comprises the following steps: firstly, a user modifies options according to actual requirements of the user on a Bios option interface; then the user selects Save as User Default interface provided by the Bios option interface, and the current set value is saved as a user Bios option scheme; finally, when the user needs to reuse the option scheme in the later use, the Restore User Default interface provided by the Bios option interface is selected, the Bios option can be restored to the scheme set by the user, and the option scheme is effective after the next Bios start.
In the prior art, only one group of Bios option schemes required by users can be saved, so that the method is unfavorable for practical use, and the operation is performed in the Bios storage space Flash, so that the expansibility is relatively poor. In the first step, the user is required to modify the Bios options one by one, so that the accuracy is poor and the usage is troublesome. Therefore, for some application scenarios where the BMC is not available or configured, it is highly desirable to find a method that can quickly and accurately configure multiple Bios option schemes according to the customer's needs.
Disclosure of Invention
Aiming at the problem that only one group of Bios option schemes required by users can be saved in the prior art, the method is unfavorable for practical use, and the method operates in the Bios storage space Flash, so that the expansibility is relatively poor. In the first step, the Bios options are required to be modified one by a user, and the accuracy is poor and the problem of trouble is solved when the method, the device, the equipment and the storage medium for switching the schemes of the Bios options are provided.
The technical scheme of the application is as follows:
in a first aspect, the present application provides a method for switching between options of a Bios, including the following steps:
generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options;
when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command;
judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not;
if yes, validating and restarting the Bios according to the option set values in the Bios option configuration file in the starting process of the Bios;
if not, the Bios are started unchanged according to the original Bios option value.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
Further, when receiving the Bios option scheme switching command, the step of selecting the Bios option profile according to the command includes:
judging whether a Bios option scheme switching command is received or not;
if yes, selecting a Bios option configuration file according to the command;
if not, the Bios are started unchanged according to the original Bios option value.
And (3) carrying out switching action by receiving a Bios option scheme switching command, otherwise, starting the Bios according to the original Bios option value.
Further, the step of selecting the Bios option profile according to the command may include:
judging whether a Bios option configuration file exists or not;
if yes, selecting a Bios option configuration file according to the command;
if not, generating a plurality of Bios option configuration files according to the requirements and storing the configuration files.
Before executing the steps of the method, the configuration file of the Bios option can be generated and stored, when a switching command is received, whether the stored configuration file of the Bios option exists or not needs to be judged, otherwise, the Bios is started according to the original value of the Bios option.
Further, the step of validating and restarting the Bios according to the option settings in the Bios option configuration file during the Bios start-up process includes:
validating and restarting the Bios according to the option set values in the Bios option configuration file in the process of starting the Bios;
monitoring a starting process, and judging whether options with failed setting exist or not;
if yes, generating a setting result file and storing the setting result file;
otherwise, ending.
In a second aspect, the technical scheme of the application also provides a switching device of the Bios option scheme, which comprises a storage module, an optional value configuration file generation module, a command processing module, an option value judging module, a switching starting module and an original starting module;
the optional value configuration file generation module is used for generating an optional value configuration file containing all options and optional values of the options according to the Bios options, and storing the generated optional value configuration file into the storage module;
the command processing module is used for selecting the Bios option configuration file according to the command when receiving the Bios option scheme switching command;
the option value judging module is used for judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file in the storage module;
the switching starting module is used for starting the Bios process according to the option set values in the Bios option configuration file when the option set values in the Bios option configuration file meet the option values of all options in the option value configuration file, so that the Bios is enabled to be effective and restarted;
the original starting module is used for starting the Bios according to the original Bios option value when the option set value in the Bios option configuration file does not meet the option values of all options in the option value configuration file.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
Further, the device also comprises a command state judging module for judging whether a Bios option scheme switching command is received;
the original starting module is also used for starting the Bios according to the original Bios option value when the command state judging module judges that the Bios option scheme switching command is not received.
And (3) carrying out switching action by receiving a Bios option scheme switching command, otherwise, starting the Bios according to the original Bios option value.
Further, the device also comprises a file scanning module and an option configuration file generating module;
the file scanning module is used for scanning whether the storage module has a Bios option configuration file or not;
the command processing module is specifically used for selecting the Bios option configuration file according to the command when receiving the Bios option scheme switching command and the scanning module judges that the storage module has the Bios option configuration file;
and the option configuration file generation module is used for generating a plurality of Bios option configuration files according to the requirements and storing the option configuration files in the storage module.
The Bios option configuration file can be generated and stored, and when a switching command is received, whether the stored Bios option configuration file exists or not needs to be judged, otherwise, the Bios is started according to the original Bios option value.
Further, the device also comprises a monitoring module and a result file generating module;
the monitoring module is used for monitoring whether options with failed setting exist in the process of enabling the switching starting module to take effect and restarting the Bios according to the option set values in the Bios option configuration file;
and the result file generation module is used for generating a setting result file and storing the setting result file into the storage module when the monitoring module judges that the option with the setting failure exists.
In a third aspect, the present application further provides a computer device, including a processor and a memory, where the processor and the memory complete communication with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the Bios option scheme switching method of the first aspect.
In a fourth aspect, the present disclosure further provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer instructions, where the computer instructions cause the computer to execute the method for switching the Bios option scheme according to the first aspect.
From the above technical scheme, the application has the following advantages: the expandability of use is improved, and flexible switching of various Bios option schemes can be realized; secondly, the accuracy and usability of the usage are improved, and the number of times of manually and sequentially changing the Bios options is reduced; the reliability of use is improved, and the dependence of the scheme on other systems is reduced.
In addition, the application has reliable design principle, simple structure and very wide application prospect.
It can be seen that the present application has outstanding substantial features and significant advances over the prior art, as well as its practical advantages.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the application.
Fig. 2 is a schematic flow chart of a method of another embodiment of the application.
Fig. 3 is a schematic block diagram of an apparatus of one embodiment of the present application.
In the figure, a 101-optional value configuration file generation module, a 102-command processing module, a 103-option value judgment module, a 104-switching starting module, a 105-original starting module, a 106-storage module, a 107-command state judgment module, a 108-file scanning module, a 109-option configuration file generation module, a 110-monitoring module and a 111-result file generation module.
Detailed Description
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a method for switching a Bios option scheme, including the following steps:
step 11: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options;
step 12: when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command;
step 13: judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, executing the step 14, otherwise, executing the step 15;
step 14: validating and restarting the Bios according to the option set values in the Bios option configuration file in the process of starting the Bios;
step 15: the Bios were started as per the original Bios option.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
The embodiment of the application provides a method for switching a Bios option scheme, which comprises the following steps:
step 31: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options;
step 32: judging whether a Bios option scheme switching command is received or not; if yes, go to step 33, otherwise, go to step 37;
step 33: judging whether a Bios option configuration file exists or not; if yes, go to step 34, otherwise go to step 38;
step 34: selecting a Bios option profile according to the command;
step 35: judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, go to step 36, otherwise, go to step 37;
step 36: validating and restarting the Bios according to the option set values in the Bios option configuration file in the process of starting the Bios; jump to step 39;
step 37: starting the Bios unchanged according to the original Bios option value; jump to step 39;
step 38: generating and storing a plurality of Bios option configuration files according to the requirements, and jumping to execute the step 32;
step 39: and (5) ending.
And (3) carrying out switching action by receiving a Bios option scheme switching command, otherwise, starting the Bios according to the original Bios option value. One-touch configuration of the Bios option multiple schemes is achieved and is not dependent on other systems, and is only achieved by Bios. The expandability, accuracy and reliability of the prior art are greatly improved, and the user experience is improved.
Before executing the steps of the method, the configuration file of the Bios option can be generated and stored, when a switching command is received, whether the stored configuration file of the Bios option exists or not needs to be judged, otherwise, the Bios is started according to the original value of the Bios option.
As shown in fig. 2, an embodiment of the present application provides a method for switching a Bios option scheme, including the following steps:
step 41: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options;
step 42: judging whether a Bios option scheme switching command is received or not; if yes, go to step 43, otherwise, go to step 48;
step 43: judging whether a Bios option configuration file exists or not; if yes, go to step 44, otherwise go to step 49;
step 44: selecting a Bios option profile according to the command;
step 45: judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, go to step 46, otherwise, go to step 48;
step 46: validating and restarting the Bios according to the option set values in the Bios option configuration file in the process of starting the Bios;
step 47: judging whether an option with failed setting exists, if so, executing the step 50; otherwise, go to step 51;
step 48: starting the Bios unchanged according to the original Bios option value; jump to step 51;
step 49: generating and storing a plurality of Bios option configuration files according to the requirements, and jumping to execute step 42;
step 50: generating and storing a setting result file;
step 51: and (5) ending.
In the practical application process, the method provided by the embodiment of the application can further comprise the following steps:
step 1) the Bios vendor generates the Bios_setup file according to the Bios option: all options and optional values thereof are contained in the TF card and stored in the TF card;
step 2) the Bios vendor generates the Bios_Current_setting file according to the Bios default option: all options and the current value thereof are contained and stored in the TF card;
step 3) the manufacturers or users of Bios, generate a plurality of Bios_user_XX files according to the requirement: different Bios option schemes required by a user are contained in the TF card and stored in the TF card;
step 4) judging whether the user uses the command provided by the Bios manufacturer under the OS to select to use different Bios option schemes, if so, performing step 5), and if not, performing step 8);
step 5) judging whether the set value of the option in the selected Bios_user_XX file meets the optional values of all options in step 1), if so, carrying out step 6), and if not, carrying out step 9);
step 6) enabling the Bios to restart and take effect according to a set value in a Bios_user_XX file in the starting process;
step 7) if the option of failure Setting exists, generating a setting_result file, and storing the setting_result file into the TF card;
step 8) if the user does not send the related command, the Bios is kept unchanged according to the option value of the prior Bios in the starting process;
step 9) the set point not satisfying the alternative value of step 1 indicates that the user protocol is not supported and that the Bios remains unchanged during start-up according to the previous Bios option value.
As shown in fig. 3, the embodiment of the present application further provides a Bios option scheme switching device, which includes a storage module 106, an optional value configuration file generating module 101, a command processing module 102, an option value judging module 103, a switching starting module 104, and an original starting module 105;
a selectable value profile generation module 101, configured to generate a selectable value profile including selectable values of all options and options according to the Bios options, and store the generated selectable value profile in a storage module 106;
the command processing module 102 is configured to select a Bios option configuration file according to a command when receiving a Bios option scheme switching command;
an option value judging module 103, configured to judge whether the option setting value in the selected Bios option configuration file meets the option values of all options in the option value configuration file in the storage module;
the switching starting module 104 is configured to, when the option setting value in the Bios option configuration file meets the option values of all options in the option value configuration file, start the Bios according to the option setting value in the Bios option configuration file in the process, make the Bios effective and restart the Bios;
the original starting module 105 is configured to start the Bios according to the original Bios option value when the option setting value in the Bios option configuration file does not satisfy the option values of all options in the option value configuration file.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
The embodiment of the application also provides a Bios option scheme switching device, which comprises a storage module 106, an optional value configuration file generation module 101, a command processing module 102, an option value judging module 103, a switching starting module 104 and an original starting module 105;
a selectable value profile generation module 101, configured to generate a selectable value profile including selectable values of all options and options according to the Bios options, and store the generated selectable value profile in a storage module 106;
the command processing module 102 is configured to select a Bios option configuration file according to a command when receiving a Bios option scheme switching command;
an option value judging module 103, configured to judge whether the option setting value in the selected Bios option configuration file meets the option values of all options in the option value configuration file in the storage module;
the switching starting module 104 is configured to, when the option setting value in the Bios option configuration file meets the option values of all options in the option value configuration file, start the Bios according to the option setting value in the Bios option configuration file in the process, make the Bios effective and restart the Bios;
the device further comprises a command status judging module 107 for judging whether a Bios option scheme switching command is received;
the original starting module is used for starting the Bios according to the original Bios option value when the option set value in the Bios option configuration file does not meet the option values of all options in the option value configuration file; and the command state judging module is also used for starting the Bios according to the original Bios option value when judging that the Bios option scheme switching command is not received.
And (3) carrying out switching action by receiving a Bios option scheme switching command, otherwise, starting the Bios according to the original Bios option value.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
The embodiment of the application also provides a Bios option scheme switching device, which comprises a storage module 106, an optional value configuration file generation module 101, a command processing module 102, an option value judging module 103, a switching starting module 104 and an original starting module 105;
a selectable value profile generation module 101, configured to generate a selectable value profile including selectable values of all options and options according to the Bios options, and store the generated selectable value profile in a storage module 106;
the command processing module 102 is configured to select a Bios option configuration file according to a command when receiving a Bios option scheme switching command;
an option value judging module 103, configured to judge whether the option setting value in the selected Bios option configuration file meets the option values of all options in the option value configuration file in the storage module;
the switching starting module 104 is configured to, when the option setting value in the Bios option configuration file meets the option values of all options in the option value configuration file, start the Bios according to the option setting value in the Bios option configuration file in the process, make the Bios effective and restart the Bios;
the device further comprises a command status judging module 107 for judging whether a Bios option scheme switching command is received;
the original starting module is used for starting the Bios according to the original Bios option value when the option set value in the Bios option configuration file does not meet the option values of all options in the option value configuration file; and the command state judging module is also used for starting the Bios according to the original Bios option value when judging that the Bios option scheme switching command is not received.
The apparatus further comprises a file scanning module 108 and an option profile generation module 109;
a file scanning module 108 for scanning whether the storage module has a Bios option configuration file;
the command processing module 102 is specifically configured to, when receiving the Bios option scheme switching command, and the scanning module 108 determines that the storage module 106 has a Bios option profile, select the Bios option profile according to the command;
the option profile generation module 109 is configured to generate a plurality of Bios option profiles according to the requirements and store the plurality of Bios option profiles in the storage module 106.
The Bios option configuration file can be generated and stored, and when a switching command is received, whether the stored Bios option configuration file exists or not needs to be judged, otherwise, the Bios is started according to the original Bios option value.
And (3) carrying out switching action by receiving a Bios option scheme switching command, otherwise, starting the Bios according to the original Bios option value.
The expandability of use can be effectively improved, the configuration files of options through the Bios can be increased, the use range can be easily expanded, and the management is convenient; in addition, the method can also remarkably improve the accuracy and usability of use, avoid the manual modification of the Bios option by a client according to the requirement, and greatly improve the use efficiency; finally, the mode is not dependent on other systems such as BMC and is only realized by Bios, so that the reliability of the scheme is effectively improved.
The embodiment of the application also provides a Bios option scheme switching device, which comprises a storage module 106, an optional value configuration file generation module 101, a command processing module 102, an option value judging module 103, a switching starting module 104 and an original starting module 105;
a selectable value profile generation module 101, configured to generate a selectable value profile including selectable values of all options and options according to the Bios options, and store the generated selectable value profile in a storage module 106;
the command processing module 102 is configured to select a Bios option configuration file according to a command when receiving a Bios option scheme switching command;
an option value judging module 103, configured to judge whether the option setting value in the selected Bios option configuration file meets the option values of all options in the option value configuration file in the storage module;
the switching starting module 104 is configured to, when the option setting value in the Bios option configuration file meets the option values of all options in the option value configuration file, start the Bios according to the option setting value in the Bios option configuration file in the process, make the Bios effective and restart the Bios;
the device further comprises a command status judging module 107 for judging whether a Bios option scheme switching command is received;
the original starting module is used for starting the Bios according to the original Bios option value when the option set value in the Bios option configuration file does not meet the option values of all options in the option value configuration file; and the command state judging module is also used for starting the Bios according to the original Bios option value when judging that the Bios option scheme switching command is not received.
The apparatus further comprises a file scanning module 108 and an option profile generation module 109;
a file scanning module 108 for scanning whether the storage module has a Bios option configuration file;
the command processing module 102 is specifically configured to, when receiving the Bios option scheme switching command, and the scanning module 108 determines that the storage module 106 has a Bios option profile, select the Bios option profile according to the command;
the option profile generation module 109 is configured to generate a plurality of Bios option profiles according to the requirements and store the plurality of Bios option profiles in the storage module 106.
The device further comprises a monitoring module 110 and a result file generation module 111;
the monitoring module 110 is configured to monitor whether an option with a failed setting exists in the process of enabling the switching start module 104 to take effect and restarting the Bios according to the option setting value in the Bios option configuration file;
the result file generating module 111 is configured to generate a setting result file and store the setting result file in the storage module 106 when the monitoring module determines that there is an option of setting failure.
The embodiment of the application provides a computer device, which can comprise: the device comprises a processor, a communication interface, a memory and a bus, wherein the processor, the communication interface and the memory are in communication with each other through the bus. The bus may be used for information transfer between the electronic device and the sensor. The processor may call logic instructions in memory to perform the following method: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options; when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command; judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, validating and restarting the Bios according to the option set values in the Bios option configuration file in the starting process of the Bios; if not, the Bios are started unchanged according to the original Bios option value.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Embodiments of the present application provide a non-transitory computer readable storage medium storing computer instructions that cause a computer to perform the methods provided by the method embodiments described above, for example, including: generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options; when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command; judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not; if yes, validating and restarting the Bios according to the option set values in the Bios option configuration file in the starting process of the Bios; if not, the Bios are started unchanged according to the original Bios option value.
In some specific embodiments, the program instructions executed by the processor in the readable storage medium may specifically implement the following steps: judging whether a Bios option scheme switching command is received or not; if yes, selecting a Bios option configuration file according to the command; if not, the Bios are started unchanged according to the original Bios option value.
In some specific embodiments, the program instructions executed by the processor in the readable storage medium may specifically implement the following steps: validating and restarting the Bios according to the option set values in the Bios option configuration file; monitoring a starting process, and judging whether options with failed setting exist or not; if yes, generating a setting result file and storing the setting result file; otherwise, ending.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Claims (4)
1. The method for switching the Bios option scheme is characterized by comprising the following steps of:
generating a selectable value configuration file containing all options and selectable values of the options according to the Bios options;
when receiving the Bios option scheme switching command, selecting a Bios option configuration file according to the command;
judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file or not;
if yes, validating and restarting the Bios according to the option set values in the Bios option configuration file in the starting process of the Bios;
if not, the Bios are started unchanged according to the original Bios option value;
when receiving the Bios option scheme switching command, the step of selecting the Bios option profile according to the command includes:
judging whether a Bios option scheme switching command is received or not;
if yes, selecting a Bios option configuration file according to the command;
if not, the Bios are started unchanged according to the original Bios option value;
the step of selecting the Bios option profile on command is preceded by:
judging whether a Bios option configuration file exists or not;
if yes, selecting a Bios option configuration file according to the command;
if not, generating a plurality of Bios option configuration files according to the requirements and storing the configuration files;
the step of validating and restarting the Bios during the start-up of the Bios according to the option settings in the Bios option profile comprises:
validating and restarting the Bios according to the option set values in the Bios option configuration file in the process of starting the Bios;
monitoring a starting process, and judging whether options with failed setting exist or not;
if yes, generating a setting result file and storing the setting result file;
otherwise, ending.
2. The Bios option scheme switching device is characterized by comprising a storage module, an optional value configuration file generation module, a command processing module, an option value judgment module, a switching starting module and an original starting module;
the optional value configuration file generation module is used for generating an optional value configuration file containing all options and optional values of the options according to the Bios options, and storing the generated optional value configuration file into the storage module;
the command processing module is used for selecting the Bios option configuration file according to the command when receiving the Bios option scheme switching command;
the option value judging module is used for judging whether the option set value in the selected Bios option configuration file meets the optional values of all options in the optional value configuration file in the storage module;
the switching starting module is used for starting the Bios process according to the option set values in the Bios option configuration file when the option set values in the Bios option configuration file meet the option values of all options in the option value configuration file, so that the Bios is enabled to be effective and restarted;
the original starting module is used for starting the Bios according to the original Bios option value when the option set value in the Bios option configuration file does not meet the option values of all options in the option value configuration file;
the device also comprises a command state judging module, a command state judging module and a command state judging module, wherein the command state judging module is used for judging whether a Bios option scheme switching command is received or not;
the original starting module is also used for starting the Bios according to the original Bios option value when the command state judging module judges that the Bios option scheme switching command is not received;
the device also comprises a file scanning module and an option configuration file generating module;
the file scanning module is used for scanning whether the storage module has a Bios option configuration file or not;
the command processing module is specifically used for selecting the Bios option configuration file according to the command when receiving the Bios option scheme switching command and the scanning module judges that the storage module has the Bios option configuration file;
the option configuration file generation module is used for generating a plurality of Bios option configuration files according to requirements and storing the option configuration files in the storage module;
the device also comprises a monitoring module and a result file generating module;
the monitoring module is used for monitoring whether options with failed setting exist in the process of enabling the switching starting module to take effect and restarting the Bios according to the option set values in the Bios option configuration file;
and the result file generation module is used for generating a setting result file and storing the setting result file into the storage module when the monitoring module judges that the option with the setting failure exists.
3. A computer device comprising a processor and a memory, said processor and said memory completing communication with each other via a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the Bios option scheme switching method of claim 1.
4. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the Bios option scheme switching method of claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110960584.7A CN113867829B (en) | 2021-08-20 | 2021-08-20 | Method, device, equipment and storage medium for switching Bios option schemes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110960584.7A CN113867829B (en) | 2021-08-20 | 2021-08-20 | Method, device, equipment and storage medium for switching Bios option schemes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113867829A CN113867829A (en) | 2021-12-31 |
CN113867829B true CN113867829B (en) | 2023-08-11 |
Family
ID=78987897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110960584.7A Active CN113867829B (en) | 2021-08-20 | 2021-08-20 | Method, device, equipment and storage medium for switching Bios option schemes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113867829B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789396A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Switching system and method for BIOS (Basic Input/Output System) configuration mode |
CN107391120A (en) * | 2017-06-30 | 2017-11-24 | 联想(北京)有限公司 | One kind starts control method, electronic equipment and computer-readable recording medium |
CN108304282A (en) * | 2018-03-07 | 2018-07-20 | 郑州云海信息技术有限公司 | A kind of control method and relevant apparatus of double BIOS |
-
2021
- 2021-08-20 CN CN202110960584.7A patent/CN113867829B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789396A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Switching system and method for BIOS (Basic Input/Output System) configuration mode |
CN107391120A (en) * | 2017-06-30 | 2017-11-24 | 联想(北京)有限公司 | One kind starts control method, electronic equipment and computer-readable recording medium |
CN108304282A (en) * | 2018-03-07 | 2018-07-20 | 郑州云海信息技术有限公司 | A kind of control method and relevant apparatus of double BIOS |
Also Published As
Publication number | Publication date |
---|---|
CN113867829A (en) | 2021-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105138347A (en) | Difference upgrade patch generating method, software upgrading method and corresponding apparatus | |
CN112988198B (en) | Multi-machine upgrading method and device for mesh equipment and mesh equipment | |
CN107360165B (en) | Terminal device, cloud server and method and device for managing and controlling operating system | |
CN110597393B (en) | Motor vibration control method and device and computer readable storage medium | |
CN113867829B (en) | Method, device, equipment and storage medium for switching Bios option schemes | |
CN108595195B (en) | Application program updating method, device, terminal and storage medium | |
CN111625264B (en) | Method, device, equipment and medium for upgrading multi-level management system | |
CN106204031B (en) | Card application processing method and device | |
CN111107120B (en) | Redis cluster construction method and system | |
CN105791514B (en) | Application starting monitoring method and device | |
CN111615819A (en) | Method and device for transmitting data | |
CN114691703A (en) | Data updating method and device, electronic equipment and storage medium | |
CN114237722B (en) | System starting method, device, equipment and engineering vehicle | |
CN110602221A (en) | Notification level processing method and device and readable storage medium | |
CN111694516B (en) | Version online upgrading method and terminal of distributed block storage system | |
CN108418720A (en) | A kind of restoration methods, device and the routing device of routing device configuration information | |
CN115314361A (en) | Server cluster management method and related components thereof | |
CN114553859A (en) | BMC configuration management method and device, electronic equipment and storage medium | |
CN112235842A (en) | Communication method and device of Internet of things equipment | |
CN111858100A (en) | BMC message transmission method and related device | |
CN112286455A (en) | Remote copying method, device, electronic equipment and medium | |
CN110913416A (en) | Terminal, networking method thereof and computer-readable storage medium | |
CN111045696A (en) | Method and device for automatically installing single machine operation system, computer equipment and storage medium | |
CN110958523A (en) | Parameter adjusting method, adjusting device and computer readable storage medium | |
EP2755365B1 (en) | Cable modem and method of selecting communication protocols thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |