Method, device and equipment for recovering after hanging of baseboard management controller, and medium

By introducing an external logic switch in the BMC to switch between Flash and EEPROM storage of configuration information, the problems of BMC hang and configuration loss were solved, and stable service recovery was achieved under abnormal conditions.

CN121996472APending Publication Date: 2026-05-08INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
INSPUR (SHANDONG) COMPUTER TECH CO LTD
Filing Date
2026-01-29
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing technologies cannot effectively solve the problems of baseboard management controller (BMC) hang-up and configuration loss, which leads to uncontrolled server fan management, excessive power consumption, and failure of services to start normally, especially in virtualization and high-performance scenarios.

Method used

By introducing an external logic switch into the BMC to control the chip select signal to switch to the backup Flash and storing the configuration information in the electrically erasable programmable read-only memory (EEPROM), the BMC can be manually restored and the configuration information synchronized in case of an abnormal situation.

Benefits of technology

When the BMC hangs or its configuration is lost, it can be manually forced to restore the BMC to the backup Flash, ensuring stable operation of services, reducing the risk of service interruption due to configuration loss, and improving the reliability and recoverability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996472A_ABST
    Figure CN121996472A_ABST
Patent Text Reader

Abstract

The invention discloses a recovery method and device after hanging of a baseboard management controller, equipment and a medium, and relates to the technical field of servers. The recovery method comprises the steps that in the running process of the baseboard management controller, if a first Flash has a non-hardware fault, the first Flash is recovered; if yes, the first logic switch is controlled through the second logic switch to conduct circuit connection on a target chip selection signal in the substrate management controller and the second Flash, so that the substrate management controller conducts starting recovery based on the second Flash; storing the configuration information of the basic input / output system and the substrate management controller to a live-line erasable programmable read-only memory connected with the substrate management controller, so that the substrate management controller can be started according to the configuration information in the live-line erasable programmable read-only memory when the substrate management controller is restarted; wherein the first logic switch is a logic switch located in the middle of chip selection signals connected with the first Flash, the second Flash and the substrate management controller. According to the invention, the influence of faults on services is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and in particular to a method, apparatus, device, and medium for recovering a baseboard management controller after it has crashed. Background Technology

[0002] The widespread use of OPEN BMC (Baseboard Management Controller) has brought convenience to server manufacturers in development, but it has also brought certain risks. As an open-source project, it contains many unknown and unstable factors. Recently, we have encountered several BMC crashes in the market, causing server fan management to go out of control. When fans run at full speed, rack power consumption exceeds limits, posing a risk of power outages and causing customer complaints and concerns. Furthermore, BMC crashes are complex: some cases result in numerous forced restarts that fail to recover; others involve the loss of BMC and BIOS (Basic Input Output System) configurations, causing significant inconvenience to customers. In particular, a lost BIOS configuration is highly likely to prevent services from restarting after a customer's host, as many service configurations require specific BIOS settings, especially in virtualization and other performance-critical scenarios. If a customer reconfigures their services and they cannot restart successfully, it is a catastrophic event for the client. Most manufacturers use primary and backup flash chips in their existing designs to ensure the stable operation of the BMC as much as possible. However, this design can only ensure that the BMC switches to the backup flash when the primary flash chip fails and cannot communicate. It is powerless to deal with problems such as BMC crashes and configuration loss.

[0003] It is evident that ensuring the stable operation of customer services by performing extreme measures even when BMC crashes or configurations are lost is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, device, and medium for recovering a Baseboard Management Controller (BMC) after it has crashed. This ensures that even in situations such as BMC crashes or configuration loss, extreme operations can be performed to guarantee the stable operation of customer services and promptly eliminate potential user risks. The specific solution is as follows: In a first aspect, the present invention provides a method for recovering a baseboard management controller after it has been suspended, comprising: If a non-hardware fault occurs in the first Flash during the operation of the baseboard management controller, the second logic switch controls the first logic switch to connect the target chip select signal in the baseboard management controller with the second Flash, so that the baseboard management controller can start and recover based on the second Flash. The configuration information of the basic input / output system and the board management controller is stored in a energized erasable programmable read-only memory connected to the board management controller so that when the board management controller restarts, it can start up accordingly based on the configuration information in the energized erasable programmable read-only memory. The first logic switch is a logic switch located between the chip select signals that connect the first Flash, the second Flash, and the substrate management controller.

