Method and device for upgrading board-level management controller

By encrypting and signing the firmware program of the board-level management controller, and using connectionless transport layer protocol broadcast, the simultaneous upgrade of multiple servers is realized, which solves the problems of long upgrade time and large resource usage in the existing technology. Improved upgrade efficiency.

CN118860437APending Publication Date: 2024-10-29SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410844592.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

With the existing technology, it is difficult to efficiently upgrade the board-level management controller during the server upgrade process. Especially in large-volume upgrade scenarios, the upgrade time is long and resources are occupied, which reduces the upgrade efficiency.

Method used

By obtaining the firmware program for upgrade, perform encryption and signature operations, generate a broadcastable second firmware program, and use the connectionless transport layer protocol to broadcast it to multiple servers for signature verification and decryption to achieve simultaneous upgrade of multiple servers. .

Benefits of technology

Without the need for high-performance resources, it dynamically supports different numbers of server BMCs, significantly reducing the upgrade time of multiple servers and improving the upgrade efficiency of board-level management controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860437A_ABST
    Figure CN118860437A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an upgrading method and device for a board-level management controller. The method comprises the steps that a first firmware program used for upgrading the board-level management controller is acquired from an upgrading instruction from a target object; obtaining a second firmware program obtained by sequentially performing encryption operation and signature operation on the first firmware program; broadcasting the second firmware program to a plurality of servers; sequentially performing signature verification operation and decryption operation on the second firmware program by using the to-be-upgraded server to obtain a first firmware program; and upgrading the to-be-upgraded board-level management controller by using the first firmware program to upgrade the to-be-upgraded server so as to obtain an upgraded server. Through application of the method and the device, the technical problem of how to efficiently upgrade the board-level management controller in the upgrade process of the server in related technologies is solved, so that the effect of improving the upgrade efficiency of the board-level management controller is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the server field, and in particular, to a method and device for upgrading a board-level management controller. Background Art

[0002] Processors have been widely used in various industries in the server field. As server technology continues to mature, people's demand for server upgrades is also increasing, especially for server clusters, which often require rapid upgrades of the BMCs (Baseboard Management Controllers) of multiple servers.

[0003] In the related art, all online devices can be directly upgraded in a loop, but this method can only upgrade a single server at a time, which will greatly increase the upgrade time in a large-scale upgrade scenario. There is also an upgrade method that starts multiple upgrade threads at the same time according to the number of BMCs that need to be upgraded. Although this upgrade method reduces the upgrade time, it requires a large amount of server resources. When server resources are insufficient, the upgrade efficiency of the BMC will be reduced.

[0004] Therefore, in the related art, during the upgrade process of the server, there is a technical problem of how to efficiently upgrade the board management controller.

[0005] In the related art, there is no effective solution to the technical problem of how to efficiently upgrade the board management controller during the upgrade process of the server. Summary of the invention

[0006] The embodiments of the present application provide a method and device for upgrading a board management controller, so as to at least solve the technical problem in the related art of how to efficiently upgrade a board management controller during an upgrade process of a server.

[0007] According to an embodiment of the present application, a method for upgrading a board management controller is provided, which is applied to a server pre-installed with the board management controller, wherein the server at least supports a connectionless transport layer protocol, and the server is also pre-installed with other components, and the other components at least include a mainboard of the server, a power supply of the server, and a logic circuit of the server; comprising: obtaining a first firmware program for upgrading the board management controller from an upgrade instruction from a target object; obtaining a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program; broadcasting the second firmware program to multiple servers, wherein the multiple servers at least include a server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded; using the server to be upgraded to perform signature verification operations and decryption operations on the second firmware program in sequence to obtain the first firmware program; using the first firmware program to upgrade the board management controller to be upgraded, so as to upgrade the server to be upgraded and obtain an upgraded server.

[0008] In an exemplary embodiment, the method of obtaining a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program includes: obtaining multiple data blocks obtained by splitting the first firmware program, wherein the data amount of the multiple data blocks is less than or equal to a preset data amount; encrypting each data block using a key generated based on a symmetric encryption algorithm and a preset encryption mode to obtain an encryption result of each data block; merging the multiple encryption results into an encrypted first firmware program; and obtaining the second firmware program by signing the encrypted first firmware program.

[0009] In an exemplary embodiment, the second firmware program is obtained by signing the encrypted first firmware program, including: using a hash algorithm to calculate a first hash value corresponding to the encrypted first firmware program; using an asymmetric encryption algorithm and a private key file of the asymmetric encryption algorithm to calculate a signature value corresponding to the first hash value; merging firmware byte information of the first firmware program and signature byte information corresponding to the signature value to obtain a merged result; and determining the second firmware program based on the firmware program corresponding to the merged result.

[0010] In an exemplary embodiment, broadcasting the second firmware program to multiple servers includes: determining all servers within the broadcast range; sending a first broadcast message to all the servers based on the connectionless transport layer protocol; receiving reply messages from all the servers to the first broadcast message; wherein the reply message includes device information of a board management controller of each server, and the device information includes at least the manufacturer of the board management controller, the model of the board management controller, and the version of the board management controller; selecting a first server from all the servers, the version of the board management controller of the first server being lower than the firmware version corresponding to the second firmware program; and broadcasting the second firmware program to the multiple first servers for the multiple first servers. wherein broadcasting the second firmware program to the plurality of first servers comprises: monitoring the upgrade status of the first server, and when determining that the upgrade status of the first server is in the process of upgrading, stopping sending data packets of the second firmware program to the first server; when determining that the upgrade status of the first server is to be upgraded, continuously sending data packets belonging to the second firmware program to the first server until all data packets belonging to the second firmware program are sent; when determining that the upgrade status of the first server is upgrade completed, stopping sending data packets of the second firmware program to the first server; determining a second server other than the first server from all the servers, and stopping sending data packets of the second firmware program to the first server.

