BIOS variable information processing methods and computing devices

By setting up an independent storage space in the computing device to store the correspondence between BIOS option parameters and variable information, the complexity problem caused by inconsistent variable naming in the BIOS program is solved, and the processing of variable information is simplified and the correspondence is updated flexibly.

CN119179638BActive Publication Date: 2026-11-17XFUSION DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411158894.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2026-11-17
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

Inconsistent variable naming in BIOS programs makes it difficult for users to distinguish the meaning of variables, increasing the complexity of modifying variable values.

Method used

A storage space independent of the BIOS chip is set up in the computing device to store the correspondence between BIOS option parameter information and variable information, and the variable information is processed through this relationship.

Benefits of technology

It reduces the complexity of BIOS variable information processing and improves the flexibility of updating and storing correspondences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179638B_ABST
    Figure CN119179638B_ABST
Patent Text Reader

Abstract

This application provides a method for processing BIOS variable information and a computing device. The method includes: acquiring target parameter information; wherein the target parameter information is used to indicate a parameter processing method, and target BIOS option parameter information corresponding to the parameter processing method; acquiring a correspondence between BIOS option parameter information and BIOS variable information; wherein the correspondence is stored in a first storage space; the first storage space is another storage space independent of the BIOS chip in a first computing device; determining target BIOS variable information corresponding to the target BIOS option parameter information according to the correspondence and the target BIOS option parameter information; and processing the target BIOS variable information based on the parameter processing method indicated by the target parameter information to obtain a processing result. This application can reduce the complexity of BIOS variable processing.
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 for processing BIOS variable information and a computing device. Background Technology

[0002] With the development of technology, server usage faces diverse business demands, each with different requirements for server performance, power consumption, and reliability. The Basic Input Output System (BIOS) is a program embedded on the motherboard used to initialize and test hardware devices, boot the operating system, and provide basic hardware management functions. Accordingly, the BIOS program includes multiple variables reflecting aspects such as server performance, power consumption, and reliability. Therefore, the values ​​of these variables can be adjusted to suit specific business needs.

[0003] However, the naming of variables in BIOS programs is relatively simple during the development phase, and the naming of variables may be different in BIOS programs from different manufacturers. This makes it difficult for users to distinguish the meaning of each variable in the BIOS program, and makes it inconvenient to modify the variable values, resulting in a high complexity of BIOS variable processing. Summary of the Invention

[0004] This application provides a method and computing device for processing BIOS variable information, which can reduce the complexity of BIOS variable processing.

[0005] In a first aspect, embodiments of this application provide a method for processing BIOS variable information, the method being applied to a first computing device; comprising:

[0006] Obtain target parameter information; wherein, the target parameter information is used to indicate the parameter processing method, and the target BIOS option parameter information corresponding to the parameter processing method;

[0007] Obtain the correspondence between BIOS option parameter information and BIOS variable information; wherein, the correspondence is stored in a first storage space; the first storage space is a separate storage space independent of the BIOS chip in the first computing device;

[0008] Based on the correspondence and the target BIOS option parameter information, determine the target BIOS variable information corresponding to the target BIOS option parameter information;

[0009] Based on the parameter processing method indicated by the target parameter information, the target BIOS variable information is processed to obtain the processing result.

[0010] The beneficial effects of this embodiment are as follows: The first computing device can obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and process the target BIOS option parameter information according to the parameter processing method indicated by the target parameter information based on the correspondence, to obtain the processing result. In this way, the first computing device can directly obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and process the BIOS variable information using the BIOS option parameter information based on the correspondence, reducing the complexity of processing BIOS variable information. Furthermore, the correspondence can be flexibly stored in the first storage space, which improves the flexibility of updating and storing the correspondence compared to being fixed in the BIOS chip.

[0011] In one possible implementation, the correspondence is stored in the first storage space in the form of a translation table; based on the parameter processing method indicated by the target parameter information, the target BIOS variable information is processed to obtain a processing result, including:

[0012] Based on the target BIOS variable information and a preset mapping table, the storage address of the target BIOS variable information in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between the BIOS variable information and the storage address in the BIOS chip;

[0013] Based on the storage address in the BIOS chip and the parameter processing method indicated by the target parameter information, the target BIOS variable information stored in the BIOS chip is processed to obtain the processing result.

[0014] The beneficial effects of this embodiment are: through this method, the first computing device can accurately determine the storage address of the target BIOS variable in the BIOS chip based on a preset mapping table, thus ensuring the accuracy of BIOS variable processing.

[0015] In one possible implementation, the parameter processing method involves reading parameter values, where the target BIOS option parameter information includes parameter names and the target BIOS variable information includes variable names; and processing the target BIOS variable information stored in the BIOS chip according to the storage address in the BIOS chip and the parameter processing method indicated by the target parameter information to obtain a processing result, including:

[0016] Based on the storage address in the BIOS chip, read the variable value of the variable name in the target BIOS variable information from the BIOS chip;

[0017] Based on the translation table, determine the parameter value corresponding to the variable value of the read variable name;

[0018] Output the parameter value corresponding to the parameter name in the target BIOS option parameter information.

[0019] The beneficial effects of this embodiment are: through this method, the first computing device can flexibly read the target BIOS variable information based on the translation table and obtain the variable values ​​of the target BIOS variable information that are easy for users to understand.

[0020] In one possible implementation, the parameter processing method involves writing parameter values, and the target BIOS variable information includes a variable name and a variable value. Based on the storage address in the BIOS chip and the parameter processing method indicated by the target parameter information, the target BIOS variable information stored in the BIOS chip is processed to obtain a processing result, including:

[0021] Based on the storage address in the BIOS chip, the variable value in the target BIOS variable information is used as the variable value of the variable name in the target BIOS variable information stored in the BIOS chip.

[0022] The beneficial effects of this embodiment are as follows: In this way, the first computing device can flexibly write target BIOS variable information based on the translation table, convert the parameter values ​​that are easy for users to understand into variable values ​​and write them into the BIOS chip, thereby reducing the complexity of writing BIOS variable information.

[0023] In one possible implementation, the correspondence is stored in the first storage space in the form of a translation table; obtaining the correspondence between BIOS option parameter information and BIOS variable information includes:

[0024] Obtain the target platform of the first computing device; wherein the target platform includes a central processing unit of the same type;

[0025] Based on the target platform, determine the translation table corresponding to the target platform;

[0026] Based on the translation table corresponding to the target platform, the correspondence between the BIOS option parameter information and the BIOS variable information is obtained.

[0027] The beneficial effects of this embodiment are: by setting translation tables for multiple platforms in the same computing device, a translation table adapted to the target platform included in the first computing device can be selected, thereby achieving cross-platform compatibility of the translation table and improving the deployment efficiency of the computing device.

[0028] In one possible implementation, the method further includes:

[0029] In response to a translation table import command, the translation table corresponding to the target platform indicated by the translation table import command is stored from the import address indicated by the translation table import command into the first storage space; wherein, the translation table import command is used to indicate the target platform and the import address; or,

[0030] In response to the translation table export command, the translation table corresponding to the target platform indicated by the translation table export command is extracted from the first storage space and output to the first export address indicated by the translation table export command; wherein, the translation table export command is used to indicate the target platform and the first export address.

[0031] The beneficial effects of this embodiment are as follows: Firstly, users can import translation tables of variables corresponding to business requirements, ensuring accurate import. Furthermore, if the translation table is embedded in the BIOS chip, updating it would require refactoring the BIOS version; this method allows direct import without refactoring the BIOS program, improving the flexibility of translation table updates. Secondly, if the translation table needs modification, it can be modified using the aforementioned translation table export command and then imported into the first storage space based on the translation table import command, further enhancing the flexibility of translation table updates. Thirdly, users can export translation tables of BIOS variables corresponding to business requirements, improving the accuracy of translation table export. They can also modify the translation table or port it to other computing devices, improving the efficiency of translation table updates.

[0032] In one possible implementation, the correspondence is stored in the first storage space in the form of a translation table, wherein the translation table has a correspondence with the target platform, and the method further includes:

[0033] In response to the option parameter batch export command, a translation table corresponding to the target platform indicated by the option parameter batch export command is determined; wherein, the option parameter batch export command is used to indicate the target platform and the second export address; the target platform includes a central processing unit of the same type;

[0034] Based on the translation table corresponding to the target platform and a preset mapping table, the storage address of each BIOS variable information in the translation table corresponding to the target platform in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between BIOS variable information and storage addresses in the BIOS chip;

[0035] Based on the storage address in the BIOS chip, read the variable values ​​of each BIOS variable information in the translation table corresponding to the target platform stored in the BIOS chip;

[0036] Based on the translation table corresponding to the target platform and the variable values ​​of each BIOS variable information read, determine the parameter values ​​of each BIOS variable information read.