[0005] Optionally, the recovery method after the baseboard management controller hangs also includes: If the second logic switch is disconnected, the board management controller is started based on the first Flash.

[0006] Optionally, before storing the configuration information of the basic input / output system and the board management controller into a electrically erasable programmable read-only memory connected to the board management controller, the method further includes: The electrically erasable programmable read-only memory is connected to the baseboard management controller via a serial communication bus.

[0007] Optionally, the configuration information of the basic input / output system and the board management controller is stored in a electrically erasable programmable read-only memory connected to the board management controller, including: Add operable options to the web page of the substrate management controller; operable options include the option to synchronize the configuration information of the basic input / output system to the electrically erasable programmable read-only memory, the option to synchronize the configuration information of the substrate management controller to the electrically erasable programmable read-only memory, the option to start based on the configuration information of the basic input / output system in the electrically erasable programmable read-only memory, and the option to import the configuration information of the substrate management controller. After the customer's business is running normally, the configuration information of the current basic input / output system is saved to the electrically erasable programmable read-only memory connected to the board management controller by synchronizing the configuration information of the basic input / output system to the electrically erasable programmable read-only memory option. After the substrate management controller stabilizes, the configuration information of the current substrate management controller is saved to the electrically erasable programmable read-only memory connected to the substrate management controller based on the option of synchronizing the configuration information of the substrate management controller to the electrically erasable programmable read-only memory.

[0008] Optionally, when the baseboard management controller restarts, it performs a corresponding startup based on the configuration information in the electrically erasable programmable read-only memory, including: When the board management controller restarts, it starts the basic input / output system according to the configuration information of the basic input / output system in the electrically erasable programmable read-only memory, and starts it according to the configuration information of the current board management controller in the electrically erasable programmable read-only memory.

[0009] Optionally, the recovery method after the baseboard management controller hangs also includes: Based on the target cycle, the configuration information stored inside the baseboard management controller is compared with the configuration information stored in the electrically erasable programmable read-only memory to obtain the corresponding judgment result; Based on the judgment result, perform the corresponding operation on the electrically erasable programmable read-only memory.

[0010] Optionally, based on the judgment result, corresponding operations may be performed on the electrically erasable programmable read-only memory, including: If the configuration information stored inside the board management controller is the same as the configuration information stored in the electrically erasable programmable read-only memory, no operation is performed; If the configuration information stored inside the board management controller is different from the configuration information stored in the electrically erasable programmable read-only memory, an alarm message is triggered so that it can be manually determined whether to synchronize the configuration information stored inside the board management controller to the electrically erasable programmable read-only memory based on the alarm message.

[0011] In a second aspect, the present invention provides a recovery device for a board management controller after it has been suspended, comprising: The switch control module is used to control the first logic switch to connect the target chip select signal in the substrate management controller with the second flash memory if a non-hardware fault occurs in the first flash memory during the operation of the substrate management controller, so that the substrate management controller can start and recover based on the second flash memory. The configuration information storage module is used to store the configuration information of the basic input / output system and the baseboard management controller to a energized erasable programmable read-only memory connected to the baseboard management controller, so that when the baseboard management controller restarts, it can start up accordingly based on the configuration information in the energized erasable programmable read-only memory. The first logic switch is a logic switch located between the chip select signals that connect the first Flash, the second Flash, and the substrate management controller.

[0012] Thirdly, the present invention provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute computer programs to implement the aforementioned method for recovering the board management controller after it has been suspended.

[0013] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned method for recovering a board management controller after it has been suspended.

[0014] In this invention, if a non-hardware fault occurs in the first Flash during the operation of the substrate management controller, the second logic switch controls the first logic switch to connect the target chip select signal in the substrate management controller with the second Flash, so that the substrate management controller can start and recover based on the second Flash; the configuration information of the basic input / output system and the substrate management controller is stored in a energized erasable programmable read-only memory connected to the substrate management controller, so that when the substrate management controller restarts, it can start accordingly based on the configuration information in the energized erasable programmable read-only memory; wherein, the first logic switch is a logic switch located between the chip select signal connecting the first Flash, the second Flash and the substrate management controller.