[0011] In an exemplary embodiment, after receiving reply information from all the servers to the first broadcast information, the method further includes: when it is determined that there is an empty message packet in the reply message, determining the server corresponding to the empty message packet, and determining the server corresponding to the empty message packet as an unanswered server, and sending a prompt message to the target object, wherein the prompt message is used to prompt the target object to check the unanswered server; or, when it is determined that there is an empty message packet in the reply message, sending the first broadcast message to all the servers until the empty message packet no longer exists in the reply message.

[0012] In an exemplary embodiment, the use of the server to be upgraded to perform signature verification operations and decryption operations on the second firmware program in sequence to obtain the first firmware program includes: obtaining end byte information from the firmware byte information of the second firmware program, wherein the end byte information is located at the end of the firmware byte information of the second firmware program; using an asymmetric encryption algorithm and a public key file of the asymmetric encryption algorithm to decrypt the end byte information to obtain first byte information; using a hash algorithm to calculate other byte information in the firmware byte information of the second firmware program except the end byte information to obtain a second hash value; comparing the first byte information with the second byte information corresponding to the second hash value; when it is determined that the first byte information is consistent with the second byte information, determining that the firmware byte information of the second firmware program is complete; using a symmetric encryption algorithm to decrypt the other byte information to obtain the first firmware program.

[0013] In an exemplary embodiment, before obtaining the first firmware program for upgrading the board-level management controller from the upgrade instruction from the target object, the method also includes: when it is determined that a first communication channel exists with the operation terminal of the target object, receiving the upgrade instruction of the target object based on the first communication channel; when it is determined that there is no first communication channel with the operation terminal of the target object or the first communication channel is interrupted, determining the backup server to which the operation terminal of the target object belongs; establishing a second communication channel with the backup server, and receiving the upgrade instruction from the target object forwarded by the backup server via the second communication channel.

[0014] According to another embodiment of the present application, an upgrade device for a board management controller is provided, comprising: a first acquisition module, used to acquire a first firmware program for upgrading the board management controller from an upgrade instruction from a target object; a second acquisition module, used to acquire a second firmware program obtained after sequentially performing encryption operations and signing operations on the first firmware program; a broadcast module, used to broadcast the second firmware program to multiple servers, wherein the multiple servers at least include a server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded; an acquisition module, used to use the server to be upgraded to sequentially perform signature verification operations and decryption operations on the second firmware program to obtain the first firmware program; and an upgrade module, used to use the first firmware program to upgrade the board management controller to be upgraded, so as to upgrade the server to be upgraded and obtain an upgraded server.

[0015] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0016] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0017] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0018] Through the present application, the first firmware program for upgrading the board management controller is encrypted and signed in sequence, and the second firmware program obtained after the encryption and signing operations are performed on the first firmware program in sequence is obtained, and then the second firmware program is broadcast to multiple servers, wherein the multiple servers at least include the server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with the board management controller to be upgraded, and then the server to be upgraded is used to perform signature verification and decryption operations on the second firmware program in sequence to obtain the first firmware program, and then the board management controller to be upgraded is upgraded using the first firmware program to upgrade the server to be upgraded to obtain the upgraded server. In this way, the BMCs of multiple server devices can be upgraded synchronously at the same time, and different numbers of server BMCs can be dynamically supported, that is, without the need for high-performance resources, the BMC upgrades of multiple servers can be completed within the time of upgrading the BMC of one server device, effectively reducing the upgrade time of multiple servers. Therefore, the technical problem of how to efficiently upgrade the board management controller in the upgrade process of the server in the related technology can be solved, and the upgrade efficiency of the board management controller can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 The hardware structure frame of the server device of a board-level management controller upgrade method of the embodiment of the present application is Figure 2

[0020] Figure 2 A process of upgrading a board management controller according to an embodiment of the present application Figure 2

[0021] Figure 3 A process for encrypting and signing a firmware program according to an embodiment of the present application Figure 2

[0022] Figure 4 A process for broadcasting and uploading a firmware program according to an embodiment of the present application Figure 2

[0023] Figure 5 A schematic diagram of a BMC upgrade process according to an embodiment of the present application Figure 2

[0024] Figure 6 It is a structural schematic diagram of an upgrade device of a board-level management controller according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0027] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for upgrading a board-level management controller according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 The server device includes a processor 102 (only one is shown) (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the upgrade method of the board-level management controller in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] Next, some technical terms in this application are explained:

[0031] Linux system: GNU / Linux, a UNIX-like operating system that is free to use and freely distributed.

[0032] ARM processor: refers to a microprocessor architecture. ARM processors are favored by mobile devices, embedded systems and other portable devices for their high energy efficiency and low power consumption. They are widely used in smart phones, tablet computers, smart home devices, automotive electronics and other fields.

[0033] Firmware program: In this application, it refers to the complete program running on the ARM processor for the system to work normally, including BootLoader, Kernel, RootFs, OtherFs and other programs.

