A method, apparatus, and computing device for restoring BIOS configuration parameters.

By backing up configuration parameters in the BIOS storage space and automatically restoring them, the problems of long BIOS configuration parameter recovery time and high error rate are solved, achieving fast and accurate configuration parameter recovery.

CN115951949BActive Publication Date: 2025-10-31XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211675038.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-10-31
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

In existing technologies, restoring BIOS configuration parameters requires restarting the computing device twice, which results in a long time consumption and is prone to errors due to manual modification, affecting the normal use of the device.

Method used

The system backs up configuration parameters in the BIOS storage space and automatically reads and modifies them under preset conditions, requiring only one restart to restore the system.

Benefits of technology

It reduces the number of restarts, shortens recovery time, avoids errors caused by manual modifications, and improves the accuracy of recovery and the normal operating efficiency of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115951949B_ABST
    Figure CN115951949B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, and computing device for restoring BIOS configuration parameters, relating to the field of computing device technology. It can improve the efficiency of restoring the original configuration parameters after modifying them. The method includes: configuring the BIOS based on first configuration parameters; under preset conditions, reading second configuration parameters from the BIOS storage space; modifying the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters being configuration parameters enabled before the first configuration parameters were enabled, and stored in the BIOS storage space when the computing device modified the BIOS configuration parameters from the second configuration parameters to the first configuration parameters; and restarting the computing device to make the second configuration parameters take effect. This application can be used in the performance testing process of computing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computing device technology, and in particular to a method, apparatus and computing device for restoring BIOS configuration parameters. Background Technology

[0002] Before computing devices are put into production, they need to undergo performance testing to assess whether they meet the production access requirements.

[0003] The process of performance testing a computing device includes: First, during the device's startup, manually modifying the basic input / output system (BIOS) configuration settings (such as memory quantity, refresh rate settings, etc.), then restarting the device to apply the changes, thus completing the performance test. After the test, to ensure the device functions correctly, the BIOS configuration settings must be restored to their original state.

[0004] The current solution to restore BIOS configuration settings is to restart the computing device, enter the BIOS interface during the restart process, manually modify the BIOS configuration settings back to the original settings, and then restart the computing device again to make the original configuration settings take effect.

[0005] The above method for restoring the configuration items of a computing device requires restarting the computing device twice for the original configuration items to take effect, which is slow and will affect the normal use of the computing device. Summary of the Invention

[0006] This application provides a method, apparatus, and computing device for restoring BIOS configuration parameters, which can quickly restore BIOS configuration parameters.

[0007] In a first aspect, this application provides a method for restoring BIOS configuration parameters. The method includes: a computing device configuring the BIOS based on first configuration parameters; under preset conditions, the computing device reading second configuration parameters from the BIOS storage space; the computing device modifying the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters are configuration parameters enabled before the BIOS enabled the first configuration parameters, and the second configuration parameters are stored in the BIOS storage space when the computing device modifies the BIOS configuration parameters from the second configuration parameters to the first configuration parameters; and restarting the computing device to make the second configuration parameters take effect.

[0008] The BIOS configuration parameter recovery method provided in this application, under preset conditions (e.g., at the end of the test process), can automatically read the second configuration parameters from the BIOS storage space without restarting, restore the BIOS configuration parameters to the second configuration parameters, and then restart for the changes to take effect. Compared to the traditional method of manually entering the BIOS menu to modify configuration parameters, the solution provided in this application only requires one restart to restore the BIOS configuration parameters, reducing the number of restarts and significantly saving the startup time of computing devices. In addition, compared to traditional manual modification, this solution can avoid the situation where BIOS configuration parameters are incorrectly or omitted due to manual modification, greatly reducing production and maintenance costs.

[0009] In one possible implementation, before the computing device configures the BIOS based on the first configuration parameter, the method further includes: the computing device obtaining first indication information, the first indication information being used to indicate the first configuration parameter; the computing device modifying the second configuration parameter currently configured in the BIOS to the first configuration parameter, and backing up the second configuration parameter to the BIOS's storage space; and restarting the computing device so that the first configuration parameter takes effect.

[0010] In another possible implementation, backing up the source configuration parameters of the BIOS of the second configuration parameter computing device to the BIOS storage space includes: the computing device calling the backup command in the BIOS configuration modification tool to back up the source configuration parameters of the second configuration parameter to the BIOS storage space.

