Management system supporting platform firmware recovery and firmware recovery method thereof

By checking and overwriting the backup firmware in the supported platform firmware recovery system, the problem that traditional systems cannot restore the RoT chip firmware is solved, ensuring that the system can start normally in the event of memory damage or malicious tampering, and enhancing the integrity of the firmware. and security.

CN118550386APending Publication Date: 2024-08-27MITAC COMP (SHUN DE) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310172505.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The traditional support platform firmware recovery system only restores the baseboard management controller (BMC) firmware, but does not detect or restore the firmware of the root of trust (RoT) chip, resulting in the inability to start when the memory is severely damaged.

Method used

A firmware recovery method is designed to check the validity of the firmware in the first memory and the second memory through the protection circuit, and if necessary, overwrite the backup firmware in the second memory to the first memory to ensure that the system firmware integrity and security. The method includes checking whether the firmware in the first memory is valid during startup, and if it is invalid, checking and overwriting the backup firmware in the second memory, and restoring the firmware of the protection circuit itself if necessary.

Benefits of technology

It realizes the detection, protection and recovery of RoT chip firmware, ensuring that the system can start normally in the event of memory damage or malicious tampering, and enhances the system's firmware integrity and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550386A
    Figure CN118550386A
Patent Text Reader

Abstract

A firmware recovery method is suitable for a management system supporting platform firmware recovery (PFR), the management system comprises a protection circuit, a controller, a first memory and a second memory, and the firmware recovery method comprises the following steps: the protection circuit checks whether first firmware in the first memory is valid; when the first firmware is invalid, the protection circuit checks whether the second firmware in the second memory is valid; when the second firmware is valid, the protection circuit overwrites the first firmware according to the second firmware; and after the protection circuit overwrites the first firmware according to the second firmware, the controller is started according to the first memory.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a security technology, and in particular to a management system supporting platform firmware recovery and a firmware recovery method thereof. [Background technology]

[0002] Server systems that support Platform Firmware Resiliency (PFR) are becoming more and more popular today. Traditionally, systems that support PFR use a root of trust (RoT) chip to detect, protect, and recover the firmware of their baseboard management controller (BMC) to ensure the integrity and security of their BMC firmware. When the RoT chip finds that the firmware currently used by the BMC has an error, the RoT chip will record the error and then restore the firmware currently used by the BMC through the backup BMC firmware stored in the same memory as the firmware currently used by the BMC.

[0003] However, usually the system only recovers the firmware of the BMC, and does not detect, protect, and recover the firmware of the RoT chip. Moreover, since the firmware used by the current BMC and the backup BMC firmware are stored in the same memory, if there is severe physical damage in the memory, the RoT chip cannot recover the firmware used by the current BMC through the backup BMC firmware, causing the BMC to fail to start. [Summary of the invention]

[0004] In one embodiment, a firmware recovery method is applicable to a management system supporting platform firmware recovery. The management system supporting platform firmware recovery includes a protection circuit, a controller, a first memory, and a second memory. The firmware recovery method includes: the protection circuit checks whether the first firmware in the first memory is valid; when the first firmware is invalid, the protection circuit checks whether the second firmware in the second memory is valid; when the second firmware is valid, the protection circuit overwrites the first firmware according to the second firmware; and after the protection circuit overwrites the first firmware according to the second firmware, the controller starts according to the first memory.

[0005] In one embodiment, a firmware recovery method is applicable to a management system supporting platform firmware recovery. The management system supporting platform firmware recovery includes a protection circuit, a controller, a first memory, and a second memory. The firmware recovery method includes: the protection circuit checks whether the first firmware in the first memory is valid; when the first firmware is invalid, the protection circuit checks whether the second firmware in the second memory is valid; when the second firmware is valid, the protection circuit overwrites the first firmware according to the second firmware; after the protection circuit overwrites the first firmware according to the second firmware, the controller starts according to the first memory; after the controller starts, the controller sends a message to the protection circuit every second. Send a confirmation signal and confirm the protection circuit's response to the confirmation signal; when the controller does not obtain a response to the confirmation signal from the protection circuit, the controller turns on the recovery flag in the first memory; the controller restarts the management system; before the protection circuit checks whether the first firmware in the first memory is valid, the protection circuit checks whether the recovery flag in the first memory is turned on; when the recovery flag is turned on, the protection circuit checks whether the protection circuit firmware in the second memory is valid; when the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware; the protection circuit turns off the recovery flag; and the protection circuit resets itself.