[0034] UDP: User Datagram Protocol. UDP is a connectionless transmission protocol in the OSI (Open System Interconnection) reference model. It provides simple, transaction-oriented, unreliable information transmission services. IETF RFC 768[1] is the official specification of UDP. UDP is used to send simple data packets in IP networks. Unlike TCP (Transmission Control Protocol), UDP does not provide order guarantees, retransmission mechanisms, or flow control for data packets. It has low latency characteristics and is therefore commonly used in video conferencing, online games, network monitoring, and other application scenarios that can tolerate a certain amount of data loss but require fast transmission.

[0035] BMC: Baseboard Management Controller, a board-level management controller, is usually used as a hardware component of servers, storage devices, and high-end workstations. It provides an access interface to the outside world through the IPMI (Intelligent Platform Management Interface) protocol, allowing processes to monitor and manage the normal operation and health of hardware. BMC can perform a variety of tasks, including hardware status monitoring, system power control, system restart, process diagnosis and update, etc.

[0036] Firmware upgrade: indicates that the BMC device firmware program update operation is completed.

[0037] BIOS: Basic Input / Output System, is essentially a set of programs fixed on a ROM chip on the computer's motherboard, which stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program, and can read and write specific information of system settings from CMOS. As a set of firmware that runs when the computer starts, BIOS is responsible for initializing hardware devices and loading the operating system, providing a bridge between the computer and the operating system, and supporting basic hardware control and system configuration.

[0038] CPLD: Complex Programmable Logic Device, a digital integrated circuit that users can construct logic functions according to their own needs. CPLD usually contains multiple smaller logic units, which can be connected together through programming to form a complex logic circuit. Its basic design method is to use the integrated development software platform, schematic diagram, hardware description language and other methods to generate the corresponding target file, and transfer the code of the target file to the target chip through the download cable to realize the designed digital system.

[0039] SHA1: is a cryptographic hash function. SHA-1 can generate a 160-bit (20-byte) hash value called a message digest. The hash value is usually presented as 40 hexadecimal numbers.

[0040] RSA2048: is an asymmetric encryption algorithm whose security is based on the difficulty of factoring large numbers. Both the public key and the private key are 2048 bits long.

[0041] In this embodiment, a method for upgrading a board-level management controller is provided. The method is applied to a server pre-installed with the board-level management controller, wherein the server at least supports a connectionless transport layer protocol, and the server is also pre-installed with other components, wherein the other components at least include a mainboard of the server, a power supply of the server, and a logic circuit of the server. Next, in combination with Figure 2 Provide explanation.

[0042] Figure 2 is a flow chart of a method for upgrading a board management controller according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0043] Step S202, obtaining a first firmware program for upgrading the board management controller from an upgrade instruction from a target object;

[0044] Step S204, obtaining a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program;

[0045] Step S206, broadcasting the second firmware program to multiple servers, wherein the multiple servers at least include the server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded;

[0046] Step S208, using the server to be upgraded to perform signature verification and decryption operations on the second firmware program in sequence to obtain the first firmware program;

[0047] Step S210: Use the first firmware program to upgrade the board management controller to be upgraded, so as to upgrade the server to be upgraded and obtain an upgraded server.

[0048] It is understandable that, in the case of multiple servers to be upgraded, the multiple servers to be upgraded can be upgraded synchronously.

[0049] Through the above steps, the first firmware program for upgrading the board management controller is encrypted and signed in sequence, and the second firmware program obtained after the encryption and signing operations are performed on the first firmware program in sequence is obtained, and then the second firmware program is broadcast to multiple servers, wherein the multiple servers at least include the server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with the board management controller to be upgraded, and then the server to be upgraded is used to perform signature verification and decryption operations on the second firmware program in sequence to obtain the first firmware program, and then the board management controller to be upgraded is upgraded using the first firmware program to upgrade the server to be upgraded to obtain the upgraded server. In this way, the BMCs of multiple server devices can be upgraded synchronously at the same time, and different numbers of server BMCs can be dynamically supported, that is, without the need for high-performance resources, the BMC upgrades of multiple servers can be completed within the time of upgrading the BMC of one server device, effectively reducing the upgrade time of multiple servers. Therefore, the technical problem of how to efficiently upgrade the board management controller in the upgrade process of the server in the related technology can be solved, and the upgrade efficiency of the board management controller can be improved.

[0050] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0051] Optionally, it should be noted that the upgrade method of the board management controller in the present application can maximize the efficiency of multi-server BMC upgrades. Although the implementation methods described in the present application are as above, the above description and definition are only for the convenience of understanding the implementation methods of the present application, and are not used to limit the present application. Any modifications and changes made without departing from the spirit and scope of the present application, especially the different components that support server upgrades, including but not limited to BMC (such as power supply, BIOS, etc.), firmware program security and integrity algorithm modifications and changes, are within the scope of protection of the present application. In other words, for other components of the server, they can be upgraded with reference to the upgrade method of the board management controller, and the present application will not repeat them here.

[0052] Optionally, for a motherboard, it can be understood as a BIOS (Basic Input / Output System), for example. For a logic circuit, it can be understood as a CPLD (Complex Programmable Logic Device), for example.

[0053] Optionally, for the above connectionless transport layer protocol, taking UDP protocol as an example, the UDP protocol can be used to broadcast the second firmware program to multiple servers.

[0054] In an exemplary embodiment, the implementation process of acquiring the second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program in the above step S204 specifically includes the following steps:

[0055] Step S11, obtaining a plurality of data blocks obtained by splitting the first firmware program, wherein the data amount of the plurality of data blocks is less than or equal to a preset data amount;

[0056] Step S12, encrypting each data block using a key generated based on a symmetric encryption algorithm and a preset encryption mode to obtain an encryption result of each data block;