[0011] In another possible implementation, the computing device reads the second configuration parameter source configuration parameter from the BIOS storage space, including: the computing device determining whether the second configuration parameter source configuration parameter exists in the BIOS storage space; if the second configuration parameter source configuration parameter exists in the BIOS storage space, the computing device reads the second configuration parameter source configuration parameter from the BIOS storage space.

[0012] In another possible implementation, after the computing device reads the second configuration parameter source configuration parameters from the BIOS storage space, the method further includes: the computing device deleting the second configuration parameter source configuration parameters backed up and stored in the BIOS storage space.

[0013] Secondly, this application provides a BIOS configuration parameter recovery device, which includes: a configuration module, a reading module, a modification module, and an activation module; the configuration module is used to configure the BIOS based on first configuration parameters; the reading module is used to read second configuration parameters from the BIOS storage space when preset conditions are met; the modification module is used to modify the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters are configuration parameters enabled before the BIOS enabled the first configuration parameters, and the second configuration parameters are stored in the BIOS storage space when the computing device modifies the BIOS configuration parameters from the second configuration parameters to the first configuration parameters; the activation module is used to restart the computing device so that the second configuration parameters take effect.

[0014] In one possible implementation, the above apparatus further includes: an acquisition module; the acquisition module is configured to acquire indication information, the indication information being used to indicate the first configuration parameter; the modification module is further configured to modify the second configuration parameter currently configured in the BIOS to the first configuration parameter, and back up the second configuration parameter to the storage space of the BIOS; the activation module is further configured to restart the computing device so that the first configuration parameter takes effect.

[0015] In another possible implementation, the modification module is specifically used to call the backup command in the BIOS configuration modification tool to back up the second configuration parameter to the BIOS storage space.

[0016] In another possible implementation, the reading module is specifically used to determine whether the second configuration parameter exists in the BIOS storage space; if the second configuration parameter exists in the BIOS storage space, the second configuration parameter is read from the BIOS storage space.

[0017] In another possible implementation, the modification module is also used to delete the second configuration parameter stored in the BIOS's storage space.

[0018] Thirdly, this application provides a processor comprising: an interface and logic circuitry, the logic circuitry being used to execute the BIOS configuration parameter recovery method described in the first aspect above.

[0019] Fourthly, this application provides a computing device including a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computing device to implement the method described in the first aspect.

[0020] Fifthly, this application provides a computer-readable storage medium comprising: computer software instructions; which, when executed in a computing device, cause the computing device to implement the method described in the first aspect.

[0021] In a sixth aspect, this application provides a computer program product that, when run on a computing device, causes the computing device to perform the steps of the relevant method described in the first aspect above, so as to implement the method of the first aspect above.

[0022] The beneficial effects of the second to sixth aspects mentioned above can be referred to the corresponding descriptions in the first aspect, and will not be repeated here. Attached Figure Description

[0023] Figure 1 A schematic diagram of the architecture of a computing device is provided for this application;

[0024] Figure 2 A flowchart illustrating a method for restoring BIOS configuration parameters provided in this application;

[0025] Figure 3 A flowchart illustrating another method for restoring BIOS configuration parameters provided in this application;

[0026] Figure 4 A schematic diagram illustrating another method for restoring BIOS configuration parameters provided in this application;

[0027] Figure 5 A detailed flowchart illustrating a method for obtaining second configuration parameters provided in this application;

[0028] Figure 6 A schematic diagram illustrating another method for restoring BIOS configuration parameters provided in this application;

[0029] Figure 7 A schematic diagram illustrating another method for restoring BIOS configuration parameters provided in this application;

[0030] Figure 8 A schematic diagram of a recovery process provided in this application;

[0031] Figure 9 A schematic diagram of the composition of a recovery device provided in this application;

[0032] Figure 10 This is a schematic diagram of the composition of a computing device provided in this application. Detailed Implementation

[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0034] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0035] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.

[0036] In scenarios involving performance testing of computing devices, it is necessary to modify the BIOS configuration parameters of the computing device to meet the requirements of the test environment (first configuration parameters or test configuration parameters) before conducting the test. After the test is completed, the BIOS configuration parameters must be modified back to the original configuration parameters (or default configuration parameters or second configuration parameters); otherwise, the normal operation of the computing device will be affected.

