Server remote debugging system, method, device, apparatus and storage medium

By disconnecting the RGMII bus connection between the BMC and the PFR CPLD, and using the PFR CPLD to read the latest IP address to establish communication, the firmware upgrade or recovery of the BMC Flash chip can be remotely controlled, solving the maintenance difficulties when the BMC network port is not working, and improving the maintainability of the server and the customer experience.

CN117591143BActive Publication Date: 2026-11-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311402385.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2026-11-24
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

During server maintenance, if the BMC network port is not connected, remote access is impossible, which can lead to BMC firmware corruption or abnormalities that cannot be upgraded or restored, resulting in maintenance difficulties and a poor customer experience.

Method used

By disconnecting the RGMII bus connection between the BMC and the PFR CPLD, the PFR CPLD reads the latest IP address of the BMC, establishes RJ45 network communication, and remotely debugs the device to control the BMC Flash chip for firmware upgrades or recovery.

Benefits of technology

This enables remote control of firmware upgrades or recovery of the BMC Flash chip when the BMC network port is unavailable, improving server maintainability, enhancing customer experience, and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117591143B_ABST
    Figure CN117591143B_ABST
Patent Text Reader

Abstract

This application provides a server remote debugging system, method, apparatus, device, and storage medium, relating to the field of server technology. The system includes: a BMC, a PFR CPLD, a PHY chip, a network transformer, an RJ45 network port, a BMC Flash chip, and a remote debugging device. The BMC and PFR CPLD are connected via an RGMII bus, as are the PFR CPLD and the PHY chip. The PFR CPLD is used to read the latest IP address of the BMC in the UFM when communication between the BMC and the PHY chip is abnormal, establish a communication connection with the RJ45 network port based on the latest IP address, upload the cause of the communication abnormality to the remote debugging device, and control the BMC Flash chip to perform firmware upgrades or recovery based on remote modulation commands. This enables remote control of the firmware upgrade or recovery of the BMC Flash chip when the BMC network port is unavailable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and in particular to a server remote debugging system, method, apparatus, device and storage medium. Background Technology

[0002] With the development of IoT, big data, and AI technologies, servers are playing an increasingly important role. The main chips on a server motherboard include the Baseboard Management Controller (BMC), Intel's Integrated Southbridge (PCH), and Complex Programmable Logic Devices (CPLDs). While CPLDs are hardware-programmable and highly stable, the BMC and PCH are software-programmable, making them more prone to firmware corruption, process crashes, and hangs. These issues account for a significant proportion of server maintenance problems in the later stages of development.

[0003] The BMC firmware includes a static region and a dynamic region. The static region is normally unmodifiable, while the dynamic region stores configuration information and can be modified. The CPLD only verifies the static region and not the dynamic region. However, abnormal data in the dynamic region can still affect the normal operation of the BMC.

[0004] Users are currently experiencing a situation where the BMC (Browser Management Center) is functioning correctly and starting up, but abnormal dynamic area data causes it to malfunction. Since there is only one communication path between the BMC and the RJ45 network port, when the BMC malfunctions, the network port becomes inaccessible, preventing login to the BMC network (Web) and remote access to the server via Internet Protocol (IP). In this case, upgrading the BMC firmware or restoring the BMC version is necessary to resolve the issue. However, upgrading the BMC firmware requires logging into the BMC Web and actively restoring the BMC version, which in turn requires the BMC's network port to be functional. Therefore, the current situation presents a deadlock, with no available remote maintenance methods, causing significant inconvenience for operations and maintenance personnel and resulting in a poor customer experience. Summary of the Invention

[0005] The purpose of this application is to provide a server remote debugging system, method, apparatus, device, and storage medium for remotely controlling the firmware upgrade or recovery of the BMC Flash chip when the BMC network port is unavailable, thereby improving server maintainability, ensuring normal server operation, improving customer experience, and reducing maintenance costs.

[0006] In a first aspect, this application provides a server remote debugging system, including a baseboard management controller (BMC), a platform firmware protection and recovery complex programmable logic device (CPLD), a physical layer PHY chip, a network transformer, an RJ45 network port, a baseboard management controller flash memory chip (BMC Flash chip), and a remote debugging device; wherein, the BMC and the PFR CPLD are connected via a reduced gigabit media independent interface (RGMII) bus, the PHY chip and the network transformer are connected via a media dependent interface (MDI) bus, and the network transformer is communicatively connected to the RJ45 network port;

[0007] The PFR CPLD is used to disconnect the RGMII bus connection between the BMC and the PHY chip in the event of a communication anomaly between the BMC and the PHY chip, read the latest IP address of the BMC stored in the user flash memory (UFM) of the PFR CPLD, establish a communication connection with the RJ45 network port based on the latest IP address, upload the cause of the communication anomaly to the remote debugging device, and control the BMC Flash chip to perform firmware upgrade or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly.

[0008] Optionally, the PFR CPLD is further configured to, when the BMC starts normally, transmit and listen to the RGMII signal on the RGMII bus between the BMC and the PHY chip, store the latest IP address of the BMC in the UFM, and determine whether there is a communication abnormality between the BMC and the PHY chip based on the RGMII signal, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

