Low temperature power-on self-startup method, system, apparatus, and media for edge servers
Patent Information
- Application Number
- CN202211511426.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2042-11-29
AI Technical Summary
此时如果设置上电自动开机,PCH中得到供电,ME代码内部加载后,温度未达标,就已经控制CPU开机,进入S0状态,服务器的其他设备会因为低温无法正常开机,出现宕机或者功能异常的情况
[0051] Compared with existing technologies, the advantages of this invention are as follows: This invention discloses a method, system, device, and medium for low-temperature power-on self-starting of an edge server. It achieves three requirements—automatic power-on upon power-up, power-on maintenance of shutdown, and maintaining the state before power-down—by communicating with the BIOS, BMC, and MCU and utilizing EEPROM to store status flags. This invention uses EEPROM to store status flags, and the MCU monitors the status flags to execute control logic, avoiding the inability to maintain register states due to low RTC voltage, preventing the ME in the PCH from issuing correct control signals and thus hindering normal functioning. Furthermore, in low-temperature scenarios, since both the heating element control and the server's "State after G3" control are executed by the MCU, it avoids situations where the server automatically starts up when the temperature of peripheral I/O devices is below standard.
Smart Images

Figure CN115718628B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically to a method, system, device, and medium for low-temperature power-on self-starting of an edge server. Background Technology
[0002] Currently, the common method for automatic server power-on on Intel x86 platforms is to modify the "State After G3" option in the BIOS SETUP. G3 indicates that the server power supply is cut off, and the server is in a completely powered-off state. This option has three choices: S0: the server powers on automatically, the CPU runs to state S0 to load the BIOS code, and boots into the system; S5: the server maintains state S5 (power off) after power-on; and last state: the server maintains the state it was in before power-off, i.e., before entering state G3. For example, if the server was powered on before power-off, it will automatically power on and enter state S0 upon power-on; if the server was powered off before power-off, it will remain in state S5 upon power-on.
[0003] However, the current solution has the following drawbacks:
[0004] 1. This solution relies on the RTC power supply register to record the value of the "State After G3" option and the machine's power-on / off state before power-off. After the server powers on, the PCH receives power, and the ME in the PCH can determine whether to send a power-on signal to the CPU by judging the register state, thus controlling whether the server powers on on the next power-on. If the battery voltage is too low, the register state cannot be maintained, making it impossible to keep the server powered on or off as needed according to customer requirements.
[0005] 2. If the server is in a low-temperature environment, such as an edge server scenario where the machine temperature may reach -40°C, currently, to address this issue, the MCU can send a command to the CPU after receiving the power button signal to check the ambient temperature before powering on. If the temperature is too low, the heating element is enabled to heat the server. Once the temperature reaches the target level, a signal is sent to power on the CPU. However, if automatic power-on is configured, the PCH receives power, and the ME code is loaded, but the temperature hasn't reached the target level, the CPU will already be powered on and enter the S0 state. Other devices on the server may fail to power on due to the low temperature, resulting in system crashes or malfunctions. Summary of the Invention
[0006] To address the above problems, the present invention aims to provide a method, system, device, and medium for low-temperature power-on self-starting of an edge server. By communicating with the BMC and MCU through the BIOS and using the EEPROM to store status flags, the method can meet three requirements of the edge server: automatic power-on under low-temperature conditions, power-on while remaining off, and power-on while maintaining the state before power-off.
[0007] To achieve the above objectives, this invention provides a low-temperature power-on self-starting method for an edge server, comprising the following steps:
[0008] S1: After power-on, monitor the server temperature via MCU to ensure that the server temperature meets the power-on requirements;
[0009] S2: Obtain the MCUFlag0 and MCUFlag1 flags from the MCU, and determine whether to send a power-on signal to the CPU based on the flags; if yes, proceed to step S3; otherwise, maintain the current state until power-off.
[0010] S3: The MCU sends a power-on signal to the CPU, causing the CPU to enter the S0 state;
[0011] S4: Load and initialize IPMI via BIOS, and set MCUFlag1 to 1;
[0012] S5: The BIOS sends MCUFlag1 to the MCU via the BMC and saves it;
[0013] S6: The BIOS retrieves the value of the current Setup option State After G3, sets MCUFlag0 based on the retrieved value, and saves it;
[0014] S7: Determine if a power-off action has occurred; if yes, proceed to step S8; otherwise, maintain the current state until power is off.
[0015] S8: Execute the S5CallBack function through the BIOS and check if the value of State After G3 is LastStatus; if so, proceed to step S9; otherwise, maintain the current state until power-off.
[0016] S9: Set MCUFlag1 to 0 via BIOS and save;
[0017] S10: Perform server power-down operation.
[0018] Furthermore, step S1 includes:
[0019] After power-on, the MCU executes the temperature control program by loading code, and obtains the temperature value through the server's built-in temperature sensor, comparing the temperature value with the preset value.
[0020] If the temperature value is greater than or equal to the preset value, the power-on conditions are met, and proceed directly to the next step;
[0021] If the temperature value is lower than the preset value, the power-on conditions are not met. The heating element will continue to heat the device and the temperature will be continuously monitored until the power-on conditions are met.
[0022] Furthermore, step S2 includes:
[0023] The MCU obtains the flag bits MCUFlag0 and MCUFlag1 from the built-in EEPROM, performs a bitwise AND operation on MCUFlag0 and MCUFlag1, and generates the calculation result.
[0024] If the calculation result is 1, a power-on signal is sent to the CPU, and the CPU then enters the S0 state; if the calculation result is 0, the state remains unchanged, and the CPU is in the S5 state, which remains until power-off.
[0025] Furthermore, step S4 includes:
[0026] The BIOS initializes the CPU, memory, and I / O devices, and loads the bootloader to start the system.
[0027] The BIOS initializes its own IPMI service for interaction with the BMC. After IPMI initialization is complete, the BIOS sets the current MCUFlag1 to 1, indicating that the server is currently powered on.
[0028] Furthermore, step S5 includes:
[0029] The BIOS sends MCUFlag1 to the BMC via IPMI command;
[0030] After receiving MCUFlag1, BMC establishes communication with the MCU via I2C, sends MCUFlag1 to the MCU, and stores it in the MCU's built-in EEPROM.
[0031] Furthermore, step S6 includes:
[0032] The BIOS retrieves the value of the current Setup option, State After G3.
[0033] If the obtained value is S0 or Last Status, then set MCUFlag0 to 1;
[0034] If the obtained value is S5, then set MCUFlag0 to 0;
[0035] After MCUFlag0 is set, the BIOS sends MCUFlag0 to the MCU via the BMC and stores it in the MCU's built-in EEPROM.
[0036] Furthermore, step S9 includes:
[0037] Set MCUFlag1 to 0 in the S5CallBack function via BIOS;
[0038] The BIOS sends MCUFlag1 to the MCU via the BMC and stores it in the MCU's built-in EEPROM.
[0039] Accordingly, the present invention also discloses a low-temperature power-on self-starting system for an edge server, comprising: a temperature monitoring unit, used to monitor the server temperature through an MCU after power-on to ensure that the server temperature meets the power-on conditions;
[0040] The first judgment unit is used to obtain the flag bits MCUFlag0 and MCUFlag1 through the MCU, and determine whether to send a power-on signal to the CPU based on the flag bits;
[0041] The power-on unit is used to send a power-on signal to the CPU through the MCU, causing the CPU to enter the S0 state;
[0042] The flag setting unit is used to set the values of flags MCUFlag0 and MCUFlag1 through the BIOS; the flag storage unit is used to control the BIOS to send MCUFlag0 and MCUFlag1 to the MCU through the BMC and save them.
[0043] The option acquisition unit is used to control the BIOS to acquire the value of the current Setup option State After G3, set MCUFlag0 according to the acquired value, and save it;
[0044] The second judgment unit is used to determine whether a shutdown action has occurred.
[0045] The option recognition unit is used to execute the S5CallBack function through the BIOS and determine whether the value of State After G3 is the Last Status;
[0046] The power-down unit is used to power down the server.
[0047] Accordingly, this invention discloses a low-temperature power-on self-starting device for an edge server, comprising:
[0048] Memory used to store the low-temperature power-on self-starting program for the edge server;
[0049] A processor is configured to implement the steps of the low-temperature power-on self-starting method for the edge server as described above when executing the low-temperature power-on self-starting procedure of the edge server.
[0050] Accordingly, the present invention discloses a readable storage medium storing a low-temperature power-on auto-start program for an edge server, wherein when the edge server's low-temperature power-on auto-start program is executed by a processor, it implements the steps of the low-temperature power-on auto-start method for an edge server as described in any of the above claims.
[0051] Compared with existing technologies, the advantages of this invention are as follows: This invention discloses a method, system, device, and medium for low-temperature power-on self-starting of an edge server. It achieves three requirements—automatic power-on upon power-up, power-on maintenance of shutdown, and maintaining the state before power-down—by communicating with the BIOS, BMC, and MCU and utilizing EEPROM to store status flags. This invention uses EEPROM to store status flags, and the MCU monitors the status flags to execute control logic, avoiding the inability to maintain register states due to low RTC voltage, preventing the ME in the PCH from issuing correct control signals and thus hindering normal functioning. Furthermore, in low-temperature scenarios, since both the heating element control and the server's "State after G3" control are executed by the MCU, it avoids situations where the server automatically starts up when the temperature of peripheral I / O devices is below standard.
[0052] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0054] Figure 1 This is a flowchart illustrating a specific embodiment of the present invention.
[0055] Figure 2 This is a system structure diagram of a specific embodiment of the present invention.
[0056] In the diagram, 1 is the temperature monitoring unit; 2 is the first judgment unit; 3 is the power-on unit; 4 is the flag setting unit; 5 is the flag storage unit; 6 is the option acquisition unit; 7 is the second judgment unit; 8 is the option recognition unit; and 9 is the power-off unit. Detailed Implementation
[0057] The core of this invention is to provide a low-temperature power-on self-starting method for edge servers. In existing technologies, due to excessively low RTC voltage causing the register state to fail to be maintained, the ME in the PCH cannot send correct control signals, thus hindering the normal power-on self-starting function. Furthermore, if the server is in a low-temperature environment, other devices on the server may fail to power on normally due to the low temperature, resulting in system crashes or malfunctions.
[0058] The low-temperature power-on self-starting method for edge servers provided by this invention communicates with the BIOS, BMC, and MCU, and uses EEPROM to store status flags to achieve three requirements: automatic power-on, power-on shutdown, and power-on maintenance of the state before power-off. This invention uses EEPROM to store status flags, and the MCU monitors the status flags to execute control logic, avoiding the inability to maintain register states due to low RTC voltage, preventing the ME in the PCH from sending correct control signals and thus hindering normal functioning. Furthermore, in low-temperature scenarios, since both the heating element control and the server's Stateafter G3 control are executed by the MCU, the situation where the server automatically starts up when the temperature of peripheral I / O devices is below standard is avoided.
[0059] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0060] Example 1:
[0061] like Figure 1 As shown, this embodiment provides a method for low-temperature power-on self-start of an edge server, including the following steps:
[0062] S1: After power-on, the server temperature is monitored by the MCU to ensure that the server temperature meets the power-on requirements.
[0063] Specifically, after power-on, the MCU executes the temperature control program by loading code and obtains the temperature value through the server's built-in temperature sensor, comparing the temperature value with a preset value. If the temperature value is greater than or equal to the preset value, the power-on condition is met, and the process proceeds directly to the next step; if the temperature value is less than the preset value, the power-on condition is not met, and the heating element continues to heat up, while the temperature is continuously monitored until the power-on condition is met.
[0064] S2: Obtain the MCUFlag0 and MCUFlag1 flags through the MCU, and determine whether to send a power-on signal to the CPU based on the flags; if yes, execute step S3; otherwise, maintain the current state until power-off.
[0065] Specifically, the MCU retrieves flag bits MCUFlag0 and MCUFlag1 from its built-in EEPROM, performs a bitwise AND operation on MCUFlag0 and MCUFlag1, and generates a result. Based on the result, it determines whether to send a power-on signal to the CPU. If the result is 1, a power-on signal is sent to the CPU, and the CPU enters state S0. If the result is 0, the state remains unchanged, and the CPU enters state S5, which continues until power-down.
[0066] S3: The MCU sends a power-on signal to the CPU, causing the CPU to enter the S0 state.
[0067] S4: Load and initialize IPMI via BIOS, and set MCUFlag1 to 1.
[0068] First, the CPU, memory, and I / O devices are initialized via the BIOS, and the boot system is loaded. Then, the BIOS initializes its own IPMI service for interaction with the BMC. After IPMI initialization is complete, the BIOS sets the current MCUFlag1 to 1, indicating that the server is currently powered on.
[0069] S5: The BIOS sends MCUFlag1 to the MCU via the BMC and saves it.
[0070] This step specifically includes: the BIOS sending MCUFlag1 to the BMC via the IPMI command; after receiving MCUFlag1, the BMC establishes communication with the MCU via I2C, sends MCUFlag1 to the MCU, and stores it in the MCU's built-in EEPROM for future use.
[0071] S6: The BIOS obtains the value of the current Setup option State After G3, sets MCUFlag0 according to the obtained value, and saves it.
[0072] First, the BIOS obtains the value of the current Setup option State After G3; if the obtained value is S0 or LastStatus, it sets MCUFlag0 to 1; if the obtained value is S5, it sets MCUFlag0 to 0; after MCUFlag0 is set, the BIOS sends MCUFlag0 to the MCU through the BMC and stores it in the MCU's built-in EEPROM.
[0073] It should be noted that:
[0074] If there is an abnormal power outage, when the power is restored, the server's Last State will be S0, i.e., the powered-on state.
[0075] If "State After G3" is set to "S0" or "Last Status", the MCU should send a power-on signal to make the CPU enter S0. In fact, at this time, the values of MCUFlag0 and 1 are both 1. After the flag bits are ANDed, the result is 1. Referring to step S2, the power-on action will be performed and the CPU will enter the S0 state, which is as expected.
[0076] If "State After G3" is set to "S5", then the MCU should not send a power-on signal to keep the CPU in the S5 state. In fact, at this time, the value of MCUFlag0 is 0 and the value of MCUFlag1 is 1. The result of the AND calculation of the flag bits is 0. Referring to step S2, the power-on action will not be performed, and the CPU will keep the S5 state as expected.
[0077] S7: Determine if a shutdown action has occurred; if yes, proceed to step S8; otherwise, maintain the current state until power is off.
[0078] S8: Execute the S5CallBack function through the BIOS and determine whether the value of State After G3 is LastStatus; if so, proceed to step S9; otherwise, maintain the current state until power-off.
[0079] S9: Set MCUFlag1 to 0 via BIOS and save.
[0080] First, the BIOS sets MCUFlag1 to 0 in the S5CallBack function; then, the BIOS sends MCUFlag1 to the MCU via the BMC and stores it in the MCU's built-in EEPROM.
[0081] It's important to note that if a normal shutdown occurs while the computer is powered on, the BIOS's S5CallBack function will be triggered. At this point, the server will enter the S5 state. If "State After G3" is selected as "Last Status," it should return to the shutdown state (S5) after a power-on restart. Intel x86 architecture CPUs trigger interrupts by writing fixed values to fixed I / O addresses. The BIOS links this interrupt to the custom S5CallBack function by registering an interrupt handler. Registering an interrupt handler is a standard BIOS action. Within the S5CallBack function, the value of the current Setup option "State After G3" is retrieved. If the value is "S0" or "Last Status," MCUFlag1 is set to 0. If the value is S5, the BIOS takes no action, and MCUFlag1 remains at 1.
[0082] At this point, after shutdown, the CPU enters the S5 state. If there is an abnormal power outage and the power is restored, the server's LastState will be S5, which is the shutdown state.
[0083] If "State After G3" is set to "S0", then the MCU should send a power-on signal to make the CPU enter S0. In fact, at this time, the values of MCUFlag0 and 1 are both 1. After the flag bits are ANDed, the result is 1. Referring to step S2, the power-on action will be performed and enter S0, which is as expected.
[0084] If "State After G3" is set to "S5", then the MCU should not send a power-on signal, so that the CPU remains in state S5. In fact, at this time, the value of MCUFlag0 is 0 and the value of MCUFlag1 is 0. The result of the AND calculation of the flag bits is 0. Referring to step S2, the power-on action will not be performed, and the CPU will remain in state S5, which is as expected.
[0085] If "State After G3" is set to "Last Status", then the MCU should not send a power-on signal, and the CPU should remain in state S5. In fact, at this time, the value of MCUFlag0 is 1 and the value of MCUFlag1 is 0. The result of the AND operation of the flag bits is 0. Referring to step S2, the power-on action will not be performed, and the CPU will remain in state S5, which is as expected.
[0086] S10: Perform server power-down operation.
[0087] Therefore, this method essentially provides a startup process for an edge server that undergoes an abnormal power-down followed by a power-on and then another abnormal power-down. In low-temperature scenarios, after an abnormal power outage and subsequent power-on, the edge server implements the "State After G3" function. The MCU needs to determine two states: MCUFlag0: State After G3, and MCUFlag1: Last State. The values of these two flags are determined by the BIOS, sent to the BMC via IPMI, and communicated between the BMC and MCU via an I2C link. The MCU then stores these values in its EEPROM.
[0088] This embodiment provides a low-temperature power-on self-starting method for edge servers. It communicates with the BIOS, BMC, and MCU, and uses EEPROM to store status flags to achieve three requirements: automatic power-on, power-on while remaining powered off, and power-on while maintaining the state before power-off. This method uses EEPROM to store status flags, and the MCU monitors these flags to execute control logic. This avoids the inability to maintain register states due to low RTC voltage, preventing the ME in the PCH from sending correct control signals and thus hindering normal functioning. Furthermore, in low-temperature scenarios, since both the heating element control and the server's Stateafter G3 control are executed by the MCU, it avoids situations where the server automatically starts up when the temperature of peripheral I / O devices is below standard.
[0089] Example 2:
[0090] Based on Example 1, such as Figure 2 As shown, the present invention also discloses a low-temperature power-on self-starting system for an edge server, comprising: a temperature monitoring unit 1, a first judgment unit 2, a power-on unit 3, a flag setting unit 4, a flag storage unit 5, an option acquisition unit 6, a second judgment unit 7, an option recognition unit 8, and a power-off unit 9.
[0091] Temperature monitoring unit 1 is used to monitor the server temperature via the MCU after power-on to ensure that the server temperature meets the power-on conditions. Specifically, after power-on, the MCU executes the temperature control program by loading code and obtains the temperature value through the server's built-in temperature sensor. The temperature value is compared with a preset value. If the temperature value is greater than or equal to the preset value, the power-on conditions are met. If the temperature value is less than the preset value, the power-on conditions are not met, and the heating element continues to perform the heating action while continuously monitoring the temperature until the power-on conditions are met.
[0092] The first judgment unit 2 is used to obtain the flag bits MCUFlag0 and MCUFlag1 from the MCU and determine whether to send a power-on signal to the CPU based on the flag bits. Specifically, the first judgment unit 2 is used as follows: the MCU obtains the flag bits MCUFlag0 and MCUFlag1 from the built-in EEPROM, performs a bitwise AND operation on MCUFlag0 and MCUFlag1, and generates a calculation result; if the calculation result is 1, a power-on signal is sent to the CPU, and the CPU subsequently enters the S0 state; if the calculation result is 0, the state remains unchanged, and the CPU is in the S5 state, which is maintained until power-down.
[0093] Power-on unit 3 is used to send a power-on signal to the CPU through the MCU, so that the CPU enters the S0 state.
[0094] Flag setting unit 4 is used to set the values of flags MCUFlag0 and MCUFlag1 through the BIOS. Specifically, flag setting unit 4 is used for: initializing the CPU, memory, and I / O devices through the BIOS and loading the boot system; initializing its own IPMI service through the BIOS for interaction with the BMC; and setting the current values of flags MCUFlag0 and MCUFlag1 after IPMI initialization is complete.
[0095] Flag storage unit 5 is used to control the BIOS to send MCUFlag0 and MCUFlag1 to the MCU via the BMC and save them. Specifically, flag storage unit 5 is used for: the BIOS to send MCUFlag0 and MCUFlag1 to the BMC via IPMI command; after receiving MCUFlag0 and MCUFlag1, the BMC establishes communication with the MCU via I2C, sends MCUFlag0 and MCUFlag1 to the MCU, and stores them in the MCU's built-in EEPROM.
[0096] Option acquisition unit 6 is used to control the BIOS to acquire the value of the current Setup option State After G3, set MCUFlag0 according to the acquired value, and save it.
[0097] The second judgment unit 7 is used to determine whether a shutdown action has occurred.
[0098] Option recognition unit 8 is used to execute the S5CallBack function through the BIOS and determine whether the value of State After G3 is the Last Status.
[0099] Power-down unit 9 is used to perform server power-down operations.
[0100] This embodiment provides a low-temperature power-on self-starting system for an edge server. It communicates with the BMC and MCU through the BIOS and uses EEPROM to store status flags to achieve three requirements: automatic power-on, power-on shutdown, and power-on maintenance of the state before power-off.
[0101] Example 3:
[0102] This embodiment discloses a low-temperature power-on self-starting device for an edge server, including a processor and a memory; wherein, when the processor executes the low-temperature power-on self-starting program for the edge server stored in the memory, it performs the following steps:
[0103] 1. After power-on, monitor the server temperature via the MCU to ensure that the server temperature meets the power-on requirements.
[0104] 2. Obtain the MCUFlag0 and MCUFlag1 flags through the MCU, and determine whether to send a power-on signal to the CPU based on the flags; if yes, proceed to step 3; otherwise, maintain the current state until power-off.
[0105] 3. The MCU sends a power-on signal to the CPU, causing the CPU to enter the S0 state.
[0106] 4. Load and initialize IPMI through BIOS, and set MCUFlag1 to 1.
[0107] 5. The BIOS sends MCUFlag1 to the MCU via the BMC and saves it.
[0108] 6. The BIOS obtains the value of the current Setup option State After G3, sets MCUFlag0 according to the obtained value, and saves it.
[0109] 7. Determine if a shutdown action has occurred; if so, proceed to step 8; otherwise, maintain the current state until power is off.
[0110] 8. Execute the S5CallBack function through the BIOS and check if the value of State After G3 is LastStatus; if so, proceed to step 9; otherwise, maintain the current state until power-off.
[0111] 9. Set MCUFlag1 to 0 in the BIOS and save.
[0112] 10. Perform a power-off operation on the server.
[0113] Furthermore, the low-temperature power-on self-starting device for the edge server in this embodiment may further include:
[0114] The input interface is used to acquire the low-temperature power-on auto-boot program of the edge server imported from the outside and save the acquired program to the memory. It can also be used to acquire various instructions and parameters transmitted from external terminal devices and transmit them to the processor, so that the processor can perform corresponding processing using these instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, and a hard disk read interface.
[0115] An output interface is used to output various data generated by the processor to connected terminal devices, so that other terminal devices connected to the output interface can obtain the various data generated by the processor. In this embodiment, the output interface may include, but is not limited to, a USB interface, a serial interface, etc.
[0116] A communication unit is used to establish a remote communication connection between the low-temperature power-on self-starting device of the edge server and the external server, so that the low-temperature power-on self-starting device of the edge server can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.
[0117] The keyboard is used to acquire various parameter data or commands input by the user through real-time keystrokes.
[0118] The monitor is used to display relevant information in real time regarding the process of locating a short circuit in the server's power supply line.
[0119] A mouse can be used to assist users in inputting data and simplifying user operations.
[0120] Example 4:
[0121] This embodiment also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a low-temperature power-on auto-boot program for an edge server, which, when executed by a processor, performs the following steps:
[0122] 1. After power-on, monitor the server temperature via the MCU to ensure that the server temperature meets the power-on requirements.
[0123] 2. Obtain the MCUFlag0 and MCUFlag1 flags through the MCU, and determine whether to send a power-on signal to the CPU based on the flags; if yes, proceed to step 3; otherwise, maintain the current state until power-off.
[0124] 3. The MCU sends a power-on signal to the CPU, causing the CPU to enter the S0 state.
[0125] 4. Load and initialize IPMI through BIOS, and set MCUFlag1 to 1.
[0126] 5. The BIOS sends MCUFlag1 to the MCU via the BMC and saves it.
[0127] 6. The BIOS obtains the value of the current Setup option State After G3, sets MCUFlag0 according to the obtained value, and saves it.
[0128] 7. Determine if a shutdown action has occurred; if so, proceed to step 8; otherwise, maintain the current state until power is off.
[0129] 8. Execute the S5CallBack function through the BIOS and check if the value of State After G3 is LastStatus; if so, proceed to step 9; otherwise, maintain the current state until power-off.
[0130] 9. Set MCUFlag1 to 0 in the BIOS and save.
[0131] 10. Perform a power-off operation on the server.
[0132] In summary, this invention communicates with the BMC and MCU via BIOS and uses EEPROM to store status flags, thus meeting three requirements for edge servers: automatic power-on, power-on shutdown, and power-on maintenance of the state before power-off.
[0133] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.
[0134] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0135] In the embodiments provided by this invention, it should be understood that the disclosed systems, methods, and approaches can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.
[0136] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0137] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.
[0138] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.
[0139] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0140] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0141] The low-temperature power-on self-starting method, system, device, and readable storage medium for edge servers provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.
Claims
1. A method for low-temperature power-on self-starting of an edge server, characterized in that, Includes the following steps: S1: After power-on, monitor the server temperature via MCU to ensure that the server temperature meets the power-on requirements; S2: Obtain the flag bits MCUFlag0 and MCUFlag1 through the MCU, perform a bitwise AND operation on MCUFlag0 and MCUFlag1, and determine whether to send a power-on signal to the CPU based on the calculation result; if the calculation result is 1, proceed to step S3; if the calculation result is 0, maintain the current state until a power-down command is received, and then proceed to step S10; MCUFlag0 represents the status flag of the State After G3 option modified under BIOS SETUP, and MCUFlag1 represents the status flag of the server before entering the G3 state; S3: The MCU sends a power-on signal to the CPU, causing the CPU to enter the S0 state; S4: Load and initialize IPMI via BIOS, and set MCUFlag1 to 1; S5: The BIOS sends MCUFlag1 to the MCU via the BMC and saves it; S6: The BIOS obtains the value of the current Setup option State After G3, sets MCUFlag0 according to the obtained value, and saves it; if the obtained value is S0 or Last Status, then MCUFlag0 is set to 1; if the obtained value is S5, then MCUFlag0 is set to 0. S7: Determine whether a power-off action has occurred; if yes, proceed to step S8; otherwise, maintain the current state until a power-down command is received, and then proceed to step S10. S8: Execute the S5CallBack function through the BIOS and determine whether the value of State After G3 is the Last Status; if so, proceed to step S9; otherwise, maintain the current state until a power-down command is received, and then proceed to step S10. S9: Set MCUFlag1 to 0 via BIOS and save; S10: Perform server power-down operation.
2. The low-temperature power-on self-starting method for an edge server according to claim 1, characterized in that, Step S1 includes: After power-on, the MCU executes the temperature control program by loading code, and obtains the temperature value through the server's built-in temperature sensor, comparing the temperature value with the preset value. If the temperature value is greater than or equal to the preset value, the power-on conditions are met, and proceed directly to the next step; If the temperature value is lower than the preset value, the power-on conditions are not met. The heating element will continue to heat the device and the temperature will be continuously monitored until the power-on conditions are met.
3. The low-temperature power-on self-starting method for an edge server according to claim 1, characterized in that, Step S2 includes: The MCU obtains the flag bits MCUFlag0 and MCUFlag1 from the built-in EEPROM, performs a bitwise AND operation on MCUFlag0 and MCUFlag1, and generates the calculation result. If the calculation result is 1, a power-on signal is sent to the CPU, and the CPU then enters the S0 state; if the calculation result is 0, the state remains unchanged, and the CPU is in the S5 state, which remains until power-off.
4. The low-temperature power-on self-starting method for an edge server according to claim 3, characterized in that, Step S4 includes: The BIOS initializes the CPU, memory, and I / O devices, and loads the bootloader to start the system. The BIOS initializes its own IPMI service for interaction with the BMC. After IPMI initialization is complete, the BIOS sets the current MCUFlag1 to 1, indicating that the server is currently powered on.
5. The low-temperature power-on self-starting method for an edge server according to claim 4, characterized in that, Step S5 includes: The BIOS sends MCUFlag1 to the BMC via IPMI command; After receiving MCUFlag1, BMC establishes communication with the MCU via I2C, sends MCUFlag1 to the MCU, and stores it in the MCU's built-in EEPROM.
6. The low-temperature power-on self-starting method for an edge server according to claim 5, characterized in that, Step S6 includes: The BIOS retrieves the value of the current Setup option, State After G3. If the obtained value is S0 or Last Status, then set MCUFlag0 to 1; If the obtained value is S5, then set MCUFlag0 to 0; After MCUFlag0 is set, the BIOS sends MCUFlag0 to the MCU via the BMC and stores it in the MCU's built-in EEPROM.
7. The low-temperature power-on self-starting method for an edge server according to claim 6, characterized in that, Step S9 includes: Set MCUFlag1 to 0 in the S5CallBack function via BIOS; The BIOS sends MCUFlag1 to the MCU via the BMC and stores it in the MCU's built-in EEPROM.
8. A low-temperature power-on self-starting system for an edge server executing the low-temperature power-on self-starting method according to any one of claims 1 to 7, characterized in that, include: The temperature monitoring unit is used to monitor the server temperature via the MCU after power-on to ensure that the server temperature meets the power-on requirements. The first judgment unit is used to obtain the flag bits MCUFlag0 and MCUFlag1 through the MCU, and determine whether to send a power-on signal to the CPU based on the flag bits; The power-on unit is used to send a power-on signal to the CPU through the MCU, causing the CPU to enter the S0 state; The flag setting unit is used to set the values of flags MCUFlag0 and MCUFlag1 via the BIOS. The flag storage unit is used to control the BIOS to send MCUFlag0 and MCUFlag1 to the MCU via the BMC and save them. The option acquisition unit is used to control the BIOS to acquire the value of the current Setup option State After G3, set MCUFlag0 according to the acquired value, and save it; The second judgment unit is used to determine whether a shutdown action has occurred. The option recognition unit is used to execute the S5CallBack function through the BIOS and determine whether the value of State After G3 is the Last Status; The power-down unit is used to power down the server.
9. A low-temperature power-on self-starting device for an edge server, characterized in that, include: Memory used to store the low-temperature power-on self-starting program for the edge server; A processor, configured to implement the steps of the low-temperature power-on self-starting method for the edge server as described in any one of claims 1 to 7 when executing the low-temperature power-on self-starting procedure of the edge server.
10. A readable storage medium, characterized in that: The readable storage medium stores a low-temperature power-on auto-start program for the edge server, which, when executed by a processor, implements the steps of the low-temperature power-on auto-start method for the edge server as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method, device and equipment for starting edge server at low temperature and readable medium
CN114138345A
Processing method and processing device
CN115202754A