[0037] Output the parameter values ​​of the BIOS option parameter information in the translation table corresponding to the target platform to the second export address indicated by the option parameter batch export command.

[0038] The beneficial effects of this embodiment are as follows: In this way, the first computing device can read the variable values ​​corresponding to each BIOS variable information in the translation table from the BIOS chip based on all BIOS variable information required by the business needs, convert them into parameter values ​​that the user can understand, and return them to the user, thereby improving the efficiency of reading BIOS variable information.

[0039] Secondly, embodiments of this application also provide a method for generating a BIOS translation table, the method being applied to a second computing device; comprising:

[0040] Obtain BIOS variable translation information; wherein, the BIOS variable translation information is used to describe the correspondence between BIOS option parameter information and BIOS variable information;

[0041] A translation table is generated based on the BIOS variable translation information; wherein, the translation table is used to describe the correspondence between BIOS option parameter information and BIOS variable information;

[0042] The translation table is stored in a second storage space, which is a separate storage space independent of the BIOS chip in the second computing device.

[0043] The beneficial effects of this embodiment are as follows: Based on the BIOS variable translation information representing the correspondence between BIOS option parameter information and BIOS variable information, the second computing device generates a translation table representing the correspondence between BIOS option parameter information and BIOS variable information, and stores this translation table in the second storage space. In this way, users can create translation tables required for their business needs based on those needs, and these translation tables can be stored in the second storage space. Compared to storing the correspondence in the BIOS chip, updating the translation table does not require generating a new BIOS version, thus improving the flexibility of updating the correspondence.

[0044] In one possible implementation, generating the translation table based on the BIOS variable translation information includes:

[0045] The BIOS variable translation information is parsed and processed according to preset parsing rules to obtain the translation table.

[0046] The beneficial effects of this embodiment are as follows: Through the above method, the second computing device can accurately parse and process the BIOS variable translation information based on preset parsing rules to obtain a translation table.

[0047] In one possible implementation, the preset parsing rules include a start identifier, an end identifier, and a correspondence between data format and variable type; according to the preset parsing rules, the BIOS variable translation information is parsed to obtain the translation table, including:

[0048] If the start identifier is detected, then according to the correspondence between the data format and the variable type, the correspondence between the BIOS option parameter information and the BIOS variable information corresponding to the data format is extracted from the BIOS variable translation information and stored in the initial translation table. This process continues until the end identifier is detected, and then the translation table is obtained based on the initial translation table.

[0049] The beneficial effects of this embodiment are: by using the above method, different variable types can be taken into account, and different types of BIOS variables can be identified by using data format, so that the variable values ​​of BIOS variables can be identified more accurately and the accuracy of the translation table can be improved.

[0050] In one possible implementation, the data format has multiple preset paragraphs; based on the correspondence between the data format and variable types, the correspondence between BIOS option parameter information and BIOS variable information corresponding to the data format variable types is extracted from the BIOS variable translation information, including:

[0051] If it is determined that both the second and third preset paragraphs have values, then the variable type corresponding to this data format is determined to be an enumeration type, and the correspondence between the enumeration type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0052] If it is determined that the second preset paragraph has no value, and the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be a numeric type, and the correspondence between the numeric type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0053] If it is determined that neither the second nor the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be text type, and the correspondence between the text type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0054] If it is determined that the second preset paragraph has a value and the third preset paragraph does not have a value, then the variable type corresponding to this data format is determined to be a sequence type, and the correspondence between the BIOS option parameter information and the BIOS variable information of the sequence type is extracted from the BIOS variable translation information.

[0055] The beneficial effects of this embodiment are as follows: Through the above method, the second computing device can accurately parse and process the BIOS variable translation information based on the preset parsing rules to obtain the translation table. Furthermore, it can also take into account different variable types and use data formats to identify different types of BIOS variables, so as to more accurately identify the variable values ​​of BIOS variables and improve the accuracy of the translation table.

[0056] In one possible implementation, the start identifier also includes the storage location of BIOS variable information in the BIOS chip of the second computing device.

[0057] The beneficial effect of this embodiment is that it helps to accurately determine the location of BIOS variables.

[0058] In one possible implementation, the start identifier further includes an identifier for the target platform; the target platform includes a central processing unit of the same type; and the translation table corresponds to the target platform.

[0059] The beneficial effects of this embodiment are: through this method, the second computing device can run the modification tool to generate a translation table for the target platform corresponding to the business requirements based on the user-defined BIOS variable translation information, which facilitates cross-platform compatibility.

[0060] In one possible implementation, the method further includes:

[0061] The translation table corresponding to the target platform is sent to a third computing device for storage; wherein the third computing device has the target platform.

[0062] The beneficial effects of this embodiment are: by means of this method, when the third computing device includes the same target platform, the translation table corresponding to the target platform can be sent to the third computing device for storage, without having to create the translation table corresponding to the target platform again, thus achieving cross-platform compatibility.

[0063] Thirdly, embodiments of this application provide a computing device, the computing device comprising: a processor, and a memory communicatively connected to the processor;

[0064] The memory stores computer-executed instructions;

[0065] The processor executes computer execution instructions stored in the memory to implement the BIOS variable information processing method as described in any one of the first aspects, or the BIOS translation table generation method as described in any one of the second aspects.

[0066] The beneficial effects of this embodiment are as follows: The processor of the computing device can execute computer execution instructions, enabling the processor to obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space. Based on this correspondence, the processor processes the target BIOS option parameter information according to the parameter processing method indicated by the target parameter information, obtaining the processing result. In this way, the first computing device can directly obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and based on this correspondence, process the BIOS variable information using the BIOS option parameter information, reducing the complexity of processing BIOS variable information. Furthermore, the correspondence can be flexibly stored in the first storage space, improving the flexibility of updating and storing the correspondence compared to it being fixed in the BIOS chip.

[0067] Alternatively, the processor of the computing device can execute computer execution instructions, enabling the processor to generate a translation table representing the correspondence between BIOS option parameter information and BIOS variable information based on BIOS variable translation information that characterizes the correspondence between BIOS option parameter information and BIOS variable information, and store this translation table in a second storage space. In this way, users can create translation tables based on their business needs, and these translation tables can be stored in the second storage space. Compared to storing the correspondence in the BIOS chip, updating the translation table does not require generating a new BIOS version, thus improving the flexibility of updating the correspondence.

[0068] Fourthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements a method for processing BIOS variable information as described in any one of the first aspects, or a method for generating a BIOS translation table as described in any one of the second aspects.

[0069] The beneficial effects of this embodiment are as follows: The processor of the computing device can execute the computer program, enabling the processor to obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space. Based on this correspondence, the processor processes the target BIOS option parameter information according to the parameter processing method indicated by the target parameter information, obtaining the processing result. In this way, the first computing device can directly obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and based on this correspondence, process the BIOS variable information using the BIOS option parameter information, reducing the complexity of processing BIOS variable information. Furthermore, the correspondence can be flexibly stored in the first storage space, improving the flexibility of updating and storing the correspondence compared to it being fixed in the BIOS chip.

[0070] Alternatively, the processor of the computing device can execute a computer program that generates a translation table representing the correspondence between BIOS option parameter information and BIOS variable information, based on BIOS variable translation information that characterizes the correspondence between BIOS option parameter information and BIOS variable information. This translation table is then stored in a second storage space. In this way, users can create translation tables based on their business needs, and these tables can be stored in the second storage space. Compared to storing the correspondence in the BIOS chip, updating the translation table does not require generating a new BIOS version, thus improving the flexibility of updating the correspondence. Attached Figure Description

[0071] Figure 1 This is a schematic diagram of the structure of a motherboard of a computing device provided in an embodiment of this application;

[0072] Figure 2 A schematic diagram of a server software architecture provided for an embodiment of this application;

[0073] Figure 3 A flowchart illustrating a method for generating a BIOS translation table provided in an embodiment of this application;

[0074] Figure 4 A flowchart illustrating another method for generating a BIOS translation table provided in this application embodiment;

[0075] Figure 5 A flowchart illustrating a method for processing BIOS variable information provided in an embodiment of this application;

[0076] Figure 6 A flowchart illustrating another method for processing BIOS variable information provided in this application embodiment;

[0077] Figure 7This is a schematic diagram of the structure of a BIOS variable information processing device provided in an embodiment of this application;

[0078] Figure 8 A schematic diagram of a BIOS translation table generation device provided in an embodiment of this application;

[0079] Figure 9 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Detailed Implementation

[0080] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, 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, not all embodiments. Based on the embodiments of this application, all other embodiments made by those skilled in the art under the guidance of these embodiments are within the scope of protection of this application.

[0081] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0082] Figure 1 This is a schematic diagram of the structure of a motherboard of a computing device provided in an embodiment of this application, such as... Figure 1 As shown, the motherboard of the computing device includes a central processing unit (CPU), a BIOS chip, and a hard drive. It should be noted that the motherboard of the computing device may also include other components, such as random access memory (RAM), northbridge / southbridge chips, or slots, etc. This application embodiment does not limit the components included in the motherboard.