[0015] Beneficial effects: This invention controls the Flash chip select signal by adding an external switch, allowing manual switching of the boot Flash of the baseboard management controller in extreme cases. This ensures that in the event of an extreme baseboard management controller hang, it can be manually forced to restart from the backup Flash. During normal operation, the configuration inside the baseboard management controller can be saved to an independent electrically erasable programmable read-only memory (EEPROM), and any changes can be synchronized promptly. In case of abnormal situations, the backup configuration can be exported from the EEPROM, greatly reducing the risk of service failure due to lost or unclear configuration. This solves the problem of situations where manually forcibly restarting the baseboard management controller fails to restore its normal operation when it hangs abnormally, and guides the backup settings to ensure the stable operation of customer services. Attached Figure Description

[0016] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of an existing BMC startup method provided by an embodiment of the present invention; Figure 2 A flowchart of a method for recovering a board management controller after it has been suspended, provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a method for recovering a baseboard management controller after it has been suspended, provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of a recovery device for a baseboard management controller after it is suspended, provided in an embodiment of the present invention. Figure 5This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0019] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0020] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] In some designs, such as Figure 1As shown, under normal operating conditions: the BMC firmware is stored in flash1 and flash2, and the two firmware copies are identical. flash1 and flash2 are connected in parallel on the BMC's SPI (Serial Peripheral Interface) bus. Normally, flash1 is the master firmware. By default, the BMC selects flash1 chip via the chip select signal CS1 during each boot and starts the micro-Linux kernel system from flash1. If flash1 chip fails, the BMC will internally determine the cause and select flash2 via the chip select signal CS2, and the BMC will boot from flash2. This ensures that if flash1 chip fails to boot due to hardware failure, the BMC can still boot from flash2, achieving redundancy. However, in this design, the BMC automatically selects which flash chip to boot from. Unless flash1 experiences a complete hardware failure, the BMC always assumes flash1 is good and boots from it regardless of the circumstances. However, in extreme cases, such as when the BMC system freezes and the operator manually forces a restart, flash1 might fail to boot due to program errors, continuous external access, or abnormal read / write lifespan, leading to a deadlock during startup. This creates a vicious cycle: the BMC fails to boot, its serial port cannot respond to external commands, and it cannot switch to the backup flash2. The only recourse is to power off the entire server when the customer's business allows. Furthermore, when the BMC freezes, another scenario is highly likely: the BIOS and BMC configurations stored internally are lost. To address these technical problems, this invention discloses a method, device, equipment, and medium for recovering a board management controller after it freezes. This ensures that even in situations like BMC freezes and configuration loss, extreme operations can be performed to guarantee the stable operation of customer services and promptly eliminate potential user risks.

[0022] See Figure 2 As shown, this embodiment of the invention provides a method for recovering a baseboard management controller after it has been suspended, including: Step S11: During the operation of the substrate management controller, if a non-hardware fault occurs in the first Flash, the second logic switch controls the first logic switch to connect the target chip select signal in the substrate management controller with the second Flash, so that the substrate management controller can start and recover based on the second Flash; wherein, the first logic switch is a logic switch located in the middle of the chip select signal connecting the first Flash, the second Flash and the substrate management controller.

[0023] Specifically, the BMC hangs during operation: When a non-fatal hardware failure occurs in the Flash1 chip, such as Flash1 being abnormally filled by a program, partitions being abnormally corrupted, or bad blocks appearing in the memory, even if the physical signal is normal, the system cannot boot into the BMC. Manually forcibly restarting the BMC causes it to determine that Flash1 is still normal, and the BMC still chooses to boot from Flash1 after the forced restart. This creates a dead loop. To escape this situation, the user must power off the entire server. In one specific embodiment, the machine is out of band and uncontrollable due to the BMC hanging. After the BMC hangs, the server fan will run at maximum speed, causing the server power to increase rapidly by several hundred watts. If multiple machines in a rack experience this problem, it can lead to the entire rack exceeding its power limit or even tripping the circuit breaker, causing a system crash. If not addressed promptly, prolonged full-speed fan operation will also significantly shorten the fan's lifespan. To solve the above problems, the design scheme of this invention is as follows... Figure 3 As shown, a logic switch circuit SW1 is added between the chip select signals connecting flash1, flash2 and BMC. SW2 can select whether CS1 or CS2 is on by controlling the signal.