[0009] Optionally, the PFR CPLD is further configured to, in the event of a BMC startup anomaly, disconnect the RGMII bus connection between the BMC and the PFR CPLD, read the latest IP address of the BMC stored in the UFM of the PFR CPLD, establish a communication connection with the RJ45 network port based on the latest IP address, upload the BMC startup anomaly information to the remote debugging device, and control the BMC Flash chip to perform firmware upgrade or recovery based on the second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly information.

[0010] Optionally, the PFR CPLD is also used to receive a check value sent by the BMC, and determine whether the BMC has started normally based on the check value.

[0011] Secondly, this application also provides a server remote debugging method applied to a PFR CPLD, the method comprising:

[0012] In the event of a communication failure between the BMC and the PHY chip, disconnect the RGMII bus connection between the BMC and the PFR CPLD;

[0013] Read the latest IP address of the BMC stored in the UFM of the PFR CPLD;

[0014] A communication connection is established with the RJ45 network port based on the latest IP address;

[0015] Upload the cause of the communication anomaly to the remote debugging device;

[0016] Based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly, the BMC Flash chip is controlled to perform firmware upgrade or recovery.

[0017] Optionally, it also includes:

[0018] When the BMC starts up normally, the RGMII signal on the RGMII bus between the BMC and the PHY chip is transmitted and monitored.

[0019] Store the latest IP address of the BMC into the UFM;

[0020] Based on the RGMII signal, determine whether there is a communication abnormality between the BMC and the PHY chip, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

[0021] Optionally, it also includes:

[0022] In the event of a BMC startup error, disconnect the RGMII bus connection between the BMC and the PFR CPLD;

[0023] Read the latest IP address of the BMC stored in the UFM of the PFR CPLD;

[0024] A communication connection is established with the RJ45 network port based on the latest IP address;

[0025] The information regarding the BMC startup error is uploaded to the remote debugging device;

[0026] Based on the second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly, the BMC Flash chip is controlled to perform firmware upgrade or recovery.

[0027] Optionally, it also includes:

[0028] Receive the verification value sent by the BMC;

[0029] The BMC is determined to be running normally based on the verification value.

[0030] Thirdly, this application also provides a server remote debugging device, comprising:

[0031] The disconnect module is used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication failure between the BMC and the PHY chip.

[0032] The reading module is used to read the latest IP address of the BMC stored in the UFM of the PFR CPLD;

[0033] A module is established to create a communication connection with the RJ45 network port based on the latest IP address.

[0034] The upload module is used to upload the cause of the communication anomaly to the remote debugging device;

[0035] The control module is used to control the BMC Flash chip to perform firmware upgrades or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly.

[0036] Fourthly, this application also provides a PFR CPLD, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the server remote debugging method as described in any of the second aspects above.

[0037] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the server remote debugging method as described in any of the second aspects above.

[0038] Sixthly, this application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the server remote debugging method as described in any of the second aspects above.

[0039] This application provides a server remote debugging system, method, apparatus, device, and storage medium. The system includes: a BMC, a PFR CPLD, a PHY chip, a network transformer, an RJ45 network port, a BMC Flash chip, and a remote debugging device. The BMC and PFR CPLD are connected via an RGMII bus, as are the PFR CPLD and the PHY chip. The PHY chip and network transformer are connected via an MDI bus, and the network transformer is connected to the RJ45 network port for communication. This establishes a hardware path between the PFR CPLD and the PHY chip, thereby establishing a hardware path between the PFR CPLD and the RJ45 network port. The PFR CPLD is used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in case of communication failure between the BMC and the PHY chip. Since the BMC and PFR CPLD, as well as the PFR CPLD and the PHY chip are connected via an RGMII bus, after disconnecting the RGMII bus connection between the BMC and the PFR CPLD, the PFR CPLD can take over RGMII communication. Then, the PFR CPLD is read... The latest IP address of the BMC stored in the CPLD's UFM can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection is established with the RJ45 network port based on the latest IP address, and the cause of the communication failure is uploaded to the remote debugging device. Based on the first remote modulation command issued by the remote debugging device for the cause of the communication failure, the firmware of the BMC Flash chip is controlled to be upgraded or restored. This enables remote control of the firmware upgrade or restoration of the BMC Flash chip when the BMC network port is not available, thereby improving the maintainability of the server, ensuring the normal use of the server, improving the customer experience, and reducing maintenance costs. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in this application 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 some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 A schematic diagram of the PCH / BMC SPI topology provided for related technologies;

[0042] Figure 2 A schematic diagram of the BMC network topology provided for related technologies;

[0043] Figure 3 This is a schematic diagram of the server remote debugging system provided in an embodiment of this application;

[0044] Figure 4 This is one of the flowcharts illustrating the server remote debugging method provided in the embodiments of this application;

[0045] Figure 5 This is a second schematic flowchart of the server remote debugging method provided in the embodiments of this application;

[0046] Figure 6 This is a schematic diagram of the server remote debugging device provided in the embodiments of this application;

[0047] Figure 7 This is a schematic diagram of the structure of the PFR CPLD provided in the embodiments of this application. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0049] The terms "first," "second," etc., used in this application's specification are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, in the specification, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.

[0050] With the development of IoT, big data, and AI technologies, servers are playing an increasingly important role. The server industry has matured, and almost all manufacturers' server products can meet customer functional requirements. The introduction of PFR (Property Management Frame) functionality further enhances server security and ease of use. In this environment, how to innovate and improve server maintainability has become a key research focus for server manufacturers, aiming to provide customers with a better experience while reducing maintenance costs and increasing product competitiveness.