[0083] A CPU is used to execute instructions and process data. It should be noted that the embodiments of this application do not limit the number of CPUs. Figure 1 This example only illustrates the concept of having two CPUs. In some embodiments, multiple CPUs can form a single platform.

[0084] A hard disk is used to store data in a computing device. This application does not limit the type or number of hard disks; the type of hard disk may be, for example, a mechanical hard disk or a solid-state hard disk.

[0085] The BIOS is a set of programs embedded on the motherboard. It stores the basic input / output programs, self-test programs, and system boot programs required for the computer device to start and run. These BIOS setup programs are stored in a memory chip, forming the BIOS chip. The memory chip can be non-volatile memory (NVM), such as read-only memory (ROM) or flash memory. It should be noted that this application does not limit the type of memory chip, or BIOS chip.

[0086] The BIOS program stored in the BIOS chip includes multiple variables that reflect aspects such as server performance, power consumption, and reliability. Different business needs have different requirements for server performance, power consumption, and reliability; therefore, the variable values ​​in the BIOS program can be adjusted to suit these business needs.

[0087] During the development phase, BIOS programs use relatively simple variable names, and the variable names may differ between different manufacturers' BIOS source code. This makes it difficult for users to distinguish the meaning of each variable in the BIOS program and makes it inconvenient to modify variable values. In other words, the complexity of handling BIOS variable values ​​is relatively high.

[0088] In view of this, embodiments of this application propose a method for processing BIOS variable information. This method establishes a correspondence between user-understandable BIOS option parameters and BIOS variable information in the storage space of the computing device, excluding the BIOS chip. After obtaining the BIOS option parameters input by the user, the method converts them into BIOS variable information based on the correspondence, thus realizing the processing of BIOS variable information. In this way, the computing device can reduce the complexity of processing BIOS variable information by relying on the correspondence stored in the storage space outside the BIOS chip. Furthermore, compared to burning the correspondence into the BIOS chip, this method can improve the flexibility of updating and storing the correspondence.

[0089] The execution subject of this application embodiment can be a computing device with BIOS, such as a server or a computer, etc., and this application embodiment is not limited thereto.

[0090] Taking a server as an example, in some embodiments, a modification tool is pre-installed in the server. This modification tool is stored as an application on the server's hard drive. The server can run the modification tool to implement the BIOS variable information processing method or the BIOS translation table generation method provided in the embodiments of this application.

[0091] In some embodiments, a user can run the modification tool using a local computing device through the user interface provided by the remote access tool or the modification tool. The remote access tool can be, for example, the Secure Shell (SSH) protocol, or other tools, depending on the server settings. The user interface can be a command-line interface (CLI) or a graphical user interface (GUI).

[0092] For example, a user accesses the server via an SSH tool on a local computing device, using the server identifier and login credentials. The server identifier uniquely identifies the server, such as a domain name or IP address. Login credentials uniquely identify the user on the server, and can be a username and password or an SSH key, depending on the specific requirements. (Reference) Figure 2 As shown, Figure 2 This is a schematic diagram of a server software architecture provided in an embodiment of this application. After connecting to the server, users can use various command lines provided by the modification tool to manage translation tables or process BIOS variables in the BIOS program, such as reading or writing variable values. For example, the server can run a modification tool in the operating system, and operate on BIOS variables in the BIOS program stored in the BIOS chip through the CPU based on the variable access service. It should be noted that the content of the command lines is related to the settings of the modification tool, and is not limited in this embodiment of the application.

[0093] The technical solutions of the embodiments of this application will be described in detail below through specific examples. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes will not be described again in some embodiments.

[0094] Figure 3 This is a flowchart illustrating a method for generating a BIOS translation table according to an embodiment of this application. Figure 2 As shown, the method may include the following steps:

[0095] S101, The second computing device obtains BIOS variable translation information.

[0096] For example, BIOS variable translation information is used to describe the correspondence between BIOS option parameter information and BIOS variable information in text form. BIOS option parameter information refers to user-defined, easily understood parameter names and values, such as parameter names and values ​​displayed on the BIOS interface of a second computing device. BIOS variable information refers to variable names and values ​​defined by developers in the BIOS program. For example, if the variable information includes a variable name of P-1 and a value of 0 or 1, which is not easily understood by the user, then the BIOS variable translation information could be (power-on password, P-1), (Disabled, 0), (Enabled, 1), where "power-on password" is the parameter name, and "Disabled" and "Enabled" are the parameter values.

[0097] The text can be in the form of a command line or a script, where the script includes multiple preset command lines. In other words, the command lines contain the mapping between parameter information and variable information.

[0098] For example, the BIOS variable translation information could be:

[0099] Format:__PlatformStart,EGS_BD; FF070000; 10000;

[0100] Format: Endless Boot Support, BootRetry; Disabled: 0; Enable: 1; 0;

[0101] Format:__PlatformEnd,EGS_BD;

[0102] The string “Endless Boot Support, BootRetry; Disabled: 0; Enable: 1;” represents the correspondence between BIOS option parameter information and BIOS variable information. “Endless Boot Support” is the parameter name in the BIOS option parameter information, “BootRetry” is the variable name in the BIOS variable information, “Disabled” and “Enable” are the parameter values ​​in the BIOS option parameter information, and “0” and “1” are the variable values ​​in the BIOS variable information.

[0103] It should be noted that the description of the correspondence between BIOS option parameter information and BIOS variable information in this application embodiment is not limited. It can be in the form of a pair of information in parentheses as shown in the previous example, such as (power-on password, P-1); it can also be in the form of comma separation, such as Endless Boot Support, BootRetry; or it can be in the form of colon, such as Disabled:0. The specific setting can be made according to actual needs.

[0104] The second computing device can run the modification tool to receive BIOS variable translation information input by the user through the user interface provided by the remote access tool or the modification tool; alternatively, the second computing device can run the modification tool to communicate with other electronic devices to obtain the BIOS variable translation information, such as a computer or other server.

[0105] S102. The second computing device generates a translation table based on the BIOS variable translation information.

[0106] For example, the translation table is used to describe the correspondence between BIOS option parameter information and BIOS variable information.

[0107] As mentioned above, BIOS variable translation information can describe the correspondence between BIOS option parameter information and BIOS variable information in text form. However, text form is not convenient for subsequent data processing. Therefore, a translation table in the form of a data table can be generated based on this BIOS variable translation information.

[0108] In some possible implementations, the second computing device includes preset parsing rules that indicate the meaning of each field in the text-based BIOS variable translation information. The second computing device can run the modification tool to parse the BIOS variable translation information into a data table format according to the preset parsing rules. For example, the second computing device can parse the BIOS variable translation information into key-value pairs according to the preset parsing rules, and then use these key-value pairs to map them to a data table, thus converting the text-based BIOS variable translation information into a translation table in data table format.

[0109] For example, taking the example in step S101, according to the preset parsing rules, parsing the BIOS variable translation information can yield key-value pairs "BootRetry: Endless Boot Support", "0: Disabled", and "1: Enable". The second computing device includes a preset initial translation table. For example, Table 1 is a schematic diagram of an initial translation table provided by an embodiment of this application. Referring to Table 1, the initial translation table includes all BIOS variable information of the BIOS program. This BIOS variable information can be used as a key. By matching the key with the key-value pairs in the BIOS variable translation information, the initial translation table is filled to obtain the translation table. Referring to Table 2, Table 2 is an example of a translation table provided by an embodiment of this application.

[0110] Table 1 Initial Translation Table

[0111]

[0112] Table 2 Translation Table

[0113]

[0114]

[0115] In some possible implementations, the second computing device has a pre-set large language model. The second computing device can run the modification tool to fill the BIOS variable translation information into a pre-set template (Prompt), input the filled template into the large language model, and output a translation table. The pre-set template could be, for example, "Please output a data table based on the following [BIOS variable translation information]".

[0116] Optionally, step S102 can be executed immediately after the modification tool is run on the second computing device to obtain the BIOS variable translation information, or it can be executed when the translation table is required. This embodiment of the application does not limit the timing of the execution.

[0117] S103, the second computing device stores the translation table into the second storage space.

[0118] For example, the second storage space is a separate storage space independent of the BIOS chip in the second computing device. As mentioned above, the second computing device stores a development toolkit for modification tools. The second storage space can be the storage location of the development toolkit on the hard drive of the second computing device; or it can be any storage location on the hard drive of the second computing device; or it can be the storage location in the local database of the second computing device, or the storage location in a cloud database that is communicatively connected to the second computing device. This embodiment of the application does not limit the scope of the application, and the specific settings can be configured according to actual needs.