[0024] according to Figure 3As shown, during the operation of the baseboard management controller (BMC), if a non-hardware fault occurs in the first Flash memory, the second logic switch controls the first logic switch to connect the target chip select signal in the BMC to the second Flash memory, allowing the BMC to boot and recover based on the second Flash. The first logic switch is located between the chip select signals connecting the first Flash, the second Flash, and the BMC. Specifically, logic switch SW2 controls SW1, physically preventing the BMC chip select signal CS1 from selecting flash 1. During BMC startup, only the CS2 chip select signal can be selected. After a manual forced restart of the BMC, it can only boot from the backup flash 2. This ensures that BMC operation can be manually restored in extreme situations. When firmware or customer monitoring software bugs trigger BMC anomalies in a large number of machines, machines with severely stalled BMCs can be manually restored. Field service personnel can quickly resolve the risk of excessive power consumption caused by uncontrolled fans. During this process, if the second logic switch is disconnected, the BMC will boot based on the first Flash. In other words, if logic switch SW2 is disconnected, the BMC chip select signal CS1 reselects flash1, and the BMC resumes booting from flash1, no longer booting from the backup flash2. This solves the scenario where, when the BMC hangs abnormally, a manual forced restart fails to restore normal operation; such failure scenarios are common in the market, especially when there are batch problems with the BMC firmware code. For example, if the BMC cannot recover, the fan will remain uncontrolled, requiring a power outage for repair, which significantly impacts business operations. This solution greatly reduces the impact of the failure on business operations. In other words, this invention adds an external switch to control the flash chip select signal, allowing manual switching of the BMC's boot flash in extreme cases, ensuring that the BMC can be manually forced to boot from the backup flash in the event of an extreme BMC hang.

[0025] Step S12: Store the configuration information of the basic input / output system and the board management controller to the electrically erasable programmable read-only memory connected to the board management controller, so that when the board management controller restarts, it can start up accordingly based on the configuration information in the electrically erasable programmable read-only memory.

[0026] Specifically, if the BMC crashes and, assuming it can be successfully restarted via a forced restart, but the BIOS configuration stored in the BMC is abnormally lost, and if the underlying hardware maintenance personnel are unaware of the correlation between upper-layer services and certain BIOS parameter settings, and fail to promptly notify the service-side maintenance personnel, restarting the server after service-side maintenance personnel make service changes will cause the service to fail to start, potentially leading to a production incident. When the BIOS configuration stored internally in the BMC is lost, the BIOS configuration will be restored to its default values. At this point, restarting the server will cause the BMC to synchronize the restored default BIOS configuration to the BIOS, effectively restoring all BIOS settings. Real-world use cases are diverse and complex, and BIOS configurations vary across different service scenarios. Hardware maintenance personnel find it difficult to monitor the specific BIOS parameter settings of each machine in real time. When the machine is not down, service-side maintenance personnel often do not consult hardware maintenance personnel when making changes to service software, operating entirely independently of the service department. Losing the BMC configuration means that many parameters within the BMC need to be reset, which is cumbersome for out-of-band maintenance personnel. If the BMC encounters a batch of issues triggering a hang, it will likely lead to configuration loss within the BMC, especially since the current OPEN BMC is still immature and many unknown bugs at the underlying level are still being resolved. Currently, the market is frequently encountering issues with the loss of BIOS and BMC configurations stored internally within the BMC. Therefore, if... Figure 3 As shown, this invention connects a small-capacity EEPROM (Electrically Erasable Programmable Read-Only Memory) to the I2C (Inter-Integrated Circuit) bus of the BMC. This ROM is used to store key configuration information of the BIOS and BMC, and the configuration information of the BIOS and BMC occupies very little space. In other words, before storing the configuration information of the Basic Input / Output System and the Baseboard Management Controller (BMC) in the EEPROM connected to the BMC, this invention connects the EEPROM to the BMC via a serial communication bus.