[0006] In one embodiment, a firmware recovery method is applicable to a management system supporting platform firmware recovery. The management system supporting platform firmware recovery includes a protection circuit, a controller, a first memory, and a second memory. The firmware recovery method includes: the protection circuit checks whether the first firmware in the first memory is valid; when the first firmware is invalid, the protection circuit checks whether the second firmware in the second memory is valid; when the second firmware is valid, the protection circuit overwrites the first firmware according to the second firmware; after the protection circuit overwrites the first firmware according to the second firmware, the controller starts according to the first memory; after the controller starts, the controller sends a confirmation signal to the protection circuit every second and confirms the protection circuit's response to the confirmation signal; when the controller is not When receiving a response to a confirmation signal from the protection circuit, the controller turns on a recovery flag in the first memory; the controller restarts the management system; before the protection circuit checks whether the first firmware in the first memory is valid, the protection circuit checks whether the recovery flag in the first memory is turned on; when the recovery flag is turned on, the protection circuit checks whether the protection circuit firmware in the second memory is valid; when the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware; the protection circuit turns off the recovery flag; the protection circuit resets itself; when the first firmware is valid, the controller starts according to the first memory; when the second firmware is valid but the first firmware cannot be overwritten according to the second firmware, the controller starts according to the second memory.

[0007] In one embodiment, a management system supporting platform firmware recovery (PFR) includes a first memory, a second memory, a controller, and a protection circuit. The first memory includes a first firmware. The second memory includes a second firmware. The protection circuit is used to check whether the first firmware is valid, and when the first firmware is invalid, check whether the second firmware is valid, and when the second firmware is valid, overwrite the first firmware according to the second firmware. After the protection circuit overwrites the first firmware according to the second firmware, the controller is activated according to the first memory.

[0008] In one embodiment, a management system supporting platform firmware recovery (PFR) includes a first memory, a second memory, a controller, and a protection circuit. The first memory includes a first firmware. The second memory includes a second firmware. The protection circuit is used to check whether the first firmware is valid, and when the first firmware is invalid, check whether the second firmware is valid, and when the second firmware is valid, overwrite the first firmware according to the second firmware. Wherein, after the protection circuit overwrites the first firmware according to the second firmware, the controller is activated according to the first memory. Wherein, after being activated, the controller is further used to send a confirmation signal to the protection circuit every second and confirm the response of the protection circuit to the confirmation signal. Wherein, when the controller does not obtain a response to the confirmation signal from the protection circuit, the controller turns on a recovery flag in the first memory and restarts the management system. Wherein, the protection circuit is further used to check whether the recovery flag is turned on before checking whether the first firmware in the first memory is valid, and when the recovery flag is turned on, check whether the protection circuit firmware in the second memory is valid, and when the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware and turns off the recovery flag and resets itself.

[0009] In one embodiment, a management system supporting platform firmware recovery (PFR) includes a first memory, a second memory, a controller, and a protection circuit. The first memory includes a first firmware. The second memory includes a second firmware. The protection circuit is used to check whether the first firmware is valid, and when the first firmware is invalid, check whether the second firmware is valid, and when the second firmware is valid, overwrite the first firmware according to the second firmware. Wherein, after the protection circuit overwrites the first firmware according to the second firmware, the controller is activated according to the first memory. Wherein, after being activated, the controller is further used to send a confirmation signal to the protection circuit every second and confirm the response of the protection circuit to the confirmation signal. Wherein, when the controller does not obtain a response to the confirmation signal from the protection circuit, the controller turns on a recovery flag in the first memory and restarts the management system. Wherein, the protection circuit is further used to check whether the recovery flag is turned on before checking whether the first firmware in the first memory is valid, and when the recovery flag is turned on, check whether the protection circuit firmware in the second memory is valid, and when the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware and turns off the recovery flag and resets itself. The controller is further configured to start up according to the first memory when the first firmware is valid. The controller is further configured to start up according to the second memory when the second firmware is valid but the protection circuit cannot overwrite the first firmware according to the second firmware.