[0119] In this embodiment, the second computing device generates a translation table representing the correspondence between BIOS option parameter information and BIOS variable information based on BIOS variable translation information, which characterizes the correspondence between BIOS option parameter information and BIOS variable information, and stores this translation table in the second storage space. In this way, users can create translation tables required for their business needs based on those needs, and these translation tables can be stored in the second storage space. Compared to storing the correspondence in the BIOS chip, updating the translation table does not require generating a new BIOS version, thus improving the flexibility of updating the correspondence.

[0120] Figure 4 This is a flowchart illustrating another method for generating a BIOS translation table provided in an embodiment of this application. This embodiment is... Figure 3 Based on the embodiments shown, the method for generating the BIOS translation table provided in this application will be described in detail. (See reference...) Figure 4 As shown, the method includes:

[0121] S201, The second computing device obtains BIOS variable translation information.

[0122] This step is similar to the aforementioned step S101, and will not be repeated here.

[0123] S202. The second computing device parses and processes the BIOS variable translation information according to the preset parsing rules to obtain a translation table.

[0124] For example, the preset parsing rules can indicate the meaning of each field in the text-based BIOS variable translation information. The second computing device can run the modification tool and, according to the preset parsing rules, parse the BIOS variable translation information into a data table to obtain a translation table.

[0125] In some possible implementations, the preset parsing rules include a start identifier, an end identifier, and a correspondence between data format and variable type. The start identifier is used to indicate the start of BIOS variable translation information, and the end identifier is used to indicate the end of BIOS variable translation information. The data between the start identifier and the end identifier is used to represent the correspondence between BIOS option parameter information and BIOS variable information. This correspondence can be set with multiple data formats based on the variable type. In other words, the type of variable is distinguished by different data formats.

[0126] In this implementation, the second computing device can run the modification tool. If it detects that the BIOS variable translation information includes a start identifier, it extracts the correspondence between the BIOS option parameter information and the BIOS variable information corresponding to the variable type of the data format according to the correspondence between the data format and the variable type. The extracted correspondence between the BIOS option parameter information and the BIOS variable information is stored in the initial translation table until the end identifier is detected. The translation table is then obtained according to the initial translation table.

[0127] In one possible implementation, the data format can include multiple fields, each corresponding one-to-one with a variable type. For example, if the variable types include enumeration, numeric, text, and sequence types, then fields 2-10 can be set to correspond to the BIOS option parameter information and BIOS variable information corresponding to enumeration type variables; fields 10-15 to correspond to the BIOS option parameter information and BIOS variable information corresponding to numeric type variables; fields 15-25 to correspond to the BIOS option parameter information and BIOS variable information corresponding to text type variables; and fields 25-35 to correspond to the BIOS option parameter information and BIOS variable information corresponding to sequence type variables. Using this method, the second computing device can identify the type of BIOS variable information corresponding to a field based on its field value, and thus extract the correspondence between the BIOS option parameter information and BIOS variable information of that variable type from the translated BIOS variable information, more accurately identifying the BIOS option parameter information corresponding to that BIOS variable information.

[0128] In another possible implementation, the data format has multiple preset paragraphs; each preset paragraph is used to represent a different meaning, and then the second computing device can run the modification tool to determine whether each preset paragraph has a value based on the preset regular expression, for example, referring to Examples 1-4 below, and then determine the variable type corresponding to the data format, and then extract the correspondence between the BIOS option parameter information and the BIOS variable information of the variable type from the BIOS variable translation information according to the variable type.

[0129] Example 1: The content of the BIOS variable translation information between the start and end identifiers is as follows:

[0130] Format: <displayname> , <itemname> ; <optionname1> : <optionvalue1> , <optionname2> : <optionvalue2> ; <default>;".

[0131] In the BIOS variable translation information, multiple paragraphs are divided by ";". Referring to Example 1, the first preset paragraph can be the correspondence between parameter name (DisplayName) and variable name (ItemName); the second preset paragraph is the correspondence between parameter value (OptionName1) and variable value (OptionValue1) corresponding to the variable name. This paragraph can include multiple sets of correspondence between parameter values ​​and variable values, which is not limited in this embodiment; the third preset paragraph is the default value, which can be the default value of the variable. The content of the default value is specifically related to the setting of the variable.

[0132] If the second computing device runs the modification tool and determines that both the second and third preset paragraphs have values—for example, referring to Example 1, there are characters between the first ";" representing the first preset paragraph and the second ";" representing the second preset paragraph, and between the second ";" representing the second preset paragraph and the third ";" representing the third preset paragraph—it indicates that both the second and third preset paragraphs have values ​​and are not blank paragraphs. This further indicates the correspondence between the variable values ​​and parameter values ​​listed, and that the variable value has a default value. Therefore, it is determined that the variable type corresponding to this data format is an enumeration type. The second computing device can run the modification tool to extract the correspondence between the enumeration type BIOS option parameter information and BIOS variable information from the BIOS variable translation information.

[0133] Example 2: The content of the BIOS variable translation information between the start and end markers is as follows: "Format: <displayname> , <itemname> ;; <default> ; <max> , <min> , <step> , <radix>".

[0134] The BIOS variable translation information is divided into multiple paragraphs by ";". Referring to Example 2, in addition to the preset paragraphs shown in Example 1, a fourth preset paragraph is also included. The fourth preset paragraph can be the maximum and minimum values ​​corresponding to this variable value, and can also include step size or numerical base, etc. The specific settings can be set according to actual needs, and this application embodiment does not limit it.

[0135] If the second computing device runs the modification tool and determines that the second preset paragraph has no value, and the third preset paragraph has a value (for example, referring to Example 2, after the first semicolon representing the first preset paragraph, a second semicolon representing the second preset paragraph appears immediately, with no characters between them), it indicates that no value has been set for the second preset paragraph; in other words, the second preset paragraph is a blank paragraph. However, the presence of characters between the second semicolon representing the second preset paragraph and the third semicolon representing the third preset paragraph indicates that the third preset paragraph has a value and is not a blank paragraph. This suggests that the variable's value is a range of values, not a fixed value, and does not require parameter setting for interpretation. Furthermore, it has a default value. Therefore, the variable type corresponding to this data format is determined to be numeric. The second computing device can then run the modification tool to extract the correspondence between numeric BIOS option parameter information and BIOS variable information from the BIOS variable translation information. It should be noted that the maximum, minimum, and step values ​​in the fourth preset paragraph are related to the variable's setting.

[0136] Example 3: The content of the BIOS variable translation information between the start and end markers is as follows: "Format: <displayname> , <itemname> ;;; <max> , <min>".

[0137] The BIOS variable translation information is divided into multiple paragraphs by ";". Referring to Example 3, in addition to the preset paragraphs shown in Example 1, a fourth preset paragraph is also included. The fourth preset paragraph can be the maximum and minimum length corresponding to this variable value.

[0138] If the second computing device runs the modification tool and determines that neither the second nor the third preset paragraph has a value—for example, referring to Example 3, after the first semicolon representing the first preset paragraph, a second semicolon representing the second preset paragraph appears immediately, with no characters between them—it indicates that no value has been set for the second preset paragraph; in other words, the second preset paragraph is a blank paragraph. Furthermore, after the second semicolon representing the second preset paragraph, a third semicolon representing the third preset paragraph appears immediately, with no characters between them—it indicates that no value has been set for the third preset paragraph; in other words, the third preset paragraph is a blank paragraph. This suggests that the variable's value is inherently text-based, requiring no corresponding parameter value for interpretation, and that there is no default value. Therefore, the variable type corresponding to this data format is determined to be text-based. The second computing device can then run the modification tool to extract the correspondence between text-based BIOS option parameter information and BIOS variable information from the BIOS variable translation information. It should be noted that the text length of the fourth preset paragraph limits the variable value; the specific value depends on the variable's settings.

[0139] Example 4: The content of the BIOS variable translation information between the start and end identifiers is as follows:

[0140] Format: <displayname> , <itemname> ; <optionname1> : <optionvalue0> , <optionname2> : <optionvalue1> , <optionname3> : <optionvalue2> , <optionname4> : <optionvalue3>;;".

[0141] In the BIOS variable translation information, multiple paragraphs are divided by ";". Referring to Example 4, based on the preset paragraphs shown in Example 1, if the second computing device runs the modification tool and determines that the second preset paragraph has a value and the third preset paragraph does not have a value, for example, referring to Example 4, there are characters between the first ";" representing the first preset paragraph and the second ";" representing the second preset paragraph, indicating that the second preset paragraph has a value. Furthermore, there are no characters between the second ";" representing the second preset paragraph and the third ";" representing the third preset paragraph, indicating that no value has been set for the third preset paragraph. In other words, the third preset paragraph is a blank paragraph. This indicates that the variable value is a sequence of variable values ​​in the second preset paragraph and there is no default value. Therefore, the variable type corresponding to this data format is determined to be a sequence type. The second computing device can run the modification tool to extract the correspondence between the BIOS option parameter information and the BIOS variable information of the sequence type from the BIOS variable translation information.