[0057] Step S13, combining multiple encryption results into an encrypted first firmware program;

[0058] Step S14: obtaining the second firmware program by signing the encrypted first firmware program.

[0059] In this embodiment, the first firmware program is encrypted twice by a symmetric encryption algorithm, which can ensure that the key information of the firmware program is not stolen, effectively improving the security of the firmware program. At the same time, by signing the encrypted firmware program, the risk of firmware program damage can be further reduced.

[0060] For the above encryption symmetric algorithms, take AES (Advanced Encryption Standard) as an example to illustrate the encryption process: First, generate an AES key. The length of the AES key can be 128, 192 or 256 bits, which will directly affect the security of the encryption. Then select a suitable encryption mode, such as ECB (Electronic Codebook Mode), CBC (Cipher Block Chaining Mode), CFB (Cipher Feedback Mode), OFB (Output Feedback Mode) or CTR (Counter Mode). Different modes have different characteristics and application scenarios. Then initialize the vector (IV): For most AES modes (except ECB mode), an initialization vector (IV) is required. IV is a randomly generated data block used to increase the security of encryption. Then the data to be encrypted is divided into fixed-size data blocks, usually 128 bits (16 bytes). Then use the AES algorithm and the selected key, mode and IV to encrypt each data block. If the last data block is not enough to fill 128 bits, a padding method (such as PKCS#7) is needed to supplement it to the size of the full block. Finally, all encrypted data blocks are merged into the final encrypted data stream. The encrypted data is then output (usually a binary data stream).

[0061] In practical applications, the final encrypted data stream can also be encoded (such as Base64 encoding) for easy storage or transmission. The key and IV need to be securely stored and kept because they are essential for decrypting the data. In this way, the encrypted data can be securely transmitted or stored to ensure the confidentiality of the data.

[0062] It should be noted that the process of using AES encryption needs to consider the balance between security and efficiency. Correct key management and the use of appropriate encryption modes are essential to ensure the security of encrypted data. In practical applications, the decryption process of encrypted data also needs to be considered to ensure that the data can be correctly decrypted by authorized users.

[0063] In an exemplary embodiment, further, step S14 may also include:

[0064] Step S21, using a hash algorithm to calculate a first hash value corresponding to the encrypted first firmware program;

[0065] Step S22, using an asymmetric encryption algorithm and a private key file of the asymmetric encryption algorithm to calculate a signature value corresponding to the first hash value;

[0066] Step S23, merging the firmware byte information of the first firmware program and the signature byte information corresponding to the signature value to obtain a merging result;

[0067] It can be understood that the process of merging the firmware byte information of the first firmware program and the signature byte information corresponding to the signature value may include appending the signature byte information to the end of the firmware byte information, or adding the signature byte information to the beginning of the firmware byte information, but is not limited to this.

[0068] Step S24: determining the second firmware program according to the firmware program corresponding to the merging result.

[0069] In this embodiment, the encrypted first firmware program may be further signed to improve the integrity of the firmware program, thereby achieving the purpose of ensuring the integrity of the firmware program.

[0070] The use of a hash algorithm to calculate the first hash value corresponding to the encrypted first firmware program in step S21 can be understood as using a hash algorithm to calculate the digest of the first firmware program. This implementation process can be understood in conjunction with the following content:

[0071] A hash algorithm is used to convert data of any length into a hash value of fixed length. This hash value can be regarded as the "fingerprint" of the data. For different input data, its hash value is usually unique. Among them, the length of the summary generated by the hash algorithm is fixed and has nothing to do with the size of the original data. For example, the length of the summary generated by the SHA256 algorithm is 256 bits. Different hash functions have different characteristics and scopes of application. Choosing an appropriate hash function is crucial to meeting the security requirements of specific applications. Using a hash algorithm to calculate the summary of a program is essentially to generate a unique value of a fixed length that can represent the program content. This value can be used to verify the integrity and consistency of the program, but cannot be used to restore the original program content.

[0072] It should be noted that, unlike encryption algorithms, encryption algorithms can be decrypted back to the original data. Hash algorithms are one-way, that is, it is almost impossible to reverse the original data from the hash value, which further increases the credibility of the hash value. If the data is tampered with during the process, even if there is only a small change, the hash value will change. Therefore, the integrity of the data during transmission or storage can be confirmed based on whether the generated hash value changes.

[0073] Furthermore, for the encryption signature process of the firmware program, further combined with Figure 3 To explain, Figure 3 As shown, the following steps are included:

[0074] Step S301, start firmware encryption;

[0075] Step S302, encrypt the file using AES;

[0076] The firmware encryption signature first needs to encrypt the firmware program, that is, encrypt the firmware program as a whole. After AES encryption, the entire image file cannot be used by some parsing tools to obtain the system configuration tree file and file system file.

[0077] Step S303, whether the encryption is successful, if successful, execute step S304, if failed, execute step S310.

[0078] Step S304, writing the encrypted data into a new file;

[0079] In order to avoid the risk of firmware leakage during the upgrade process, the firmware program needs to be encrypted during the upgrade. This ensures that the data captured during the data transmission process is also data that cannot be cracked. Therefore, through the encryption process of the above steps, the security of the firmware program can be improved.

[0080] Step S305, the new file after AES encryption is subjected to HASH digest calculation, that is, the encrypted firmware program is subjected to HASH algorithm to calculate the digest.

[0081] Step S306, whether the HASH calculation is successful, if so, execute step S307, if not, execute step S310.

[0082] Step S307, perform RSA2048 signature on the HASH data;

[0083] Step S308, whether the RSA signature is successful, if so, execute step S309, if not, execute step S310.

[0084] Step S309, append the signature data to the end of the new file.

[0085] The calculated summary data is signed using the RSA2048 algorithm (asymmetric encryption algorithm), and the signed 256 bytes are appended to the end of the encrypted firmware program file to become a new firmware program file. The firmware program file uploaded during the upgrade is the encrypted and signed file.

[0086] Step S310, prompting that the encryption process fails.

[0087] Step S311, encryption signature is completed.

[0088] In an exemplary embodiment, further, based on the above embodiment, the implementation scheme of broadcasting the second firmware program to multiple servers in the above step S206 can be further described, and the specific steps include:

[0089] Step S3 1, determining all servers within the broadcast range; sending first broadcast information to all the servers based on the connectionless transport layer protocol;

[0090] Step S32, receiving reply information of all the servers to the first broadcast information;

[0091] The reply information includes device information of the board level management controller of each server, and the device information includes at least the manufacturer of the board level management controller, the model of the board level management controller, and the version of the board level management controller;

[0092] Wherein, when the server is online, a reply message can be sent. If there is an empty message packet in the reply message, it means that the server corresponding to the empty message packet is not online (ie, offline or disconnected).

[0093] Optionally, if there is an empty message packet, the first broadcast message is repeatedly sent to all servers until all servers respond successfully (ie, there is no empty message packet), so as to facilitate the subsequent completion of the process of all servers synchronously receiving the second firmware program.

[0094] Step S33, selecting a first server from all the servers, wherein a version of a board management controller of the first server is lower than a firmware version corresponding to the second firmware program;

[0095] Step S34, broadcasting the second firmware program to the multiple first servers;

[0096] Through the above steps, the first broadcast information can be sent to all servers within the broadcast range by using the connectionless transport layer protocol, and then according to the reply information of all the servers to the first broadcast information, a first server whose version is lower than the firmware version corresponding to the second firmware program is selected from all the servers according to the reply message, and for multiple first servers, the second firmware program is broadcast to the multiple first servers, that is, after the server where the BMC to be upgraded is located is identified from all the servers, the firmware program can be broadcast to the BMC of the server to be upgraded through the UDP protocol, thereby realizing a technical solution for upgrading multiple servers at the same time and improving the upgrade efficiency of multiple servers.

[0097] Regarding step S34, further, the following steps may be included:

[0098] Step S41, monitoring the upgrade status of the first server, and when determining that the upgrade status of the first server is in the process of upgrading, stopping sending the data packet of the second firmware program to the first server;

[0099] Step S42, when it is determined that the upgrade status of the first server is to be upgraded, continuously sending data packets belonging to the second firmware program to the first server until all data packets belonging to the second firmware program are sent;

[0100] Step S43, when it is determined that the upgrade status of the first server is upgrade completed, stop sending data packets of the second firmware program to the first server; determine a second server other than the first server from all the servers, and stop sending data packets of the second firmware program to the first server.

[0101] Optionally, in one embodiment, the firmware program broadcast process may be described in combination with the following contents, specifically including:

[0102] The first step is to obtain the key information of the online BMC device (such as manufacturer, model, version, etc.) through UDP, and record the server BMC device that responds. This process is used to simultaneously record the online BMC devices and determine the server BMC device that matches the corresponding manufacturer and model to prevent mis-upgrade.

[0103] like Figure 4 As shown, this step further includes:

[0104] Step S401: firmware program broadcast upload.

[0105] Step S402, sending a UDP instruction and waiting for a response from the online device.

[0106] Step S403, parse the IP of the replying device and record the IP and the number of reply packets.

[0107] The second step is to send a UDP command to obtain the upgrade status of the online BMC device. For the BMC device being upgraded, mark it as not receiving subsequent data packets.

[0108] like Figure 4 As shown, this step further includes:

[0109] Step S404, sending a UDP packet to obtain the device upgrade status.

[0110] Step S405: When the device upgrade status is in the process of upgrading, the recorded IP is deleted and the number of online devices is reduced by 1.

[0111] Step S406, sending a UDP packet, setting the device being upgraded not to receive the UDP upgrade packet.

[0112] Step S407: when the device status is not upgraded, determine whether the firmware program data packet has been sent. If yes, execute step S412; if no, execute step S408.

[0113] The third step is to send the program package in a loop until the firmware program is sent completely.

[0114] like Figure 4 As shown, this step further includes:

[0115] Step S408, sending the firmware program data packet.

[0116] Step S409, waiting to receive a UDP ACK response from the BMC.

[0117] Step S410, determine whether the number of responding BMCs is equal to the number of online devices. If yes, execute step S411, if no, execute step S407.

[0118] Step S411, the number of sub-packages of the sent firmware program package is increased by one.

[0119] Step S412: The firmware package upload is completed.

[0120] In the above steps, if some devices fail to send a response packet, they will be sent repeatedly until all devices respond successfully. This step completes the synchronous reception of the firmware programs of all server BMC devices.

[0121] The broadcast of the firmware program is a key step to achieve the performance improvement of the upgrade. The steps of this embodiment can achieve the purpose of the BMCs of multiple server devices receiving the firmware program at the same time, improve the upgrade efficiency of the BMCs of multiple servers, and further improve the upgrade efficiency of multiple servers.

[0122] In an exemplary embodiment, further, when it is determined that there is an empty message packet in the reply message, the server corresponding to the empty message packet can be determined, and the server corresponding to the empty message packet can be determined as an unanswered server, and a prompt message can be sent to the target object, wherein the prompt message is used to prompt the target object to check the unanswered server; or, when it is determined that there is an empty message packet in the reply message, the first broadcast message can be sent to all the servers until the empty message packet no longer exists in the reply message.

[0123] In an exemplary embodiment, the process of using the server to be upgraded to sequentially perform a signature verification operation and a decryption operation on the second firmware program to obtain the first firmware program in step S208 further includes:

[0124] Step S41, acquiring end byte information from the firmware byte information of the second firmware program, wherein the end byte information is located at the end of the firmware byte information of the second firmware program;

[0125] Step S42, using an asymmetric encryption algorithm and a public key file of the asymmetric encryption algorithm to decrypt the last byte information to obtain the first byte information;

[0126] Step S43, using a hash algorithm to calculate other byte information in the firmware byte information of the second firmware program except the last byte information to obtain a second hash value;

[0127] Step S44, comparing the first byte information with the second byte information corresponding to the second Hash value;

[0128] Step S45, when it is determined that the first byte information is consistent with the second byte information, determining that the firmware byte information of the second firmware program is complete;

[0129] Step S46: Use a symmetric encryption algorithm to decrypt the other byte information to obtain the first firmware program.

[0130] Optionally, in the above embodiment, the first byte information obtained by decryption corresponds to the signature byte information in the encryption process, and the hash algorithm used to calculate the second hash value is consistent with the hash algorithm used to calculate the first hash value. The other byte information used in calculating the second hash value corresponds to the firmware byte information of the first firmware program in the encryption process.

[0131] Through the above embodiments, the signature verification and decryption process is added to the BMC upgrade process, and the original firmware program is successfully restored, which facilitates subsequent upgrade using the firmware program.

[0132] Optional, can be combined with Figure 5 The firmware upgrade process is described as follows:

[0133] Step S501, start upgrading the BMC.

[0134] Step S502, intercepting the last 256 bytes of the firmware package. First, the last 256 bytes of the uploaded firmware package are obtained, and the 256 bytes represent the signature data of the firmware package (ie, the second firmware package).

[0135] Step S503, parse the 256-byte signature using the RSA algorithm, and record the result as R1, that is, parse the signature data using RSA2048 and the public key file, and temporarily store the calculated result (R1).

[0136] Step S504, calculate the HASH value (marked as R2) of the remaining firmware upgrade file, that is, use the HASH algorithm to calculate the HASH value (R2) of the remaining firmware package (that is, other firmware information) after removing 256 bytes, and the HASH algorithm remains consistent with the HASH algorithm used for signing.

[0137] Step S505: Check whether the values ​​of R1 and R2 are consistent. If yes, go to step S507. If no, go to step S506.

[0138] Step S506: If the values ​​of R1 and R2 are inconsistent, a UDP data packet is sent to notify that the upgrade has failed.

[0139] Step S507, decrypt the encrypted file using AES. If the values ​​of R1 and R2 are consistent, it proves that the firmware program is uploaded completely, there is no data loss or data error, and the decryption can be normal at this time.

[0140] Step S508, transferring the decrypted file to a new file. The decrypted data of the remaining firmware package after removing 256 bytes by using AES in step S507 is stored in a new file, and then the new file is used to continue to execute the subsequent upgrade business process.

[0141] Step S509, start executing the specific process of upgrading until the upgrading is completed.

[0142] Step S510, the upgrade is completed.

[0143] Through the above steps, after the firmware program broadcast upload is completed, the firmware program can be upgraded. The signature of the firmware program is verified and decrypted to obtain the firmware to be upgraded, and then the upgrade can be completed according to the existing upgrade process.

[0144] In an exemplary embodiment, before obtaining the first firmware program for upgrading the board management controller from the upgrade instruction from the target object in step S202, the following technical solution is further implemented:

[0145] Step S51, when it is determined that there is a first communication channel between the target object and the operation terminal of the target object, receiving an upgrade instruction of the target object based on the first communication channel;

[0146] Step S52, determining a standby server to which the operation terminal of the target object belongs when it is determined that there is no first communication channel with the operation terminal of the target object or the first communication channel is interrupted;

[0147] Step S53: establishing a second communication channel with the standby server, and receiving an upgrade instruction from the target object forwarded by the standby server via the second communication channel.

[0148] Through the above embodiments, the broadcast upgrade of BMC devices based on UDP does not limit the performance or resources of the upgraded devices. And the UDP packet return mechanism, the device that receives the UDP data packet actively parses and adds the UDP packet return. During the broadcast upgrade, the protection capability for the security and integrity of the BMC firmware transmission is improved. Based on UDP, the synchronous upgrade of BMCs of multiple servers greatly improves the upgrade efficiency of BMC, and the upgrade of multiple BMC devices is achieved within the upgrade time of one BMC. Through AES encryption and signing of data, the security and integrity of the firmware program are greatly guaranteed. At the same time, the BMC synchronous upgrade method of multiple servers of the present application is also applicable to other components in the field of server monitoring, such as broadcast upgrade processes of power supply, BIOS, etc. It brings great convenience to the scenarios of production and on-site upgrade of multiple devices.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] In this embodiment, a device for upgrading a board-level management controller is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0151] Figure 6 is a structural diagram of an upgrade device of a board-level management controller according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0152] A first acquisition module 602 is used to acquire a first firmware program for upgrading the board management controller from an upgrade instruction from a target object;