[0051] The main chips on a server motherboard include the BMC, PCH, and CPLD. CPLD is hardware-programmable and has high stability, but the BMC and PCH are software-programmable and are relatively more prone to firmware corruption, process crashes, and process hangs. These issues account for a large proportion of server maintenance problems in the later stages.

[0052] The Baseboard Management Controller (BMC) is used to manage the entire server. Users can manage the server through a web interface using the BMC's remote network management function. Before the introduction of PFR (Programmable Frame Recovery) functionality, when the BMC encountered problems (such as firmware corruption, process crashes, or process hangs), remote debugging was unavailable, requiring maintenance personnel to conduct on-site debugging in the customer's data center. With the introduction of PFR, a CPLD (Continuous Circuit-Based Logic Controller) is used as the core of the entire PFR technology. The CPLD can upgrade and restore the BMC's flash image after detecting firmware corruption, thus solving the problem of being unable to remotely debug the BMC when its firmware is completely corrupted.

[0053] like Figure 1 The diagram shows the current hardware link design for PFR: The CPLD and PCH can access the PCH Flash in a time-sharing manner via MUX0, and the CPLD and BMC can access the BMC Flash in a time-sharing manner via MUX1. However, there is no direct communication link between the BMC and PCH for each other's Flash; data transfer between SPI Flash instances can only be achieved through the CPLD. Therefore, in the current topology, under the condition of meeting upgrade / recovery requirements, the PFR CPLD is capable of performing BMC firmware upgrades and recovery.

[0054] Figure 1In this context, BIOS stands for Basic Input Output System, ME for Management Engine, Flash for Flash Memory, SPI for Serial Peripheral Interface, PCH SPI Signal for PCH SPI Signal, MUX for Multiplexer, MUX 2to 1 for 2-to-1 Multiplexer, Sel for Switching Signal, Master for Control, Select Pin for Selection, In for Input, and Out for Output.

[0055] Intel's current PFR solution has solved some maintainability issues and has been recognized by customers, but the following problems still exist: The BMC firmware includes a static area and a dynamic area. The static area is not modified under normal circumstances, while the dynamic area stores configuration information and can be modified; CPLD only verifies the static area and does not verify the dynamic area, but when the dynamic area data is abnormal, it will also affect the normal operation of the BMC.

[0056] like Figure 2 As shown, the BMC is directly connected to the Physical Layer (PHY) chip and ultimately to the RJ45 network port. Currently, users are experiencing a situation where the BMC checks out normally and starts running, but abnormal dynamic area data causes the BMC to malfunction. Since there is only one communication path between the BMC and the RJ45 network port, when the BMC malfunctions, the network port becomes inaccessible, preventing login to the BMC Web interface and remote access to the server via IP. In this case, upgrading the BMC firmware or restoring the BMC version is required to resolve the issue. However, upgrading the BMC firmware requires logging into the BMC Web interface and actively restoring the BMC version, which in turn requires the BMC's network port to be functional. Therefore, the current situation presents a deadlock, with no available remote maintenance methods, causing significant inconvenience for operations and maintenance and resulting in a poor customer experience.

[0057] Based on this, this application provides a server remote debugging system, including: a BMC, a PFR CPLD, a PHY chip, a network transformer, an RJ45 network port, a BMC Flash chip, and a remote debugging device; wherein, the BMC and PFR CPLD are connected via an RGMII bus, and the PFR CPLD and PHY chip are connected via an MDI bus, and the network transformer is connected to the RJ45 network port for communication, which can establish a hardware path between the PFR CPLD and the PHY chip, thereby establishing a hardware path between the PFR CPLD and the RJ45 network port; the PFR CPLD is used to disconnect the RGMII bus connection between the BMC and PFR CPLD in the event of an abnormal communication between the BMC and the PHY chip. Since the BMC and PFR CPLD and the PFR CPLD and PHY chip are connected via an RGMII bus, after disconnecting the RGMII bus connection between the BMC and PFR CPLD, the PFR CPLD can take over the RGMII communication; then, the user flash memory of the PFR CPLD is read. The latest IP address of the BMC stored in the Memory (UFM) can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection with the RJ45 network port is established based on the latest IP address, and the cause of the communication failure is uploaded to the remote debugging device. Based on the first remote modulation command issued by the remote debugging device for the cause of the communication failure, the firmware of the BMC Flash chip is controlled to be upgraded or restored. This can realize remote control of the firmware upgrade or restoration of the BMC Flash chip when the BMC network port is not available, thereby improving the maintainability of the server, ensuring the normal use of the server, improving the customer experience, and reducing maintenance costs.

[0058] The following is in conjunction with the appendix Figure 3 The server remote debugging system provided in the embodiments of this application will be described in detail.

[0059] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the server remote debugging system provided in an embodiment of this application. Figure 3 As shown, the system includes: BMC1, PFR CPLD2, PHY chip 3, network transformer 4, RJ45 network port 5, BMC Flash chip 6, and remote debugging device 7; wherein, BMC1 and PFR CPLD2 are connected to each other and PFR CPLD2 and PHY chip 3 through RGMII bus, PHY chip 3 and network transformer 4 are connected through MDI bus, and network transformer 4 is communicatively connected to RJ45 network port 5.