[0142] It should be noted that the above-mentioned preset parsing rules are only an illustration of one rule. Variable types can be expanded based on the above-mentioned preset parsing rules in order to be able to identify more types of variables.

[0143] In this way, the second computing device can accurately parse and process the BIOS variable translation information based on preset parsing rules to obtain a translation table. Furthermore, it can also take into account different variable types and use data formats to identify different types of BIOS variables, so as to more accurately identify the variable values ​​of BIOS variables and improve the accuracy of the translation table.

[0144] For example, the second computing device can run the modification tool to fill the parsing results obtained according to the preset parsing rules into the initial translation table shown in Table 1, and generate the translation table shown in Table 2.

[0145] In this way, the second computing device can run the modification tool to generate a translation table based on the BIOS variable translation information set by the user. The table can be set according to the user's business needs and can be updated flexibly.

[0146] In some possible implementations, the start identifier may also include an identifier of the target platform; the target platform includes central processing units of the same type; the identifier of the target platform may be a code assigned to the target platform by the second computing device, or it may be the CPU model or manufacturer identifier, etc., which is not limited in this embodiment. The same type may refer to CPUs from the same manufacturer, CPUs of the same model, or CPUs from the same production batch, which is not limited in this embodiment, and can be set according to actual needs. It should be understood that different types of CPUs may have different functions, and the contents of the variables in the corresponding BIOS program may be different. Therefore, it is necessary to set a BIOS translation table for CPUs of the same type.

[0147] Optionally, the end identifier may also include the identifier of the target platform. For example, the start and end identifiers may be as shown below, where the Platform Name is used to represent the identifier of the target platform.

[0148] Format: <platformstartlabel>,<Platform Name>; <address>; <size>

[0149] Format: <platformendlabel>,<Platform Name> ;

[0150] In this implementation, after the second computing device runs the modification tool to obtain the translation table, it can establish a correspondence between the target platform and the translation table based on the target platform identifier included in the start identifier. For example, the translation table can be named after the target platform identifier, or a mapping relationship can be established between the target platform identifier and the identifier of the translation table. The identifier of the translation table can be, for example, the name of the translation table or the ID of the translation table.

[0151] In this way, the second computing device can run the modification tool to generate a translation table for the target platform corresponding to the business requirements based on the user-defined BIOS variable translation information. If other computing devices, such as the third computing device, also include the same target platform, the translation table corresponding to the target platform can be sent to the third computing device for storage without having to create the translation table for the target platform again; wherein, the third computing device has the target platform.

[0152] In some possible implementations, for the same target platform, the second computing device can also run the modification tool to establish a correspondence between user identifiers and translation tables, and generate a translation table corresponding to the user identifier. In this way, if multiple users use the same target platform, user-specific translation tables can be generated to meet the different business needs of each user.

[0153] In some possible implementations, the start identifier may also include the storage location of BIOS variable information in the BIOS chip of the second computing device. It should be understood that BIOS variable information in the BIOS program is stored in the BIOS chip. For example, the BIOS chip may include a preset mapping table and a storage block for BIOS variables. The preset mapping table indicates the correspondence between each BIOS variable and its storage location in the BIOS variable storage block, which stores information about each BIOS variable, such as the variable name and value. The start identifier may include the storage location of the BIOS variable information in the BIOS variable storage block within the BIOS chip, or the storage location of the preset mapping table, facilitating accurate subsequent determination of the BIOS variable's location.

[0154] Referring to the aforementioned illustration of the start identifier, Address is used to indicate the storage location of BIOS variable information in the BIOS chip of the second computing device.

[0155] Optionally, the start identifier may also include the size of the BIOS variable translation information, such as Size in the above illustration of the start identifier. The start identifier also includes a start identifier label, and the end identifier also includes an end identifier label, such as PlatformStartLabel in the above illustration of the start identifier, used to indicate the beginning of the start identifier, or in other words, the beginning of the BIOS variable translation information. Similarly, PlatformEndLabel in the above illustration of the end identifier is used to indicate the beginning of the end identifier, or in other words, the end of the BIOS variable translation information.

[0156] S203. The second computing device stores the translation table into the second storage space.

[0157] This step is similar to step S103 mentioned above, and will not be repeated here.

[0158] In some possible implementations, the second computing device can run the modification tool to generate translation tables for multiple platforms in the manner described in the foregoing embodiments, and generate a new software development kit (SDK) based on the initial SSD of the modification tool. In other words, the SSD of the modification tool includes translation tables for multiple platforms. This new SSD can be ported to other computing devices for installation and operation, achieving cross-platform compatibility of the modification tool.

[0159] In this embodiment, the second computing device runs the modification tool, sets parsing rules, and uses these rules to parse and process the BIOS variable translation information to obtain a translation table. The parsing rules include start and end markers, as well as the correspondence between data format and variable type. Based on these parsing rules, the correspondence between BIOS option parameter information and BIOS variable information can be extracted more accurately, thereby improving the accuracy of the translation table.

[0160] Figure 5 This is a flowchart illustrating a method for processing BIOS variable information provided in an embodiment of this application. The method includes:

[0161] S301, The first computing device acquires target parameter information.

[0162] For example, the target parameter information is used to indicate the parameter processing method and the target BIOS option parameter information corresponding to the parameter processing method. The target BIOS option parameter information is used to characterize the BIOS option parameter information to be processed. The parameter processing method may include reading parameter values ​​or writing parameter values. When the parameter processing method is reading parameter values, the target BIOS option parameter information corresponding to the parameter processing method includes the name of the read parameter. When the parameter processing method is writing parameter values, the target BIOS option parameter information corresponding to the parameter processing method includes the name and value of the written parameter. The target parameter information can be in the form of a command line or a script, wherein the script includes multiple command lines.

[0163] For example, the target parameter information can be as follows:

[0164] Example 5: uniCfg-ms-fi<Display Name> This means reading the value of the parameter named Display Name, where Display Name is the target BIOS option parameter information.

[0165] Example 6: uniCfg-ms-fi<Display Name> -op <option>This means writing the parameter value with the parameter name Display Name and the parameter value Option. The parameter name Display Name and the parameter value Option are the target BIOS option parameter information.

[0166] It is understandable that the target parameter information can be the processing of a single BIOS option parameter, for example, the target parameter information can be the command line form shown in Example 5 above; or it can be the processing of multiple BIOS option parameter information, for example, the target parameter information can be the command line form shown in multiple Examples 5 above.

[0167] It should be noted that the above target parameter information is only an illustration provided by the embodiments of this application, and the embodiments of this application do not limit the content of the target parameter information.

[0168] The first computing device may be the aforementioned second computing device, or the third computing device, or a computing device with the same configuration as the aforementioned second or third computing device.

[0169] In some possible implementations, the first computing device may run the modification tool to receive target parameter information input by the user through a user interface provided by the remote access tool or the modification tool; alternatively, the first computing device may communicate with other electronic devices to obtain the target parameter information, such as a computer or other server.

[0170] S302. The first computing device obtains the correspondence between BIOS option parameter information and BIOS variable information.

[0171] For example, the correspondence is stored in a first storage space, which is a separate storage space independent of the BIOS chip in the first computing device. For instance, the first computing device stores a development toolkit for modification tools, and the first storage space can be the storage location of the development toolkit on the hard drive of the first computing device; alternatively, the first storage space can be any storage location on the hard drive of the first computing device; or, the first storage space can be a storage location in the local database of the first computing device, or a storage location in a cloud database that is communicatively connected to the first computing device. This embodiment of the application does not limit the specific settings, and they can be configured according to actual needs.

[0172] In some possible implementations, the first computing device may run the modification tool to generate the correspondence using the implementation method described in the foregoing embodiments, and store it in the first storage space. Alternatively, the first computing device may communicate with the aforementioned second computing device to obtain the correspondence and store it in the first storage space. Therefore, the first computing device can extract the correspondence from the first storage space.

[0173] S303. The first computing device determines the target BIOS variable information corresponding to the target BIOS option parameter information based on the correspondence and the target BIOS option parameter information.

[0174] For example, the target BIOS variable information is used to represent the BIOS variable information to be processed, and the correspondence can indicate the correspondence between BIOS option parameter information and BIOS variable information. Therefore, the first computing device can run the modification tool and, based on the correspondence, determine the target BIOS variable information corresponding to the target BIOS option parameter information in the target parameter information.

[0175] For example, when the parameter processing method is to read the parameter value, the target BIOS option parameter information includes the name of the parameter being read, and the target BIOS variable information includes the name of the variable; when the parameter processing method is to write the parameter value, the target BIOS option parameter information includes the name and value of the parameter being written, and the target BIOS variable information includes the name and value of the variable.

[0176] S304. The first computing device processes the target BIOS variable information based on the parameter processing method indicated by the target parameter information to obtain the processing result.