[0153] A second acquisition module 604 is used to acquire a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program;

[0154] A broadcast module 606, configured to broadcast the second firmware program to a plurality of servers, wherein the plurality of servers at least include a server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded;

[0155] Obtaining module 608, for using the server to be upgraded to perform signature verification operation and decryption operation on the second firmware program in sequence to obtain the first firmware program;

[0156] The upgrade module 610 is used to use the first firmware program to upgrade the board management controller to be upgraded, so as to upgrade the server to be upgraded and obtain an upgraded server.

[0157] Through the above device, the first firmware program for upgrading the board management controller is encrypted and signed in sequence, and the second firmware program obtained after the encryption and signing operations are performed on the first firmware program in sequence is obtained, and then the second firmware program is broadcast to multiple servers, wherein the multiple servers at least include the server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with the board management controller to be upgraded, and then the server to be upgraded is used to perform signature verification and decryption operations on the second firmware program in sequence to obtain the first firmware program, and then the board management controller to be upgraded is upgraded using the first firmware program to upgrade the server to be upgraded to obtain the upgraded server. In this way, the BMCs of multiple server devices can be upgraded synchronously at the same time, and different numbers of server BMCs can be dynamically supported, that is, without the need for high-performance resources, the BMC upgrades of multiple servers can be completed within the time of upgrading the BMC of one server device, effectively reducing the upgrade time of multiple servers. Therefore, the technical problem of how to efficiently upgrade the board management controller in the upgrade process of the server in the related technology can be solved, and the upgrade efficiency of the board management controller can be improved.

