Method, apparatus, device and medium for updating options of basic input / output system
By storing initial information in the preset memory chip and updating file contents using the hardware interrupt signal of the substrate management controller, the configuration loss problem caused by BIOS option update is solved, reducing maintenance costs.
Patent Information
- Application Number
- CN202210689479.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-06-17
AI Technical Summary
During the process of updating basic input and output system options, the existing technology causes server configuration to be lost, requiring reconfiguration, and the maintenance cost is high.
By storing initial information in the preset memory chip and using the hardware interrupt signal of the substrate management controller, re-jumping to the memory chip to update the file contents, avoiding server reconfiguration.
Reduces maintenance costs for customers and customer service and ensures that server configurations are retained during the update process.
Smart Images

Figure CN115080083B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for updating options of a basic input and output system. Background Art
[0002] With the increasing demand for servers, customers have increasingly higher requirements for Basic Input Output System (BIOS) options. Currently, BIOS supports more than 50 options, including hyperthreading, virtualization, random numbers, boot items, etc. Since single-machine operation in the BIOS interface is extremely inconvenient, these more than 50 options need to support the out-of-band management function of the BMC (Baseboard Management Controller). However, a new problem has arisen. The current design is that if new options are added to the BIOS, then after retaining the newly added option configuration and upgrading the BIOS, the previously set configuration of the server will not be successfully retained and the server will need to be reconfigured. This has caused great trouble to customers and customer service, and the maintenance cost is huge.
[0003] From the above, it can be seen that how to reduce maintenance costs during the process of updating options of a basic input and output system is a problem to be solved in the art. Summary of the Invention
[0004] In view of this, the present invention aims to provide a method, apparatus, device, and medium for updating basic input / output system options, which can reduce maintenance costs during basic input / output system option updates. The specific solution is as follows:
[0005] In a first aspect, the present application discloses a method for updating options of a basic input / output system, which is applied to a target basic input / output system in a client, comprising:
[0006] Reading current storage information in a preset storage chip, and updating current file content in the target basic input and output system based on the current storage information;
[0007] A first preset hardware interrupt signal sent by the target baseboard management controller is obtained, and the process is redirected to the step of reading the current storage information in the preset storage chip.
[0008] Optionally, before reading the current stored information in the preset storage chip, the method further includes:
[0009] The initial storage information is imported into the preset storage chip through the server.
[0010] Optionally, the importing of the initial storage information into the preset storage chip through the server includes:
[0011] An initial binary file is created by a server based on a preset file structure and preset information, and the initial binary file is imported into the preset storage chip; wherein the preset file structure includes a set-owmer, a timestamp, and initial options of a basic input and output system.
[0012] Optionally, after the server imports the initial storage information into the preset storage chip, the method further includes:
[0013] The current storage information in the preset storage chip is read through a target baseboard management controller, and the current storage information is displayed on the client.
[0014] Optionally, before obtaining the first preset hardware interrupt signal sent by the target baseboard management controller, the method further includes:
[0015] If the current file content in the preset storage chip is modified by the target baseboard management controller, the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0016] Optionally, before obtaining the first preset hardware interrupt signal sent by the target baseboard management controller, the method further includes:
[0017] If the target baseboard management controller adds corresponding file content to the preset storage chip based on the out-of-band management command to obtain the next file content, the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0018] Optionally, the basic input / output system option update method further includes:
[0019] If the current storage information in the preset storage chip is modified, the preset storage chip obtains next storage information and updates the next storage information to the current storage information;
[0020] The second preset hardware interrupt signal is sent to the target baseboard management controller, so that the target baseboard management controller reads the current storage information in the preset storage chip based on the second preset hardware interrupt signal.
[0021] In a second aspect, the present application discloses a basic input / output system option update device, which is applied to a target basic input / output system in a client, comprising:
[0022] An update module, configured to read current storage information in a preset storage chip and update current file content in the target basic input and output system based on the current storage information;
[0023] An interrupt signal acquisition module, configured to acquire a first preset hardware interrupt signal sent by a target baseboard management controller;
[0024] The jump module is used to jump back to the step of reading the current storage information in the preset storage chip.
[0025] In a third aspect, the present application discloses an electronic device, comprising:
[0026] Memory, used to store computer programs;
[0027] The processor is configured to execute the computer program to implement the steps of the aforementioned method for updating options of a basic input / output system.
[0028] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed basic input and output system option update method are implemented.
[0029] It can be seen that the present application reads the current storage information in the preset storage chip, and updates the current file content in the target basic input and output system based on the current storage information; obtains the first preset hardware interrupt signal sent by the target baseboard management controller, and jumps back to the step of reading the current storage information in the preset storage chip. It can be seen that the target basic input and output system of the present application reads the current storage information from the preset storage chip to update the current file content. If the first preset hardware interrupt signal is received, the current storage information in the preset storage chip is re-read, and there is no need for the server to reconfigure options, which greatly reduces the maintenance costs of customers and customer service. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0031] Figure 1 This is a flow chart of a method for updating options of a basic input and output system disclosed in this application;
[0032] Figure 2 This is a flowchart of a specific method for updating options of a basic input and output system disclosed in this application;
[0033] Figure 3 This is a schematic structural diagram of an option updating device for a basic input and output system disclosed in this application;
[0034] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0036] With the increasing demand for servers, customers have increasingly higher requirements for basic input and output system options. Currently, BIOS supports more than 50 options, including hyperthreading, virtualization, random numbers, boot items, etc. Since single-machine operation in the BIOS interface is extremely inconvenient, these more than 50 options need to support BMC out-of-band management functions. However, a new problem has arisen. The current design is that if new options are added to the BIOS, then after retaining the newly added option configuration and upgrading the BIOS, the previously set configuration of the server will not be retained successfully, and the server will need to be reconfigured. This has caused great trouble to customers and customer service, and the maintenance cost is huge.
[0037] To this end, the present application provides a basic input and output system option update solution, which can reduce maintenance costs during the basic input and output system option update process.
[0038] See also Figure 1 As shown, an embodiment of the present invention discloses a method for updating options of a basic input / output system, which is applied to a target basic input / output system in a client, comprising:
[0039] Step S11: reading current storage information in a preset storage chip, and updating current file content in the target basic input and output system based on the current storage information.
[0040] In this embodiment, before reading the current storage information in the preset storage chip, the method further includes: importing initial storage information into the preset storage chip through the server.
[0041] In this embodiment, the importing of the initial storage information into the preset storage chip through the server specifically includes: creating an initial binary file based on a preset file structure and preset information through the server, and importing the initial binary file into the preset storage chip; wherein, the preset file structure includes a set-owmer, a timestamp, and initial options of the basic input and output system. It is understandable that the server adds a preset storage chip on the target server motherboard, for example, the preset storage chip is EEPROM (Electrically Erasable Programmable read only memory). This electrically erasable programmable read only memory needs to support hardware address access by the basic input and output system and the baseboard management controller, that is, the baseboard management controller and the basic input and output system can both read and write to the electrically erasable programmable read only memory. Then, an initial binary file is created, such as a bin file, in which the file structure includes set_owner, timestamp, and more than 50 basic input and output system options. The preset information is written into the bin file one by one according to the file structure. The server imports the bin file into the electrically erasable programmable read only memory. For example, the bin file can be pre-flashed and imported into the electrically erasable programmable read only memory before the board leaves the factory. The file structure can be expressed as follows:
[0042]
[0043] In this embodiment, after the server imports the initial storage information into the preset storage chip, the process also includes: reading the current storage information in the preset storage chip through the target baseboard management controller, and displaying the current storage information on the client. After the client's server is powered on, the baseboard management controller will read out the information including set_owner, timestamp, and more than 50 basic input and output system options from the electrically erasable programmable read-only memory and synchronize it to the baseboard management controller, and display it on clients including BMC Web, Redfish, SNMP (Simple Network Management Protocol), etc.
[0044] Step S12: obtaining a first preset hardware interrupt signal sent by the target baseboard management controller, and jumping back to the step of reading the current storage information in the preset storage chip.
[0045] In this embodiment, the present invention further includes: if the current storage information in the preset storage chip is modified, the preset storage chip obtains the next storage information and updates the next storage information to the current storage information; and sends a second preset hardware interrupt signal to the target baseboard management controller so that the target baseboard management controller reads the current storage information in the preset storage chip based on the second preset hardware interrupt signal. It can be understood that if the target basic input and output system modifies the current storage information in the preset storage chip, the storage information retained in the preset storage chip is the unmodified storage information and the modified storage information. Therefore, the preset storage chip obtains the next storage information based on the unmodified storage information and the modified storage information, and then the preset storage chip updates the next storage information to the current storage information. When the target baseboard management controller receives the second preset hardware interrupt signal, the target baseboard management controller reads the current storage information in the preset chip and updates the corresponding file content in the target baseboard management controller.
[0046] It can be seen that the present application reads the current storage information in the preset storage chip, and updates the current file content in the target basic input and output system based on the current storage information; obtains the first preset hardware interrupt signal sent by the target baseboard management controller, and jumps back to the step of reading the current storage information in the preset storage chip. It can be seen that the target basic input and output system of the present application reads the current storage information from the preset storage chip to update the current file content. If the first preset hardware interrupt signal is received, the current storage information in the preset storage chip is re-read, and there is no need for the server to reconfigure options, which greatly reduces the maintenance costs of customers and customer service.
[0047] See also Figure 2 As shown, the embodiment of the present invention discloses a specific method for updating options of a basic input / output system, including:
[0048] Step S21: reading current storage information in a preset storage chip, and updating current file content in the target basic input and output system based on the current storage information.
[0049] In this embodiment, after the client is powered on, the target BIOS will obtain the current storage information from the preset storage chip, synchronize it to the target BIOS, and display it on the BIOS Setup interface.
[0050] Step S22: the target baseboard management controller modifies and / or adds the current file content in the preset storage chip, and the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0051] In a first specific embodiment, if the current file content in the preset storage chip is modified by the target baseboard management controller, the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0052] In a second specific embodiment, if the target baseboard management controller adds corresponding file content in the preset storage chip based on an out-of-band management command to obtain the next file content, the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0053] Step S23: obtaining a first preset hardware interrupt signal sent by the target baseboard management controller, and re-jumping to the step of reading the current storage information in the preset storage chip.
[0054] In this embodiment, it is understood that if the target basic input and output system obtains the first preset hardware interrupt signal sent by the target baseboard management controller, it means that the target baseboard management controller modifies the current storage information in the preset storage chip, or adds corresponding file content, then the target baseboard management controller sends the first preset hardware interrupt signal to the target basic input and output system. After the target basic input and output system obtains the first preset hardware interrupt signal, it re-reads the current storage information in the preset storage chip and updates the current file content in the target basic input and output system. It is understandable that the target basic input and output system and / or the target baseboard management controller can also read the current storage information from the preset storage chip at preset time intervals and update the corresponding file content based on the current storage information. It should be noted that the unmodified file content in the preset storage chip is still retained in the preset storage chip, so there is no need for the server to rewrite the unmodified file content into the preset storage chip.
[0055] It can be seen that the present application utilizes a preset chip to store the options of the target basic input / output system. Therefore, when the target basic input / output system and / or the target baseboard management controller modify or add corresponding options, the unchanged options will be retained in the preset chip and will not be lost. Therefore, there is no need for the server to rewrite the unchanged options into the preset chip, which completely solves the problem of not being able to retain the original configuration content due to changes in the corresponding options, thereby affecting the upgrade of the target basic input / output system and / or the target baseboard management controller, and greatly reduces the maintenance costs of customers and customer service.
[0056] See also Figure 3 As shown, an embodiment of the present invention discloses a basic input and output system option update device, which is applied to a target basic input and output system in a client, including:
[0057] An updating module 11 is configured to read current storage information in a preset storage chip and update current file content in the target basic input and output system based on the current storage information;
[0058] An interrupt signal acquisition module 12 is configured to acquire a first preset hardware interrupt signal sent by a target baseboard management controller;
[0059] The jump module 13 is used to jump back to the step of reading the current storage information in the preset storage chip.
[0060] It can be seen that the present application reads the current storage information in the preset storage chip, and updates the current file content in the target basic input and output system based on the current storage information; obtains the first preset hardware interrupt signal sent by the target baseboard management controller, and jumps back to the step of reading the current storage information in the preset storage chip. It can be seen that the target basic input and output system of the present application reads the current storage information from the preset storage chip to update the current file content. If the first preset hardware interrupt signal is received, the current storage information in the preset storage chip is re-read, and there is no need for the server to reconfigure options, which greatly reduces the maintenance costs of customers and customer service.
[0061] In some specific embodiments, the basic input and output system option updating device includes:
[0062] The first initial storage information importing unit is used to import the initial storage information into the preset storage chip through the server.
[0063] In some specific embodiments, the basic input and output system option updating device includes:
[0064] The first initial storage information importing unit is used to create an initial binary file based on a preset file structure and preset information through a server, and import the initial binary file into the preset storage chip; wherein the preset file structure includes a set-owmer, a timestamp, and initial options of a basic input and output system.
[0065] In some specific embodiments, the basic input and output system option updating device includes:
[0066] A reading unit is configured to read the current storage information in the preset storage chip through a target baseboard management controller, and display the current storage information on the client.
[0067] In some specific embodiments, the basic input and output system option updating device includes:
[0068] The first updating unit is configured to, if the current file content in the preset storage chip is modified by the target baseboard management controller, cause the preset storage chip to obtain next file content and update the next file content to the current file content.
[0069] In some specific embodiments, the basic input and output system option updating device includes:
[0070] The second update unit is used to add corresponding file content to the preset storage chip based on the out-of-band management command through the target baseboard management controller to obtain the next file content, so that the preset storage chip obtains the next file content and updates the next file content to the current file content.
[0071] In some specific embodiments, the basic input and output system option updating device includes:
[0072] A signal sending unit is used to, if the current storage information in the preset storage chip is modified, cause the preset storage chip to obtain next storage information and update the next storage information to the current storage information; and send the second preset hardware interrupt signal to the target baseboard management controller so that the target baseboard management controller reads the current storage information in the preset storage chip based on the second preset hardware interrupt signal.
[0073] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, the device may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the method for updating basic input / output system options performed by a computer device as disclosed in any of the aforementioned embodiments.
[0074] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the computer device 20; the communication interface 24 can create a data transmission channel between the computer device 20 and external devices. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0075] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0076] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0077] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the computer device 20, enabling the processor 21 to calculate and process the massive amount of data 223 in the memory 22. It can be Windows, Unix, Linux, or other operating systems. In addition to including computer programs capable of implementing the basic input / output system option update method performed by the computer device 20 as disclosed in any of the aforementioned embodiments, the computer programs 222 may further include computer programs capable of performing other specific tasks. Data 223 may include data received by the computer device from external devices, as well as data collected by its own input / output interface 25.
[0078] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps performed in the option update process of the basic input and output system disclosed in any of the aforementioned embodiments are implemented.
[0079] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0080] The above is a detailed introduction to the basic input and output system option update method, device, equipment and medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A method for updating options of a basic input / output system, characterized in that: The target basic input and output system used in the client includes: Reading current storage information in a preset storage chip, and updating current file content in the target basic input and output system based on the current storage information; wherein the preset storage chip is set on the target server motherboard and supports hardware address access to the target basic input and output system and the target baseboard management controller; Acquire a first preset hardware interrupt signal sent by the target baseboard management controller, and jump back to the step of reading the current storage information in the preset storage chip; The basic input and output system option update method further includes: If the current storage information in the preset storage chip is modified, the preset storage chip obtains next storage information and updates the next storage information to the current storage information; a second preset hardware interrupt signal is sent to the target baseboard management controller so that the target baseboard management controller reads the current storage information in the preset storage chip based on the second preset hardware interrupt signal.
2. The method for updating basic input / output system options according to claim 1, wherein: Before reading the current storage information in the preset storage chip, the method further includes: The initial storage information is imported into the preset storage chip through the server.
3. The method for updating basic input / output system options according to claim 2, wherein: The step of importing the initial storage information into the preset storage chip through the server includes: An initial binary file is created by a server based on a preset file structure and preset information, and the initial binary file is imported into the preset storage chip; wherein the preset file structure includes a set-owmer, a timestamp, and initial options of a basic input and output system.
4. The method for updating basic input / output system options according to claim 3, wherein: After the server imports the initial storage information into the preset storage chip, the method further includes: The current storage information in the preset storage chip is read through a target baseboard management controller, and the current storage information is displayed on the client.
5. The method for updating basic input / output system options according to claim 1, wherein: Before obtaining the first preset hardware interrupt signal sent by the target baseboard management controller, the method further includes: If the current file content in the preset storage chip is modified by the target baseboard management controller, the preset storage chip obtains the next file content and updates the next file content to the current file content.
6. The method for updating basic input / output system options according to claim 1, wherein: Before obtaining the first preset hardware interrupt signal sent by the target baseboard management controller, the method further includes: If the target baseboard management controller adds corresponding file content to the preset storage chip based on the out-of-band management command to obtain the next file content, the preset storage chip obtains the next file content and updates the next file content to the current file content.
7. A basic input and output system option update device, characterized in that: The target basic input and output system used in the client includes: an update module, configured to read current storage information from a preset storage chip and update current file content in the target basic input / output system based on the current storage information; wherein the preset storage chip is provided on a target server motherboard and supports hardware address access to the target basic input / output system and the target baseboard management controller; An interrupt signal acquisition module, configured to acquire a first preset hardware interrupt signal sent by a target baseboard management controller; A jump module, used for jumping back to the step of reading the current storage information in the preset storage chip; The basic input and output system option updating device is specifically used to: If the current storage information in the preset storage chip is modified, the preset storage chip obtains next storage information and updates the next storage information to the current storage information; a second preset hardware interrupt signal is sent to the target baseboard management controller so that the target baseboard management controller reads the current storage information in the preset storage chip based on the second preset hardware interrupt signal.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the steps of the basic input and output system option updating method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the steps of the basic input and output system option updating method as claimed in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Basic input / output system option modification method, system and device
CN111949332A