[0010] The detailed features and advantages of the present invention are described in detail in the following implementation mode, and the content is sufficient to enable anyone familiar with the relevant skills to understand the technical content of the present invention and implement it accordingly. Moreover, according to the content disclosed in this specification, the scope of the patent application and the drawings, any person familiar with the relevant skills can easily understand the relevant purposes and advantages of the present invention.

Brief Description of the Drawings

[0011] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which:

[0012] Figure 1 A block diagram of an embodiment of a management system for supporting platform firmware recovery;

[0013] Figure 2 is a block diagram of an embodiment of a first memory;

[0014] Figure 3 is a block diagram of an embodiment of a second memory;

[0015] Figure 4 A flowchart of an embodiment of a firmware recovery method;

[0016] Figure 5 and Figure 6 A flowchart of another embodiment of a firmware recovery method; and

[0017] Figure 7 and Figure 8 The flowchart is another embodiment of the firmware recovery method. [Specific implementation method]

[0018] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.

[0019] Figure 1 A block diagram of an embodiment of a management system 1 for supporting platform firmware recovery. Figure 1 . A management system 1 supporting platform firmware recovery includes a first memory 10, a second memory 20, a controller 30, and a protection circuit 40. In some embodiments, the controller 30 may be, but is not limited to, a baseboard management controller (BMC), a field programmable gate array (FPGA), or a complex programmable logic device (CPLD). In some embodiments, the protection circuit 40 may be, but is not limited to, a root of trust (RoT) chip, or may be other programmable logic chips (PLD) or microprocessors (MCUs), etc. In some embodiments, the first memory 10 and the second memory 20 may be, but are not limited to, a flash memory (Flash), or may be a hard disk or other types of memory. In some embodiments, a user can read and write to the first memory 10 and a user can only read from the second memory 20, but cannot write to the second memory 20.

[0020] Figure 2 FIG. 1 is a block diagram of an embodiment of the first memory 10 . Figure 3 FIG. 2 is a block diagram of an embodiment of the second memory 20. Figures 1 to 3 The first memory 10 includes a first firmware 11 , a controller record 12 , a protection circuit configuration 13 , and a first signature 14 . The second memory 20 includes a second firmware 21 , a protection circuit firmware 22 , and a second signature 23 .

[0021] Figure 4 This is a flowchart of an embodiment of a firmware recovery method. Figures 1 to 4. When the management system 1 is just powered on, only the protection circuit 40 is initialized to the on state and the protection circuit 40 has the control right of the management system 1. At this time, the protection circuit 40 first checks whether the first firmware 11 is valid (step S01), and when the first firmware 11 is invalid, checks whether the second firmware 21 is valid (step S02), and when the second firmware 21 is valid, overwrites the first firmware 11 according to the second firmware 21 (step S03). Among them, after the protection circuit 40 overwrites the first firmware 11 according to the second firmware 21, the controller 30 is activated according to the first memory 10 (step S04) and the protection circuit 40 gives the control right of the management system 1 to the controller 30. In detail, the protection circuit 40 controls the switching of the multiplexer 50, so that the controller 30 is electrically connected to at least one of the first memory 10 and the second memory 20, and the protection circuit 40 triggers the controller 30 to start to execute one of the first firmware 11 and the second firmware 21.

[0022] In some embodiments, the invalidation of the first firmware 11 may be, but not limited to, the first firmware 11 being damaged or the first firmware 11 being maliciously tampered with. For example, if the management system 1 is accidentally powered off during the process of writing the first firmware 11 into the first memory 10, the first firmware 11 may be damaged and the first firmware 11 may be invalid. If the first firmware 11 is replaced by an unknown person, it means that the first firmware 11 has been maliciously tampered with, which will also make the first firmware 11 invalid. In some embodiments, the invalidation of the first firmware 11 may be, but not limited to, physical damage in the first memory 10. The invalidation of the second firmware 21 may be, but not limited to, damage in the second firmware 21, malicious tampering with the second firmware 21, or physical damage in the second memory 20. In some embodiments, when the first firmware 11 is invalid, the protection circuit 40 will record the invalidation of the first firmware 11 or the error in the first firmware 11 in the controller record 12, so that the user can later review and analyze the cause of the invalidation of the first firmware 11 according to the controller record 12.