[0060] Since PFR CPLD2 and PHY chip 3 are connected via RGMII bus, PHY chip 3 and network transformer 4 are connected via MDI bus, and network transformer 4 is connected to RJ45 network port 5, the hardware path between PFR CPLD2 and PHY chip 3 can be opened, thereby opening the hardware path between PFR CPLD2 and RJ45 network port 5.

[0061] In the event of a communication failure between BMC1 and PHY chip 3, PFR CPLD2 can disconnect the RGMII bus connection between BMC1 and PFR CPLD2, thus shielding the abnormal data sent by BMC1.

[0062] Since BMC1 and PFR CPLD2 are connected via the RGMII bus, and PFR CPLD2 and PHY chip 3 are connected via the RGMII bus, PFR CPLD2 can take over the RGMII communication after disconnecting the RGMII bus connection between BMC1 and PFR CPLD2.

[0063] Next, the latest IP address of BMC1 stored in the UFM of PFR CPLD2 is read. When PFR CPLD2 takes over RGMII communication, the latest IP address of BMC1 can be used, thereby achieving a seamless switch of the latest IP address from BMC1 to PFR CPLD2.

[0064] Then, a communication connection is established with RJ45 network port 5 based on the latest IP address. The cause of the communication anomaly is uploaded to remote debugging device 7. Based on the first remote modulation command issued by remote debugging device 7 in response to the cause of the communication anomaly, the BMC Flash chip 6 is controlled to perform firmware upgrade or recovery. The cause of the communication anomaly may be BMC1 failure, RGMII bus failure, etc.

[0065] It enables remote control of the firmware upgrade or recovery of the BMC Flash chip 6 when the BMC network port is unavailable, thereby improving server maintainability, ensuring normal server operation, improving customer experience, and reducing maintenance costs.

[0066] The server remote debugging system provided in this application includes: a BMC, a PFR CPLD, a PHY chip, a network transformer, an RJ45 network port, a BMC Flash chip, and a remote debugging device. The BMC and PFR CPLD are connected via an RGMII bus, as are the PFR CPLD and the PHY chip. The PHY chip and network transformer are connected via an MDI bus, and the network transformer is connected to the RJ45 network port for communication. This establishes a hardware path between the PFR CPLD and the PHY chip, thereby establishing a hardware path between the PFR CPLD and the RJ45 network port. The PFR CPLD is used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in case of communication failure between them. Since the BMC and PFR CPLD, as well as the PFR CPLD and the PHY chip, are connected via an RGMII bus, the PFR CPLD can take over RGMII communication after disconnecting the RGMII bus connection between the BMC and the PFR CPLD. Then, the PFR CPLD is read... The latest IP address of the BMC stored in the CPLD's UFM can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection is established with the RJ45 network port based on the latest IP address, and the cause of the communication failure is uploaded to the remote debugging device. Based on the first remote modulation command issued by the remote debugging device for the cause of the communication failure, the firmware of the BMC Flash chip is controlled to be upgraded or restored. This enables remote control of the firmware upgrade or restoration of the BMC Flash chip when the BMC network port is not available, thereby improving the maintainability of the server, ensuring the normal use of the server, improving the customer experience, and reducing maintenance costs.

[0067] In one example embodiment, PFR CPLD2 is also used to transmit and listen to the RGMII signal on the RGMII bus between BMC1 and PHY chip 3 when BMC1 starts up normally, and store the latest IP address of BMC1 in the UFM of PFRCPLD2. Based on the RGMII signal, it determines whether there is a communication abnormality between BMC1 and PHY chip 3 and the reason for the communication abnormality when there is a communication abnormality between BMC1 and PHY chip 3.

[0068] Specifically, PFR CPLD2, under normal startup conditions, can continuously monitor the RGMII signal on the RGMII bus between BMC1 and PHY chip 3. If no data is transmitted by BMC1 in the RGMII signal, it indicates a communication anomaly between BMC1 and PHY chip 3, caused by a BMC1 malfunction. If the data transmitted by BMC1 in the RGMII signal is abnormal, it indicates a communication anomaly between BMC1 and PHY chip 3, caused by an RGMII bus malfunction. If the data transmitted by BMC1 in the RGMII signal is normal, it indicates normal communication between BMC1 and PHY chip 3.

[0069] Furthermore, when BMC1 starts up normally, PFR CPLD2 needs to continuously monitor BMC1's latest IP address because BMC1's IP address is dynamic. If BMC1's IP address changes, the latest IP address is stored in PFR CPLD2's UFM. This allows PFR CPLD2 to use BMC1's latest IP address when taking over RGMII communication, thus achieving a seamless switchover of the latest IP address from BMC1 to PFR CPLD2.

[0070] In this embodiment, when the BMC starts normally, the PFR CPLD transmits and listens to the RGMII signal on the RGMII bus between the BMC and the PHY chip. Based on the RGMII signal, it can determine whether there is a communication abnormality between the BMC and the PHY chip, and if so, the cause of the communication abnormality. Furthermore, when the BMC starts normally, the PFR CPLD continuously listens to the latest IP address of the BMC and stores it in the PFR CPLD's UFM. This latest IP address can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD.

[0071] In one example embodiment, PFR CPLD2 is also used to disconnect the RGMII bus connection between BMC1 and PFR CPLD2 in the event of a BMC1 startup anomaly, read the latest IP address of BMC1 stored in the UFM of PFR CPLD2, establish a communication connection with RJ45 network port 5 based on the latest IP address, upload the BMC startup anomaly information to remote debugging device 7, and control BMC Flash chip 6 to perform firmware upgrade or recovery based on the second remote modulation command issued by remote debugging device 7 in response to the BMC1 startup anomaly information.