[0158] In an exemplary embodiment, the second acquisition module 604 is also used to: obtain multiple data blocks obtained by splitting the first firmware program, the data amount of the multiple data blocks is less than or equal to the preset data amount; encrypt each data block using a key generated based on a symmetric encryption algorithm and a preset encryption mode to obtain an encryption result of each data block; merge the multiple encryption results into an encrypted first firmware program; and obtain the second firmware program by signing the encrypted first firmware program.

[0159] In an exemplary embodiment, the second acquisition module 604 is also used to: use a hash algorithm to calculate a first hash value corresponding to the encrypted first firmware program; use an asymmetric encryption algorithm and a private key file of the asymmetric encryption algorithm to calculate a signature value corresponding to the first hash value; merge the firmware byte information of the first firmware program and the signature byte information corresponding to the signature value to obtain a merged result; and determine the second firmware program based on the firmware program corresponding to the merged result.

[0160] In an exemplary embodiment, the broadcast module 606 is further used to: determine all servers within the broadcast range; send a first broadcast message to all the servers based on the connectionless transport layer protocol; receive reply messages from all the servers to the first broadcast message; wherein the reply message includes device information of the board management controller of each server, and the device information includes at least the manufacturer of the board management controller, the model of the board management controller, and the version of the board management controller; select a first server from all the servers, the version of the board management controller of the first server is lower than the firmware version corresponding to the second firmware program; for multiple first servers, broadcast the second firmware program to the multiple first servers; wherein, Broadcasting the second firmware program to the multiple first servers includes: monitoring the upgrade status of the first server, and when determining that the upgrade status of the first server is upgrading, stopping sending data packets of the second firmware program to the first server; when determining that the upgrade status of the first server is to be upgraded, continuously sending data packets belonging to the second firmware program to the first server until all data packets belonging to the second firmware program are sent; when determining that the upgrade status of the first server is upgrade completed, stopping sending data packets of the second firmware program to the first server; determining a second server other than the first server from all the servers, and stopping sending data packets of the second firmware program to the first server.