[0037] The current method for restoring BIOS configuration parameters of computing devices involves the following steps: After the testing process is completed, the computing device is restarted to enter the BIOS menu interface. Staff manually modify the BIOS configuration parameters in the BIOS menu to the original settings (or default and secondary configuration parameters), and then restart the computing device for the new settings to take effect. Therefore, the BIOS configuration parameter restoration process requires two restarts, and each restart takes time, resulting in a lengthy restoration process. Furthermore, if many configuration parameters need to be modified during the BIOS configuration parameter restoration process, manual modification can easily lead to omissions or errors, which can still cause the computing device to malfunction.

[0038] In conclusion, shortening the BIOS configuration parameter recovery time is a pressing issue. Furthermore, ensuring the accuracy of the recovered BIOS configuration parameters is also a crucial problem to be solved.

[0039] Against this background, embodiments of this application provide a method for restoring BIOS configuration parameters. Before the computing device configures the BIOS based on first configuration parameters (e.g., test configuration parameters configured in a test process), the method stores a backup of second configuration parameters (configuration parameters to be restored) previously enabled by the first configuration parameters in the BIOS's storage space. This allows the computing device to read the second configuration parameters from the BIOS storage space and modify them to take effect under preset conditions (e.g., the end of the test process). This method enables automatic restoration of BIOS configuration parameters. Compared to manually restarting to restore configuration parameters, this method reduces the number of restarts and shortens the time spent restoring BIOS configuration parameters. Furthermore, this method eliminates the need for users to manually modify BIOS configuration parameters to restore them, avoiding omissions or errors during the restoration process and ensuring the accuracy of BIOS configuration parameter restoration.

[0040] The embodiments provided in this application will now be described in detail with reference to the accompanying drawings.

[0041] The technical solutions provided in this application can be applied to computing devices, which may specifically be blade servers, high-density servers, rack servers, or high-performance servers. Figure 1 A schematic diagram of the system architecture of a computing device, such as Figure 1 As shown, the hardware of this computing device includes a processor, a BIOS chip, and memory, while the software mainly includes a BIOS, an out-of-band management module, and an operating system (OS) management unit.

[0042] The processor may include a CPU, which contains one or more CPU cores. All data processing operations of the CPU are performed by the CPU cores. The more CPU cores a CPU contains, the faster it can process data.

[0043] The BIOS chip is a chip located on the motherboard used for initializing and detecting various hardware devices during the computer's boot process. The BIOS chip includes a flash memory area that can be used to store user-configured parameters.

[0044] The out-of-band management module is located within the out-of-band controller, while the OS management unit is located within the processor.

[0045] The out-of-band management module can be a management unit for non-business modules. For example, the out-of-band management module can remotely maintain and manage the computing device through a dedicated data channel. This out-of-band management module is completely independent of the computing device's operating system and can communicate with the basic input / output system (BIOS) and the operating system (or OS management unit) through the computing device's out-of-band management interface.

[0046] BIOS is a set of programs embedded in the BIOS chip on the motherboard of a computing device. The main function of BIOS is to provide the lowest-level and most direct hardware settings and control for computing devices.

[0047] An operating system (OS) is a computer program that manages and controls the hardware and software resources of a computing device. Any other software must run with the support of the operating system. After the computing device is powered on, the BIOS first performs a series of operations such as self-test and initialization, and then boots the OS, allowing the user to use the computing device normally.

[0048] For example, an out-of-band management module may include a computer standby status management unit, a management system in a management chip outside the processor, a baseboard management controller (BMC), a system management mode (SMM), etc. It should be noted that the specific form of the out-of-band management module is not limited in the embodiments of this application; the above is merely illustrative. In the following embodiments, only a BMC is used as an example of an out-of-band management module for explanation.

[0049] Memory, also known as internal memory or main memory, is installed in memory slots on the motherboard of a computing device.

[0050] It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0051] It should be noted that the execution subject of the BIOS configuration parameter recovery method provided in this application embodiment is not limited. For example, the method can be executed by the computing device itself, or by the processor and the BIOS chip working together.

[0052] The BIOS configuration parameter recovery method provided in this application is mainly applied to scenarios involving the modification and recovery of BIOS configuration parameters, such as testing scenarios for computing devices or other scenarios where configuration modifications are made based on user needs. This application provides an illustrative example using a testing scenario for a computing device.