[0177] For example, the processing result corresponds to the parameter processing method indicated in the target parameter information. If the parameter processing method is to read the parameter value, the processing result can be the read parameter value; if the parameter processing method is to write the parameter value, the processing result can be a message indicating successful writing or the written parameter value. The specific settings can be configured according to actual needs.

[0178] In some possible implementations, referring to the example of target parameter information in step S301, the first computing device can run the modification tool to determine the target BIOS variable information of the target BIOS option parameter information corresponding to the parameter processing method in the target parameter information according to the correspondence. In other words, the target BIOS option parameter information can be replaced with the target BIOS variable information based on the correspondence, and the target parameter information can be translated into target BIOS variable information that the BIOS program can recognize. Then, the target BIOS variable information is processed according to the parameter processing method to obtain the processing result.

[0179] In this embodiment, the first computing device can obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and process the target BIOS option parameter information according to the parameter processing method indicated by the target parameter information based on the correspondence, to obtain the processing result. In this way, the first computing device can directly obtain the correspondence between BIOS option parameter information and BIOS variable information from the first storage space, and process the BIOS variable information using the BIOS option parameter information based on the correspondence, reducing the complexity of processing BIOS variable information. Furthermore, the correspondence can be flexibly stored in the first storage space, improving the flexibility of updating and storing the correspondence compared to it being fixed in the BIOS chip.

[0180] Figure 6 This is a schematic diagram illustrating an application scenario for a BIOS variable information processing method provided in an embodiment of this application. This embodiment is... Figure 5 Based on the illustrated embodiments, the method for processing BIOS variable information provided in this application will be described in detail. (Reference) Figure 6 As shown, the method includes:

[0181] S401, The first computing device acquires target parameter information.

[0182] This step is similar to step S301 mentioned above, and will not be repeated here.

[0183] S402, The first computing device acquires the target platform of the first computing device.

[0184] For example, the target platform may include a CPU of the same type. It should be understood that the first computing device includes the target platform.

[0185] In one possible implementation, the first computing device may have a pre-defined mapping relationship between the CPU and the target platform. Therefore, the first computing device can determine the target platform of the first computing device based on the identifier of the included CPU.

[0186] In another possible implementation, the target parameter information can indicate the target platform. Therefore, the first computing device can determine the target platform from the target parameter information. For example, the target parameter information can be the following:

[0187] Example 7: uniCfg-p <platform>-ms-fi<Display Name> This means reading the value of the parameter named Display Name from the target platform, which is platform.

[0188] Example 8: uniCfg-p <platform>-ms-fi<Display Name> -on <option>This means writing the parameter value named Display Name to the target platform platform, where the parameter value is Option.

[0189] S403. The first computing device determines the translation table corresponding to the target platform based on the target platform.

[0190] For example, the correspondence can be stored in the first storage space in the form of a translation table.

[0191] In some possible implementations, the software development kit (SDK) of the modification tool includes translation tables corresponding to multiple platforms. After the first computing device installs the modification tool, the first storage space stores the translation tables corresponding to multiple platforms. For example, a translation table library can be set up, which includes translation tables for multiple platforms. Table 3, for example, illustrates a translation table library provided in an embodiment of this application.

[0192] Table 3 Translation Database

[0193] Platform logo Translation table Platform 1 Translation Table 1 Platform 2 Translation Table 2 Platform 3 Translation Table 3

[0194] The first computing device can extract the translation table corresponding to the target platform based on the translation table library shown in Table 3 and the identifier of the target platform.

[0195] In some possible implementations, the first computing device can run the modification tool to generate a translation table corresponding to the target platform, as described in the foregoing embodiments, and store it in the first storage space. Alternatively, the first computing device can communicate with the aforementioned second computing device to obtain the translation table corresponding to the target platform and store it in the first storage space. Therefore, the first computing device can run the modification tool to extract the translation table corresponding to the target platform from the first storage space. It should be understood that the first computing device includes the same target platform as the second computing device.

[0196] S404. The first computing device obtains the correspondence between BIOS option parameter information and BIOS variable information based on the translation table corresponding to the target platform.

[0197] As mentioned above, the correspondence between BIOS option parameter information and BIOS variable information can be stored in the first storage space in the form of a translation table. Therefore, by obtaining this translation table, the correspondence between the BIOS option parameter information and BIOS variable information can be obtained.

[0198] refer to Figure 6 As shown, taking the hard drive of the first computing device as an example, the translation table can be obtained from the hard drive. In other words, the correspondence between BIOS option parameter information and BIOS variable information can be obtained.

[0199] S405. The first computing device determines the target BIOS variable information corresponding to the target BIOS option parameter information based on the correspondence and the target BIOS option parameter information.

[0200] This step is similar to step S303 mentioned above, and will not be repeated here.

[0201] S406. The first computing device determines the storage address of the target BIOS variable information in the BIOS chip of the first computing device based on the target BIOS variable information and the preset mapping table.

[0202] For example, a preset mapping table is used to describe the correspondence between BIOS variable information and storage addresses in the BIOS chip, such as a mapping relationship between variable names and storage addresses. This preset mapping table may be stored in the BIOS chip of the first computing device. For example, Table 4 is a schematic diagram of a preset mapping table provided in an embodiment of this application.

[0203] Table 4 Preset Mapping Table

[0204] Variable name storage address Variable 1 Address 1 Variable 2 Address 2

[0205] refer to Figure 6 As shown, the first computing device can run the modification tool to obtain the preset mapping table shown in Table 4 stored in the BIOS chip, and determine the storage address corresponding to the target BIOS variable information based on the variable name in the target BIOS variable information. In this way, the first computing device can accurately determine the storage address of the target BIOS variable in the BIOS chip based on the preset mapping table, ensuring the accuracy of BIOS variable processing.

[0206] S407. The first computing device processes the target BIOS variable information stored in the BIOS chip according to the parameter processing method indicated by the storage address and target parameter information in the BIOS chip, and obtains the processing result.

[0207] It should be understood that the target BIOS variable information is stored in the BIOS chip; therefore, refer to... Figure 6 As shown, the first computing device needs to determine the storage address of the target BIOS variable information in the BIOS chip, read the variable value of the variable name indicated by the target BIOS variable information from the storage address, or write the variable value of the variable name indicated by the target BIOS variable information.

[0208] In some possible implementations, if the parameter processing method involves reading parameter values, the target BIOS option parameter information includes parameter names, and the target BIOS variable information includes variable names. The first computing device can run the modification tool to read the variable values ​​of the variable names in the target BIOS variable information from the BIOS chip based on the storage address in the BIOS chip; and determine the parameter values ​​corresponding to the read variable names based on a translation table; and output the parameter values ​​corresponding to the parameter names in the target BIOS option parameter information. In other words, the first computing device can run the modification tool to replace the parameter names in the target BIOS option parameter information to be read with the variable names in the target BIOS variable information from the translation table, read the variable values ​​corresponding to the variable names in the target BIOS variable information from the BIOS chip, and again replace the variable values ​​with parameter values ​​based on the translation table, returning them to the user for easy understanding.

[0209] In this way, the first computing device can flexibly read the target BIOS variable information based on the translation table and obtain the variable values ​​of the target BIOS variable information that are easy for users to understand.

[0210] In some possible implementations, if the parameter processing method involves writing parameter values, the target BIOS option parameter information includes a parameter name and a parameter value, and the target BIOS variable information includes a variable name and a variable value. The first computing device can run the modification tool and, based on the storage address in the BIOS chip, use the variable value in the target BIOS variable information as the variable value of the variable name in the target BIOS variable information stored in the BIOS chip. In other words, the first computing device can run the modification tool to modify the original variable value of the variable name in the target BIOS variable information stored in the BIOS chip to a new variable value included in the target BIOS variable information. For example, if the original value of variable A stored in the BIOS chip is 1, the target BIOS variable information includes variable A, and the new value of variable A is 0, after this step, the value of variable A stored in the BIOS chip is 0.

[0211] In this way, the first computing device can flexibly write target BIOS variable information based on the translation table, converting user-input parameter values ​​that are easy for users to understand into variable values ​​and writing them into the BIOS chip, thereby reducing the complexity of writing BIOS variable information.

[0212] In some possible implementations, the first computing device may, in response to a translation table export command, retrieve the translation table corresponding to the target platform indicated by the translation table export command from a first storage space and output it to a first export address indicated by the translation table export command. For example, the first computing device may run a modification tool and receive the translation table export command input by a user through a remote access tool or a user interface provided by the modification tool. The translation table export command may indicate the target platform and a first export address, which may be, for example, a folder path.

[0213] For example, the translation table export command could be: uniCfg -p <platform>-gt <file>Wherein, "platform" represents the target platform, and "file" represents the first export address. It should be noted that this translation table export instruction is merely an illustration provided in this embodiment, and the content of the translation table export instruction is not limited in this embodiment.