[0072] Specifically, PFR CPLD2 can disconnect the RGMII bus connection between BMC1 and PFR CPLD2 in the event of an abnormal startup of BMC1, thus shielding the abnormal data sent by BMC1.

[0073] Since BMC1 and PFR CPLD2 are connected via the RGMII bus, and PFR CPLD2 and PHY chip 3 are connected via the RGMII bus, PFR CPLD2 can take over the RGMII communication after disconnecting the RGMII bus connection between BMC1 and PFR CPLD2.

[0074] Next, the latest IP address of BMC1 stored in the UFM of PFR CPLD2 is read. When PFR CPLD2 takes over RGMII communication, the latest IP address of BMC1 can be used, thereby achieving a seamless switch of the latest IP address from BMC1 to PFR CPLD2.

[0075] Then, a communication connection is established with RJ45 network port 5 based on the latest IP address, and the information of BMC1 startup failure is uploaded to remote debugging device 7. Based on the second remote modulation command issued by remote debugging device 7 in response to the information of BMC1 startup failure, the firmware of BMC Flash chip 6 is controlled to be upgraded or restored.

[0076] It can remotely control the firmware upgrade or recovery of BMC Flash chip 6 when BMC1 fails to start, thereby improving server maintainability, ensuring normal server operation, improving customer experience, and reducing maintenance costs.

[0077] In this embodiment, when the BMC startup is abnormal, the PFR CPLD disconnects the RGMII bus connection between the BMC and the PFR CPLD. Since the BMC and PFR CPLD, and the PFR CPLD and PHY chip are both connected via the RGMII bus, the PFR CPLD can take over RGMII communication after disconnecting the RGMII bus connection between the BMC and the PFR CPLD. Next, the latest IP address of the BMC stored in the UFM of the PFR CPLD is read. This latest IP address can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection is established with the RJ45 network port based on the latest IP address, and the BMC startup abnormality information is uploaded to the remote debugging device. Based on the second remote modulation command issued by the remote debugging device in response to the BMC startup abnormality information, the BMC Flash chip is controlled to perform firmware upgrades or recovery. This enables remote control of the BMC when a startup abnormality occurs. Firmware upgrades or recovery of Flash chips can improve server maintainability, ensure normal server operation, enhance customer experience, and reduce maintenance costs.

[0078] In one example embodiment, PFR CPLD2 is also used to receive a check value sent by BMC1 and determine whether BMC1 has started normally based on the check value.

[0079] Specifically, PFR CPLD2 receives the checkpoint sent by BMC1 and determines the working status of BMC1 based on the checkpoint. The working status of BMC1 includes normal BMC1 startup and abnormal BMC1 startup.

[0080] In this embodiment, the PFR CPLD can determine whether the BMC has started normally by using the verification value issued by the BMC.

[0081] The following is in conjunction with the appendix Figure 4 and 5 The server remote debugging method provided in this application will be described in detail through specific embodiments and application scenarios.

[0082] Please refer to Figure 4 , Figure 4 This is one of the flowcharts illustrating the server remote debugging method provided in this application embodiment. This method is applied to PFR CPLDs, such as... Figure 4 As shown, the method may include the following steps:

[0083] Step 401: In the event of an abnormal communication between the BMC and the PHY chip, disconnect the RGMII bus connection between the BMC and the PFR CPLD;

[0084] Step 402: Read the latest IP address of the BMC stored in the UFM of the PFR CPLD;

[0085] Step 403: Establish a communication connection with the RJ45 network port based on the latest IP address;

[0086] Step 404: Upload the cause of the communication error to the remote debugging device;

[0087] Step 405: Based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly, control the BMC Flash chip to perform firmware upgrade or recovery.

[0088] In step 401, if the communication between the BMC and the PHY chip is abnormal, the PFR CPLD disconnects the RGMII bus connection between the BMC and the PFR CPLD. Since the BMC and the PFR CPLD, as well as the PFR CPLD and the PHY chip, are both connected via the RGMII bus, the PFR CPLD can take over RGMII communication after disconnecting the RGMII bus connection between the BMC and the PFR CPLD.

[0089] In steps 402 and 403, the PFR CPLD reads the latest IP address of the BMC stored in the UFM of the PFR CPLD and establishes a communication connection with the RJ45 network port based on the latest IP address. The latest IP address of the BMC can be used when the PFR CPLD takes over the RGMII communication, thereby achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD.

[0090] In steps 404 and 405, the PFR CPLD uploads the cause of the communication anomaly to the remote debugging device. The remote debugging device then issues a first remote modulation command to the PFR CPLD based on the cause of the communication anomaly. The PFR CPLD controls the BMC Flash chip to perform firmware upgrades or recovery based on the first remote modulation command. The cause of the communication anomaly can be a BMC1 fault, an RGMII bus fault, etc.

[0091] It enables remote control of firmware upgrades or recovery of the BMC Flash chip when the BMC network port is unavailable, thereby improving server maintainability, ensuring normal server operation, improving customer experience, and reducing maintenance costs.

