Method, apparatus, device and storage medium for modifying BIOS setting layout
By creating and managing database index tables to store the configuration item index data structure of the BIOS setting interface, the problem that the BIOS setting layout cannot be dynamically modified is solved, and more efficient user operations and configuration management is achieved.
Patent Information
- Application Number
- CN202211304646.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2042-10-24
AI Technical Summary
The layout of the configuration item in the existing BIOS settings interface cannot be dynamically modified, which is inconvenient for users to operate, and directly modifying the HII database may lead to the inability to restore the original setting layout.
By creating a database index table to store the index data structure of the configuration item, generate and write the index data structure in response to user modification operations, and store it in a non-volatile storage device for reading and application after restart.
Dynamic modification of BIOS settings and layout is realized, improving user operation convenience and configuration efficiency, while ensuring the recovery of the original settings and layout.
Smart Images

Figure CN115543462B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular, to a method, apparatus, device, and storage medium for modifying the BIOS setting layout. Background Art
[0002] The layout of the BIOS (Basic Input Output System) setting interface is usually determined by the configuration item information after the BIOS is compiled and cannot be modified. Users can only select the configuration items in the BIOS setting interface and modify the parameter values corresponding to the configuration items.
[0003] There are many configuration items in the BIOS setting interface, and there are also hierarchical relationships. The configuration items that the user wants to access or the configuration items for which the user wants to modify the parameter values may be located deep below, which is inconvenient to operate. If the HII (Human Interface Infrastructure) database storing the BIOS setting interface is directly modified, there may be a situation where the original setting layout of the BIOS interface cannot be restored. Therefore, how to dynamically modify the setting layout of the BIOS interface has become an urgent problem to be solved. Summary of the Invention
[0004] The present invention provides a method, apparatus, device, and storage medium for modifying the BIOS setting layout to achieve dynamic modification of the BIOS interface setting layout.
[0005] According to one aspect of the present invention, a method for modifying the BIOS setting layout is provided, and the method includes:
[0006] Responding to a modification operation of a configuration item in the BIOS setting layout by an operator, creating a database index table for storing an index data structure of the configuration item;
[0007] Obtaining the modified configuration item modified by the operator from the HII (Human Interface Infrastructure) memory;
[0008] Generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table;
[0009] Storing the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setting layout.
[0010] Optionally, if the modification operation of the operator on the configuration item in the BIOS setting layout is a configuration item addition operation, then generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table includes:
[0011] Generating a virtual index node for the configuration item to be added; wherein, the configuration item to be added is the configuration item added by the operator in the BIOS setting layout when performing the configuration item addition operation;
[0012] Obtaining at least one sub-configuration item to be added that the operator adds to the configuration item to be added from the HII memory;
[0013] Generating an index data structure corresponding to the configuration item to be added based on each of the sub-configuration items to be added and the virtual index node;
[0014] Writing the index data structure corresponding to the configuration item to be added into the database index table.
[0015] In this optional embodiment, by generating a virtual index node for the configuration item to be added and adding at least one sub-configuration item to be added obtained from the HII memory under the virtual index node, an index data structure corresponding to the configuration item to be added is generated, and the index data structure corresponding to the configuration item to be added is written into the database index table, thereby implementing the addition operation of the configuration item in the BIOS setting layout. By using the generated virtual index node to carry the configuration item to be added, the configuration item to be added can be deleted subsequently by deleting the virtual index node, thereby restoring the BIOS setting layout, and the addition operation of the configuration item to be added is realized without destroying the original BIOS setting layout.
[0016] Optionally, if the modification operation of the operator on the configuration item in the BIOS setting layout is a position modification operation, then generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table includes:
[0017] Obtaining at least one target configuration item whose position is modified by the operator from the HII memory;
[0018] Generating an index data structure after the position modification of each of the target configuration items;
[0019] Writing the index data structure corresponding to each of the target configuration items into the database index table.
[0020] In this alternative embodiment, by obtaining at least one target configuration item whose position is to be modified from the HII memory, generating an index data structure after the position modification of each target configuration item, and writing the index data structure corresponding to each target configuration item into the database index table, the operation of modifying the position of the configuration item in the BIOS setting layout is realized, the subsequent search and acquisition efficiency of the configuration item by the operator is improved, and thus the configuration efficiency of the configuration item is improved.
[0021] Optionally, the method further includes:
[0022] In response to the operator's startup operation on the BIOS setting layout, reading configuration item data related to the BIOS setting layout from the HII memory; and,
[0023] Reading the non-volatile storage device and determining whether there is a database index table in the non-volatile storage device;
[0024] If so, reading the index data structure in the database index table;
[0025] Updating the configuration item data with the index data structure to update the BIOS setting layout;
[0026] Feeding back the updated BIOS setting layout to the operator.
[0027] The solution of this embodiment realizes the startup and loading of the BIOS setting layout after modifying the configuration item without destroying the original BIOS interface setting layout by, in response to the operator's startup operation on the BIOS setting layout, reading the configuration item data from the HII memory, reading the index data structure in the database index table in the non-volatile storage device, and updating the configuration item data with the index data structure, improves the configuration efficiency of the motherboard configuration item, and improves the convenience of relevant operators during the configuration process.
[0028] Optionally, after determining whether there is a database index table in the non-volatile storage device, it further includes:
[0029] If there is no database index table in the non-volatile storage device, feeding back the BIOS setting layout to the operator based on the configuration item data related to the BIOS setting layout read from the HII memory.
[0030] In this alternative embodiment, by reading configuration item data related to the BIOS setup layout from the HII memory and feeding back the BIOS setup layout to the operator, the problem of loading the BIOS setup layout in the case where there is no database index table in the non-volatile storage device is solved, and the feedback and loading of the original BIOS setup layout are achieved in the case where there is no database index table.
[0031] Optionally, the method further includes:
[0032] In response to an acquisition operation of the database index table by the data acquisition party, determining whether the database index table exists in the non-volatile storage device;
[0033] If so, feeding back the database index table to the data acquisition party for the data acquisition party to synchronize the database index table in its own server and / or server cluster.
[0034] In this alternative embodiment, by feeding back the database index table to the data acquisition party after responding to the acquisition operation of the database index table by the data acquisition party, for the data acquisition party to synchronize the database index table in its own server and / or server cluster, the synchronization function of the database index table is achieved, thereby improving the configuration efficiency of servers or server clusters with the same configuration requirements and realizing the wide application of the modified BIOS setup layout.
[0035] According to another aspect of the present invention, there is provided a BIOS setup layout modification device, the device including:
[0036] An index table creation module, configured to create a database index table for storing an index data structure of configuration items in response to a modification operation of the operator on the configuration items in the basic input / output system BIOS setup layout;
[0037] A modified configuration item acquisition module, configured to acquire the modified configuration items modified by the operator from the human-machine interface infrastructure HII memory;
[0038] A data structure generation module, configured to generate an index data structure corresponding to the modified configuration item and write the index data structure corresponding to the modified configuration item into the database index table;
[0039] An index table storage module, configured to store the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setup layout.
[0040] Optionally, if the modification operation of the operator on the configuration items in the BIOS setup layout is a configuration item addition operation, the data structure generation module includes:
[0041] A virtual node generation unit for generating a virtual index node for a configuration item to be added; wherein, the configuration item to be added is a configuration item added by the operator in the BIOS setting layout when performing the configuration item addition operation.
[0042] A sub-configuration item acquisition unit for acquiring at least one sub-configuration item to be added that the operator adds to the configuration item to be added from the HII memory.
[0043] A data structure generation unit for generating an index data structure corresponding to the configuration item to be added based on each of the sub-configuration items to be added and the virtual index node.
[0044] A structure data writing unit for writing the index data structure corresponding to the configuration item to be added into the database index table.
[0045] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0046] At least one processor; and
[0047] A memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the BIOS setting layout modification method according to any embodiment of the present invention.
[0049] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the BIOS setting layout modification method according to any embodiment of the present invention when executed.
[0050] The solution of the embodiment of the present invention responds to the modification operation of the configuration item in the BIOS setting layout, acquires the modified configuration item from the HII memory, generates an index data structure corresponding to the modified configuration item, and writes the index data structure corresponding to the modified configuration item into the database index table; stores the database index table in a non-volatile storage device, so that after restarting the BIOS setting layout, the database index table is read, realizing the dynamic modification of the BIOS interface setting layout without destroying the original BIOS interface setting layout, improving the subsequent configuration efficiency of the motherboard configuration item, and improving the convenience of relevant operators during the configuration process.
[0051] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0053] Figure 1 is a flowchart of a method for modifying the BIOS setting layout according to Embodiment 1 of the present invention;
[0054] Figure 2 is a flowchart of a method for modifying the BIOS setting layout according to Embodiment 2 of the present invention;
[0055] Figure 3 is a flowchart of a method for modifying the BIOS setting layout according to Embodiment 3 of the present invention;
[0056] Figure 4 is a schematic structural diagram of a device for modifying the BIOS setting layout according to Embodiment 4 of the present invention;
[0057] Figure 5 is a schematic structural diagram of an electronic device for implementing the method for modifying the BIOS setting layout of the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0058] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0059] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0060] Embodiment 1
[0061] Figure 1 FIG. is a flowchart of a method for modifying the BIOS setting layout provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of dynamically modifying the setting layout of the BIOS interface. This method can be executed by a BIOS setting layout modification device, which can be implemented in the form of hardware and / or software, and the BIOS setting layout modification device can be configured in an electronic device. As Figure 1 shown, the method includes:
[0062] S110. In response to the modification operation of the operator on the configuration item in the basic input / output system (BIOS) setting layout, create a database index table for storing the index data structure of the configuration item.
[0063] Among them, the operator can be a relevant user who has a modification requirement for the configuration item of the BIOS setting layout of the motherboard.
[0064] Among them, there can be at least one configuration item in the BIOS setting layout, and the parameter values corresponding to each configuration item can be modified and saved by relevant operators according to actual needs. However, the configuration item itself cannot be dynamically modified. When the operator modifies the configuration item in the BIOS setting layout, the modified content of the configuration item is stored in the RAM (Random Access Memory), and the modified content of the configuration item is lost after power-off. When the BIOS setting layout is restarted next time, the setting layout of its BIOS interface is still the initial BIOS setting layout.
[0065] Among them, the BIOS setup layout may include a configuration information page (main), a hardware configuration page (advanced), a security settings page (security), a boot page (boot), and an exit and save page (exit), etc. It should be noted that layout pages such as the configuration information page, the hardware configuration page, the security settings page, the boot page, and the exit and save page can all be used as configuration items in the BIOS setup layout. Correspondingly, there may be at least one subordinate configuration item under each layout page. For example, under the hardware configuration page (advanced), there may be subordinate configuration items such as USB (Universal Serial Bus) configuration (USB Configuration), Hardware Monitor, and ACPI (Advanced Configuration and Power Management Interface) settings (ACPI Settings). Similarly, there may be corresponding sub-configuration items at the level of each subordinate configuration item, which will not be elaborated in this embodiment.
[0066] It can be understood that each layout page in the BIOS setup layout can be used as a modifiable configuration item. Correspondingly, the subordinate configuration items under each layout interface, as well as the sub-configuration items at the level of each subordinate configuration item, can also be used as modifiable configuration items.
[0067] Among them, the database index table is used to store the index data structure of the modified configuration items. The database index table can be pre-created by relevant technical personnel or automatically created when the configuration items in the BIOS setup layout are modified.
[0068] Exemplarily, the operator can enter the BIOS interface to modify the configuration items in the BIOS setup layout. When the operator saves the modified configuration items, a database index table for storing the index data structure of the modified configuration items is created; when the operator does not save the modified configuration items, there is no need to create a database index table, and at the same time, the modified configuration items are restored.
[0069] S120. Obtain the modified configuration items modified by the operator from the human-machine interface infrastructure HII memory.
[0070] It should be noted that the configuration item data related to the configuration items in the BIOS setup layout is stored in the HII database of the HII memory. Among them, HII defines an infrastructure for managing user input and supports various types of input. Among them, the configuration item data may include the configuration item ID (Identity document, unique code) of the configuration item, the configuration item name, the parent node information of the configuration item, the child node information of the configuration item, and the value of the configuration item, etc.
[0071] Exemplarily, when the operator modifies a configuration item, the configuration item data of the modified configuration item changes in the HII database. Therefore, after the operator determines to modify a configuration item, the modified configuration item modified by the operator can be obtained from the database in the HII memory, and the configuration item data corresponding to the modified configuration item can be obtained.
[0072] S130. Generate an index data structure corresponding to the modified configuration item and write the index data structure corresponding to the modified configuration item into the database index table.
[0073] Exemplarily, an index data structure corresponding to the modified configuration item can be automatically generated according to the configuration item data of the modified configuration item, and the index data structure corresponding to the modified configuration item can be written into the database index table.
[0074] S140. Store the database index table in a non-volatile storage device for reading the index data structure of the configuration items in the BIOS setup layout from the non-volatile storage device after restarting the BIOS setup layout.
[0075] Among them, the non-volatile storage device can be a device that can store data for a long time and ensure that the data is not easily lost. For example, the non-volatile storage device can be NVRAM (Non-Volatile Random Access Memory), a hard disk, or the eMMC (Embedded Multi Media Card) of the BMC (Baseboard Management Controller).
[0076] Exemplarily, store the database index table in a non-volatile storage device. When restarting the setup layout of the BIOS interface next time, read the index data structure of the configuration items in the BIOS setup layout from the HII memory. At the same time, read the database index table from the non-volatile storage device, and use the index data structure in the database index table to update the index data structure of the configuration items in the BIOS setup layout read from the HII memory; based on the updated index data structure, update the configuration items of the BIOS setup layout, thereby updating the BIOS setup layout and displaying the updated BIOS setup layout.
[0077] In the solution of the embodiment of the present invention, in response to a modification operation on a configuration item in the BIOS setup layout, the modified configuration item is obtained from the HII memory, an index data structure corresponding to the modified configuration item is generated, and the index data structure corresponding to the modified configuration item is written into the database index table; the database index table is stored in a non-volatile storage device, so that after restarting the BIOS setup layout, the database index table is read, realizing dynamic modification of the BIOS setup layout without destroying the original setup layout of the BIOS interface, improving the subsequent configuration efficiency of the motherboard configuration items, and improving the convenience of relevant operators during the configuration process.
[0078] It can be understood that relevant operators can modify the configuration items in the BIOS setup layout in various forms. For example, the operator can modify the position of the configuration item in the BIOS setup layout, or add a configuration item to the original BIOS setup layout, or modify the name and remarks of the configuration item in the BIOS setup layout.
[0079] In an optional embodiment, if the modification operation of the operator on the configuration item in the BIOS setup layout is a configuration item addition operation, generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table includes: generating a virtual index node for the configuration item to be added; where the configuration item to be added is the configuration item added by the operator in the BIOS setup layout when performing the configuration item addition operation; obtaining at least one sub-configuration item to be added added by the operator to the configuration item to be added from the HII memory; generating an index data structure corresponding to the configuration item to be added based on the virtual index node according to each sub-configuration item to be added; and writing the index data structure corresponding to the configuration item to be added into the database index table.
[0080] Among them, the virtual index node can be a temporarily created node for carrying the configuration item to be added. The configuration item to be added can be a configuration item added by the operator to the original BIOS setup layout according to actual needs.
[0081] It should be noted that the purpose of the operator adding the configuration item to be added can be to add some commonly used configuration items in the BIOS setup layout to the node of the configuration item to be added, so as to facilitate the management and use of the commonly used configuration items; it can also be to add some configuration items with similar functions to the node of the configuration item to be added, so as to facilitate the subsequent quick positioning of the commonly used configuration items. During the process of the operator adding the configuration item in the BIOS setup layout to the virtual index node of the configuration item to be added, the added configuration item can be used as the sub-configuration item to be added of the configuration item to be added.
[0082] Optionally, the number of configuration items to be added by the operator to the BIOS setup layout can be at least one, and the number of configuration items to be added corresponds to the number of virtual index nodes. Similarly, the number of sub-configuration items to be added to the configuration items to be added can be at least one, which can be determined according to the actual needs of the operator, and this embodiment does not limit this.
[0083] Exemplarily, during the operation of adding configuration items, virtual index nodes corresponding to each configuration item to be added are created. Since the relevant data of the configuration items in the BIOS setup layout is stored in the HII database in the HII memory, at least one sub-configuration item to be added by the operator to each configuration item to be added can be obtained from the HII memory, and each sub-configuration item to be added is added under the virtual index node of the corresponding configuration item to be added. After completing the addition operation of the sub-configuration items to be added, an index data structure corresponding to each configuration item to be added is generated, and the index data structure corresponding to each configuration item to be added is written into the database index table.
[0084] In this optional embodiment, by generating virtual index nodes for the configuration items to be added, at least one sub-configuration item to be added obtained from the HII memory is added under the virtual index nodes, thereby generating an index data structure corresponding to the configuration items to be added, and writing the index data structure corresponding to the configuration items to be added into the database index table, realizing the addition operation of the configuration items in the BIOS setup layout. By using the generated virtual index nodes to carry the configuration items to be added, the configuration items to be added can be deleted by deleting the virtual index nodes subsequently, thereby restoring the BIOS setup layout, and realizing the addition operation of the configuration items to be added without destroying the original BIOS setup layout.
[0085] In another optional embodiment, if the modification operation of the configuration items in the BIOS setup layout by the operator is a position modification operation, an index data structure corresponding to the modified configuration item is generated, and writing the index data structure corresponding to the modified configuration item into the database index table includes: obtaining at least one target configuration item whose position is modified by the operator from the HII memory; generating an index data structure after the position of each target configuration item is modified; writing the index data structure corresponding to each target configuration item into the database index table.
[0086] It should be noted that the purpose of the operator to modify the position of the configuration items in the BIOS setup layout can be to place configuration items with similar functions under the same node, so as to facilitate the subsequent search and use of configuration items with similar functions; it can also be to modify the position of commonly used configuration items with deeper levels, so as to facilitate the subsequent selection of commonly used configuration items with deeper levels.
[0087] It can be understood that there is a hierarchical relationship among the configuration items in the BIOS setup layout, that is, each configuration item can have corresponding parent nodes and / or child nodes. The parent node of a configuration item can be the upper level of the configuration item, and the child node of a configuration item can be the lower level of the configuration item. Modifying the position of a configuration item can be considered as modifying the parent node and / or child node of the configuration item.
[0088] Optionally, the number of configuration items for which the operator performs the position modification operation of the configuration item can be at least one, which can be specifically determined according to actual requirements, and this embodiment does not limit this.
[0089] Exemplarily, when the operator modifies the position of a configuration item in the BIOS setup layout, at least one target configuration item is obtained from the HII memory. Among them, the target configuration item can be the configuration item whose position is modified by the operator. Since the relevant data of the configuration item, including the child node and / or parent node of the configuration item, is stored in the HII database of the HII memory, therefore, the corresponding child node and / or parent node after the position modification of each target configuration item can be determined, and the index data structure after the position modification of each target configuration item is generated, and the index data structure corresponding to each target configuration item is written into the database index table.
[0090] In this optional embodiment, by obtaining at least one target configuration item whose position is modified by the operator from the HII memory, generating the index data structure after the position modification of each target configuration item, and writing the index data structure corresponding to each target configuration item into the database index table, the position modification operation of the configuration item in the BIOS setup layout is realized, the subsequent search and acquisition efficiency of the configuration item by the operator is improved, and thus the configuration efficiency of the configuration item is improved.
[0091] It can be understood that in actual applications, it is usually necessary to perform corresponding configurations on a large number of servers. During the configuration process of a large number of servers, the operations performed on the configuration items of the BIOS setup layout are often the same. Since the index data structure for modifying the configuration items of the BIOS setup layout is stored in the database index table, therefore, to improve the configuration efficiency of servers with the same configuration requirements, import and export operations can be performed on the database index table.
[0092] In an optional embodiment, in response to the data acquirer's operation of acquiring the database index table, it is judged whether there is a database index table in the non-volatile storage device; if so, the database index table is fed back to the data acquirer for the data acquirer to synchronize the database index table in its own server and / or server cluster.
[0093] Among them, the data acquisition party can be a server or a server cluster with the same configuration requirements. Exemplarily, in response to the data acquisition party's acquisition operation of the database index table, it is determined whether there is a database index table in the non-volatile storage device; if there is a database index table, it is determined whether there is an index data structure in the database index table; if there is an index data structure, the database index table is synchronized to the data acquisition party; if there is no database index table or there is no index data structure in the database index table, a feedback of no available index table is sent to the data acquisition party. After the data acquisition party synchronously obtains the database index table, it uses the database index table in its own server or server cluster to update the setting layout of the BIOS interface of its own system.
[0094] In this optional embodiment, after responding to the data acquisition party's acquisition operation of the database index table, the database index table is fed back to the data acquisition party for the data acquisition party to synchronize the database index table in its own server and / or server cluster, realizing the synchronization function of the database index table, thereby improving the configuration efficiency of servers or server clusters with the same configuration requirements and realizing the wide application of the modified BIOS setting layout.
[0095] Embodiment 2
[0096] Figure 2 It is a flowchart of a method for modifying the BIOS setting layout provided in Embodiment 2 of the present invention. On the basis of the above technical solutions, this embodiment is optimized and improved.
[0097] Further, after the step of "writing the index data structure corresponding to each target configuration item into the database index table", the steps of "in response to the operation party's startup operation of the BIOS setting layout, reading the configuration item data related to the BIOS setting layout from the HII memory; and, reading the non-volatile storage device and determining whether there is a database index table in the non-volatile storage device; if so, reading the index data structure in the database index table; updating the configuration item data with the index data structure to update the BIOS setting layout; and feeding back the updated BIOS setting layout to the operation party" are added to improve the operation party's acquisition operation of the updated BIOS setting layout.
[0098] As Figure 2 shown, the method includes the following specific steps:
[0099] S210. In response to the operation party's modification operation of the configuration item in the basic input / output system BIOS setting layout, create a database index table for storing the index data structure of the configuration item.
[0100] S220. Obtain the modified configuration item that the operation party has modified from the human interface infrastructure HII memory.
[0101] S230. Generate an index data structure corresponding to the modified configuration item, and write the index data structure corresponding to the modified configuration item into the database index table.
[0102] S240. Store the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setup layout.
[0103] S250. In response to the startup operation of the operator on the BIOS setup layout, read the configuration item data related to the BIOS setup layout from the HII memory.
[0104] Among them, the configuration item data related to the BIOS setup layout can be the index data structure corresponding to each configuration item, specifically including the configuration item ID, configuration item name, parent node information of the configuration item, child node information of the configuration item, and the value of the configuration item, etc.
[0105] Exemplarily, when the operator starts the setup layout of the BIOS interface, read the configuration item data related to each configuration item in the BIOS setup layout from the HII memory.
[0106] S260. Read the non-volatile storage device and determine whether there is a database index table in the non-volatile storage device.
[0107] Exemplarily, when the operator starts the setup layout of the BIOS interface, read the non-volatile storage device and determine whether there is a database index table in the non-volatile storage device.
[0108] It should be noted that the present embodiment does not limit the reading order between reading the configuration item data related to the BIOS setup layout in the HII memory and reading the non-volatile storage device. It can be to read the configuration item data in the HII memory first and then read the non-volatile storage device; it can also be to read the non-volatile storage device first and then read the configuration item data in the HII memory; it can also be to read the configuration item data in the HII memory and the non-volatile storage device simultaneously.
[0109] S270. If so, read the index data structure in the database index table.
[0110] Exemplarily, if there is a data index table in the non-volatile storage device, read the index data structure in the database index table.
[0111] In an alternative embodiment, after determining whether there is a database index table in the non-volatile storage device, it further includes: if there is no database index table in the non-volatile storage device, feedback the BIOS setup layout to the operator based on the configuration item data related to the BIOS setup layout read from the HII memory.
[0112] It should be noted that since the original BIOS setting layout is stored in the HII memory, that is, the initial setting layout without any modification of configuration items, the configuration item data read from the HII memory is the configuration item data corresponding to the original BIOS setting layout.
[0113] Exemplarily, if there is a database index table in the non-volatile storage device, it is determined whether there is an index data structure in the database index table. If there is an index data structure, the index data structure in the database index table is read; if there is no index data structure or there is no database index table in the non-volatile storage device, the BIOS setting layout is fed back to the operator based on the configuration item data related to the BIOS setting layout read from the HII memory.
[0114] In this optional embodiment, by reading the configuration item data related to the BIOS setting layout from the HII memory and feeding back the BIOS setting layout to the operator, the problem of loading the BIOS setting layout in the case where there is no database index table in the non-volatile storage device is solved, and the feedback and loading of the original BIOS setting layout are realized in the case where there is no database index table.
[0115] S280. Update the configuration item data by using the index data structure to update the BIOS setting layout.
[0116] Exemplarily, use the index data structure in the database index table to update the configuration item data read from the HII memory to implement the update of the BIOS setting layout; load the updated configuration item data to load the updated BIOS setting layout.
[0117] S290. Feed back the updated BIOS setting layout to the operator.
[0118] Exemplarily, feed back the updated BIOS setting layout to the operator for the operator to perform configuration operations on each configuration item in the updated BIOS setting layout.
[0119] The solution of this embodiment realizes the startup and loading of the BIOS setting layout after modifying the configuration items without destroying the setting layout of the original BIOS interface by responding to the startup operation of the operator on the BIOS setting layout, reading the configuration item data from the HII memory, reading the index data structure in the database index table of the non-volatile storage device, and using the index data structure to update the configuration item data to update the BIOS setting layout, improving the configuration efficiency of the motherboard configuration items and the convenience of relevant operators during the configuration process.
[0120] Embodiment III
[0121] Figure 3 The flowchart of a method for modifying the BIOS setting layout provided in the third embodiment of the present invention. Based on the above embodiments, this embodiment provides a preferred example.
[0122] As Figure 3 shown, the method includes the following specific steps:
[0123] S310. In response to the modification operation of the operator on the configuration item in the BIOS setting layout, create a database index table for storing the index data structure of the configuration item.
[0124] S320. Obtain the modified configuration item that the operator modifies from the HII memory; if the modification operation of the operator on the configuration item in the BIOS setting layout is a configuration item addition operation, then execute S330 - S333; if the modification operation of the operator on the configuration item in the BIOS setting layout is a position modification operation, then execute S340 - 342.
[0125] S330. If the modification operation of the operator on the configuration item in the BIOS setting layout is a configuration item addition operation, generate a virtual index node for the configuration item to be added.
[0126] Wherein, the configuration item to be added is the configuration item added by the operator in the BIOS setting layout when performing the configuration item addition operation.
[0127] S331. Obtain at least one sub - configuration item to be added that the operator adds to the configuration item to be added from the HII memory.
[0128] S332. Based on each sub - configuration item to be added, generate an index data structure corresponding to the configuration item to be added based on the virtual index node.
[0129] S333. Write the index data structure corresponding to the configuration item to be added into the database index table.
[0130] S340. If the modification operation of the operator on the configuration item in the BIOS setting layout is a position modification operation, obtain at least one target configuration item whose position is modified by the operator from the HII memory.
[0131] S341. Generate an index data structure after the position modification of each target configuration item.
[0132] S342. Write the index data structure corresponding to each target configuration item into the database index table.
[0133] S350. Store the database index table in a non - volatile storage device for reading the database index table in the non - volatile storage device after restarting the BIOS setting layout.
[0134] S360. In response to the start operation of the operator on the BIOS setting layout, read the configuration item data related to the BIOS setting layout from the HII memory, and read the non-volatile storage device.
[0135] S370. Determine whether there is a database index table in the non-volatile storage device. If so, execute S380A; if not, execute S380B.
[0136] S380A. Read the index data structure in the database index table.
[0137] S380B. Based on the configuration item data related to the BIOS setting layout read from the HII memory, feedback the BIOS setting layout to the operator.
[0138] S390. Update the configuration item data with the index data structure to update the BIOS setting layout.
[0139] S3100. Feedback the updated BIOS setting layout to the operator.
[0140] Embodiment 4
[0141] Figure 4 The figure is a schematic structural diagram of a BIOS setting layout modification device provided in Embodiment 4 of the present invention. A BIOS setting layout modification device provided in an embodiment of the present invention is applicable to the situation of dynamically modifying the setting layout of the BIOS interface. The BIOS setting layout modification device can be implemented in the form of hardware and / or software. As Figure 4 shown, the device specifically includes: an index table creation module 401, a modified configuration item acquisition module 402, a data structure generation module 403, and an index table storage module 404. Among them,
[0142] The index table creation module 401 is configured to create a database index table for storing the index data structure of the configuration item in response to the modification operation of the operator on the configuration item in the basic input / output system BIOS setting layout;
[0143] The modified configuration item acquisition module 402 is configured to acquire the modified configuration item modified by the operator from the human interface infrastructure HII memory;
[0144] The data structure generation module 403 is configured to generate an index data structure corresponding to the modified configuration item, and write the index data structure corresponding to the modified configuration item into the database index table;
[0145] An index table storage module 404 is configured to store the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setup layout.
[0146] In the solution of the embodiment of the present invention, in response to a modification operation on a configuration item in the BIOS setup layout, a modified configuration item is obtained from the HII memory, an index data structure corresponding to the modified configuration item is generated, and the index data structure corresponding to the modified configuration item is written into the database index table; the database index table is stored in a non-volatile storage device, so that after restarting the BIOS setup layout, the database index table is read, realizing dynamic modification of the BIOS setup layout without destroying the original BIOS interface setup layout, improving the subsequent configuration efficiency of motherboard configuration items, and improving the convenience of relevant operators during the configuration process.
[0147] Optionally, if the modification operation by the operator on the configuration item in the BIOS setup layout is a configuration item addition operation, the data structure generation module 403 includes:
[0148] A virtual node generation unit is configured to generate a virtual index node of the configuration item to be added; wherein, the configuration item to be added is the configuration item added by the operator in the BIOS setup layout when performing the configuration item addition operation;
[0149] A sub-configuration item acquisition unit is configured to acquire at least one sub-configuration item to be added that the operator adds to the configuration item to be added from the HII memory;
[0150] A data structure generation unit is configured to generate an index data structure corresponding to the configuration item to be added based on each of the sub-configuration items to be added and the virtual index node;
[0151] A structure data writing unit is configured to write the index data structure corresponding to the configuration item to be added into the database index table.
[0152] Optionally, if the modification operation by the operator on the configuration item in the BIOS setup layout is a position modification operation, the data structure generation module 403 includes:
[0153] A target configuration item acquisition unit is configured to acquire at least one target configuration item whose position is modified by the operator from the HII memory;
[0154] A structure generation unit is configured to generate an index data structure after the position of each of the target configuration items is modified;
[0155] A data writing unit for writing the index data structure corresponding to each of the target configuration items into the database index table.
[0156] Optionally, the device further includes:
[0157] A configuration item data acquisition module for reading configuration item data related to the BIOS setting layout from the HII memory in response to a startup operation of the operator on the BIOS setting layout; and,
[0158] A first index table judgment module for reading the non-volatile storage device and judging whether there is a database index table in the non-volatile storage device;
[0159] A data structure reading module for reading the index data structure in the database index table if there is a database index table in the non-volatile storage device;
[0160] A layout update module for updating the configuration item data with the index data structure to update the BIOS setting layout;
[0161] A first layout feedback module for feeding back the updated BIOS setting layout to the operator.
[0162] Optionally, the device further includes:
[0163] A second layout feedback module for, after judging whether there is a database index table in the non-volatile storage device, if there is no database index table in the non-volatile storage device, feeding back the BIOS setting layout to the operator based on the configuration item data related to the BIOS setting layout read from the HII memory.
[0164] Optionally, the device further includes:
[0165] A second index table judgment module for judging whether there is the database index table in the non-volatile storage device in response to an acquisition operation of the database index table by a data acquirer;
[0166] An index table synchronization module for, if there is the database index table in the non-volatile storage device, feeding back the database index table to the data acquirer for the data acquirer to synchronize the database index table in its own server and / or server cluster.
[0167] The BIOS setting layout modification device provided by the embodiments of the present invention can execute the BIOS setting layout modification method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0168] Embodiment Five
[0169] Figure 5 FIG. 2 shows a schematic structural diagram of an electronic device 50 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0170] As Figure 5 shown, the electronic device 50 includes at least one processor 51, and a memory communicatively connected to the at least one processor 51, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc. The memory stores a computer program executable by the at least one processor. The processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 into the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other through a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0171] A plurality of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a magnetic disk, an optical disc, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0172] The processor 51 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as the BIOS setting layout modification method.
[0173] In some embodiments, the BIOS setup layout modification method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the BIOS setup layout modification method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the BIOS setup layout modification method by any other suitable means (e.g., by means of firmware).
[0174] The various embodiments of the systems and techniques described above in this document may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0175] The computer program for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that the computer program, when executed by the processor, causes the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0176] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0177] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0178] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0179] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0180] It should be understood that various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0181] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for modifying the BIOS setup layout, characterized in that, it includes: In response to the modification operation of the operator on the configuration items in the Basic Input / Output System (BIOS) setup layout, creating a database index table for storing the index data structure of the configuration items; The configuration items are at least one layout page in the BIOS setup layout; there are at least one subordinate configuration item in the layout page; there are corresponding sub-configuration items for the subordinate configuration item; the configuration items in the BIOS setup layout include a configuration information page, a hardware configuration page, a security settings page, a boot startup page, and a save and exit page; Obtaining the modified configuration item that the operator modified from the Human Interface Infrastructure (HII) memory; Generating an index data structure corresponding to the modified configuration item, and writing the index data structure corresponding to the modified configuration item into the database index table; Storing the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setup layout; In response to the startup operation of the operator on the BIOS setup layout, reading the configuration item data related to the BIOS setup layout from the HII memory; and, Reading the non-volatile storage device and determining whether there is a database index table in the non-volatile storage device; If so, reading the index data structure in the database index table; Updating the configuration item data with the index data structure to update the BIOS setup layout; Feeding back the updated BIOS setup layout to the operator.
2. The method according to claim 1, characterized in that, If the modification operation of the operator on the configuration items in the BIOS setup layout is a configuration item addition operation, then the generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table includes: Generating a virtual index node for the configuration item to be added; wherein, the configuration item to be added is the configuration item added by the operator in the BIOS setup layout when performing the configuration item addition operation; Obtaining at least one sub-configuration item to be added that the operator added to the configuration item to be added from the HII memory; Generating an index data structure corresponding to the configuration item to be added based on the virtual index node according to each sub-configuration item to be added; Writing the index data structure corresponding to the configuration item to be added into the database index table.
3. The method according to claim 1, characterized in that, If the modification operation of the operator on the configuration items in the BIOS setup layout is a position modification operation, then the generating an index data structure corresponding to the modified configuration item and writing the index data structure corresponding to the modified configuration item into the database index table includes: Obtaining at least one target configuration item whose position is modified by the operator for the configuration item from the HII memory; Generating an index data structure after the position modification of each target configuration item; Writing the index data structure corresponding to each target configuration item into the database index table.
4. The method according to claim 1, wherein, after determining whether there is a database index table in the non-volatile storage device, it further includes: if there is no database index table in the non-volatile storage device, based on the configuration item data related to the BIOS setting layout read from the HII memory, feedback the BIOS setting layout to the operator.
5. The method according to claim 1, wherein, the method further includes: responding to an acquisition operation of the database index table by a data acquisition party, determining whether there is the database index table in the non-volatile storage device; if so, feedback the database index table to the data acquisition party for the data acquisition party to synchronize the database index table in its own server and / or server cluster.
6. A BIOS setting layout modification device, wherein, it includes: an index table creation module, configured to create a database index table for storing an index data structure of configuration items in response to a modification operation of the operator on the configuration items in the basic input / output system (BIOS) setting layout; the configuration items are at least one layout page in the BIOS setting layout; there is at least one subordinate configuration item in the layout page; there is a corresponding sub-configuration item for the subordinate configuration item; the configuration items in the BIOS setting layout include a configuration information page, a hardware configuration page, a security setting page, a boot start page, and a save and exit page; a modified configuration item acquisition module, configured to acquire the modified configuration items modified by the operator from the human interface infrastructure (HII) memory; a data structure generation module, configured to generate an index data structure corresponding to the modified configuration items and write the index data structure corresponding to the modified configuration items into the database index table; an index table storage module, configured to store the database index table in a non-volatile storage device for reading the database index table in the non-volatile storage device after restarting the BIOS setting layout; the device further includes: a configuration item data acquisition module, configured to read configuration item data related to the BIOS setting layout from the HII memory in response to a startup operation of the operator on the BIOS setting layout; and a first index table judgment module, configured to read the non-volatile storage device and judge whether there is a database index table in the non-volatile storage device; a data structure reading module, configured to read the index data structure in the database index table if there is a database index table in the non-volatile storage device; a layout update module, configured to update the configuration item data with the index data structure to update the BIOS setting layout; a first layout feedback module, configured to feedback the updated BIOS setting layout to the operator.
7. The device according to claim 6, wherein, if the modification operation of the operator on the configuration items in the BIOS setting layout is a configuration item addition operation, the data structure generation module includes: A virtual node generation unit for generating a virtual index node for a configuration item to be added; wherein, the configuration item to be added is a configuration item added by the operator in the BIOS setting layout when performing the configuration item addition operation. A sub-configuration item acquisition unit for acquiring at least one sub-configuration item to be added added by the operator to the configuration item to be added from the HII memory. A data structure generation unit for generating an index data structure corresponding to the configuration item to be added based on each of the sub-configuration items to be added and the virtual index node. A structure data writing unit for writing the index data structure corresponding to the configuration item to be added into the database index table.
8. An electronic device, Characterized in that The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the BIOS setting layout modification method according to any one of claims 1-5.
9. A computer-readable storage medium, Characterized in that The computer-readable storage medium stores computer instructions for causing a processor to implement the BIOS setting layout modification method according to any one of claims 1-5 when executed.
Citation Information
Patent Citations
Parameter acquisition method and apparatus, and electronic device
CN106371819A
Method for displaying information of updating BIOS
US20050060530A1