[0214] This method allows users to export translation tables of BIOS variables corresponding to business requirements, improving the accuracy of the exported translation tables. Furthermore, users can modify these translation tables or migrate them to other computing devices for use, thereby improving the efficiency of updating the translation tables.

[0215] In some possible implementations, the first computing device may, in response to a translation table import instruction, store the translation table of the target platform indicated by the translation table import instruction into a first storage space. Exemplarily, the first computing device may run the modification tool and receive the translation table import instruction input by a user through a user interface provided by a remote access tool or the modification tool. The translation table import instruction may indicate the target platform and an import address, which may be a folder path.

[0216] For example, the translation table import command could be: uniCfg -p <platform>-st <file>Wherein, platform represents the target platform, and file represents the import address. It should be noted that this translation table import instruction is merely an illustration provided in this embodiment, and the content of the translation table import instruction is not limited in this embodiment.

[0217] This method allows users to import translation tables of variables corresponding to business requirements, ensuring accurate import. Furthermore, if the translation table is embedded in the BIOS chip, updating it would require refactoring the BIOS version. This method allows direct import of the translation table without refactoring the BIOS program, improving the flexibility of translation table updates. Additionally, if the translation table needs modification, it can be modified using the aforementioned translation table export command and then imported into the first storage space based on the translation table import command, further enhancing the flexibility of translation table updates.

[0218] In some possible implementations, the first computing device can run the modification tool, responding to the option parameter batch export command, to determine the translation table corresponding to the target platform indicated by the option parameter batch export command; then, based on the translation table corresponding to the target platform and a preset mapping table, to determine the storage address of each BIOS variable information in the translation table corresponding to the target platform in the BIOS chip of the first computing device; further, based on the storage address in the BIOS chip, to read the variable values ​​of each BIOS variable information in the translation table corresponding to the target platform stored in the BIOS chip; finally, based on the translation table corresponding to the target platform and the variable values ​​of each BIOS variable information read, to determine the parameter values ​​of each BIOS variable information read; and output the parameter values ​​of the BIOS option parameter information in the translation table corresponding to the target platform to the second export address indicated by the option parameter batch export command. The option parameter batch export command is used to indicate the target platform and the second export address; the second export address can be a folder path address.

[0219] For example, the batch export command for this option parameter could be uniCfg-p <platform>-gt <file>Wherein, platform represents the target platform, and file represents the second export address. It should be noted that this batch export command with option parameters is merely an illustration provided in this embodiment, and this embodiment does not limit the content of the batch export command with option parameters.

[0220] In this way, the first computing device can read the variable values ​​corresponding to each BIOS variable in the translation table required by the business needs from the BIOS chip, convert them into parameter values ​​that the user can understand, and return them to the user, thereby improving the efficiency of reading BIOS variable information.

[0221] In some possible implementations, the first computing device can run the modification tool, obtain the parameter values ​​of each BIOS option parameter in the translation table based on the option parameter batch export instruction, modify the parameter values, and write the modified parameter values ​​of each BIOS option parameter in the translation table into the BIOS chip based on the option parameter batch import instruction. The specific steps are similar to the steps of writing a single BIOS option parameter, and will not be described in detail here.

[0222] For example, the batch import command with option parameters can be: uniCfg -p <platform>-ss <file>Wherein, platform represents the target platform, and file represents the import address. It should be noted that this batch import instruction with option parameters is merely an illustration provided in this embodiment, and this embodiment does not limit the content of the batch import instruction with option parameters.

[0223] In this way, the first computing device can batch modify all BIOS option parameter information in the translation table required by business needs and then write it to the BIOS chip in batches, thereby improving the writing efficiency of BIOS variable information.

[0224] In this embodiment, the first computing device can determine the translation table corresponding to the target platform based on the target platform included in the first computing device. Then, based on the translation table and target parameter information, it can translate the target BIOS variable information into target BIOS variable information. After determining the storage location of the target BIOS variable information in the BIOS chip based on the target BIOS variable information and a preset mapping table, it can read or write variable values ​​to process the BIOS variable information in the BIOS program. This method stores the correspondence between BIOS option parameter information and BIOS variable information in a translation table format for easy processing. Processing BIOS variable information based on the translation table reduces the complexity of BIOS variable information processing. Furthermore, multiple platform translation tables can be set in the same computing device, and a translation table adapted to the target platform included in the first computing device can be selected, achieving cross-platform compatibility of the translation table and improving the deployment efficiency of the computing device.

[0225] Figure 7 This is a schematic diagram of a BIOS variable information processing device provided in an embodiment of this application. This device can be applied to a first computing device, such as… Figure 7 As shown, the device 500 includes:

[0226] The first acquisition module 501 is used to acquire target parameter information; wherein, the target parameter information is used to indicate the parameter processing method, and the target BIOS option parameter information corresponding to the parameter processing method;

[0227] The second acquisition module 502 is used to acquire the correspondence between BIOS option parameter information and BIOS variable information; wherein, the correspondence is stored in a first storage space; the first storage space is another storage space that is independent of the BIOS chip in the first computing device;

[0228] The determining module 503 is used to determine the target BIOS variable information corresponding to the target BIOS option parameter information based on the correspondence and the target BIOS option parameter information;

[0229] The processing module 504 is used to process the target BIOS variable information based on the parameter processing method indicated by the target parameter information to obtain the processing result.

[0230] In one implementation, the correspondence is stored in the first storage space in the form of a translation table; the processing module 504 is specifically used for:

[0231] Based on the target BIOS variable information and a preset mapping table, the storage address of the target BIOS variable information in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between the BIOS variable information and the storage address in the BIOS chip;

[0232] Based on the storage address in the BIOS chip and the parameter processing method indicated by the target parameter information, the target BIOS variable information stored in the BIOS chip is processed to obtain the processing result.

[0233] In one implementation, the correspondence is stored in the first storage space in the form of a translation table; the second acquisition module 502 is specifically used for:

[0234] Obtain the target platform of the first computing device; wherein the target platform includes a central processing unit of the same type;

[0235] Based on the target platform, determine the translation table corresponding to the target platform;

[0236] Based on the translation table corresponding to the target platform, the correspondence between the BIOS option parameter information and the BIOS variable information is obtained.

[0237] In one implementation, the second acquisition module 502 is specifically used for:

[0238] In response to a translation table import command, the translation table corresponding to the target platform indicated by the translation table import command is stored from the import address indicated by the translation table import command into the first storage space; wherein, the translation table import command is used to indicate the target platform and the import address; or,

[0239] In response to the translation table export command, the translation table corresponding to the target platform indicated by the translation table export command is extracted from the first storage space and output to the first export address indicated by the translation table export command; wherein, the translation table export command is used to indicate the target platform and the first export address.

[0240] In one implementation, the correspondence is stored in the first storage space in the form of a translation table, the translation table having a correspondence with the target platform. The device further includes an export module for:

[0241] In response to the option parameter batch export command, a translation table corresponding to the target platform indicated by the option parameter batch export command is determined; wherein, the option parameter batch export command is used to indicate the target platform and the second export address; the target platform includes a central processing unit of the same type;

[0242] Based on the translation table corresponding to the target platform and a preset mapping table, the storage address of each BIOS variable information in the translation table corresponding to the target platform in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between BIOS variable information and storage addresses in the BIOS chip;

[0243] Based on the storage address in the BIOS chip, read the variable values ​​of each BIOS variable information in the translation table corresponding to the target platform stored in the BIOS chip;

[0244] Based on the translation table corresponding to the target platform and the variable values ​​of each BIOS variable information read, determine the parameter values ​​of each BIOS variable information read.

[0245] Output the parameter values ​​of the BIOS option parameter information in the translation table corresponding to the target platform to the second export address indicated by the option parameter batch export command.

[0246] The BIOS variable information processing device provided in this embodiment can execute the BIOS variable information processing method in the above method embodiment, and its beneficial effects are similar, so they will not be described again here.

[0247] Figure 8 This is a schematic diagram of a BIOS translation table generation apparatus provided in an embodiment of this application. This apparatus can be applied to a second computing device, such as... Figure 8 As shown, the device 600 includes:

[0248] The acquisition module 601 is used to acquire BIOS variable translation information; wherein, the BIOS variable translation information is used to describe the correspondence between BIOS option parameter information and BIOS variable information;

[0249] The generation module 602 is used to generate a translation table based on the BIOS variable translation information; wherein the translation table is used to describe the correspondence between BIOS option parameter information and BIOS variable information;

[0250] Storage module 603 is used to store the translation table into a second storage space; wherein the second storage space is a separate storage space independent of the BIOS chip in the second computing device.

[0251] In one implementation, the generation module 602 is specifically used for:

[0252] The BIOS variable translation information is parsed and processed according to preset parsing rules to obtain the translation table.

