Method, system and apparatus for baseboard management controller recovery staging area

By performing hash calculation verification on the temporary storage area of ​​the baseboard management controller, and copying the files of the active or recovery area to the temporary storage area when the verification fails, the problem of the server failing to start after the stag area is damaged is solved, and the normal startup of the server and the recovery of the BMC are realized.

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

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2022-08-30
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In the prior art, the baseboard management controller (BMC) lacks a recovery mechanism after the stag area is damaged, which causes the server to fail to start normally, especially when both the stag and recovery areas are damaged, the active area cannot be recovered.

Method used

When the server powers on, a hash operation is performed on the temporary storage area. If the check fails, the files in the active or recovery area are copied or compressed to the temporary storage area to ensure the integrity of the temporary storage area. Recovery is achieved through data interaction between internal areas.

Benefits of technology

This ensures the availability of the temporary storage area, guarantees the normal startup of BMC and the normal boot-up of the server, and avoids the problem of the server failing to start when the stag area is damaged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115309589B_ABST
    Figure CN115309589B_ABST
Patent Text Reader

Abstract

The application provides a method, system and device for recovering a temporary storage area of a baseboard management controller. The method comprises the following steps: after a server is powered on, checking a temporary storage area of a baseboard management controller; if the checking fails, compressing files in an active area of the baseboard management controller to the temporary storage area. The application increases the checking of the temporary storage area of the baseboard management controller BMC when the server is powered on. When the checking of the temporary storage area fails, the temporary storage area is recovered through the active area or a recovery area, so that the temporary storage area is always available, and the normal start of the BMC and the normal boot of the server are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and in particular to a method, system, and apparatus for restoring a temporary storage area in a baseboard management controller. Background Technology

[0002] Currently, server BMCs (Baseboard Manager Controllers) with PFR (Platform Firmware Resilience) functionality are divided into an active area, a recovery area, and a stag area. The active area stores the uncompressed, directly executable firmware program, from which the BMC boots. The recovery area stores compressed BMC image files, and the stag area is where the BMC stores upgrade images during upgrades.

[0003] Each time the server powers on, the CPLD verifies the active and recovery regions. If the active region is corrupted, the CPLD uses the recovery region to restore the active region. If the recovery region is corrupted, or both the recovery and active regions are corrupted, the CPLD uses the stag region to restore the recovery region, and then uses the recovery region to restore the active region. Therefore, the stag region is the last guarantee for the BMC to boot normally, but it is only updated when performing an upgrade operation through the BMC.

[0004] The stag region and the active region are stored on the same flash memory chip. If the active region is corrupted, it is difficult to guarantee that the stag region will not be corrupted. Since there is currently no method to automatically recover the stag region, if the stag is cleared or corrupted, the recovery region will also be corrupted and cannot be recovered. The active region will also be corrupted at the same time, and the server will fail to boot. Summary of the Invention

[0005] This invention provides a method, system, and apparatus for restoring the temporary storage area of ​​a baseboard management controller (BMC), which addresses the problem that the lack of a recovery mechanism after damage to the stage area of ​​the existing BMC affects the normal startup of the server.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] The first aspect of the present invention provides a method for restoring a temporary storage area in a baseboard management controller, the method comprising the following steps:

[0008] After the server is powered on, the temporary storage area of ​​the baseboard management controller is verified.

[0009] If the verification fails, the files within the active area of ​​the baseboard management controller will be compressed into the recovery area.

[0010] Furthermore, the verification of the recovery area of ​​the baseboard management controller specifically involves:

[0011] A hash operation is performed on the temporary storage area, and the result is compared with the pre-stored result. If they match, the verification passes; otherwise, the verification fails.

[0012] Furthermore, the verification failure includes cases where the file in the temporary storage area is corrupted or empty.

[0013] Furthermore, the method further includes the step of:

[0014] If the verification fails, the file in the baseboard management controller recovery area is copied to the temporary storage area.

[0015] Furthermore, the method further includes the following step after the test fails:

[0016] Check the verification result of the active region. If the active region fails the verification, use the recovery region to restore the active region and compress the files in the restored active region to the temporary storage region.

[0017] A second aspect of the present invention provides a system for restoring a temporary storage area of ​​a baseboard management controller, the system comprising:

[0018] The verification unit is used to verify the temporary storage area of ​​the baseboard management controller after the server is powered on.

[0019] The first data recovery unit compresses the files within the active area of ​​the baseboard management controller to the temporary storage area when the verification fails.

[0020] Furthermore, the system also includes:

[0021] The second data recovery unit copies the files from the baseboard management controller recovery area to the temporary storage area when the verification fails.

[0022] Furthermore, the first data recovery unit also includes a data recovery subunit, which checks the verification result of the active region. If the active region fails the verification, the recovery region is used to recover the active region, and the files in the recovered active region are compressed to the temporary storage area.

[0023] A third aspect of the present invention provides an apparatus for restoring a temporary storage area of ​​a substrate management controller, the apparatus comprising a complex programmable logic device (CPLD) and a substrate management controller (BMC), wherein the system is deployed on the CPLD.

[0024] A fourth aspect of the present invention provides a computer storage medium storing computer instructions, which, when executed on a system, cause the system to perform the steps of the method.

[0025] The system for restoring the temporary storage area according to the second aspect of the present invention can implement the methods in the first aspect and its various implementations, and achieve the same effect.

[0026] The effects described in the invention are merely those of the embodiments, and not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

[0027] When the server is powered on, this invention adds a check to the temporary storage area of ​​the Baseboard Management Controller (BMC). If the check fails, the temporary storage area is restored through the active area or the recovery area to ensure that the temporary storage area is always available, thus guaranteeing the normal startup of the BMC and the normal power-on of the server. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a flowchart illustrating an embodiment of the method described in this invention;

[0030] Figure 2 This is a flowchart illustrating one implementation of the method described in this invention.

[0031] Figure 3 This is a schematic diagram of the structure of an embodiment of the system described in this invention;

[0032] Figure 4 This is a schematic diagram of an embodiment of the device described in this invention. Detailed Implementation

[0033] To clearly illustrate the technical features of this solution, the invention will be described in detail below through specific embodiments and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the invention. To simplify the disclosure of the invention, components and arrangements of specific examples are described below. Furthermore, reference numerals and / or letters may be repeated in different examples. This repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. It should be noted that the components illustrated in the drawings are not necessarily drawn to scale. Descriptions of well-known components, processing techniques, and processes are omitted in this invention to avoid unnecessarily limiting the invention.

[0034] like Figure 1 As shown, this embodiment of the invention provides a method for restoring a temporary storage area in a baseboard management controller, comprising the following steps:

[0035] S1, After the server is powered on, the temporary storage area of ​​the baseboard management controller is verified;

[0036] S2, If the verification fails, the files within the active area of ​​the baseboard management controller are compressed to the temporary storage area.

[0037] In step S1, the verification of the temporary storage area of ​​the substrate management controller specifically involves:

[0038] A hash operation is performed on the files within the temporary storage area. The result is compared with a pre-stored result. If they match, the verification passes; otherwise, the verification fails. The pre-stored result is the hash value of the temporary storage area when it is functioning normally. In this embodiment, the hash operation has two operation modes: SHA-only mode and ECDSA+SHA mode. In SHA-only mode, the verification performs SHA-256 digest generation, generates a result, and compares it with the pre-stored result. In ECDSA+SHA mode, the verification performs SHA2-256 digest generation, then performs signature verification, obtains the result, and compares it with the pre-stored result. The pre-stored result corresponds to the selected operation mode; that is, if SHA-only mode is selected, the pre-stored result is also calculated based on the normal temporary storage area files using SHA-only mode.

[0039] Taking the SHA-only operation mode as an example, the verification operation is explained as follows: Before running the hash operation, the data length is first configured through the data length register and the start bit of the SHA calculation is set through the status control register. During the verification, the payload data is written to the data register and the remaining data length is judged. When the remaining data length is 0, the data writing is stopped. Then, the completion bit of SHA is polled by reading the control status register. When the completion bit is 1, the hash operation ends. The operation result is obtained from the SHA result register and compared with the pre-stored result.

[0040] The failure of the verification includes cases where the files in the temporary storage area are corrupted or empty.

[0041] In one implementation of the method of the present invention, the method further includes the step of:

[0042] If the verification fails, the file in the baseboard management controller recovery area is copied to the temporary storage area.

[0043] In one implementation of the method of the present invention, the method further includes the step of:

[0044] Check the verification result of the active region. If the active region fails the verification, use the recovery region to restore the active region and compress the files in the restored active region to the temporary storage region.

[0045] It should be noted that, under normal circumstances, the recovery area and the temporary storage area store the same image compressed file, while the active area stores the decompressed file of the image compressed file. Therefore, the three can theoretically recover from each other, and the technical means of the above embodiments of this application are realized.