[0053] Taking the performance testing of computing devices as an example, Figure 2 This diagram illustrates the interactions between software modules involved in the testing process performed by a computing device. For example... Figure 2 As shown, the software modules involved in the test process include a test module, an OS, a BIOS, and a BIOS configuration modification tool. The test module can be located in the processing firmware of the computing device, and the BIOS configuration modification tool can also be located in the processing firmware. During normal use of the computing device after startup (when the OS has already started), the configuration modification tool can be run to modify the BIOS configuration parameters, changing them to the configuration parameters required for the test. Then, the computing device restarts to make the modified BIOS configuration parameters take effect, and the test process is executed by the test module before entering the OS.

[0054] The following provides a detailed description of a method for restoring BIOS configuration parameters according to embodiments of this application. For ease of description, the execution subject will be referred to as a computing device in the following description. In a performance testing scenario, the method provided in embodiments of this application may include a preparation phase and a recovery phase. The preparation phase may be executed before the recovery phase. The specific content of the preparation phase and the recovery phase can be found in the following embodiments.

[0055] I. Preparation Stage

[0056] First, a new test status information is added to the BIOS. This test status information indicates whether the test process is enabled. Specifically, a structure variable containing a test mode flag (which can be represented as a test flag) can be configured in the BIOS. The value of the test flag is either 1 or 0. When the value of the test flag is set to 1, it indicates that the test process is enabled; when the value of the test flag is set to 0, it indicates that the test process is disabled.

[0057] Furthermore, BIOS configuration modification tools (e.g., unifg) are developed and stored in the computing device's memory (e.g., hard disk, disk drive, etc.). The BIOS configuration tool supports the following functions: accessing the BIOS under the OS, reading BIOS configuration parameters, and modifying BIOS configuration parameters. Additionally, the BIOS configuration tool also supports backing up BIOS configuration parameters. For example, the BIOS configuration tool unifg provides a backup command (e.g., the execution parameters of the backup command can be represented as unifg -d). By calling this backup command, the currently enabled secondary configuration parameters (source configuration parameters) of the BIOS can be backed up and stored.

[0058] II. Recovery Phase

[0059] Combination Figure 1 and Figure 2 ,like Figure 3 As shown, this application provides a method for restoring BIOS configuration parameters, which may include the following steps:

[0060] S301, The computing device configures the BIOS based on the first configuration parameters.

[0061] In the scenario of performance testing on a computing device, the first configuration parameter can be the BIOS configuration parameter corresponding to the performance testing process. After the computing device configures the BIOS based on the first configuration parameter, the computing device completes the configuration of the environment required for performance testing and can begin executing the performance testing process.

[0062] In some embodiments, combined with Figure 3 ,like Figure 4 As shown, prior to S301, the methods for restoring BIOS configuration parameters may also include the following S401-S403.

[0063] S401, The computing device obtains instruction information.

[0064] The indication information is used to indicate the first configuration parameter.

[0065] The computing device can obtain indication information used to indicate the first configuration parameter. This indication information can be a specific first configuration parameter (e.g., settings for configuration items such as the amount of memory, the number of central processing units (CPUs), custom power policies, and energy-saving policies). Alternatively, the indication information can be the address of a file containing the first configuration parameter. The computing device can access the corresponding file based on the address to obtain the first configuration parameter.

[0066] In some embodiments, in a performance testing scenario, the computing device can obtain test status information, which is used to indicate whether to start the test process. Starting the test process can be understood as triggering the test process.

[0067] As an example, the test status information can specifically be a test flag (which can be denoted as test flag). For instance, the value of test flag can be set to 0 or 1. When the value of test flag is 1, it indicates that the test process is started (i.e., the test process can be tested), and when the value of test flag is 0, it indicates that the test process is stopped.

[0068] It should be understood that before testing, staff can access the BIOS through the BIOS configuration modification tool under the OS to change the value of the test flag to 1, thereby instructing the computing device to start the test process.

[0069] When the test status information indicates that the test process has started, the computing device can further obtain the indication information in order to configure the test environment based on the first configuration parameters.

[0070] It should be understood that if the test status information indicates that the test process is not started (i.e., closed), no indication information will be obtained, the process will end, and the following steps will no longer be executed.

[0071] S402. The computing device modifies the second configuration parameter currently configured in the BIOS to the first configuration parameter, and backs up the second configuration parameter to the BIOS storage space.

[0072] In this embodiment of the application, one or more of the BIOS configuration parameters can be modified according to the specific testing purpose to change the second configuration parameter to the first configuration parameter.