[0092] The server remote debugging method provided in this embodiment firstly disconnects the RGMII bus connection between the BMC and PHY chip when communication between the PFR CPLD and the BMC is abnormal. Since both the BMC and PFR CPLD and the PFR CPLD and PHY chip are connected via the RGMII bus, the PFR CPLD can take over RGMII communication after disconnecting the RGMII bus connection between the BMC and PFR CPLD. Next, the latest IP address of the BMC stored in the UFM of the PFR CPLD is read. This latest IP address can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection is established with the RJ45 network port based on the latest IP address. The reason for the communication abnormality is uploaded to the remote debugging device. Based on the first remote modulation command issued by the remote debugging device in response to the reason for the communication abnormality, the firmware of the BMC Flash chip is upgraded or restored. This allows for remote control of the BMC even when the BMC network port is unavailable. Firmware upgrades or recovery of Flash chips can improve server maintainability, ensure normal server operation, enhance customer experience, and reduce maintenance costs.

[0093] In one example embodiment, the method further includes: when the BMC starts normally, transmitting and listening to the RGMII signal on the RGMII bus between the BMC and the PHY chip; storing the latest IP address of the BMC in the UFM; and determining, based on the RGMII signal, whether there is a communication abnormality between the BMC and the PHY chip, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

[0094] Specifically, the PFR CPLD can, under normal BMC startup conditions, continuously monitor the RGMII signal on the RGMII bus between the BMC and the PHY chip. If no data is transmitted by the BMC in the RGMII signal, it indicates a communication anomaly between the BMC and the PHY chip, caused by a BMC1 fault. If the data transmitted by the BMC in the RGMII signal is abnormal, it indicates a communication anomaly between the BMC and the PHY chip, caused by an RGMII bus fault. If the data transmitted by the BMC in the RGMII signal is normal, it indicates normal communication between the BMC and the PHY chip.

[0095] Furthermore, when the BMC starts normally, the PFR CPLD needs to continuously monitor the BMC's IP address, as the BMC's IP address is dynamic. If the BMC's IP address changes, the latest IP address is stored in the PFR CPLD's UFM. This allows the PFR CPLD to use the latest BMC IP address when taking over RGMII communication, thus achieving a seamless switchover of the latest IP address from the BMC to the PFR CPLD.

[0096] In this embodiment, when the BMC starts normally, the PFR CPLD transmits and listens to the RGMII signal on the RGMII bus between the BMC and the PHY chip. Based on the RGMII signal, it can determine whether there is a communication abnormality between the BMC and the PHY chip, and if so, the cause of the communication abnormality. Furthermore, when the BMC starts normally, the PFR CPLD continuously listens to the latest IP address of the BMC and stores it in the PFR CPLD's UFM. This latest IP address can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD.

[0097] In one example embodiment, the method further includes: disconnecting the RGMII bus connection between the BMC and the PFRCPLD in the event of a BMC startup anomaly; reading the latest IP address of the BMC stored in the UFM of the PFRCPLD; establishing a communication connection with the RJ45 network port based on the latest IP address; uploading the BMC startup anomaly information to a remote debugging device; and controlling the BMC Flash chip to perform firmware upgrade or recovery based on a second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly information.

[0098] Specifically, the PFR CPLD can disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a BMC startup abnormality, thus shielding the abnormal data sent by the BMC.

[0099] Since the BMC and PFR CPLD are connected via the RGMII bus, and the PFR CPLD is connected to the PHY chip, the PFR CPLD can take over the RGMII communication after the RGMII bus connection between the BMC and PFR CPLD is disconnected.

[0100] Next, the latest IP address of the BMC stored in the UFM of the PFR CPLD is read. The latest IP address of the BMC can be used when the PFR CPLD takes over RGMII communication, thereby achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD.

[0101] Then, a communication connection is established with the RJ45 network port based on the latest IP address, and the information of BMC startup error is uploaded to the remote debugging device. Based on the second remote modulation command issued by the remote debugging device in response to the BMC startup error information, the BMC Flash chip is controlled to perform firmware upgrade or recovery.

[0102] It enables remote control of the firmware upgrade or recovery of the BMC Flash chip when the BMC startup is abnormal, thereby improving server maintainability, ensuring normal server operation, improving customer experience, and reducing maintenance costs.

[0103] In this embodiment, when the BMC startup is abnormal, the PFR CPLD disconnects the RGMII bus connection between the BMC and the PFR CPLD. Since the BMC and PFR CPLD, and the PFR CPLD and PHY chip are both connected via the RGMII bus, the PFR CPLD can take over RGMII communication after disconnecting the RGMII bus connection between the BMC and the PFR CPLD. Next, the latest IP address of the BMC stored in the UFM of the PFR CPLD is read. This latest IP address can be used when the PFR CPLD takes over RGMII communication, thus achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Then, a communication connection is established with the RJ45 network port based on the latest IP address, and the BMC startup abnormality information is uploaded to the remote debugging device. Based on the second remote modulation command issued by the remote debugging device in response to the BMC startup abnormality information, the BMC Flash chip is controlled to perform firmware upgrades or recovery. This enables remote control of the BMC when a startup abnormality occurs. Firmware upgrades or recovery of Flash chips can improve server maintainability, ensure normal server operation, enhance customer experience, and reduce maintenance costs.

[0104] In one example embodiment, the method further includes: receiving a verification value sent by the BMC; and determining whether the BMC has started normally based on the verification value.