[0046] like Figure 2 As shown, after the server is powered on, the temporary storage area stage of the BMC is verified by the complex programmable logic device CPLD. If the verification passes, the BMC starts normally. Otherwise, it is determined whether the active area of ​​the baseboard management controller BMC has passed the verification. If it passes, the active area is used to restore the temporary storage area. Otherwise, the restored area is used to restore the active area. Then, the restored active area is used to restore the temporary storage area to ensure the normal startup of the baseboard management controller BMC.

[0047] Based on the above embodiments of the present invention, when restoring the internal area of ​​the baseboard management controller, the data source does not need to rely on external components (such as the basic input / output system BIOS), but can be achieved solely through data interaction between different areas within the baseboard management controller.

[0048] like Figure 3As shown, this embodiment of the invention also provides a system for restoring the temporary storage area of ​​a baseboard management controller, including a verification unit 1 and a first data recovery unit 2.

[0049] The verification unit 1 is used to verify the temporary storage area of ​​the baseboard management controller after the server is powered on; when the verification fails, the first data recovery unit 2 compresses the files in the active area of ​​the baseboard management controller to the temporary storage area.

[0050] In one implementation of the system embodiment of the present invention, the system further includes a second data recovery unit 3.

[0051] When the verification fails, the second data recovery unit 3 copies the files from the baseboard management controller recovery area to the temporary storage area.

[0052] In one implementation of the system embodiment of the present invention, the first data recovery unit 2 further includes a data recovery subunit 21. The data recovery subunit 21 checks the verification result of the active area. If the active area verification fails, the active area is restored using the recovery area, and the files in the restored active area are compressed to the temporary storage area.

[0053] like Figure 4 As shown, this embodiment of the invention also provides an apparatus for restoring the temporary storage area of ​​a substrate management controller. The apparatus includes a complex programmable logic device (CPLD) and a substrate management controller (BMC), and the system described in the above embodiment is deployed on the CPLD.

[0054] This invention also provides a computer storage medium storing computer instructions, which, when executed on a system, cause the system to perform the steps of the method.

[0055] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for restoring a temporary storage area in a baseboard management controller, characterized in that, The method includes the following steps: After the server is powered on, the temporary storage area of ​​the baseboard management controller is verified; If the verification fails, the files within the active area of ​​the baseboard management controller will be compressed to the temporary storage area. Specifically, after the server is powered on, the temporary storage area stage of the BMC is verified by the complex programmable logic device CPLD. If the verification passes, the BMC starts normally; otherwise, it is determined whether the active area of ​​the baseboard management controller BMC has passed the verification. If it passes, the active area is used to restore the temporary storage area; otherwise, the restored area is used to restore the active area, and then the restored active area is used to restore the temporary storage area.

2. The method for restoring the temporary storage area of ​​the baseboard management controller according to claim 1, characterized in that, The specific steps for verifying the temporary storage area of ​​the baseboard management controller are as follows: A hash operation is performed on the temporary storage area, and the result is compared with the pre-stored result. If they match, the verification passes; otherwise, the verification fails.

3. The method for restoring the temporary storage area of ​​the baseboard management controller according to claim 1, characterized in that, The verification fails if the file in the temporary storage area is corrupted or empty.

4. A system for restoring a temporary storage area of ​​a baseboard management controller, characterized in that, The system includes: The verification unit is used to verify the temporary storage area stage of the Baseboard Management Controller (BMC) after the server is powered on, through a complex programmable logic device (CPLD). The first data recovery unit checks the verification result of the active area of ​​the Baseboard Management Controller (BMC) when the verification fails. If the active area verification passes, the active area is used to restore the temporary storage area, and the files in the active area of ​​the Baseboard Management Controller are compressed to the temporary storage area. The first data recovery unit further includes a data recovery subunit. The data recovery subunit checks the verification result of the active area of ​​the Baseboard Management Controller (BMC). If the active area verification fails, the recovered active area is used to restore the temporary storage area, and the files in the recovered active area are compressed into the temporary storage area. The second data recovery unit copies the files from the baseboard management controller recovery area to the temporary storage area when the verification fails.

5. A device for restoring a temporary storage area of ​​a substrate management controller, characterized in that, The device includes a complex programmable logic device (CPLD) and a substrate management controller, wherein the system of claim 4 is deployed on the CPLD.

6. A computer storage medium storing computer instructions, characterized in that, When the computer instructions are executed on the system of claim 4, the system causes the system to perform the steps of the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Server firmware data storage method and device, server firmware data starting method and device, equipment and medium

    CN113849432A

  • BIOS firmware recovery method and system based on PFR, terminal and storage medium

    CN114116305A