[0073] Specifically, BIOS configuration modification tools (such as unifg) support modifying BIOS configuration parameters. By calling configuration parameter modification commands, BIOS configuration parameters can be changed from secondary configuration parameters to primary configuration parameters. For example, configuration modification commands include unifg -w and unifg -wf. Executing unifg -w can modify a single BIOS configuration parameter, while executing unifg -wf can modify multiple BIOS configuration parameters.

[0074] Optionally, executing a test procedure requires modifying one or more of the BIOS configuration parameters (these parameters can be referred to as the parameters to be modified). In this embodiment, the parameters to be modified and their values ​​can be stored in a specific ini file, and the storage address of the ini file is recorded as indication information. Then, based on the indication information, the computing device executes a configuration modification command, reads the values ​​of the parameters to be modified from the ini file indicated by the indication information, and modifies the BIOS configuration parameters, changing the initial second configuration to the first configuration parameters used for testing.

[0075] In addition, in this embodiment of the application, backing up the second configuration parameters of the BIOS of the computing device to the storage space of the BIOS includes: reading the second configuration parameters of the BIOS from the BIOS and writing the second configuration parameters into the storage space of the BIOS. The storage space of the BIOS can be the flash memory area in the BIOS chip (such as referred to as BIOS flash).

[0076] Specifically, the computing device can invoke the backup command in the BIOS configuration modification tool to back up the second configuration parameters to the BIOS storage space.

[0077] It should be understood that BIOS configuration modification tools (such as unifg) support backup functionality. For example, the BIOS configuration modification tool unifg contains backup commands to perform backup operations (e.g., the execution parameters of the backup command can be represented as unifg -d). By calling the backup command in the configuration modification tool, the secondary configuration parameters of the current BIOS can be backed up. Alternatively, all the secondary configuration parameters of the BIOS can be saved in a specific file and stored in the BIOS flash.

[0078] S403. Restart the computing device to make the first configuration parameters take effect.

[0079] As mentioned earlier, modifications to BIOS configuration parameters require a device reboot to take effect. Therefore, after changing the second configuration parameter to the first configuration parameter, the computing device must reboot for the first configuration parameter to take effect. In performance testing scenarios, staff can use this computing device, configured with the BIOS based on the first configuration parameter, to perform testing procedures.

[0080] Continue to combine Figure 3 The method for restoring BIOS configuration parameters provided in the embodiments of this application will be described, and the computing device will also execute the following S302-S304.

[0081] S302. Under the condition that the preset conditions are met, the computing device reads the second configuration parameters from the BIOS storage space.

[0082] The preset conditions can be based on the computing device receiving a user input command, or the computing device detecting that a certain function of itself meets a certain condition. For example, in a performance testing scenario, the preset conditions could be that the computing device detects that the test process is complete (such as detecting that the test commands in the test script have been executed), or the computing device receives a command from the operator indicating that the test process has ended.

[0083] For example, after completing the test process, before entering the OS, the computing device reads the aforementioned backed-up source configuration parameters from the BIOS storage space.

[0084] In some embodiments, such as Figure 5 As shown, the above S302 can be implemented through S3021-S3022.

[0085] S3021. Determine whether a second configuration parameter exists in the BIOS storage space.

[0086] In one implementation, in step S401, the computing device obtains indication information for indicating the first configuration information. The existence of the indication information indicates that the computing device needs to modify the second configuration parameter to the first configuration parameter and has backed up the second configuration parameter to the BIOS storage space. Therefore, the computing device can determine whether the second configuration parameter exists in the BIOS storage space by determining whether the indication information exists.

[0087] In another implementation, the computing device also includes backup indication information, which indicates whether the BIOS's second configuration parameters exist in the BIOS's storage space. For example, the value of this backup indication information is set to 0 or 1. When the value of the backup indication information is 1, it indicates that the BIOS's storage space contains the BIOS's source configuration parameters, and when the value of the backup indication information is 0, it indicates that the BIOS's storage space does not contain the BIOS's source configuration parameters.

[0088] After backing up the second configuration parameters of the BIOS to the BIOS storage space through the above S402, the value of the backup indication information can be set to 1. In this way, when the computing device executes S304, it can read the backup indication information and thus determine that the source configuration parameters of the BIOS exist in the BIOS storage space.