[0027] Subsequently, the present invention stores the configuration information of the Basic Input / Output System (PIS) and the Baseboard Management Controller (BMC) in a Powered Erasable Programmable Read-Only Memory (PEROM) connected to the BMC. During this process, the present invention first adds operable options to the web page of the BMC. These operable options include: synchronizing the PIS configuration information to the PMC; synchronizing the BMC configuration information to the PMC; starting the system based on the PIS configuration information in the PMC; and importing the BMC configuration information. After the customer service is running normally, the current PIS configuration information is saved to the PMC connected to the BMC via the option to synchronize the PIS configuration information to the PMC. After the BMC stabilizes, the current BMC configuration information is saved to the PMC connected to the BMC based on the option to synchronize the BMC configuration information to the PMC. Specifically, this invention designs the following operable options on the BMC's web page: Synchronize BIOS configuration to EEPROM and Synchronize BMC configuration to EEPROM; Boot from EEPROM BIOS configuration and Import EEPROM BMC configuration. Synchronize BIOS configuration to EEPROM: After the customer's business is running normally, hardware maintenance personnel manually save the current BIOS settings to EEPROM. Synchronize BMC configuration to EEPROM: After the BMC settings are stable, hardware maintenance personnel can choose to save the current configuration to EEPROM. Boot from EEPROM BIOS configuration: When selected, the BIOS configuration in EEPROM will be synchronized to the BIOS when the server restarts, and the BIOS will boot according to the BIOS configuration in EEPROM. Import EEPROM BMC configuration: When selected, the BMC can import previously stored BMC configurations. Furthermore, each of the above settings can be implemented via out-of-band commands, enabling batch remote operations.

[0028] Additionally, when a BMC crashes abnormally, causing BIOS and BMC configuration loss, the historical BIOS settings can be restored by setting the "Boot from EEPROM BIOS Configuration" option. This allows the service maintenance team to configure the system before restarting the service. Similarly, the historical BMC configuration can be restored by "Importing EEPROM BMC Configuration". Specifically, when the baseboard management controller restarts, it starts the basic input / output system based on the configuration information of the basic input / output system in the EEPROM, and then starts the current baseboard management controller based on the configuration information of the current baseboard management controller in the EEPROM.

[0029] In this embodiment of the invention, the configuration information stored internally by the baseboard management controller (BMC) is compared with the configuration information stored in the electrically erasable programmable read-only memory (EEPROM) based on a target period to obtain a corresponding judgment result. Based on the judgment result, corresponding operations are performed on the EEPROM. Specifically, if the configuration information stored internally by the BMC is the same as the configuration information stored in the EEPROM, no operation is performed; if the configuration information stored internally by the BMC is different from the configuration information stored in the EEPROM, an alarm is triggered so that manual determination can be made based on the alarm information to determine whether the configuration information stored internally by the BMC should be synchronized to the EEPROM. In short, the BMC periodically compares the differences between the settings stored internally and the settings in the EEPROM. If a difference is found, an alarm is triggered to prompt maintenance personnel to handle the issue and determine if synchronization is necessary. This further ensures that the baseboard management controller can accurately obtain configuration information and resume operation.

[0030] It should be noted that the present invention can further address, for example, Figure 3 The circuit shown has been optimized, including: Anti-interference enhancement measures: An RC (Resistor-Capacitor) filter circuit is added to the chip select signal path to suppress false triggering caused by power supply noise; analog switch chips with an on-resistance of less than 5 ohms are selected for the logic switch circuit to reduce the impact of signal voltage drop on chip select timing; differential routing design is adopted for control signal lines, with spacing following the 3W principle (line width 3 times the spacing) to reduce crosstalk. Fault isolation mechanism: A 33-ohm resistor is connected in series in the primary and backup Flash chip select paths to match the transmission line impedance. For EEPROM data security design: A partitioned write protection mechanism is adopted: the BIOS configuration area is set to read-only, and the BMC configuration area supports runtime updates; a CRC8 checksum is added to every 64 bytes of configuration data, and default values ​​are automatically restored in case of an anomaly. A boot counter (address 0x0081) can be added to the EEPROM to record the number of abnormal boots; a dual-Flash firmware CRC32 (Cyclic Redundancy Check) verification mechanism can be implemented, with the checksum stored at EEPROM address 0x010067; and a watchdog timeout automatic switching mechanism (timeout time recommended 500ms) or automatic switching after 3 consecutive failures can be configured. This further ensures the normal operation of the baseboard management controller and guides backup settings to guarantee the stable operation of customer services.