[0161] In an exemplary embodiment, the broadcast module 606 is also used to: when it is determined that there is an empty message packet in the reply message, determine the server corresponding to the empty message packet, and determine the server corresponding to the empty message packet as an unanswered server, and send a prompt message to the target object, wherein the prompt message is used to prompt the target object to check the unanswered server; or, when it is determined that there is an empty message packet in the reply message, send the first broadcast message to all the servers until the empty message packet no longer exists in the reply message.

[0162] In an exemplary embodiment, the obtaining module 608 is also used to: obtain the end byte information from the firmware byte information of the second firmware program, wherein the end byte information is located at the end of the firmware byte information of the second firmware program; decrypt the end byte information using an asymmetric encryption algorithm and a public key file of the asymmetric encryption algorithm to obtain the first byte information; calculate the other byte information in the firmware byte information of the second firmware program except the end byte information using a hash algorithm to obtain a second hash value; compare the first byte information with the second byte information corresponding to the second hash value; when it is determined that the first byte information is consistent with the second byte information, determine that the firmware byte information of the second firmware program is complete; and decrypt the other byte information using a symmetric encryption algorithm to obtain the first firmware program.

[0163] In an exemplary embodiment, further, the upgrade device of the board-level management controller also includes: an instruction receiving module, which is used to receive the upgrade instruction of the target object based on the first communication channel when it is determined that there is a first communication channel between the target object and the operation terminal of the target object before obtaining the first firmware program for upgrading the board-level management controller from the upgrade instruction from the target object; determine the backup server to which the operation terminal of the target object belongs when it is determined that there is no first communication channel between the target object and the operation terminal or the first communication channel is interrupted; establish a second communication channel with the backup server, and receive the upgrade instruction from the target object forwarded by the backup server via the second communication channel.