[0089] In another implementation, during performance testing, the computing device determines whether to execute the test process based on the test status information. If so, it needs to back up the BIOS's second configuration parameters. Therefore, the status of the test status information is related to whether the data has been backed up. Thus, the presence of the second configuration parameters in the BIOS's storage space can also be determined based on the test status information. For example, if the test status information (test flag) value is 1, it indicates that the operation of backing up the second configuration parameters to the BIOS's storage space has been performed, meaning the second configuration parameters exist in the BIOS's storage space. Conversely, if the test status information (test flag) value is 0, it indicates that the operation of backing up the second configuration parameters to the BIOS's storage space has not been performed, meaning the second configuration parameters do not exist in the BIOS's storage space.

[0090] S3022. If a second configuration parameter exists in the BIOS storage space, read the second configuration parameter from the BIOS storage space.

[0091] It is understandable that determining whether the second configuration parameter exists in the BIOS storage space before reading it can effectively reduce the time spent reading data from the BIOS storage space without a backup, improve the startup speed of computing devices under normal use, and ensure the user experience.

[0092] S303, The computing device modifies the BIOS configuration parameters from the first configuration parameter to the second configuration parameter.

[0093] The second configuration parameter is the configuration parameter enabled before the BIOS enables the first configuration parameter. The second configuration parameter is stored in the BIOS storage space when the computing device changes the BIOS configuration parameter from the second configuration parameter to the first configuration parameter.

[0094] For example, after obtaining the backed-up second configuration parameters, the computing device can continue to execute the modification command (unicfg -w or unicfg -wf), which, by matching the name of each configuration option in the computing device's BIOS menu, replaces the setting value corresponding to each configuration option with the setting value in the second configuration parameters, thereby achieving the purpose of modifying the BIOS configuration parameters from the first configuration parameters to the second configuration parameters.

[0095] S304. Restart the computing device to make the second configuration parameters take effect.

[0096] In this embodiment, the computing device restarts to make the second configuration parameter of the BIOS take effect, ensuring that the user can use the computing device normally. The computing device can restart after receiving a restart command from the operator (e.g., the operator clicks the restart button on the computing device), or it can automatically execute a restart command (e.g., reboot) after the second configuration parameter is modified.

[0097] The BIOS configuration parameter recovery method provided in this application involves storing a backup of a second configuration parameter (the configuration parameter to be recovered) previously enabled by the first configuration parameter (e.g., the parameter configured in the test process) in the BIOS storage space before configuring the BIOS based on the first configuration parameter. This allows the computing device to read the second configuration parameter from the BIOS storage space and modify it under preset conditions (e.g., the end of the test process). This method enables automatic recovery of BIOS configuration parameters. Compared to manually restarting to recover configuration parameters, this method reduces the number of restarts and shortens the time spent recovering BIOS configuration parameters. Furthermore, this method eliminates the need for users to manually modify BIOS configuration parameters to recover them, avoiding omissions or errors during the recovery process and ensuring the accuracy of the recovered BIOS configuration parameters.

[0098] Combination Figure 4 ,like Figure 6 As shown, in some other embodiments, after step S304 above, the BIOS parameter recovery method provided in this application embodiment further includes S305.

[0099] S305. The computing device deletes the second configuration parameter backed up in the BIOS storage space.

[0100] It should be noted that the BIOS chip on the motherboard contains the BIOS program. The BIOS chip has a very small capacity, typically 1MB, 2MB, or 8MB. If the secondary configuration parameters in the BIOS's storage space are not deleted in a timely manner, it can easily lead to insufficient storage space, potentially affecting the normal startup of computing devices.

[0101] Combination Figure 4 ,like Figure 7 As shown, in some other embodiments, after step S304 above, the BIOS parameter recovery method provided in this application embodiment further includes S306.

[0102] S306. The computing device resets the test status information to indicate the closure of the test process.

[0103] Corresponding to S401 above, the computing device reads the value of the test status information and determines whether the test status information is set. If the test status information is 1, the value of the test status information is modified to 0 to indicate that the test process is closed (closing the test process can be understood as prohibiting the test process).

[0104] In this embodiment of the application, resetting the test status information enables the computing device to close the test process in a timely manner after the test process ends. This avoids the computing device from triggering the test process again based on the test status information after subsequent startup, which would prevent the user from using the computing device normally.

[0105] It should be noted that the specific execution order of S305 and S306 in this embodiment is not limited. S305 can be executed before S306, or after S306, or both can be executed simultaneously, depending on the actual scenario requirements.

