Basic input and output system configuration updating method, server and equipment
The baseboard management controller can update the BIOS configuration without restarting the server, which solves the problem of requiring a restart to update the BIOS in the traditional way. It realizes efficient and convenient server management, reduces business impact and energy consumption, and promotes automation and intelligence. management.
Patent Information
- Application Number
- CN202410977961.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-08
AI Technical Summary
The traditional server management method requires the server to be restarted to complete the BIOS configuration update, resulting in business interruption and low management efficiency, and cannot meet the needs of large-scale unattended operations.
Receive user update configuration instructions through the baseboard management controller, write them into the memory, and use customized activation and hibernation instructions to update the BIOS configuration without restarting the server, ensuring that the configuration information takes effect immediately.
It realizes that BIOS configuration updates no longer require restarting the server, reduces the impact on business continuity, ensures precise control of configuration, reduces server energy consumption and operating costs, improves management efficiency and flexibility, and provides convenient and efficient server management. solutions that promote automation and intelligence.
Smart Images

Figure CN118747080A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a basic input / output system configuration updating method, a server and a device. Background Art
[0002] As the scale of server clusters continues to expand, server management has become particularly important in modern data centers and cloud computing environments, so an efficient, reliable and flexible management method is needed. Traditional server management methods usually involve tedious manual operations and cannot meet the needs of large-scale unattended operations. For example, BIOS configuration update. BIOS (Basic Input / Output System) is the basic input / output system loaded when the server starts up. It is responsible for initializing hardware devices and setting system parameters. Therefore, the correctness of BIOS configuration is crucial to the stability and performance of the server. However, the traditional BIOS configuration update method requires the server to restart to complete the BIOS configuration update and configuration information to take effect. This method affects business continuity, reduces management efficiency, and also has the problem of configuration lag.
[0003] Therefore, how to complete the BIOS configuration update and make it effective without restarting the server and improve the server management efficiency is an urgent problem that needs to be solved. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a basic input and output system configuration update method, server and device, which solves the problem in the prior art that the server must be restarted to complete the basic input and output system configuration update and take effect, thereby causing business interruption and low management efficiency.
[0005] In order to solve the above technical problems, the present invention provides a basic input and output system configuration updating method, comprising:
[0006] When the baseboard management controller receives a configuration update instruction for the basic input and output system from the user, the baseboard management controller writes the configuration information in the configuration update instruction into the memory;
[0007] When the writing is successful, the basic input and output system is activated through an activation instruction pre-defined by the baseboard management controller;
[0008] Obtaining the configuration information from the memory through the basic input and output system, and updating the configuration of the basic input and output system using the configuration information;
[0009] After the update is completed, the basic input and output system is put into sleep mode through a sleep instruction predefined by the baseboard management controller.
[0010] On the one hand, activating the basic input and output system by using an activation instruction pre-defined by a baseboard management controller includes:
[0011] Sending the pre-defined activation instruction to the central processing unit through the baseboard management controller;
[0012] Setting a predefined interrupt signal to a high level through the central processing unit and sending it to the basic input and output system;
[0013] When the basic input output system receives a high level interrupt signal, the basic input output system is activated.
[0014] On the one hand, the step of hibernating the basic input / output system by using a hibernation instruction predefined by the baseboard management controller includes:
[0015] Sending the pre-defined sleep instruction to the central processing unit through the baseboard management controller;
[0016] Setting a predefined interrupt signal to a low level through the central processing unit and sending it to the basic input and output system;
[0017] When the basic input output system receives a low level interrupt signal, the basic input output system is put into sleep mode.
[0018] On the one hand, after the update is completed, the basic input and output system is hibernated by a hibernation instruction pre-defined by the baseboard management controller, including:
[0019] When the update is completed, adding a configuration success mark to the configuration information in the memory through the basic input and output system;
[0020] polling all information in the memory by the baseboard management controller;
[0021] When the baseboard management controller detects the configuration success mark, the baseboard management controller sends the pre-defined sleep instruction to the central processing unit through the communication interface; the communication interface is a communication interface between the baseboard management controller and the central processing unit;
[0022] When the central processing unit receives the predefined sleep instruction, the predefined interrupt signal is set to a low level by the central processing unit, and the low-level interrupt signal is sent to the basic input and output system by using the hardware connection and communication mechanism between the central processing unit and the basic input and output system;
[0023] When the basic input output system receives a low level interrupt signal, the basic input output system is put into sleep mode.
[0024] On the one hand, it also includes:
[0025] When the basic input and output system is in hibernation, immediately updating the basic input and output system state to a hibernation state through the basic input and output system;
[0026] When the basic input and output system is activated, immediately updating the basic input and output system state to an activated state through the basic input and output system;
[0027] The sleep state and / or the activation state are fed back to the baseboard management controller through the basic input and output system.
[0028] On the one hand, the customization process of the activation instruction includes:
[0029] The activation instruction is obtained by combining interaction information by the baseboard management controller according to a preset custom structure; the interaction information includes the serial number of the central processing unit, the type of the central processing unit, the interaction method between the baseboard management controller and the central processing unit, the I2C bus number used for interaction, the address of the central processing unit and the status of the basic input and output system.
[0030] On the one hand, when the baseboard management controller receives a user's update configuration instruction for the basic input and output system, the configuration information in the update configuration instruction is written into the memory, including:
[0031] When the baseboard management controller receives a configuration update instruction for the basic input and output system from a user, checking whether the configuration update instruction is compliant;
[0032] If the update configuration instruction is compliant, verifying whether the configuration information in the update configuration instruction is compliant;
[0033] If the configuration information is compliant, the configuration information is written into the memory.
[0034] The present invention also provides a server, comprising:
[0035] baseboard management controller, basic input and output system and memory;
[0036] The baseboard management controller is used to write the configuration information in the update configuration instruction to the memory when receiving the update configuration instruction of the basic input and output system from the user; when the writing is successful, activate the basic input and output system through a pre-defined activation instruction; after the basic input and output system is updated, put the basic input and output system into sleep mode through a pre-defined sleep instruction;
[0037] The basic input and output system is used to obtain the configuration information from the memory and update the configuration of the basic input and output system using the configuration information when receiving the activation instruction; and enter a dormant state when receiving the dormant instruction;
[0038] The memory is used to store the configuration information.
[0039] The present invention also provides a basic input and output system configuration updating device, comprising:
[0040] Memory for storing computer programs;
[0041] The processor is used to implement the steps of the basic input and output system configuration updating method when executing the computer program.
[0042] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the steps of the basic input and output system configuration updating method are implemented.
[0043] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the basic input and output system configuration updating method when executed by a processor.
[0044] It can be seen from the above technical solution that the present invention can realize real-time updating of BIOS configuration without restarting the server and take effect immediately through customized activation instructions and sleep instructions. When the configuration is completed, the BIOS enters the sleep state from the activated state. The beneficial effects of the present invention are: BIOS configuration update no longer requires restarting the server, reducing the impact on business continuity; through customized activation instructions and sleep instructions, it is ensured that the activation and sleep of BIOS can be accurately controlled to avoid BIOS configuration errors or server instability due to misoperation or unexpected situations; compared with traditional restart operations, it also reduces server energy consumption and reduces operating costs; users can dynamically configure and update BIOS settings according to actual needs, improve the flexibility of server use and the efficiency of server management, and provide customers with more convenient and efficient server management solutions; through customized instructions, it provides the possibility for subsequent automated script writing, policy formulation and intelligent decision-making, which helps to achieve a higher level of server management automation and intelligence.
[0045] In addition, the present invention also provides a basic input and output system configuration updating device, a server, a computer-readable storage medium and a computer program product, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0047] Figure 1 A flowchart of a basic input / output system configuration updating method provided by an embodiment of the present invention;
[0048] Figure 2 A flowchart of a basic input / output system configuration update method provided by an embodiment of the present invention;
[0049] Figure 3 A schematic diagram of the structure of a server provided in an embodiment of the present invention;
[0050] Figure 4 A schematic diagram of the structure of a basic input / output system configuration updating device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0052] The traditional BIOS configuration update method can only be modified by entering the BIOS setup interface when the server is restarted, and the configured BIOS needs to be restarted again for the server to take effect, which not only affects the continuity of the business, but also has low efficiency. For example, there are generally two solutions for updating the BIOS configuration: the first is to restart the server, enter the BIOS setup option, modify the option configuration, and then save and restart the server; the second is to directly modify the BIOS setup option through the BMC, and then restart the server to make the modified BIOS configuration effective. Both solutions require restarting the server to make the modified BIOS configuration effective. Such operations have brought great troubles to customers' business operations, especially at critical moments of business operations, server restarts may cause service interruptions or even data loss, seriously affecting business continuity and stability.
[0053] First, for the first solution, restarting the server to enter the BIOS setup option for modification, although this method is direct, the operation is cumbersome and time-consuming. Users need to interrupt the current business, enter the BIOS setup interface, modify the configuration options one by one, and then save and restart the server. This process not only affects business operations, but may also cause configuration errors due to improper operation, further increasing the risk.
[0054] Secondly, the second solution is to modify the BIOS setup options directly through the BMC. Although it is more convenient than the first method, it also requires restarting the server for the BIOS configuration to take effect. In the end, the server still needs to be restarted to apply these changes, which makes it impossible to truly achieve real-time and efficient configuration management.
[0055] It can be seen that the current solutions cannot meet the needs of customers to update BIOS configuration in a timely and effective manner, especially in scenarios with extremely high requirements for business continuity. Therefore, the present invention provides a method to enable the modified BIOS configuration to take effect in real time without restarting the server. For details, please refer to Figure 1 , Figure 1 A flowchart of a basic input / output system configuration update method provided by an embodiment of the present invention. The method may include:
[0056] S101: When a baseboard management controller receives a basic input and output system configuration update instruction from a user, the baseboard management controller writes configuration information in the configuration update instruction into a memory.
[0057] The execution subject of this embodiment is a server. The user configures the setup option of BIOS through the Web (Global Wide Area Network) interface, IPMI (Intelligent Platform Management Interface) command or Redfish (a management standard based on HTTPs (Hypertext Transfer Protocol Security) service) interface of the BMC (Baseboard Management Controller); when the BMC receives the update configuration instruction of the BIOS setup configured by the user, the configuration information in the update configuration instruction is written into the memory. It can be understood that the memory in this embodiment is used to store the configuration information of the BIOS, and the memory can be any memory that can meet the access requirements of the BMC and BIOS. For example, the memory can be SRAM (Static Random-Access Memory), which is a high-speed cache used to store data that needs to be accessed quickly. Or the memory can also be EEROM (Electrically Erasable Programmable Read-Only Memory), which is designed to facilitate users to change data or programs in electronic devices without the need for special programming equipment. The configuration information in this embodiment may include configuration item names, configuration parameters, etc.
[0058] Furthermore, in order to improve the accuracy of data writing and the wide range of usage scenarios, writing the configuration information into the memory may specifically include the following steps:
[0059] Step 11: parsing the data format of the original configuration information through the baseboard management controller;
[0060] Step 12: Convert the data format of the configuration information into the data format of the original configuration information through the baseboard management controller to obtain new configuration information;
[0061] Step 13: Using the communication interface through the baseboard management controller, write the new configuration information into the memory and process the original configuration information;
[0062] The original configuration information is processed, including:
[0063] Step 14: Deleting the original configuration information in the memory through the baseboard management controller;
[0064] Or, step 15: adding an invalidation mark to the original configuration information in the memory through the baseboard management controller.
[0065] This embodiment provides a specific method for BMC to write configuration information into memory. BMC first parses the original configuration information in the memory to obtain the data format, and accordingly, converts the format of the configuration information input by the user so that the configuration information input by the user can meet the data format of the memory and complete the data writing. When the writing is completed, the original configuration information in the memory can be deleted to release the storage space of the memory and improve the storage efficiency. It is also convenient for the BIOS to directly read the data in the memory after activation; or the original configuration information can be added with an invalidation mark, so that when the user accidentally interrupts the configuration process and causes the configuration to fail, the original configuration information can be restored in time without affecting the normal operation of the BIOS. The above two processing schemes for the original configuration information can be selected by the user according to the actual situation.
[0066] Furthermore, in order to improve security, when the baseboard management controller receives a user's update configuration instruction for the basic input and output system, the configuration information in the update configuration instruction is written into the memory, which may specifically include the following steps:
[0067] Step 21: When the baseboard management controller receives the user's update configuration instruction for the basic input and output system, it checks whether the update configuration instruction is compliant;
[0068] Step 22: If the update configuration instruction is compliant, verify whether the configuration information in the update configuration instruction is compliant;
[0069] Step 23: If the configuration information is compliant, write the configuration information into the memory.
[0070] In this embodiment, when the baseboard management controller receives the user's update configuration instruction for the basic input and output system, it also performs a security check on the update configuration instruction and configuration information. Only when the update configuration instruction and configuration information are compliant can the configuration information be written into the memory, and the BIOS can be set to the configuration information and take effect. This effectively prevents unauthorized users from accessing and updating the BIOS, and also prevents users from damaging the BIOS, thereby improving the security of the server.
[0071] S102: When the writing is successful, the basic input and output system is activated through the activation instruction pre-defined by the baseboard management controller.
[0072] In this embodiment, when the BMC successfully writes the configuration information into the memory, the BMC can activate the BIOS through the activation instruction pre-defined by the BMC. In this embodiment, the BMC remotely configures and manages the BIOS, and the user can configure and update the BIOS without directly accessing the server hardware. This greatly simplifies the maintenance process of the server, reduces maintenance costs, and improves management efficiency. Especially in the environment of large-scale server clusters, this remote management method can greatly reduce the workload of administrators.
[0073] It should be noted that the BMC needs to define a specific instruction format for activating the BIOS. This instruction can be a specific binary code, or a message that follows a specific protocol. This embodiment does not limit how the BMC activates the BIOS through an activation instruction. For example, the BMC may send an activation instruction to the CPU, and when the CPU receives the activation instruction, the BIOS is activated through the CPU (central processing unit). This embodiment does not limit the CPU. For example, it may be the CPU of the Hygon platform, or it may be other CPUs. At this time, the above-mentioned activation instruction is a custom instruction between the BMC and the CPU, and the customization process of the instruction may specifically include the following steps:
[0074] The baseboard management controller combines the interaction information according to the preset custom structure to obtain the activation instruction; the interaction information includes the serial number of the central processing unit, the type of the central processing unit, the interaction method between the baseboard management controller and the central processing unit, the I2C bus number used for interaction, the address of the central processing unit and the status of the basic input and output system.
[0075] Specifically, the baseboard management controller combines the interactive information according to the preset custom structure to obtain the activation instruction code reference as follows:
[0076] typedef struct inspur_cpu_param_info
[0077] {
[0078] uint8 cpu_index; / / corresponding to the CPU serial number
[0079] uint8 cpu_model; / / CPU type
[0080] uint8 interaction_mode; / / Interaction mode (protocol)
[0081] uint8 bus_number; / / I2Cbus number used for interaction (I2C bus number, I2C represents an integrated circuit interconnection communication circuit)
[0082] uint8 slave_addr; / / slave address used for interaction (slave device address, i.e. CPU address)
[0083] uint8 bios_status: / / Enable / Disable BIOS status 0: enable bios; 1: disable bios (activate BIOS / sleep BIOS)
[0084] }CPU_ADAPTATION_T;
[0085] Furthermore, the activation of the basic input / output system by the activation instruction pre-defined by the baseboard management controller specifically includes the following steps:
[0086] Step 31: Sending the pre-defined activation instruction to the central processing unit through the baseboard management controller;
[0087] Step 32: Setting the predefined interrupt signal to a high level through the central processing unit and sending it to the basic input and output system;
[0088] Step 33: When the basic input output system receives a high-level interrupt signal, the basic input output system is activated.
[0089] In this embodiment, the BMC controls the BIOS operation through the CPU. At this time, the BMC needs to send the pre-defined activation instruction to the CPU, where the transmission of the instruction can be completed through the communication interface between the BMC and the CPU, such as through a specific register, an I / O (input / output) port, or a dedicated I2C communication bus. When the CPU receives and recognizes the formulation, it performs the corresponding operation, that is, pulls up the CPU's pre-defined interrupt signal to activate the BIOS, that is, sets the interrupt signal to a high level and transmits it to the BIOS to activate the BIOS. When it is necessary to explain, the interrupt signal is a specific signal defined by the CPU, which is used to notify the BIOS to activate or sleep. This interrupt signal can be a hardware-level interrupt or a software-level signal. Among them, the transmission of the interrupt signal depends on the hardware connection and communication mechanism between the CPU and the BIOS to ensure that the signal can be accurately and reliably transmitted to the BIOS. It can be understood that the BIOS includes processing logic for the interrupt signal, that is, when a high-level interrupt signal is received, the BIOS should be awakened from the sleep state and perform the corresponding configuration information initialization; when a low-level interrupt signal is received, the BIOS should save the current state and enter the sleep state.
[0090] S103: Obtain configuration information from the memory through the basic input and output system, and update the configuration of the basic input and output system using the configuration information.
[0091] In this embodiment, when the BIOS is activated, the BIOS reads the configuration information from the memory and performs an initialization operation on the configuration information, that is, performs corresponding settings according to the configuration information to implement the update of the BIOS configuration information, and the update takes effect immediately.
[0092] S104: After the update is completed, the basic input and output system is put into sleep mode through a sleep instruction pre-defined by the baseboard management controller.
[0093] In this embodiment, after the BIOS configuration update is completed, the BMC uses a custom sleep instruction to put the BIOS into a sleep state. It should be noted that the BMC also needs to define a specific instruction format for putting the BIOS into a sleep state. This instruction can be a specific binary code, or a message that follows a specific protocol. It is understandable that this instruction should be distinguished from the activation instruction to avoid confusion. This embodiment does not limit how the BMC puts the BIOS into a sleep state through a sleep instruction. For example, the BMC may send a sleep instruction to the CPU, and when the CPU receives the sleep instruction, the BIOS is put into a sleep state through the CPU.
[0094] Furthermore, the above-mentioned hibernation of the basic input and output system by the hibernation instruction pre-defined by the baseboard management controller specifically includes the following steps:
[0095] Step 41: Sending a pre-defined sleep instruction to the central processing unit through the baseboard management controller;
[0096] Step 42: Setting the predefined interrupt signal to a low level through the central processing unit and sending it to the basic input and output system;
[0097] Step 43: When the basic input output system receives a low level interrupt signal, the basic input output system is put into hibernation.
[0098] In this embodiment, the BMC controls the BIOS operation through the CPU. At this time, the BMC needs to send a pre-defined sleep instruction to the CPU. The transmission method of the sleep instruction is the same as the activation instruction, and it is necessary to ensure smooth communication between the BMC and the CPU. When the CPU receives the sleep instruction, it needs to perform the corresponding operation, that is, turn off the interrupt signal that was previously pulled up, that is, set the interrupt signal to a low level, so that the BIOS enters the sleep state.
[0099] Furthermore, after the update is completed, the basic input and output system is hibernated by a hibernation instruction pre-defined by the baseboard management controller, which specifically includes the following steps:
[0100] Step 51: After the update is completed, a configuration success mark is added to the configuration information in the memory through the basic input and output system;
[0101] Step 52: polling all information in the memory through the baseboard management controller;
[0102] Step 53: When the baseboard management controller detects the configuration success mark, the baseboard management controller sends the pre-defined sleep instruction to the central processing unit through the communication interface; the communication interface is a communication interface between the baseboard management controller and the central processing unit;
[0103] Step 54: When the central processing unit receives the pre-defined sleep instruction, the pre-defined interrupt signal is set to a low level through the central processing unit, and the low-level interrupt signal is sent to the basic input and output system by using the hardware connection and communication mechanism between the central processing unit and the basic input and output system;
[0104] Step 55: When the basic input output system receives a low level interrupt signal, the basic input output system is put into sleep mode.
[0105] In this embodiment, when the BIOS configuration update is completed, the BIOS also adds a configuration success mark to the configuration information in the memory, and the mark is used to notify the BMC that the configuration information has taken effect. The BMC polls the mark of the data in the memory. Once the BMC reads the configuration success mark, it sends a sleep instruction to the CPU so that the CPU can turn off the interrupt signal that was previously pulled up, that is, set the interrupt signal to a low level, and use the hardware connection and transmission mechanism between the CPU and the BIOS to transmit the low-level interrupt signal to the BIOS, so that the BIOS can enter a sleep state. In this embodiment, after the BIOS configuration update is completed, the BIOS configuration information in the memory is marked, so that the BMC can know the configuration status of the BIOS in a timely manner, to avoid the BIOS still being configured. The BMC sends a sleep instruction, resulting in a BIOS configuration failure; or the BIOS has completed the configuration, and the BMC cannot pass the sleep instruction to the BIOS in time.
[0106] Furthermore, the following steps may be included:
[0107] Step 61: when the BIOS is in hibernation, immediately updating the BIOS state to the hibernation state through the BIOS;
[0108] Step 62: When the BIOS is activated, immediately updating the BIOS state to an activated state through the BIOS;
[0109] Step 63: Feedback the sleep state and / or the activation state to the baseboard management controller through the basic input and output system.
[0110] In this embodiment, the BIOS also needs to manage its own state, including the active state and the dormant state, to ensure that it can correctly switch to the corresponding state when receiving an interrupt signal, and can also feed back the current state of the BIOS to the BMC, so that the BMC can know the state of the BIOS in time to avoid the BMC from misoperating the BIOS.
[0111] The basic input / output system configuration update method provided by the embodiment of the present invention is applied. When the baseboard management controller receives the user's basic input / output system configuration update instruction, the configuration information in the update configuration instruction is written into the memory; when the writing is successful, the basic input / output system is activated through the activation instruction pre-defined by the baseboard management controller; the configuration information is obtained from the memory through the basic input / output system, and the configuration of the basic input / output system is updated using the configuration information; when the update is completed, the basic input / output system is hibernated through the hibernation instruction pre-defined by the baseboard management controller. The beneficial effects of this method are: (1) Through the BMC remote configuration and management of BIOS, users can set and update BIOS without directly accessing the server hardware. It reduces manual intervention, greatly simplifies the maintenance process of the server, reduces maintenance costs and operating costs, and improves management efficiency. Especially in the environment of large-scale server clusters, this remote management method can greatly reduce the workload of administrators; (2) Through customized activation instructions and sleep instructions, the activation and sleep of BIOS can be precisely controlled to avoid BIOS configuration errors or server instability due to misoperation or unexpected situations; compared with traditional restart operations, it also reduces server energy consumption and further reduces operating costs; (3) Users can dynamically configure and update BIOS settings according to actual needs to adapt to different working environments and application scenarios. This flexibility enables servers to better meet business needs and improves the efficiency and value of server use; (4) It is an important step for server management to move towards intelligence and automation. Customized instructions provide the possibility for subsequent automated script writing, policy formulation, and intelligent decision-making, which helps to achieve a higher level of server management automation and intelligence.
[0112] In order to make the present invention easier to understand, please refer to Figure 2 , Figure 2 A flowchart of a basic input / output system configuration update method provided by an embodiment of the present invention may specifically include:
[0113] 1. The user sends configuration information to the BMC.
[0114] (1) User operation: The user configures the BIOS setup options through the BMC web interface, IPMI commands, or Redfish interface.
[0115] (2) BMC receives instructions: BMC receives the BIOS setup option instructions configured by the user.
[0116] 2. BMC stores the configuration information in the SRAM area.
[0117] Configuration information transfer: The BMC transfers the received BIOS configuration information to the SRAM (Static Random-Access Memory) area. SRAM is a high-speed cache used to store data that needs to be accessed quickly.
[0118] 3. BMC sends activation instructions to CPU.
[0119] (1) Write activation instructions: Once the BIOS configuration information is successfully transferred to the SRAM area, the BMC writes the BIOS activation instructions to the specific register of the CPU.
[0120] (2) CPU receives instruction: The CPU receives the BIOS activation instruction from the BMC.
[0121] 4. The CPU pulls up the interrupt signal.
[0122] Pull up the interrupt signal: The CPU pulls up the interrupt signal according to the received instruction. This interrupt signal is used to notify the BIOS to activate.
[0123] 5. BIOS reads and applies the configuration and writes a read success flag.
[0124] (1) BIOS activation: After receiving an interrupt signal, the BIOS is activated from the sleep state.
[0125] (2) Read configuration information: BIOS reads the setup option value (i.e., BIOS configuration information) previously passed by the BMC from the SRAM area.
[0126] (3) Settings take effect: BIOS makes corresponding settings based on the configuration information read, and the configuration takes effect.
[0127] (4) Write a read success flag: After the BIOS successfully reads and applies the configuration information, it writes a read success flag in the SRAM area to notify the BMC that the configuration has been applied.
[0128] 6. BMC polling flag.
[0129] BMC polling flag: BMC checks the read success flag in the SRAM area through the polling mechanism.
[0130] 7. BMC sends a sleep command to the CPU.
[0131] Write hibernation instruction: Once the BMC detects the read success flag, it again writes the hibernation BIOS instruction to the specific register of the CPU.
[0132] 8. Turn off the interrupt signal.
[0133] (1) The CPU receives and processes instructions: After the CPU receives the BIOS hibernation instruction, it turns off the interrupt signal that was previously raised.
[0134] (2) BIOS enters sleep mode: After receiving the notification that the interrupt signal is turned off, BIOS completes the current operation and enters sleep mode, waiting for the next activation.
[0135] The server provided by the embodiment of the present invention is introduced below. The server described below and the basic input / output system configuration updating method described above can be referred to each other.
[0136] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a server provided in an embodiment of the present invention may include:
[0137] Baseboard management controller 100, basic input and output system 200 and memory 300;
[0138] The baseboard management controller 100 is used to write the configuration information in the update configuration instruction to the memory when receiving the update configuration instruction of the basic input and output system from the user; when the writing is successful, activate the basic input and output system through a pre-defined activation instruction; after the basic input and output system is updated, put the basic input and output system into sleep mode through a pre-defined sleep instruction;
[0139] The basic input and output system 200 is used to obtain the configuration information from the memory when receiving the activation instruction, and update the configuration of the basic input and output system using the configuration information; when receiving the sleep instruction, enter the sleep state;
[0140] The memory 300 is used to store the configuration information.
[0141] Based on the above embodiment, the baseboard management controller 100 can be specifically used to send the pre-defined activation instruction to the central processing unit; set the pre-defined interrupt signal to a high level through the central processing unit and send it to the basic input and output system; when the basic input and output system receives the high-level interrupt signal, the basic input and output system is activated.
[0142] Based on the above embodiment, the baseboard management controller 100 can be specifically used to send the pre-defined sleep instruction to the central processing unit; set the pre-defined interrupt signal to a low level through the central processing unit and send it to the basic input and output system; when the basic input and output system receives the low-level interrupt signal, the basic input and output system is put into sleep mode.
[0143] Based on the above embodiment, the baseboard management controller 100 can be specifically used to add a configuration success mark to the configuration information in the memory after the update is completed; poll all the information in the memory; when the configuration success mark is detected, use the communication interface to send the pre-defined sleep instruction to the central processing unit; the communication interface is the communication interface between the baseboard management controller and the central processing unit; when the central processing unit receives the pre-defined sleep instruction, the pre-defined interrupt signal is set to a low level through the central processing unit, and the low-level interrupt signal is sent to the basic input and output system by using the hardware connection and communication mechanism between the central processing unit and the basic input and output system; when the basic input and output system receives the low-level interrupt signal, the basic input and output system is put into sleep mode.
[0144] Based on any of the above embodiments, the basic input / output system 200 can also be specifically used to immediately update the basic input / output system state to a dormant state when the basic input / output system is dormant; immediately update the basic input / output system state to an activated state when the basic input / output system is activated; and feed back the dormant state and / or the activated state to the baseboard management controller.
[0145] Based on the above embodiment, the baseboard management controller 100 can be specifically used to combine interaction information according to a preset custom structure to obtain the activation instruction; the interaction information includes the serial number of the central processing unit, the type of the central processing unit, the interaction method between the baseboard management controller and the central processing unit, the I2C bus number used for interaction, the address of the central processing unit and the status of the basic input and output system.
[0146] Based on the above embodiment, the baseboard management controller 100 can be specifically used to check whether the update configuration instruction for the basic input and output system is compliant when receiving the update configuration instruction from the user; if the update configuration instruction is compliant, check whether the configuration information in the update configuration instruction is compliant; if the configuration information is compliant, write the configuration information into the memory.
[0147] The server provided by the embodiment of the present invention uses a baseboard management controller 100, which is used to write the configuration information in the update configuration instruction into the memory when receiving the user's update configuration instruction for the basic input and output system; when the writing is successful, the basic input and output system is activated through a pre-defined activation instruction; after the basic input and output system is updated, the basic input and output system is hibernated through a pre-defined sleep instruction; the basic input and output system 200 is used to obtain the configuration information from the memory when receiving the activation instruction, and use the configuration information to update the configuration of the basic input and output system; when receiving the sleep instruction, it enters the sleep state; the memory 300 is used to store the configuration information. The beneficial effects of this server are: (1) Through the BMC remote configuration and management of BIOS, users can set and update the BIOS without directly accessing the server hardware. It reduces manual intervention, greatly simplifies the maintenance process of the server, reduces maintenance costs and operating costs, and improves management efficiency. Especially in the environment of large-scale server clusters, this remote management method can greatly reduce the workload of administrators; (2) Through customized activation instructions and sleep instructions, the activation and sleep of BIOS can be precisely controlled to avoid BIOS configuration errors or server instability due to misoperation or unexpected situations; compared with traditional restart operations, it also reduces server energy consumption and further reduces operating costs; (3) Users can dynamically configure and update BIOS settings according to actual needs to adapt to different working environments and application scenarios. This flexibility enables servers to better meet business needs and improves the efficiency and value of server use; (4) It is an important step for server management to move towards intelligence and automation. Customized instructions provide the possibility for subsequent automated script writing, policy formulation, and intelligent decision-making, which helps to achieve a higher level of server management automation and intelligence.
[0148] Figure 4 A structural diagram of a basic input / output system configuration updating device provided by an embodiment of the present invention, such as Figure 4 As shown, the basic input and output system configuration updating device includes: a memory 60 for storing computer programs;
[0149] The processor 61 is used to implement the steps of the basic input and output system configuration updating method of the above embodiment when executing the computer program.
[0150] The basic input and output system configuration updating device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0151] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 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 central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0152] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, the relevant steps of the basic input and output system configuration update method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include, but is not limited to, data in the basic input and output system configuration update method, etc.
[0153] In some embodiments, the BIOS configuration updating device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .
[0154] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the basic input and output system configuration updating device, and may include more or less components than those shown in the figure.
[0155] It is understandable that if the basic input and output system configuration update method in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0156] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the basic input and output system configuration updating method as described above are implemented.
[0157] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0158] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0159] Finally, it should be noted that, in this article, relationships 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 such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0160] The above is a detailed introduction to a basic input / output system configuration update method, server and device provided by the present invention. Specific examples are used in this article 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 idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A basic input / output system configuration updating method, characterized in that: include: When the baseboard management controller receives a configuration update instruction for the basic input and output system from the user, the baseboard management controller writes the configuration information in the configuration update instruction into the memory; When the writing is successful, the basic input and output system is activated through an activation instruction pre-defined by the baseboard management controller; Obtaining the configuration information from the memory through the basic input and output system, and updating the configuration of the basic input and output system using the configuration information; After the update is completed, the basic input and output system is put into sleep mode through a sleep instruction predefined by the baseboard management controller.
2. The basic input / output system configuration updating method according to claim 1, characterized in that: The activating the basic input and output system by using the activation instruction pre-defined by the baseboard management controller includes: Sending the pre-defined activation instruction to the central processing unit through the baseboard management controller; Setting a predefined interrupt signal to a high level through the central processing unit and sending it to the basic input and output system; When the basic input output system receives a high level interrupt signal, the basic input output system is activated.
3. The basic input / output system configuration updating method according to claim 1, characterized in that: The step of hibernating the basic input / output system by using a hibernation instruction pre-defined by the baseboard management controller includes: Sending the pre-defined sleep instruction to the central processing unit through the baseboard management controller; Setting a predefined interrupt signal to a low level through the central processing unit and sending it to the basic input and output system; When the basic input output system receives a low level interrupt signal, the basic input output system is put into sleep mode.
4. The basic input / output system configuration updating method according to claim 1, characterized in that: After the update is completed, the basic input and output system is put into sleep mode by using a sleep instruction predefined by the baseboard management controller, including: When the update is completed, adding a configuration success mark to the configuration information in the memory through the basic input and output system; polling all information in the memory by the baseboard management controller; When the baseboard management controller detects the configuration success mark, the baseboard management controller sends the pre-defined sleep instruction to the central processing unit through the communication interface; the communication interface is a communication interface between the baseboard management controller and the central processing unit; When the central processing unit receives the predefined sleep instruction, the predefined interrupt signal is set to a low level by the central processing unit, and the low-level interrupt signal is sent to the basic input and output system by using the hardware connection and communication mechanism between the central processing unit and the basic input and output system; When the basic input output system receives a low level interrupt signal, the basic input output system is put into sleep mode.
5. The basic input / output system configuration updating method according to any one of claims 1 to 4, characterized in that: Also includes: When the basic input and output system is in hibernation, immediately updating the basic input and output system state to a hibernation state through the basic input and output system; When the basic input and output system is activated, immediately updating the basic input and output system state to an activated state through the basic input and output system; The sleep state and / or the activation state are fed back to the baseboard management controller through the basic input and output system.
6. The basic input / output system configuration updating method according to claim 1, characterized in that: The customization process of the activation instruction includes: The activation instruction is obtained by combining interaction information by the baseboard management controller according to a preset custom structure; the interaction information includes the serial number of the central processing unit, the type of the central processing unit, the interaction method between the baseboard management controller and the central processing unit, the I2C bus number used for interaction, the address of the central processing unit and the status of the basic input and output system.
7. The basic input / output system configuration updating method according to claim 1, characterized in that: When the baseboard management controller receives a user's update configuration instruction for the basic input and output system, the baseboard management controller writes the configuration information in the update configuration instruction into the memory, including: When the baseboard management controller receives a configuration update instruction for the basic input and output system from a user, checking whether the configuration update instruction is compliant; If the update configuration instruction is compliant, verifying whether the configuration information in the update configuration instruction is compliant; If the configuration information is compliant, the configuration information is written into the memory.
8. A server, characterized in that: include: baseboard management controller, basic input and output system and memory; The baseboard management controller is used to write the configuration information in the update configuration instruction into the memory when receiving the update configuration instruction of the basic input and output system from the user; When the writing is successful, the basic input and output system is activated through a pre-defined activation instruction; After the basic input and output system is updated, the basic input and output system is put into sleep mode through a pre-defined sleep instruction; The basic input and output system is used to obtain the configuration information from the memory and update the configuration of the basic input and output system using the configuration information when receiving the activation instruction; and enter a dormant state when receiving the dormant instruction; The memory is used to store the configuration information.
9. A basic input and output system configuration updating device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the basic input / output system configuration updating method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the steps of the basic input and output system configuration updating method as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Optional configuration method of basic input and output system, product, equipment and medium
CN119292706A
Communication method and device of controller, electronic equipment and computer program product
CN120407457A
Communication method and apparatus of controller, electronic device, and computer program product
CN120407457B
Configuration updating method and device, equipment, medium and program product
CN120743379A
Configuration update methods, devices, equipment, media and program products
CN120743379B