[0031] In summary, this invention uses a separate EEPROM chip to store BIOS and BMC configurations. This chip can interact with the BMC Web interface, adding options to save BIOS and BMC configurations to the EEPROM. In case of configuration loss, historical configurations can be retrieved from the EEPROM, ensuring correct service operation. This solution provides double insurance for BMC in extreme situations, ensuring normal recovery and booting in case of BMC anomalies, and allowing configuration recovery in case of loss. The BMC periodically compares its current configuration with the configuration in the EEPROM to prompt maintenance personnel whether to save the configuration to the EEPROM as a backup, preventing updates from going unnoticed. Furthermore, in extreme situations, this invention uses a hardware + software design to ensure the normal recovery of the BMC and boots backup settings to guarantee stable operation of customer services.

[0032] Beneficial effects: This invention controls the Flash chip select signal by adding an external switch, allowing manual switching of the boot Flash of the baseboard management controller in extreme cases. This ensures that in the event of an extreme baseboard management controller hang, it can be manually forced to restart from the backup Flash. During normal operation, the configuration inside the baseboard management controller can be saved to an independent electrically erasable programmable read-only memory (EEPROM), and any changes can be synchronized promptly. In case of abnormal situations, the backup configuration can be exported from the EEPROM, greatly reducing the risk of service failure due to lost or unclear configuration. This solves the problem of situations where manually forcibly restarting the baseboard management controller fails to restore its normal operation when it hangs abnormally, and guides the backup settings to ensure the stable operation of customer services.

[0033] See Figure 4 As shown, an embodiment of the present invention provides a recovery device for a board management controller after it has been suspended, comprising: The switch control module 11 is used to control the first logic switch to connect the target chip select signal in the substrate management controller with the second flash memory if a non-hardware fault occurs in the first flash memory during the operation of the substrate management controller, so that the substrate management controller can start and recover based on the second flash memory. The configuration information storage module 12 is used to store the configuration information of the basic input / output system and the baseboard management controller to a power erasable programmable read-only memory connected to the baseboard management controller, so that when the baseboard management controller restarts, it can start up accordingly based on the configuration information in the power erasable programmable read-only memory. The first logic switch is a logic switch located between the chip select signals that connect the first Flash, the second Flash, and the substrate management controller.

[0034] Since the embodiments of the device part correspond to the embodiments described above, please refer to the embodiments described in the method part for the embodiments of the device part, and will not be repeated here.

[0035] Beneficial effects: This invention controls the Flash chip select signal by adding an external switch, allowing manual switching of the boot Flash of the baseboard management controller in extreme cases. This ensures that in the event of an extreme baseboard management controller hang, it can be manually forced to restart from the backup Flash. During normal operation, the configuration inside the baseboard management controller can be saved to an independent electrically erasable programmable read-only memory (EEPROM), and any changes can be synchronized promptly. In case of abnormal situations, the backup configuration can be exported from the EEPROM, greatly reducing the risk of service failure due to lost or unclear configuration. This solves the problem of situations where manually forcibly restarting the baseboard management controller fails to restore its normal operation when it hangs abnormally, and guides the backup settings to ensure the stable operation of customer services.

[0036] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. Specifically, the electronic device may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the recovery method after the baseboard management controller is hung, as disclosed in any of the foregoing embodiments. Furthermore, the electronic device in this embodiment may specifically be a computer.

[0037] In this embodiment, the power supply 23 is used to provide operating voltage for various hardware devices on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0038] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0039] The operating system 221 is used to manage and control the various hardware devices on the electronic device and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the board management controller hang-up recovery method disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0040] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned method for recovering a board management controller after it has been suspended. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0041] Furthermore, this application also discloses a computer program product, including a computer program / instructions; wherein, when the computer program / instructions are executed by a processor, they implement the aforementioned method for recovering a board management controller after it has been suspended. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0042] 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. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0043] 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 implementation should not be considered beyond the scope of this application.

[0044] 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.

[0045] 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.