[0106] In summary, the BIOS configuration parameter recovery method provided in this application embodiment can be implemented by running a script file. This script file includes commands to execute the BIOS configuration parameter recovery method provided in this application embodiment. For example, the script file includes commands to check if the test flag is set to 1, commands to back up the second configuration parameter, commands to modify the second configuration parameter to the first configuration parameter, a computing device restart command, commands related to executing the test process, and commands to restore the second configuration parameter, etc. The computing device executes these commands sequentially by running the script file, thereby implementing the BIOS configuration parameter recovery method of this application embodiment.

[0107] Figure 8 This is a schematic diagram illustrating a BIOS configuration parameter recovery process provided in an embodiment of this application. Figure 8As shown, initially, the operator can execute a script file under the OS and set the test variable (i.e., the aforementioned test status information, test flag) to 1. Further, the computing device checks whether the test variable is set to 1. If not, the BIOS menu (setup menu) is not backed up, and no backup variable (i.e., the aforementioned second configuration parameter) is generated. If yes, the BIOS menu is backed up, and the backup variable (i.e., the aforementioned second configuration parameter) is generated. Then, the BIOS menu options are modified according to test needs, and after restarting, the system boots and tests according to the modified BIOS menu (i.e., the aforementioned S303). After the test, the computing device determines whether the backup variable exists (i.e., whether the source configuration parameter exists in the BIOS storage space). If yes, the original setup menu options are restored according to the backup variable, and all backup variables are deleted, further checking whether the test variable is set to 1. If not, the system directly checks whether the test variable (i.e., the aforementioned test flag) is set to 1. If the test variable is 1, the test variable is reset (i.e., the test flag is set to 0), and the process ends. If the test variable is not 1, the process ends directly.

[0108] The technical solutions provided in the above embodiments offer at least the following beneficial effects: The BIOS configuration parameter recovery method provided in this application, under preset conditions (e.g., at the end of the test process), can automatically read the second configuration parameters from the BIOS storage space without restarting, restore the BIOS configuration parameters to the second configuration parameters, and then restart for the changes to take effect. Compared to the traditional method of manually entering the BIOS menu to modify configuration parameters, the solution provided in this application only requires one restart to restore the BIOS configuration parameters, reducing the number of restarts and significantly saving the startup time of computing devices. Furthermore, compared to traditional manual modification, this solution avoids the possibility of incorrect or missed modifications to the BIOS configuration parameters, greatly reducing production and maintenance costs.

[0109] Furthermore, the BIOS configuration parameter recovery method provided in this application allows direct modification of BIOS configuration parameters via a configuration modification tool within the OS, without requiring a reboot to access the BIOS menu, making the operation process quite convenient. In this solution, the processes of modifying configuration parameters, testing, and recovery can all be implemented by executing script files, achieving automated testing and recovery without excessive manual intervention, significantly reducing the waste of human resources.

[0110] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0111] In an exemplary embodiment, this application also provides a device for restoring BIOS configuration parameters. This restoration device may be the aforementioned computing device or a processor within the computing device. The restoration device may include one or more functional modules for implementing the BIOS configuration parameter restoration method of the above method embodiments.

[0112] For example, Figure 9 This is a schematic diagram illustrating the composition of a BIOS configuration parameter recovery device provided in an embodiment of this application. Figure 9 As shown, the BIOS configuration parameter recovery device includes: a configuration module 901, a reading module 902, a modification module 903, and an activation module 904. The configuration module 901, reading module 902, modification module 903, and activation module 904 are interconnected.

[0113] Configuration module 901 is used to configure the BIOS based on the first configuration parameters.

[0114] The reading module 902 is used to read the second configuration parameters from the BIOS storage space when preset conditions are met.

[0115] The modification module 903 is used to change the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters are the configuration parameters enabled before the BIOS enabled the first configuration parameters, and the second configuration parameters are stored in the BIOS storage space when the computing device changes the BIOS configuration parameters from the second configuration parameters to the first configuration parameters.

[0116] The activation module 904 is used to restart the computing device so that the second configuration parameter takes effect.

[0117] In some embodiments, the above-described apparatus further includes: an acquisition module 905; the acquisition module 905 is configured to acquire indication information, the indication information being used to indicate the first configuration parameter; the modification module 903 is further configured to modify the second configuration parameter currently configured in the BIOS to the first configuration parameter, and back up the second configuration parameter to the storage space of the BIOS; the activation module 904 is further configured to restart the computing device so that the first configuration parameter takes effect.