[0023] Figure 5 and Figure 6 FIG. 1 is a flowchart of another embodiment of a firmware recovery method. Figure 5 and Figure 6. In some embodiments, the controller 30 is further configured to periodically (e.g., at a cycle per second) send a confirmation signal to the protection circuit 40 after startup and confirm the response of the protection circuit 40 to the confirmation signal (step S11). When the controller 30 does not obtain a response to the confirmation signal from the protection circuit 40, the controller 30 turns on the recovery flag in the first memory 10 (step S12) and restarts the management system 1 (step S13). After the controller 30 restarts the management system 1, the protection circuit 40 is further configured to check whether the recovery flag is turned on before checking whether the first firmware 11 in the first memory 10 is valid (step S14), and when it is detected that the recovery flag is turned on, check whether the protection circuit firmware 22 in the second memory 20 is valid (step S15). When the protection circuit firmware 22 is valid, the protection circuit 40 loads and executes the protection circuit firmware 22 from the second memory 20 to restore normal operation. That is, the protection circuit 40 overwrites the existing firmware of the protection circuit 40 with the protection circuit firmware 22 (step S16) and turns off the recovery flag (step S17) and resets / restarts itself (step S18). Thereby, the protection circuit 40 executes the protection circuit firmware 22 obtained from the second memory 20 during the initialization process after the reset / restart, and then can restore to a normal operating state. The protection circuit firmware 22 stored in the second memory 20 is a backup firmware version that can be executed normally, for example, the firmware version used by the protection circuit 40 when the management system 1 leaves the factory.

[0024] In some embodiments, the invalidation of the protection circuit firmware 22 may be, but is not limited to, physical damage to the second memory 20. In some embodiments, the controller 30 confirms that the response of the protection circuit 40 to the confirmation signal may be, but is not limited to, the controller 30 detecting a response signal sent by the protection circuit 40 after receiving the confirmation signal. In some embodiments, the reply flag may be, but is not limited to, a variable, and when the reply flag is a first predetermined value, it indicates that the reply flag is in a closed state, and when the reply flag is a second predetermined value, it indicates that the reply flag is in an open state, and when the management system 1 is just started, the reply flag is in a closed state. For example, if the reply flag is 0, it indicates that the reply flag is in a closed state, and the reply flag is 1, it indicates that the reply flag is in an open state, when the management system 1 is just started, the reply flag is 0, when the controller 30 turns on the reply flag, the controller 30 sets the reply flag from 0 to 1, and when the protection circuit 40 turns off the reply flag, the protection circuit 40 sets the reply flag from 1 to 0. In some embodiments, the reply flag is stored in the protection circuit configuration 13. In other words, the controller 30 turns on the recovery flag, the protection circuit 40 checks whether the recovery flag is turned on, and the protection circuit 40 turns off the recovery flag, all of which require accessing the first memory 10 .

[0025] Figure 7 and Figure 8 This is a flowchart of another embodiment of the firmware recovery method. Figure 7 and Figure 8 In some embodiments, the controller 30 is further configured to start up according to the first memory 10 when the first firmware 11 is valid (step S04 or when the step S01 is determined to be yes). Specifically, after the step S03 is completed and before the step S04 is performed, or after the protection circuit 40 is determined to be yes in the step S01, the protection circuit 40 controls the multiplexer 50 to electrically connect the controller 30 and the first memory 10 through the multiplexer 50, and the protection circuit 40 hands over the control right to the controller 30, wherein the protection circuit 40 can trigger the power controller 60 to provide the controller power required for the controller operation to the controller 30 through an instruction or a signal, so that the controller 30 is initialized, or the protection circuit 40 can trigger the controller 30 to initialize by transmitting a controller reset signal, thereby, the controller 30 loads and executes the first firmware 11 from the first memory 10 during the initialization process, and the controller 30 is further configured to start up according to the second memory 20 when the second firmware 21 is valid but the protection circuit 40 cannot overwrite the first firmware 11 according to the second firmware 21. When the second firmware 21 is invalid, the controller 30 is not started (step S21). Specifically, the protection circuit 40 cannot successfully complete step S03 (cannot successfully overwrite the first firmware 11 stored in the first memory 10 with the valid second firmware 21 stored in the second memory 20), and the protection circuit 40 controls the multiplexer 50 to switch so that the multiplexer 50 is only electrically connected to the controller 30 and the second memory 20, but not electrically connected to the controller 30 and the first memory 10, and the protection circuit 40 transfers the control right to the controller 30 (the method of transferring the control right to the controller 30 is similar to the above method and will not be repeated), so that the controller 30 is initialized, and during the process of the controller 30 being initialized, the second firmware 21 is loaded and executed by the second memory 20, so that the controller 30 resumes normal operation.