[0105] Specifically, the PFR CPLD receives the checkpoint value sent by the BMC and determines the working status of the BMC based on the checkpoint value. The working status of the BMC includes normal BMC startup and abnormal BMC startup.

[0106] In this embodiment, the PFR CPLD can determine whether the BMC has started normally by using the verification value issued by the BMC.

[0107] To better understand the server remote debugging method provided in the embodiments of this application, specific embodiments are described below.

[0108] Please refer to Figure 5 , Figure 5 This is a second schematic flowchart of the server remote debugging method provided in the embodiments of this application. Figure 5 As shown, the method may include the following steps:

[0109] Step 501: The PFR CPLD determines whether the BMC has started normally based on the verification value issued by the BMC. If yes, proceed to step 507; otherwise, proceed to step 502.

[0110] Step 502: Disconnect the RGMII bus connection between the BMC and the PFR CPLD;

[0111] Step 503: Read the latest IP address of the BMC stored in the UFM of the PFR CPLD;

[0112] Step 504: Establish a communication connection with the RJ45 network port based on the latest IP address;

[0113] Step 505: Send the recorded exception logs to the remote debugging device;

[0114] Step 506: Based on the remote modulation command issued by the remote debugging device, control the BMC Flash chip to perform firmware upgrade or recovery, and proceed to step 501;

[0115] Step 507: Transmit and listen to the RGMII signal on the RGMII bus between the BMC and the PHY chip, and then proceed to steps 508 and 509 respectively.

[0116] Step 508: Store the latest IP address of the BMC into the UFM of the PFR CPLD;

[0117] Step 509: Determine whether there is a communication abnormality between the BMC and the PHY chip based on the RGMII signal. If yes, proceed to step 502; otherwise, proceed to step 507.

[0118] In this embodiment, the latest IP address of the BMC can be used when the PFR CPLD takes over RGMII communication, thereby achieving a seamless switch of the latest IP address from the BMC to the PFR CPLD. Establishing a communication connection with the RJ45 network port based on the latest IP address allows for remote control of firmware upgrades or recovery of the BMC Flash chip when the BMC network port is unavailable. This improves server maintainability, ensures normal server operation, enhances customer experience, and reduces maintenance costs.

[0119] It should be noted that the server remote debugging method provided in this application embodiment can be executed by a server remote debugging device, or a control module within that device for executing the server remote debugging method. This application embodiment uses the execution of the server remote debugging method by a server remote debugging device as an example to illustrate the server remote debugging device provided in this application embodiment.

[0120] It should be noted that, in the embodiments of this application, the server remote debugging methods shown in the accompanying drawings are all illustrated by way of example with reference to one of the accompanying drawings in the embodiments of this application. In specific implementation, the server remote debugging methods shown in the accompanying drawings can also be implemented in conjunction with any other accompanying drawings shown in the above embodiments, which will not be elaborated here.

[0121] The server remote debugging device provided in this application is described below. The server remote debugging method described below can be referred to in correspondence with the server remote debugging method described above.

[0122] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the server remote debugging device provided in an embodiment of this application. Figure 6 As shown, the device may include:

[0123] Disconnect module 10 is used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication failure between the BMC and the PHY chip.

[0124] Read module 20 is used to read the latest IP address of BMC stored in the UFM of PFR CPLD;

[0125] Establish module 30, which is used to establish a communication connection with the RJ45 network port based on the latest IP address;

[0126] Upload module 40 is used to upload the cause of communication failure to the remote debugging device;

[0127] The control module 50 is used to control the BMC Flash chip to perform firmware upgrades or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of communication abnormality.

[0128] Optionally, the device further includes:

[0129] The pass-through monitoring module is used to pass through and monitor the RGMII signal on the RGMII bus between the BMC and the PHY chip when the BMC starts up normally.

[0130] The storage module is used to store the latest IP address of the BMC into the UFM;

[0131] The first determining module is used to determine, based on the RGMII signal, whether there is a communication abnormality between the BMC and the PHY chip, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

[0132] Optionally, the disconnect module 10 is also used to: disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a BMC startup abnormality;

[0133] The upload module 40 is also used to: upload information about BMC startup errors to the remote debugging device;

[0134] The control module 50 is also used to: control the BMC Flash chip to perform firmware upgrades or recovery based on the second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly.

[0135] Optionally, the device further includes:

[0136] A receiving module is used to receive the verification value sent by the BMC;

[0137] The second determination module is used to determine whether the BMC has started normally based on the check value.

[0138] Figure 7 An example is a schematic diagram of the solid structure of a PFR CPLD, such as... Figure 7 As shown, the PFR CPLD may include a processor 710, a communications interface 720, a memory 730, and a communication bus 740. The processor 710, communications interface 720, and memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a server remote debugging method. This method includes: disconnecting the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication anomaly between the BMC and the PHY chip; reading the latest IP address of the BMC stored in the UFM of the PFR CPLD; establishing a communication connection with the RJ45 network port based on the latest IP address; uploading the cause of the communication anomaly to the remote debugging device; and controlling the BMC Flash chip to perform firmware upgrades or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly.