[0118] In some embodiments, the modification module 903 is specifically used to call the backup command in the BIOS configuration modification tool to back up the second configuration parameters to the BIOS storage space.

[0119] In some embodiments, the reading module 902 is specifically used to determine whether a second configuration parameter exists in the BIOS storage space; if the second configuration parameter exists in the BIOS storage space, read the second configuration parameter from the BIOS storage space.

[0120] In some embodiments, the modification module 903 is further configured to delete the second configuration parameter stored in the BIOS storage space.

[0121] This application also provides a processor. The processor includes an interface and logic circuitry. The logic circuitry is used to execute any of the BIOS configuration parameter recovery methods provided in the above embodiments.

[0122] In an exemplary embodiment, this application also provides a computing device. Figure 10 This is a schematic diagram illustrating the composition of a computing device provided in an embodiment of this application. Figure 10 As shown, the computing device may include a processor 1001 and a memory 1002; the memory 1002 stores instructions executable by the processor 1001; when the processor 1001 is configured to execute instructions, the computing device implements the method described in the foregoing method embodiments.

[0123] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device of the recovery device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the recovery device. Further, the computer-readable storage medium can include both internal storage units of the recovery device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the recovery device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0124] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute any of the BIOS configuration parameter recovery methods provided in the above embodiments.

[0125] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0126] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

[0127] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for restoring configuration parameters of a Basic Input / Output System (BIOS), characterized in that, The method includes: The computing device acquires indication information, which is used to indicate the first configuration parameter; The computing device modifies the second configuration parameter currently configured in the BIOS to the first configuration parameter, and backs up the second configuration parameter to the storage space of the BIOS; Restart the computing device to make the first configuration parameters take effect; The computing device configures the BIOS based on the first configuration parameters; Under preset conditions, the computing device reads the second configuration parameters from the BIOS storage space; The computing device modifies the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters are the configuration parameters enabled before the BIOS enabled the first configuration parameters, and the second configuration parameters are stored in the BIOS storage space when the computing device modifies the BIOS configuration parameters from the second configuration parameters to the first configuration parameters; Restart the computing device to make the second configuration parameters take effect.

2. The method according to claim 1, characterized in that, The step of backing up the second configuration parameters to the BIOS storage space includes: The computing device invokes the backup command in the BIOS configuration modification tool to back up the second configuration parameters to the BIOS storage space.

3. The method according to claim 1, characterized in that, The computing device reads a second configuration parameter from the BIOS storage space, including: The computing device determines whether the second configuration parameter exists in the storage space of the BIOS; If the second configuration parameter exists in the BIOS storage space, the computing device reads the second configuration parameter from the BIOS storage space.

4. The method according to any one of claims 1-3, characterized in that, After the computing device reads the second configuration parameters from the BIOS storage space, the method further includes: The computing device deletes the second configuration parameter stored in the BIOS's storage space.

5. A device for restoring BIOS configuration parameters, characterized in that, The device includes: an acquisition module, a configuration module, a reading module, a modification module, and an activation module; The acquisition module is used to acquire indication information, which is used to indicate the first configuration parameter; The modification module is used to modify the second configuration parameter currently configured in the BIOS to the first configuration parameter, and back up the second configuration parameter to the storage space of the BIOS; The activation module is used to restart the computing device so that the first configuration parameters take effect; The configuration module is used to configure the BIOS based on the first configuration parameters; The reading module is also used to read the second configuration parameters from the storage space of the BIOS when preset conditions are met; The modification module is further configured to modify the BIOS configuration parameters from the first configuration parameters to the second configuration parameters; the second configuration parameters are the configuration parameters enabled before the BIOS enabled the first configuration parameters, and the second configuration parameters are stored in the BIOS storage space when the computing device modifies the BIOS configuration parameters from the second configuration parameters to the first configuration parameters; The activation module is used to restart the computing device so that the second configuration parameters take effect.

6. A processor, characterized in that, The processor includes an interface and logic circuitry, the logic circuitry being configured to perform the method as described in any one of claims 1-4.

7. A computing device, characterized in that, The computing device includes a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computing device to perform the method as described in any one of claims 1-4.

8. A computer-readable storage medium, characterized in that, The device stores computer instructions that, when executed on a computing device, cause the computing device to perform the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Batch processing backuping and configuration method, equipment and system for mainboard parameters of computers

    CN102736960A

  • Server memory performance testing method and apparatus

    CN108446195A