[0026] In some embodiments, the second firmware 21 is valid but the protection circuit 40 cannot overwrite the first firmware 11 according to the second firmware 21, which may be, but not limited to, an authorization failure caused by the illegality of the first signature 14 and the second signature 23, or the first memory 10 cannot be written due to severe physical damage. When the protection circuit 40 cannot overwrite the first firmware 11 according to the second firmware 21, the protection circuit 40 will record the situation that the first firmware 11 cannot be overwritten according to the second firmware 21 in the controller record 12, so that the user can later review and analyze the reason why the protection circuit 40 cannot overwrite the first firmware 11 according to the second firmware 21 according to the controller record 12. Similarly, when the judgment in step S02 is no, the protection circuit 40 will record the situation that the second firmware 21 is invalid in the controller record 12 and end the process, so that the user can later review and analyze the reason why the controller 30 is abnormal and the second firmware 21 is invalid according to the controller record 12.

[0027] When the protection circuit 40 is powered on and started by the management system 1 or the protection circuit 40 itself is initialized or restarted / reset, the first firmware 11 or the second firmware 21 used by the controller 30 is tested to ensure the integrity and safety of the firmware used by the controller 30, and when there is an error in the first firmware 11, the second firmware 21 is used to overwrite the first firmware 11 to restore the firmware used by the controller 30. After being started, the controller 30 further uses the confirmation signal to check the protection circuit 40, and when it is found that the protection circuit 40 cannot operate normally, the flag is set to trigger the protection circuit 40 to load and execute the protection circuit firmware 22 from the second memory 20, so as to overwrite the existing firmware originally executed by the protection circuit 40 itself with the protection circuit firmware 22 to restore the firmware used by the protection circuit 40, so that the protection circuit 40 can resume normal operation. That is to say, after the protection circuit 40 resumes normal operation, it can normally respond to the confirmation signal it receives, for example, by returning a response signal as a response to the received confirmation signal. Therefore, the management system 1 not only uses the protection circuit 40 to detect, protect and recover the firmware used by the controller 30, but also uses the controller 30 to detect, protect and recover the firmware used by the protection circuit 40. In other words, the management system 1 has the function of detecting, protecting and recovering the firmware of both the protection circuit 40 and the controller 30.

[0028] Furthermore, since the controller 30 is effective in the second firmware 21 but the protection circuit 40 cannot overwrite the first firmware 11 of the first memory 10 according to the second firmware 21 of the second memory 20, the controller 30 performs initialization startup according to the second firmware 21 of the second memory 20. Therefore, when the first memory 10 cannot be written due to severe physical damage and the protection circuit 40 cannot overwrite the first firmware 11 with the second firmware 21 to restore the first firmware 11, the controller 30 can still be started through the second memory 20.