[0046] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for recovering a baseboard management controller after it has been suspended, characterized in that, include: If a non-hardware fault occurs in the first Flash during the operation of the baseboard management controller, the second logic switch controls the first logic switch to connect the target chip select signal in the baseboard management controller with the second Flash, so that the baseboard management controller can start and recover based on the second Flash. The configuration information of the basic input / output system and the baseboard management controller is stored in a electrically erasable programmable read-only memory connected to the baseboard management controller, so that when the baseboard management controller restarts, it can start up accordingly based on the configuration information in the electrically erasable programmable read-only memory; The first logic switch is a logic switch located between the chip select signals that connect the first Flash, the second Flash, and the substrate management controller.

2. The method for recovering a board management controller after it has been suspended according to claim 1, characterized in that, Also includes: If the second logic switch is disconnected, the baseboard management controller is started based on the first Flash.

3. The method for recovering a board management controller after it has been suspended according to claim 1, characterized in that, Before storing the configuration information of the basic input / output system and the baseboard management controller into the electrically erasable programmable read-only memory connected to the baseboard management controller, the method further includes: The electrically erasable programmable read-only memory is connected to the baseboard management controller via a serial communication bus.

4. The method for recovering a board management controller after it has been suspended according to claim 1, characterized in that, The step of storing the configuration information of the basic input / output system and the baseboard management controller into a electrically erasable programmable read-only memory connected to the baseboard management controller includes: Add operable options to the web page of the substrate management controller; the operable options include the option to synchronize the configuration information of the basic input / output system to the electrically erasable programmable read-only memory, the option to synchronize the configuration information of the substrate management controller to the electrically erasable programmable read-only memory, the option to start based on the configuration information of the basic input / output system in the electrically erasable programmable read-only memory, and the option to import the configuration information of the substrate management controller. After the customer's business is running normally, the configuration information of the current basic input / output system is saved to the electrically erasable programmable read-only memory connected to the baseboard management controller through the option of synchronizing the configuration information of the basic input / output system to the electrically erasable programmable read-only memory. After the substrate management controller stabilizes, the configuration information of the current substrate management controller is saved to the electrically erasable programmable read-only memory connected to the substrate management controller based on the configuration information of the synchronous substrate management controller.

5. The method for recovering a board management controller after it has been suspended according to claim 4, characterized in that, When the baseboard management controller restarts, it performs a corresponding startup based on the configuration information in the electrically erasable programmable read-only memory, including: When the baseboard management controller restarts, it starts the basic input / output system according to the configuration information of the basic input / output system in the electrically erasable programmable read-only memory, and starts it according to the current configuration information of the baseboard management controller in the electrically erasable programmable read-only memory.

6. The method for recovering a board management controller after it has been suspended according to any one of claims 1 to 5, characterized in that, Also includes: Based on the target period, the configuration information stored inside the baseboard management controller is compared with the configuration information stored in the electrically erasable programmable read-only memory to obtain the corresponding judgment result; Based on the judgment result, perform corresponding operations on the electrically erasable programmable read-only memory.

7. The method for recovering a board management controller after it has been suspended according to claim 6, characterized in that, The step of performing corresponding operations on the electrically erasable programmable read-only memory based on the determination result includes: If the configuration information stored inside the substrate management controller is the same as the configuration information stored in the electrically erasable programmable read-only memory, no operation is performed; If the configuration information stored inside the substrate management controller is different from the configuration information stored in the electrically erasable programmable read-only memory, an alarm message is triggered so that it can be manually determined whether to synchronize the configuration information stored inside the substrate management controller to the electrically erasable programmable read-only memory based on the alarm message.

8. A recovery device for a board management controller after it is suspended, characterized in that, include: The switch control module is used to control the first logic switch to connect the target chip select signal in the baseboard management controller with the second flash memory if a non-hardware fault occurs in the first flash memory during the operation of the baseboard management controller, so that the baseboard management controller can start and recover based on the second flash memory. A configuration information storage module is used to store the configuration information of the basic input / output system and the baseboard management controller to a electrically erasable programmable read-only memory connected to the baseboard management controller, so that when the baseboard management controller restarts, it can start up accordingly based on the configuration information in the electrically erasable programmable read-only memory; The first logic switch is a logic switch located between the chip select signals that connect the first Flash, the second Flash, and the substrate management controller.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the method for recovering a board management controller after it has been suspended, as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the recovery method for a board management controller after it has been suspended, as described in any one of claims 1 to 7.