[0253] In one implementation, the preset parsing rules include a start identifier, an end identifier, and a correspondence between data format and variable type; the generation module 602 is specifically used for:

[0254] If the start identifier is detected, then according to the correspondence between the data format and the variable type, the correspondence between the BIOS option parameter information and the BIOS variable information corresponding to the data format is extracted from the BIOS variable translation information and stored in the initial translation table. This process continues until the end identifier is detected, and then the translation table is obtained based on the initial translation table.

[0255] In one implementation, the data format has multiple preset paragraphs; the generation module 602 is specifically used for:

[0256] If it is determined that both the second and third preset paragraphs have values, then the variable type corresponding to this data format is determined to be an enumeration type, and the correspondence between the enumeration type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0257] If it is determined that the second preset paragraph has no value, and the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be a numeric type, and the correspondence between the numeric type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0258] If it is determined that neither the second nor the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be text type, and the correspondence between the text type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or,

[0259] If it is determined that the second preset paragraph has a value and the third preset paragraph does not have a value, then the variable type corresponding to this data format is determined to be a sequence type, and the correspondence between the BIOS option parameter information and the BIOS variable information of the sequence type is extracted from the BIOS variable translation information.

[0260] The BIOS translation table generation apparatus provided in this embodiment can execute the BIOS translation table generation method in the above method embodiment, and its beneficial effects are similar, so they will not be described again here.

[0261] Figure 9 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. See also... Figure 9 As shown, the computing device 700 includes a processor 701 and a memory 702 that is communicatively connected to the processor.

[0262] Memory 702 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions. Memory 702 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0263] The processor 701 is used to execute computer execution instructions stored in the memory 702 to implement the BIOS variable information processing method described in the foregoing method embodiments, or the BIOS translation table generation method. The processor 701 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0264] The computing device 700 may also include a communication interface 703, through which it can communicate and interact with external devices. The external device may be, for example, the first computing device or an electronic device.

[0265] In practical implementation, if the communication interface 703, memory 702, and processor 701 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.

[0266] Optionally, in a specific implementation, if the communication interface 703, memory 702, and processor 701 are integrated on a single chip, then the communication interface 703, memory 702, and processor 701 can communicate through an internal interface.

[0267] The computing device provided in this embodiment can execute the technical solutions in the above method embodiments, and its beneficial effects are similar, so they will not be described again here.

[0268] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the technical solutions provided in any of the foregoing method embodiments.

[0269] This application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solutions provided in the foregoing method embodiments.

[0270] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of this application, and are not intended to limit them. Although the embodiments of this application have been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.< / file> < / platform> < / file> < / platform> < / file> < / platform> < / file> < / platform> < / option> < / platform> < / platform> < / option> < / platformendlabel> < / size> < / address> < / platformstartlabel> < / optionname4> < / optionvalue2> < / optionname3> < / optionvalue1> < / optionname2> < / optionvalue0> < / optionname1> < / itemname> < / displayname> < / min> < / max> < / itemname> < / displayname> < / radix> < / step> < / min> < / max> < / default> < / itemname> < / displayname> < / default> < / optionvalue2> < / optionname2> < / optionvalue1> < / optionname1> < / itemname> < / displayname>

Claims

1. A method for processing BIOS variable information, characterized in that, The method is applied to a first computing device; the method includes: Obtain target parameter information; wherein, the target parameter information is used to indicate the parameter processing method, and the target BIOS option parameter information corresponding to the parameter processing method; Obtain the correspondence between BIOS option parameter information and BIOS variable information; wherein, the correspondence is stored in a first storage space; the first storage space is a separate storage space independent of the BIOS chip in the first computing device; Based on the correspondence and the target BIOS option parameter information, determine the target BIOS variable information corresponding to the target BIOS option parameter information; Based on the parameter processing method indicated by the target parameter information, the target BIOS variable information is processed to obtain the processing result; The correspondence is stored in the first storage space in the form of a translation table, and the translation table has a correspondence with the target platform. The method further includes: In response to the option parameter batch export command, a translation table corresponding to the target platform indicated by the option parameter batch export command is determined; wherein, the option parameter batch export command is used to indicate the target platform and the second export address; the target platform includes a central processing unit of the same type; Based on the translation table corresponding to the target platform and a preset mapping table, the storage address of each BIOS variable information in the translation table corresponding to the target platform in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between BIOS variable information and storage addresses in the BIOS chip; Based on the storage address in the BIOS chip, read the variable values ​​of each BIOS variable information in the translation table corresponding to the target platform stored in the BIOS chip; Based on the translation table corresponding to the target platform and the variable values ​​of each BIOS variable information read, determine the parameter values ​​of each BIOS variable information read. Output the parameter values ​​of the BIOS option parameter information in the translation table corresponding to the target platform to the second export address indicated by the option parameter batch export command.

2. The method according to claim 1, characterized in that, Based on the parameter processing method indicated by the target parameter information, the target BIOS variable information is processed to obtain the processing result, including: Based on the target BIOS variable information and a preset mapping table, the storage address of the target BIOS variable information in the BIOS chip of the first computing device is determined; wherein, the preset mapping table is used to describe the correspondence between the BIOS variable information and the storage address in the BIOS chip; Based on the storage address in the BIOS chip and the parameter processing method indicated by the target parameter information, the target BIOS variable information stored in the BIOS chip is processed to obtain the processing result.

3. The method according to claim 1, characterized in that, Obtain the correspondence between BIOS option parameter information and BIOS variable information, including: Obtain the target platform of the first computing device; wherein the target platform includes a central processing unit of the same type; Based on the target platform, determine the translation table corresponding to the target platform; Based on the translation table corresponding to the target platform, the correspondence between the BIOS option parameter information and the BIOS variable information is obtained.

4. The method according to claim 3, characterized in that, The method further includes: In response to a translation table import command, the translation table corresponding to the target platform indicated by the translation table import command is stored from the import address indicated by the translation table import command into the first storage space; wherein, the translation table import command is used to indicate the target platform and the import address; or, In response to the translation table export command, the translation table corresponding to the target platform indicated by the translation table export command is extracted from the first storage space and output to the first export address indicated by the translation table export command; wherein, the translation table export command is used to indicate the target platform and the first export address.

5. A method for generating a BIOS translation table, characterized in that, The method is applied to a second computing device; the method includes: Obtain BIOS variable translation information; wherein, the BIOS variable translation information is used to describe the correspondence between BIOS option parameter information and BIOS variable information; A translation table is generated based on the BIOS variable translation information; wherein the translation table is used to describe the correspondence between BIOS option parameter information and BIOS variable information, and the translation table is used in the BIOS variable information processing method as described in any one of claims 1-4; The translation table is stored in a second storage space, which is a separate storage space independent of the BIOS chip in the second computing device.

6. The method according to claim 5, characterized in that, Based on the BIOS variable translation information, the translation table is generated, including: The BIOS variable translation information is parsed and processed according to preset parsing rules to obtain the translation table.

7. The method according to claim 6, characterized in that, The preset parsing rules include start markers, end markers, and the correspondence between data formats and variable types; According to preset parsing rules, the BIOS variable translation information is parsed to obtain the translation table, including: If the start identifier is detected, then according to the correspondence between the data format and the variable type, the correspondence between the BIOS option parameter information and the BIOS variable information corresponding to the data format is extracted from the BIOS variable translation information and stored in the initial translation table. This process continues until the end identifier is detected, and then the translation table is obtained based on the initial translation table.

8. The method according to claim 7, characterized in that, The data format has multiple preset paragraphs; based on the correspondence between the data format and variable types, the correspondence between BIOS option parameter information and BIOS variable information corresponding to the data format is extracted from the BIOS variable translation information, including: If it is determined that both the second and third preset paragraphs have values, then the variable type corresponding to this data format is determined to be an enumeration type, and the correspondence between the enumeration type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or, If it is determined that the second preset paragraph has no value, and the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be a numeric type, and the correspondence between the numeric type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or, If it is determined that neither the second nor the third preset paragraph has a value, then the variable type corresponding to this data format is determined to be text type, and the correspondence between the text type BIOS option parameter information and the BIOS variable information is extracted from the BIOS variable translation information; or, If it is determined that the second preset paragraph has a value and the third preset paragraph does not have a value, then the variable type corresponding to this data format is determined to be a sequence type, and the correspondence between the BIOS option parameter information and the BIOS variable information of the sequence type is extracted from the BIOS variable translation information.

9. A computing device, characterized in that, The computing device includes: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions stored in the memory to implement the BIOS variable information processing method as described in any one of claims 1-4, or the BIOS translation table generation method as described in any one of claims 5-8.

Citation Information

Patent Citations

  • Parameter configuration management method and device based on graphical user interface

    CN107273163A

  • Processing method and electronic equipment

    CN116954732A

  • Systems and methods for repairing corruption to BIOS boot critical memory variables

    US20220283918A1