[0164] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0165] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0166] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0167] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0168] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0169] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0170] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0171] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0172] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0173] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0174] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for upgrading a board management controller, characterized in that: Applied to a server pre-installed with the board-level management controller, wherein the server at least supports a connectionless transport layer protocol, and the server is also pre-installed with other components, the other components at least including a mainboard of the server, a power supply of the server, and a logic circuit of the server; including: Acquire a first firmware program for upgrading the board management controller from an upgrade instruction from a target object; acquire a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program; broadcast the second firmware program to a plurality of servers, wherein the plurality of servers at least include a server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded; Using the server to be upgraded to perform signature verification and decryption operations on the second firmware program in sequence to obtain the first firmware program; The board management controller to be upgraded is upgraded using the first firmware program, so as to upgrade the server to be upgraded and obtain an upgraded server.

2. The method according to claim 1, characterized in that The obtaining of the second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program includes: Acquire a plurality of data blocks obtained by splitting the first firmware program, wherein the data amount of the plurality of data blocks is less than or equal to a preset data amount; Encrypting each data block using a key generated based on a symmetric encryption algorithm and a preset encryption mode to obtain an encryption result of each data block; Merging the multiple encryption results into an encrypted first firmware program; The second firmware program is obtained by performing a signing operation on the encrypted first firmware program.

3. The method according to claim 2, characterized in that The step of obtaining the second firmware program by performing a signing operation on the encrypted first firmware program includes: Calculate a first hash value corresponding to the encrypted first firmware program using a hash algorithm; Calculate the signature value corresponding to the first Hash value using an asymmetric encryption algorithm and a private key file of the asymmetric encryption algorithm; Merging the firmware byte information of the first firmware program and the signature byte information corresponding to the signature value to obtain a merged result; The second firmware program is determined according to the firmware program corresponding to the merging result.

4. The method according to claim 1, characterized in that: The step of broadcasting the second firmware program to a plurality of servers comprises: Identify all servers within the broadcast range; Sending first broadcast information to all the servers based on the connectionless transport layer protocol; receiving reply information of all the servers to the first broadcast information; The reply information includes device information of the board level management controller of each server, and the device information includes at least the manufacturer of the board level management controller, the model of the board level management controller, and the version of the board level management controller; Selecting a first server from all the servers, wherein a version of a board management controller of the first server is lower than a firmware version corresponding to the second firmware program; For a plurality of first servers, broadcast the second firmware program to the plurality of first servers; wherein broadcasting the second firmware program to the plurality of first servers comprises: monitoring the upgrade status of the first server, and when determining that the upgrade status of the first server is in the process of being upgraded, stopping sending the data packet of the second firmware program to the first server; When it is determined that the upgrade status of the first server is to be upgraded, continuously sending data packets belonging to the second firmware program to the first server until all data packets belonging to the second firmware program are sent; When determining that the upgrade status of the first server is upgrade completed, stop sending the data packet of the second firmware program to the first server; A second server other than the first server is determined from all the servers, and sending data packets of the second firmware program to the first server is stopped.

5. The method according to claim 4, characterized in that After receiving reply information of all servers to the first broadcast information, the method further includes: In the case of determining that there is an empty message packet in the reply message, determining the server corresponding to the empty message packet, and determining the server corresponding to the empty message packet as an unanswered server, and sending a prompt message to the target object, wherein the prompt message is used to prompt the target object to check the unanswered server; Alternatively, when it is determined that an empty message packet exists in the reply message, the first broadcast message is sent to all the servers until the empty message packet no longer exists in the reply message.

6. The method according to claim 1, characterized in that The step of using the server to be upgraded to sequentially perform a signature verification operation and a decryption operation on the second firmware program to obtain the first firmware program includes: Acquire the end byte information from the firmware byte information of the second firmware program, wherein the end byte information is located at the end of the firmware byte information of the second firmware program; Decrypt the last byte information using an asymmetric encryption algorithm and a public key file of the asymmetric encryption algorithm to obtain the first byte information; Using a hash algorithm, calculate other byte information in the firmware byte information of the second firmware program except the last byte information to obtain a second hash value; Comparing the first byte information with the second byte information corresponding to the second Hash value; When it is determined that the first byte information is consistent with the second byte information, determining that the firmware byte information of the second firmware program is complete; A symmetric encryption algorithm is used to decrypt the other byte information to obtain the first firmware program.

7. The method according to claim 1, characterized in that Before acquiring a first firmware program for upgrading the board management controller from an upgrade instruction from a target object, the method further includes: In a case where it is determined that a first communication channel exists between the target object and the operation terminal of the target object, receiving an upgrade instruction of the target object based on the first communication channel; In a case where it is determined that there is no first communication channel with the operation terminal of the target object or the first communication channel is interrupted, determining a standby server to which the operation terminal of the target object belongs; A second communication channel is established with the standby server, and an upgrade instruction from the target object forwarded by the standby server is received via the second communication channel.

8. A board management controller upgrade device, characterized in that: include: A first acquisition module, configured to acquire a first firmware program for upgrading the board management controller from an upgrade instruction from a target object; A second acquisition module, used to acquire a second firmware program obtained by sequentially performing encryption operations and signing operations on the first firmware program; a broadcast module, used for broadcasting the second firmware program to multiple servers, wherein the multiple servers at least include the server to be upgraded indicated by the upgrade instruction, and the server to be upgraded is provided with a board management controller to be upgraded; an obtaining module, used for using the server to be upgraded to perform signature verification operation and decryption operation on the second firmware program in sequence to obtain the first firmware program; The upgrade module is used to use the first firmware program to upgrade the board management controller to be upgraded, so as to upgrade the server to be upgraded to obtain an upgraded server.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Firmware upgrade circuit, firmware upgrade method, server, device and program product

    CN121433694A