[0029] See also Figure 1 In some embodiments, the management system 1 further includes a plurality of multiplexers 50. The controller 30 is coupled to the protection circuit 40, the first memory 10, and the second memory 20 through the plurality of multiplexers 50. The protection circuit 40 is also coupled to the controller 30, the first memory 10, and the second memory 20 through the plurality of multiplexers 50. Figure 1In the embodiment of FIG. 1 , for convenience of explanation, the multiplexer 50 coupled between the controller 30, the protection circuit 40 and the first memory 10 is referred to as a multiplexer 51, and the multiplexer 50 coupled between the controller 30, the protection circuit 40 and the second memory 20 is referred to as a multiplexer 52. The multiplexers 50 are controlled by the protection circuit 40, and are used to select the connection paths between the controller 30, the protection circuit 40, the first memory 10 and the second memory 20 according to the operation of the management system 1 so that only one of the protection circuit 40 or the controller 30 is connected to the first memory 10 or the second memory 20 at the same time. For example, when the protection circuit 40 checks whether the first firmware 11 is valid (step S01), the protection circuit 40 controls the multiplexer 51 to conduct the connection path between the protection circuit 40 and the first memory 10 but not to conduct the connection path between the controller 30 and the first memory 10, so that the protection circuit 40 is electrically connected to the first memory 10 via the multiplexer 51. When the protection circuit 40 checks whether the second firmware 21 is valid (step S02), the protection circuit 40 controls the multiplexer 52 to conduct the connection path between the protection circuit 40 and the second memory 20 but not conduct the connection path between the controller 30 and the second memory 20, so that the protection circuit 40 is electrically connected to the second memory 20 via the multiplexer 52. When the protection circuit 40 overwrites the first firmware 11 according to the second firmware 21 (step S03), the protection circuit 40 controls the multiplexer 51 to conduct the connection path between the protection circuit 40 and the first memory 10 but not conduct the connection path between the controller 30 and the first memory 10, and the protection circuit 40 also controls the multiplexer 52 to conduct the connection path between the protection circuit 40 and the second memory 20 but not conduct the connection path between the controller 30 and the second memory 20, thereby, the protection circuit 40 is electrically connected to the first memory 10 and the second memory 20 through the multiplexers 51 and 52. When the protection circuit 40 controls the multiplexer 50 to switch and transfers the control right to the controller 30, the controller 30 is activated according to the first memory 10 (step S04), and the multiplexer 51 conducts the connection path between the controller 30 and the first memory 10 but does not conduct the connection path between the protection circuit 40 and the first memory 10.

[0030] When the controller 30 turns on the recovery flag in the first memory 10 (step S12), the protection circuit 40 controls the multiplexer 51 to conduct the connection path between the controller 30 and the first memory 10 but not conduct the connection path between the protection circuit 40 and the first memory 10. When the protection circuit 40 checks whether the recovery flag is turned on (step S14), the protection circuit 40 controls the multiplexer 51 to conduct the connection path between the protection circuit 40 and the first memory 10 but not conduct the connection path between the controller 30 and the first memory 10. When the protection circuit 40 checks whether the protection circuit firmware 22 in the second memory 20 is valid (step S15), the protection circuit 40 controls the multiplexer 52 to conduct the connection path between the protection circuit 40 and the second memory 20 but not conduct the connection path between the controller 30 and the second memory 20. When the protection circuit 40 turns off the recovery flag (step S17), the multiplexer 51 conducts the connection path between the protection circuit 40 and the first memory 10 but not conducts the connection path between the controller 30 and the first memory 10.

[0031] When the second firmware 21 is valid but the protection circuit 40 cannot overwrite the first firmware 11 according to the second firmware 21, so that the controller 30 is activated according to the second memory 20, the multiplexer 52 conducts the connection path between the controller 30 and the second memory 20 but does not conduct the connection path between the protection circuit 40 and the second memory 20.

[0032] See also Figure 1In some embodiments, the management system 1 further includes a power controller 60, which is used to provide a standby power required for the operation of the protection circuit 40 and is controlled by the protection circuit 40 to selectively provide a controller power required for the operation of the controller 30, wherein the power controller 60 is controlled by the controller 30 and temporarily does not provide the standby power, that is, after the power controller 60 receives the signal from the controller 30 to restart the management system 1, the power controller 60 will turn off / not provide the standby power (when the power controller 60 turns off / does not provide the standby power, the power controller 60 will also turn off and not provide the controller required for the operation of the controller 30). If the controller 30 does not receive the controller power required for operation, it will not be able to operate / shut down, and it will not be able to trigger the power controller 60 to switch back to provide standby power after shutting down / not providing standby power. Therefore, the power controller 60 will use its own delay module or a delay circuit to re-supply power after the default time corresponding to the delay module or delay circuit, and re-provide standby power after a default time. In this way, the protection circuit 40 will not be able to operate / shut down because it is not provided with standby power, and after the protection circuit 40 re-receives the standby power required for its own operation, it will restart and initialize itself. The controller 30 controls the power of the management system 1 through the power controller 60 to restart the management system 1 (step S13). In detail, restarting the management system 1 means that the controller 30 triggers the power controller 60 to temporarily not provide standby power and then re-provide standby power after the default time. In another embodiment, restarting the management system 1 can also be that the controller 30 sends a reset signal to the protection circuit 40 to trigger the protection circuit 40 to re-initialize and execute step S14. In some embodiments, the power controller 60 may be, but is not limited to, a hot swap controller (HSC).