[0139] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0140] On the other hand, this application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the server remote debugging method provided by the above methods. The method includes: disconnecting the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication abnormality between the BMC and the PHY chip; reading the latest IP address of the BMC stored in the UFM of the PFR CPLD; establishing a communication connection with the RJ45 network port based on the latest IP address; uploading the cause of the communication abnormality to the remote debugging device; and controlling the BMC Flash chip to perform firmware upgrade or recovery based on the first remote modulation command issued by the remote debugging device for the cause of the communication abnormality.

[0141] In another aspect, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform the aforementioned server remote debugging methods. The method includes: disconnecting the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication anomaly between the BMC and the PHY chip; reading the latest IP address of the BMC stored in the UFM of the PFR CPLD; establishing a communication connection with the RJ45 network port based on the latest IP address; uploading the cause of the communication anomaly to the remote debugging device; and controlling the BMC Flash chip to perform firmware upgrades or recovery based on a first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly.

[0142] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A server remote debugging system, characterized by, The system includes a Baseboard Management Controller (BMC), a Platform Firmware Protection and Recovery (PFR) Complex Programmable Logic Device (CPLD), a Physical Layer (PHY) chip, a network transformer, an RJ45 Ethernet port, a Baseboard Management Controller Flash Memory (BMC) Flash chip, and a remote debugging device. The BMC and the PFR CPLD are connected via a Reduced Gigabit Media Independent Interface (RGMII) bus, and the PHY chip and the network transformer are connected via a Media Dependent Interface (MDI) bus. The network transformer is also connected to the RJ45 Ethernet port. The PFR CPLD is used to disconnect the RGMII bus connection between the BMC and the PHY chip in the event of a communication anomaly between the BMC and the PHY chip, read the latest IP address of the BMC stored in the user flash memory (UFM) of the PFR CPLD, establish a communication connection with the RJ45 network port based on the latest IP address, upload the cause of the communication anomaly to the remote debugging device, and control the BMC Flash chip to perform firmware upgrade or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly. The reasons for the communication anomalies include BMC1 failure and RGMII bus failure.

2. The server remote debugging system of claim 1, wherein, The PFR CPLD is also used to transmit and listen to the RGMII signal on the RGMII bus between the BMC and the PHY chip when the BMC starts normally, store the latest IP address of the BMC in the UFM, and determine whether there is a communication abnormality between the BMC and the PHY chip based on the RGMII signal, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

3. The server remote debugging system of claim 2, wherein, The PFR CPLD is also used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a BMC startup anomaly, read the latest IP address of the BMC stored in the UFM of the PFR CPLD, establish a communication connection with the RJ45 network port based on the latest IP address, upload the BMC startup anomaly information to the remote debugging device, and control the BMC Flash chip to perform firmware upgrade or recovery based on the second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly information.

4. The server remote debugging system of claim 2, wherein, The PFR CPLD is also used to receive the verification value sent by the BMC, and to determine whether the BMC has started normally based on the verification value.

5. A method for remote debugging of a server, characterized in that, Applied to PFR CPLD, the method includes: In the event of a communication failure between the BMC and the PHY chip, disconnect the RGMII bus connection between the BMC and the PFR CPLD; Read the latest IP address of the BMC stored in the UFM of the PFR CPLD; A communication connection is established with the RJ45 network port based on the latest IP address; Upload the cause of the communication anomaly to the remote debugging device; Based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly, the BMCFlash chip is controlled to perform firmware upgrade or recovery.

6. The server remote debugging method according to claim 5, characterized in that, Also includes: When the BMC starts up normally, the RGMII signal on the RGMII bus between the BMC and the PHY chip is transmitted and monitored. Store the latest IP address of the BMC into the UFM; Based on the RGMII signal, determine whether there is a communication abnormality between the BMC and the PHY chip, and the reason for the communication abnormality when there is a communication abnormality between the BMC and the PHY chip.

7. The server remote debugging method according to claim 6, characterized in that, Also includes: In the event of a BMC startup error, disconnect the RGMII bus connection between the BMC and the PFR CPLD; Read the latest IP address of the BMC stored in the UFM of the PFR CPLD; A communication connection is established with the RJ45 network port based on the latest IP address; The information regarding the BMC startup error is uploaded to the remote debugging device; Based on the second remote modulation command issued by the remote debugging device in response to the BMC startup anomaly, the BMC Flash chip is controlled to perform firmware upgrade or recovery.

8. The server remote debugging method according to claim 6, characterized in that, Also includes: Receive the verification value sent by the BMC; The BMC is determined to be running normally based on the verification value.

9. A server remote debugging device, characterized in that, include: The disconnect module is used to disconnect the RGMII bus connection between the BMC and the PFR CPLD in the event of a communication failure between the BMC and the PHY chip. The reading module is used to read the latest IP address of the BMC stored in the UFM of the PFR CPLD; A module is established to create a communication connection with the RJ45 network port based on the latest IP address. An upload module is used to upload the cause of the communication anomaly to a remote debugging device; wherein, the cause of the communication anomaly includes BMC1 failure and RGMII bus failure; The control module is used to control the BMC Flash chip to perform firmware upgrades or recovery based on the first remote modulation command issued by the remote debugging device in response to the cause of the communication anomaly.

10. A PFR CPLD, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the server remote debugging method as described in any one of claims 5 to 8.

11. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the server remote debugging method as described in any one of claims 5 to 8.

Citation Information

Patent Citations

  • Data processing unit providing remote management and extended network processing capabilities

    CN217157280U

  • Data computing system and server with built-in system

    CN218213983U