[0033] In some embodiments, the controller 30 may be, but is not limited to, coupled to the multiplexer 51 and the multiplexer 52 via a serial peripheral interface (Serial Peripheral Interface Bus, SPI), the protection circuit 40 may be, but is not limited to, coupled to the multiplexer 51 and the multiplexer 52 via SPI, and the controller 30 may be, but is not limited to, coupled to the multiplexer 51 and the multiplexer 52 via an integrated bus circuit (Inter-Integrated Circuit, I 2 C) coupling the protection circuit 40 and the power controller 60 .

[0034] In summary, in some embodiments, the management system 1 not only uses the protection circuit 40 to detect, protect and restore the firmware used by the controller 30, but also uses the controller 30 to detect, protect and restore the firmware used by the protection circuit 40. Therefore, the management system 1 has the functions of detecting, protecting and restoring the firmware of the protection circuit 40 and the controller 30 at the same time. And in some embodiments, since the controller 30 can be started according to the second memory 20. Therefore, if the first memory 10 cannot be written due to severe physical damage, so that the protection circuit 40 cannot use the second firmware 21 to overwrite the first firmware 11 to restore the first firmware 11, the controller 30 can still be started through the second memory 20 without the problem of being unable to start.

[0035] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A firmware recovery method, applicable to a management system supporting platform firmware recovery (PFR), the management system comprising a protection circuit, a controller, a first memory and a second memory, characterized in that: The firmware recovery method includes: The protection circuit checks whether a first firmware in the first memory is valid; When the first firmware is invalid, the protection circuit checks whether a second firmware in the second memory is valid; When the second firmware is valid, the protection circuit overwrites the first firmware according to the second firmware; and After the protection circuit overwrites the first firmware according to the second firmware, the controller is activated according to the first memory.

2. The firmware recovery method according to claim 1, characterized in that: Also includes: When the controller is activated, the controller sends a confirmation signal to the protection circuit every second and confirms the response of the protection circuit to the confirmation signal; When the controller does not obtain a response to the confirmation signal from the protection circuit, the controller turns on a reply flag in the first memory; and The controller restarts the management system.

3. The firmware recovery method according to claim 2, characterized in that: Also includes: Before the protection circuit checks whether the first firmware in the first memory is valid, the protection circuit checks whether the recovery flag in the first memory is turned on; When the reply flag is turned on, the protection circuit checks whether a protection circuit firmware in the second memory is valid; When the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware; The protection circuit turns off the reply flag; and The protection circuit resets itself.

4. The firmware recovery method according to claim 3, characterized in that: Also includes: When the first firmware is valid, the controller is started according to the first memory.

5. The firmware recovery method according to claim 4, characterized in that: Also includes: When the second firmware is valid but the first firmware cannot be overwritten according to the second firmware, the controller is activated according to the second memory.

6. A management system supporting platform firmware recovery (PFR), characterized in that: Include: a first memory, the first memory comprising a first firmware; a second memory, the second memory comprising a second firmware; a controller; and a protection circuit for checking whether the first firmware is valid, and if the first firmware is invalid, checking whether the second firmware is valid, and if the second firmware is valid, overwriting the first firmware according to the second firmware; When the protection circuit overwrites the first firmware according to the second firmware, the controller is started according to the first memory.

7. The management system supporting platform firmware recovery according to claim 6, characterized in that: The controller is further used to send a confirmation signal to the protection circuit every second after startup and confirm the protection circuit's response to the confirmation signal, wherein when the controller does not obtain a response to the confirmation signal from the protection circuit, the controller turns on a reply flag in the first memory and restarts the management system.

8. The management system supporting platform firmware recovery according to claim 7, characterized in that: The protection circuit is further used to check whether the recovery flag is turned on before checking whether the first firmware in the first memory is valid, and when the recovery flag is turned on, check whether a protection circuit firmware in the second memory is valid. When the protection circuit firmware is valid, the protection circuit overwrites the existing firmware of the protection circuit with the protection circuit firmware and turns off the recovery flag and resets itself.

9. The management system supporting platform firmware recovery according to claim 8, characterized in that: The controller is further used for starting up according to the first memory when the first firmware is valid.

10. The management system supporting platform firmware recovery according to claim 9, characterized in that: The controller is further used for starting up according to the second memory when the second firmware is effective but the protection circuit cannot overwrite the first firmware according to the second firmware.