Firmware upgrade system, method, server device, program product and storage medium
By arranging a firmware upgrade module and a firmware memory in a universal baseboard, and using the baseboard management controller to perform firmware upgrades when the server is shut down, the problem of low efficiency of retimer firmware upgrades in the existing technology is solved, and efficient out-of-band upgrades are achieved.
Patent Information
- Application Number
- CN202410845178.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In the existing technology, upgrading the PCIe retimer firmware in a general-purpose substrate requires disassembly, resulting in low efficiency.
A firmware upgrade module is set up in the universal baseboard, and the retimer firmware is upgraded to the firmware memory when the server is turned off through the baseboard management controller, and the upgraded firmware is obtained from the memory when the server is turned on, thus avoiding the need to disassemble the entire machine.
It improves the efficiency and convenience of retimer firmware upgrade, avoids the necessity of dismantling the whole machine, and improves the upgrade efficiency.
Smart Images

Figure CN118409775B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of universal substrates, and in particular to a firmware upgrade system, method, server equipment, program product and storage medium. Background Art
[0002] Universal Baseboard (UBB) is an OAM substrate (OCP Acceleration Module) defined by the OCP specification (Open Compute Project). It is widely used in servers because it can integrate multiple OAM cards. Since the PCIe signal (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) in the universal baseboard usually involves cross-board transmission, which easily leads to PCIe signal quality attenuation and loss, the PCIe retimer (Retimer) corresponding to the OAM interface can also be set in the universal baseboard, and the retimer can be used to recover the PCIe signal transmitted across the board.
[0003] In the related art, due to the large variety of PCIe retimers and OAM interfaces, in order to ensure the compatibility of PCIe retimers with OAM interfaces, it is usually necessary to adjust and upgrade the retimer firmware. However, the related art usually uses a special debugging tool to connect to the retimer to perform firmware updates. Considering that inserting the debugging tool in the form of a complete machine often requires disassembling the entire machine, this significantly reduces the efficiency of firmware upgrades for the retimer. Summary of the invention
[0004] The object of the present invention is to provide a firmware upgrade system, method, server device, program product and storage medium, which can efficiently complete the out-of-band upgrade of the retimer firmware, thereby improving the upgrade efficiency of the retimer firmware.
[0005] In order to solve the above technical problems, the present invention provides a firmware upgrade system, which is applied to a server, and the system comprises: a baseboard management controller, a universal baseboard, a firmware upgrade module and a retimer are arranged on the universal baseboard, the retimer is provided with a corresponding firmware memory, and the baseboard management controller is connected to the firmware memory through the firmware upgrade module;
[0006] The baseboard management controller is used to upgrade the retimer firmware to the firmware memory through the firmware upgrade module when the server is in a shutdown state;
[0007] The retimer is used to obtain the upgraded retimer firmware from the firmware memory when the server enters the power-on state.
[0008] Optionally, the baseboard management controller is further used for:
[0009] When triggering the retimer firmware upgrade operation, if it is determined that the server is in the power-on state, controlling the server to shut down;
[0010] When it is determined that the server enters the shutdown state, the step of upgrading the retimer firmware to the firmware memory through the firmware upgrade module is performed.
[0011] Optionally, the firmware upgrade module is connected to the baseboard management controller via a first integrated circuit bus and is connected to the firmware memory via a second integrated circuit bus.
[0012] Optionally, the baseboard management controller is further used for:
[0013] Obtaining a bus address of the firmware memory from the firmware upgrade module;
[0014] According to the bus address, upgrading the retimer firmware to the firmware memory through the firmware upgrade module;
[0015] The firmware upgrade module is used to:
[0016] Returning the bus address of the firmware memory to the baseboard management controller;
[0017] Writing the retimer firmware sent by the baseboard management controller into the firmware memory as a bus master.
[0018] Optionally, the retimer is connected to the firmware memory via a third integrated circuit bus;
[0019] The firmware upgrade module is further used to: when detecting that the server enters the boot state, open the second integrated circuit bus;
[0020] The retimer is further configured to: when detecting that the server enters a power-on state, obtain the retimer firmware from the firmware memory as a bus master.
[0021] Optionally, the firmware upgrade module is further used to:
[0022] When a power-on signal is detected, it is determined that the server enters a power-on state.
[0023] Optionally, the baseboard management controller is further used for:
[0024] After the retimer firmware is upgraded to the firmware memory by the firmware upgrade module, the firmware to be verified is read from the firmware memory by the firmware upgrade module;
[0025] The firmware to be verified is compared with the retimer firmware, and when it is determined that the firmware to be verified is different from the retimer firmware, the retimer firmware is upgraded to the firmware memory again through the firmware upgrade module.
[0026] Optionally, the baseboard management controller is further used for:
[0027] The first hash value of the firmware to be verified is compared and verified with the second hash value of the retimer firmware.
[0028] Optionally, the firmware upgrade module is a complex programmable logic device or a field programmable gate array.
[0029] Optionally, the firmware memory is an electrically erasable programmable read-only memory.
[0030] Optionally, the universal substrate includes open computing acceleration module interfaces corresponding one-to-one to retimers, different models of retimers correspond to different first bill of materials attributes in the universal substrate design stage, different models of open computing acceleration module interfaces correspond to different second bill of materials attributes in the universal substrate design stage, different models of retimers and different models of open computing acceleration module interfaces are assembled to the universal substrate in a manner of combining different first bill of materials attributes with different second bill of materials attributes to obtain multiple bill of materials attribute combinations, and assembling the universal substrate according to the multiple bill of materials attribute combinations.
[0031] The present invention also provides a firmware upgrade method, which is applied to the firmware upgrade system as described above, and the method comprises:
[0032] When determining that the server is in a shutdown state, the baseboard management controller upgrades the retimer firmware to a firmware memory corresponding to the retimer in the universal baseboard through a firmware upgrade module in the universal baseboard;
[0033] When determining that the server enters the power-on state, the retimer obtains the upgraded retimer firmware from the firmware memory.
[0034] The present invention also provides a server device, comprising the firmware upgrade system as described above.
[0035] The present invention also provides a computer program product, comprising a computer program / instruction, wherein the steps of the above-mentioned firmware upgrade method are implemented when the computer program / instruction is executed by a processor.
[0036] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the firmware upgrade method as described above is implemented.
[0037] The present invention provides a firmware upgrade system, which is applied to a server. The system comprises: a baseboard management controller and a universal baseboard. The universal baseboard is provided with a firmware upgrade module and a retimer. The retimer is provided with a corresponding firmware memory. The baseboard management controller is connected to the firmware memory through the firmware upgrade module. The baseboard management controller is used to upgrade the retimer firmware to the firmware memory through the firmware upgrade module when the server is in a shutdown state. The retimer is used to obtain the upgraded retimer firmware from the firmware memory when the server enters a startup state.
[0038] The beneficial effects of the present invention are as follows: the present invention can set a firmware upgrade module in a universal substrate, and the firmware upgrade module can be connected to the firmware memory of the retimer, and can also be connected to an external baseboard management controller, so that the baseboard management controller can upgrade the retimer firmware to the firmware memory through the firmware upgrade module when determining that the server is in a shutdown state, and the retimer can obtain the upgraded retimer firmware from the firmware memory when the server enters a startup state. In this way, the present invention can achieve out-of-band upgrade of the retimer firmware by setting a firmware upgrade module connected to the baseboard management controller and the firmware memory in the universal substrate, thereby avoiding the situation where the entire server needs to be disassembled to upgrade the retimer firmware, thereby improving the efficiency of the retimer firmware upgrade. The present invention also provides a firmware upgrade method, system, server device, computer program product, and computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A structural block diagram of a firmware upgrade system provided by an embodiment of the present invention;
[0041] Figure 2 A structural block diagram of another firmware upgrade system provided by an embodiment of the present invention;
[0042] Figure 3A flowchart of a firmware upgrade method provided by an embodiment of the present invention;
[0043] Figure 4 The present invention is a flowchart of another firmware upgrade method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Universal Baseboard (UBB) is an OAM substrate (OCP Acceleration Module) defined by the OCP specification (Open Compute Project). It is widely used in servers because it can integrate multiple OAM cards. Since the PCIe signal (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) in the universal baseboard usually involves cross-board transmission, which easily leads to PCIe signal quality attenuation and loss, the universal baseboard can also be set with a PCIe retimer corresponding to the OAM interface, which can be used to recover the PCIe signal transmitted across the board.
[0046] In the related art, since there are many types of PCIe retimers and OAM interfaces, in order to ensure that the retimer is compatible with the OAM interface, it is usually necessary to adjust and update the firmware of the retimer. However, the related art usually uses a special debugging tool to connect to the retimer to perform firmware updates. Considering that inserting the debugging tool in the form of a complete machine often requires disassembling the entire machine, this significantly reduces the efficiency of firmware upgrades for the retimer. In view of this, the present invention can set a firmware upgrade module in the universal substrate to complete the out-of-band upgrade of the retimer firmware based on the module, thereby effectively improving the upgrade efficiency of the retimer firmware.
[0047] For easier understanding, please refer to Figure 1 , Figure 1The present invention provides a structural block diagram of a firmware upgrade system provided by an embodiment of the present invention. The system can be applied to a server, and specifically includes: a baseboard management controller 10, a universal baseboard 20, the universal baseboard 20 is provided with a firmware upgrade module 21 and a retimer 23, the retimer 23 is provided with a corresponding firmware memory 22, and the baseboard management controller 10 is connected to the firmware memory 22 via the firmware upgrade module 21.
[0048] In a specific application, the baseboard management controller 10 may be used to upgrade the retimer firmware to the firmware memory 22 through the firmware upgrade module 21 when the server is in a shutdown state;
[0049] The retimer 23 may be used to obtain the upgraded retimer firmware from the firmware memory 22 when the server enters the power-on state.
[0050] It should be noted that the flashing and upgrading operation of the retimer firmware in the firmware memory 22 in the embodiment of the present invention occurs during the shutdown period of the server in which the system is located. During the shutdown period of the server, the retimer 23 does not work, and the retimer firmware in the firmware memory 22 will not be loaded, so the flashing and updating of the firmware file at this time will not affect the normal operation of the retimer 23. After the firmware upgrade is completed, it is only necessary to restart the server to make the retimer 23 enter the working state again, and reload the firmware from the corresponding firmware memory 22 to make the new firmware effective.
[0051] It is worth pointing out that in order to realize the firmware out-of-band upgrade, the embodiment of the present invention particularly adds a firmware upgrade module 21 in the universal baseboard 20, which is first connected to each firmware memory 22, and can write data to each firmware memory 22, and read data from each firmware memory 22; in addition, the firmware upgrade module 21 can also be connected to the external baseboard management controller 10, can receive and process the instructions issued by the baseboard management controller 10, and can also return the data requested by the baseboard management controller 10. Then, when the baseboard management controller 10 determines that the server is in the shutdown state, the retimer firmware can be directly flashed to the corresponding firmware memory 22 through the firmware upgrade module 21. After the firmware flashing is completed, the retimer 23 can obtain the updated retimer firmware from the corresponding firmware memory 22 after restarting. It can be seen that by adding the firmware upgrade module 21, when the user performs the retimer firmware upgrade, he can directly operate the baseboard management controller 10 to complete the retimer firmware flashing, without connecting the debugging tool to the retimer 23, and without disassembling the entire server, thereby significantly improving the convenience of retimer firmware update.
[0052] It should be noted that the retimer 23 and the firmware memory 22 are in a one-to-one correspondence, that is, each retimer 23 is provided with a dedicated firmware memory 22. In addition, the types of the retimers 23 may be different, and the retimer firmware stored in each firmware memory 22 may be different, so as to meet the working requirements of different types of retimers 23. In addition, multiple groups of retimers 23 and firmware memories 22 may be provided in the universal substrate 20 to meet the needs of multiple OAM cards (not shown). The embodiment of the present invention does not limit the specific number of groups, which can be set according to actual application requirements, for example, it can be 8 groups. The embodiment of the present invention also does not limit the specific hardware form of the firmware memory 22, as long as it can meet the data storage requirements, for example, it can be an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable ReadOnly Memory).
[0053] It should also be noted that the embodiment of the present invention does not limit the hardware link form and communication method between the baseboard management controller 10 and the firmware upgrade module 21, between the firmware upgrade module 21 and each firmware memory 22, and between the retimer 23 and the firmware memory 22. The hardware link and communication method can refer to the relevant technology of the communication bus and be set in combination with actual needs. For example, the hardware link can be an I2C bus (Inter-Integrated Circuit), and the communication method between hardware components can follow the I2C protocol.
[0054] It should also be noted that the embodiments of the present invention do not limit the specific hardware form of the firmware upgrade module 21. As long as it can ensure that the firmware upgrade module 21 can receive, process and respond to the instructions issued by the baseboard management controller 10, it can be set according to actual application requirements. For example, the firmware upgrade module 21 is a complex programmable logic device (CPLD) or a field programmable gate array (FPGA).
[0055] Furthermore, the embodiment of the present invention does not limit the specific process of the baseboard management controller 10 flashing the firmware memory 22 with the retimer firmware through the firmware upgrade module 21, and can be set according to actual application requirements. For example, the baseboard management controller 10 can first control the firmware upgrade module 21 to erase the firmware memory 22; after the erasing is completed, the baseboard management controller 10 can further control the firmware upgrade module 21 to burn the retimer firmware to the firmware memory 22 to complete the firmware update. Of course, in order to determine whether the correct firmware is written into the firmware memory 22, after the firmware burning is completed, the baseboard management controller 10 can also control the firmware upgrade module 21 to read the firmware from the firmware memory 22 and use the firmware as the firmware to be verified; then, the baseboard management controller 10 can compare and verify the firmware to be verified with the correct retimer firmware. If it is determined that the two are the same, it means that the burning is correct; if it is determined that the two are different, it means that the burning is wrong. At this time, the baseboard management controller 10 can re-control the firmware upgrade module 21 to burn the firmware to the firmware memory 22.
[0056] Based on this, the baseboard management controller 10 can also be used for:
[0057] After the retimer firmware is upgraded to the firmware memory 22 by the firmware upgrade module 21, the firmware to be verified is read from the firmware memory 22 by the firmware upgrade module 21;
[0058] The firmware to be verified is compared with the retimer firmware, and when it is determined that the firmware to be verified is different from the retimer firmware, the retimer firmware is upgraded to the firmware memory 22 again through the firmware upgrade module 21.
[0059] It should be noted that the embodiment of the present invention does not limit how the baseboard management controller 10 compares and verifies the firmware to be verified and the retimer firmware, and reference may be made to related technologies. For example, a hash value may be set for the retimer firmware, and the hash value is used to verify the correctness and integrity of the firmware file, and then the baseboard management controller 10 may compare and verify the first hash value of the firmware to be verified with the second hash value of the retimer firmware. If it is determined that the first hash value is the same as the second hash value, it means that the burning is correct; if the first hash value is different from the second hash value, it means that the burning is wrong.
[0060] Based on this, the baseboard management controller 10 can also be used for:
[0061] The first hash value of the firmware to be verified is compared and verified with the second hash value of the retimer firmware.
[0062] Furthermore, considering that the baseboard management controller 10 usually has the function of managing and controlling the server, if the user triggers the retimer firmware upgrade operation therein, the baseboard management controller 10 can determine whether the server is in the power-on state. If so, the server can be controlled to power off and shut down, and the retimer firmware can be flashed and upgraded only when the server enters the shutdown state.
[0063] Based on this, the baseboard management controller 10 can also be used for:
[0064] When triggering the retimer firmware upgrade operation, if it is determined that the server is in the power-on state, controlling the server to shut down;
[0065] When it is determined that the server enters the shutdown state, the step of upgrading the retimer firmware to the firmware memory 22 through the firmware upgrade module 21 is performed.
[0066] Based on the above embodiments, the present invention can set a firmware upgrade module in the universal substrate, and the firmware upgrade module can be connected to the firmware memory of the retimer, and can also be connected to the external baseboard management controller, so that the baseboard management controller can upgrade the retimer firmware to the firmware memory through the firmware upgrade module when determining that the server is in the shutdown state, and the retimer can obtain the upgraded retimer firmware from the firmware memory when the server enters the startup state. In this way, the present invention can realize the out-of-band upgrade of the retimer firmware by setting a firmware upgrade module connected to the baseboard management controller and the firmware memory in the universal substrate, thereby avoiding the situation where the server needs to be disassembled to upgrade the retimer firmware, thereby improving the efficiency of the retimer firmware upgrade.
[0067] Based on the above embodiment, the structure and working mode of the above firmware upgrade system are further described below in combination with a specific bus structure. Figure 2 , Figure 2 This is a structural block diagram of another firmware upgrade system provided by an embodiment of the present invention. In this structural block diagram, the firmware upgrade module 21 is connected to the baseboard management controller 10 through a first integrated circuit bus 1 and is connected to the firmware memory 22 through a second integrated circuit bus 2 .
[0068] In a specific application, the baseboard management controller 10 can also be used for:
[0069] Obtaining the bus address of the firmware memory 22 from the firmware upgrade module 21;
[0070] According to the bus address, the retimer firmware is upgraded to the firmware memory 22 through the firmware upgrade module 21 .
[0071] The firmware upgrade module 21 can be used to:
[0072] Returning the bus address of the firmware memory 22 to the baseboard management controller 10;
[0073] The retimer firmware issued by the baseboard management controller 10 is written into the firmware memory 22 as a bus master.
[0074] In simple terms, the baseboard management controller 10 can interact with the firmware upgrade module 21 based on the I2C bus protocol, for example, sending the retimer firmware to be burned to the latter. Similarly, the firmware upgrade module 21 can also interact with each firmware memory 22 based on the I2C bus protocol, such as erasing the firmware memory 22, burning new restart timer firmware, etc. Since each firmware memory 22 has a corresponding bus address in the bus, before the firmware is burned, the baseboard management controller 10 can first request the bus address of the firmware memory 22 to be updated from the firmware upgrade module 21, and then control the firmware upgrade module 21 to write the new retimer firmware to the firmware memory 22 based on the bus address. It is worth noting that for the firmware upgrade module 21, it can write the retimer firmware to the firmware memory 22 based on the bus host identity (I2C Master).
[0075] Furthermore, the retimer 23 is connected to the firmware memory 22 via a third integrated circuit bus 3 .
[0076] It is worth pointing out that when the components in the firmware upgrade system are connected by an integrated circuit bus, in order not to interfere with the operation of the retimer 23, the embodiment of the present invention also needs to solve the I2C multi-master conflict problem. Specifically, since the retimer 23 is also the I2C host of the firmware memory 22, for the firmware memory 22, the retimer 23 and the firmware upgrade module 21 are both its I2C hosts. At this time, if the two hosts work at the same time, it will cause a bus communication conflict, thereby affecting the specific communication results. To this end, the solution provided by the embodiment of the present invention is: 1. Firmware burning only occurs when the server is shut down. This is because when the server is in the shutdown state, the retimer terminal 23 is not powered on, and then the third integrated circuit bus 3 between the retimer 23 and the firmware memory 22 does not work. For the firmware memory 22, only the firmware upgrade module 21 is its bus host. At this time, the firmware upgrade module 21 will not be interfered with by the retimer 23 when performing the firmware burning operation on the firmware memory 22; 2. When the firmware upgrade module 21 detects that the server is powered on, it actively opens the second integrated circuit bus 2 with the firmware memory 22. Furthermore, when the retimer 23 is working normally, since the firmware upgrade module 21 has actively opened the second integrated circuit bus 2, the bus master of the firmware memory 22 is only the corresponding retimer 23, and the loading of the firmware file by the retimer 23 will not be interfered by the firmware upgrade module 21. In this way, the embodiment of the present invention can ensure that the firmware upgrade module 21 and the retimer 23 will not encounter the I2C multi-master conflict problem, thereby ensuring the normal operation of the two components.
[0077] Based on this, the firmware upgrade module 21 can also be used to: when detecting that the server enters the boot state, open the second integrated circuit bus 2;
[0078] The retimer 23 may also be used to obtain the retimer firmware from the firmware memory as a bus master when detecting that the server enters the power-on state.
[0079] In addition, the firmware upgrade module 21 can actively detect a power-on signal (such as a PWRBTN signal, Power Button, power-on button signal), and upon detecting the power-on signal, determine that the server enters the power-on state, and actively open the second integrated circuit bus.
[0080] Based on this, the firmware upgrade module 21 can also be used to:
[0081] When a power-on signal is detected, it is determined that the server enters a power-on state.
[0082] Based on the above embodiments, since the embodiments of the present invention can flexibly flash the firmware of the retimer and significantly improve the compatibility of the retimer, the universal substrate can be set up with different types and different manufacturers of retimers and open computing acceleration module interfaces (OAM interfaces) on this basis to meet the needs of different users. Considering that the OAM interface and PIN pin attributes comply with the OCP OAM design specification, there are only differences in the interconnection topology, IO level and some functional attribute configurations; the PCIe timer design also basically complies with the PIN to PIN design, and there are only differences in some GPIO or timing design. Therefore, corresponding to the same universal substrate design, the embodiments of the present invention can set up different types of retimers and open computing acceleration module interfaces in the same universal substrate by controlling the loading of hardware materials. In order to realize the setting of retimers and open computing acceleration module interfaces of different manufacturers in the universal substrate, the embodiments of the present invention can correspond to different first bill of materials attributes (BOM attributes) for different models of retimers in the universal substrate design link, and correspond to different second bill of materials attributes for different models of open computing acceleration module interfaces in the universal substrate design link. The bill of materials attributes are used to determine whether to load the corresponding components. Furthermore, the embodiment of the present invention only needs to combine different first bill of materials attributes with different second bill of materials attributes to obtain multiple bill of materials attribute combinations, and assemble the universal substrate according to the multiple bill of materials attribute combinations, so that different models of retimers and different models of open computing acceleration module interfaces can be assembled to the same universal substrate.
[0083] Based on this, the universal substrate includes open computing acceleration module interfaces corresponding one to one with retimers, different models of retimers correspond to different first bill of materials attributes in the universal substrate design stage, and different models of open computing acceleration module interfaces correspond to different second bill of materials attributes in the universal substrate design stage. Different models of retimers and different models of open computing acceleration module interfaces are assembled to the universal substrate in a manner of combining different first bill of materials attributes with different second bill of materials attributes to obtain multiple bill of materials attribute combinations, and assembling the universal substrate according to the multiple bill of materials attribute combinations.
[0084] For example, considering the P2P attributes of the retimer, different materials can be loaded by setting different BOM attributes. For example, define the CN1 attribute for retimer chip 1, the CN2 attribute for retimer chip 2, the CN3 attribute for OAM1, the CN4 attribute for OAM2, and so on. Furthermore, the above attributes can be combined as follows:
[0085] 1. Retimer chip 1 + OAM1: CN1 attributes + CN3 attributes;
[0086] 2. Retimer chip 1 + OAM2: CN1 attributes + CN4 attributes;
[0087] 3. Retimer chip 2 + OAM1: CN2 attributes + CN3 attributes;
[0088] 4. Retimer chip 2 + OAM2: CN2 attributes + CN4 attributes.
[0089] During assembly, if you need to use retimer chip 1 + OAM1, retimer chip 2 + OAM2, you can assemble them based on the CN1 attribute + CN3 attribute, CN2 attribute + CN4 attribute.
[0090] The firmware upgrade method, server device, computer program product, and computer-readable storage medium provided in an embodiment of the present invention are introduced below. The firmware upgrade method, server device, computer program product, and computer-readable storage medium described below can be referenced to each other with the firmware upgrade system described above.
[0091] Please refer to Figure 3 , Figure 3 A flowchart of a firmware upgrade method provided by an embodiment of the present invention, the method is applied to the firmware upgrade system as described above, the method comprising:
[0092] S301, when the baseboard management controller determines that the server is in a shutdown state, the baseboard management controller upgrades the retimer firmware to the firmware memory corresponding to the retimer in the universal baseboard through the firmware upgrade module in the universal baseboard;
[0093] S302: When determining that the server enters the power-on state, the retimer obtains the upgraded retimer firmware from the firmware memory.
[0094] It can be seen that the present invention can set a firmware upgrade module in the universal substrate, and the firmware upgrade module can be connected to the firmware memory of the retimer, and can also be connected to the external baseboard management controller. Then, when the baseboard management controller determines that the server is in the shutdown state, it can upgrade the retimer firmware to the firmware memory through the firmware upgrade module, and the retimer can obtain the upgraded retimer firmware from the firmware memory when the server enters the startup state. In this way, the present invention can realize the out-of-band upgrade of the retimer firmware by setting a firmware upgrade module connected to the baseboard management controller and the firmware memory in the universal substrate, thereby avoiding the situation where the server needs to be disassembled to upgrade the retimer firmware, thereby improving the efficiency of the retimer firmware upgrade.
[0095] Optionally, the method may further include:
[0096] When the baseboard management controller triggers the retimer firmware upgrade operation, if it is determined that the server is in the power-on state, it controls the server to shut down; when it is determined that the server enters the shutdown state, it executes the step of upgrading the retimer firmware to the firmware memory through the firmware upgrade module.
[0097] Optionally, the firmware upgrade module is connected to the baseboard management controller via a first integrated circuit bus and is connected to the firmware memory via a second integrated circuit bus; the method may further include:
[0098] The baseboard management controller obtains the bus address of the firmware memory from the firmware upgrade module;
[0099] The firmware upgrade module returns the bus address of the firmware memory to the baseboard management controller;
[0100] The baseboard management controller upgrades the retimer firmware to the firmware memory through the firmware upgrade module according to the bus address;
[0101] The firmware upgrade module writes the retimer firmware issued by the baseboard management controller into the firmware memory as a bus master.
[0102] Optionally, the retimer is connected to the firmware memory via a third integrated circuit bus; the method may further include:
[0103] When the firmware upgrade module detects that the server enters the boot state, the second integrated circuit bus is opened;
[0104] When the retimer detects that the server enters the power-on state, the retimer obtains the retimer firmware from the firmware memory as a bus master.
[0105] Optionally, the method may further include:
[0106] The firmware upgrade module determines that the server enters a power-on state when detecting a power-on signal.
[0107] Optionally, the method may further include:
[0108] After the baseboard management controller upgrades the retimer firmware to the firmware memory through the firmware upgrade module, the baseboard management controller reads the firmware to be verified from the firmware memory through the firmware upgrade module; compares and verifies the firmware to be verified with the retimer firmware, and when it is determined that the firmware to be verified is different from the retimer firmware, upgrades the retimer firmware to the firmware memory again through the firmware upgrade module.
[0109] Optionally, the method may further include:
[0110] The baseboard management controller compares and verifies the first hash value of the firmware to be verified with the second hash value of the retimer firmware.
[0111] Optionally, the firmware upgrade module is a complex programmable logic device or a field programmable gate array.
[0112] Optionally, the firmware memory is an electrically erasable programmable read-only memory.
[0113] Optionally, the universal substrate includes open computing acceleration module interfaces corresponding one-to-one to retimers, different models of retimers correspond to different first bill of materials attributes in the universal substrate design stage, different models of open computing acceleration module interfaces correspond to different second bill of materials attributes in the universal substrate design stage, different models of retimers and different models of open computing acceleration module interfaces are assembled to the universal substrate in a manner of combining different first bill of materials attributes with different second bill of materials attributes to obtain multiple bill of materials attribute combinations, and assembling the universal substrate according to the multiple bill of materials attribute combinations.
[0114] The following is a complete introduction to the above firmware upgrade method based on specific examples. Figure 4 , Figure 4 A flowchart of a firmware upgrade method provided by an embodiment of the present invention. The method may include:
[0115] 1) The system at least includes a PCIe retimer, an I2C control link, and an OAM peripheral configuration circuit;
[0116] 2) As an important component of the universal baseboard box (UBB BOX), the PCIe retimer is designed from two aspects: ① According to the different BOM CN attributes set in the schematic diagram, it can achieve compatibility and adaptation with retimers and OAM modules of different brands and packages; ② The retimer can be upgraded out-of-band to get rid of the upgrade requirements of different debugging tools (dongle tools) brought by different brands of retimers and the differences in out-of-band upgrade development tools brought by different SDK boards (Software Development Kits).
[0117] 3) When there is a requirement to refresh the firmware of the retimer, first determine the machine status. The refresh needs to be performed in S5 status (server shutdown status);
[0118] 4) When the server is in normal working state, the retimer has power, and the I2C bus between the retimer and the firmware memory (EEPROM) is working normally. At this moment, if the baseboard management controller initiates a refresh request through the firmware upgrade module (CPLD), it will cause I2C master competition, which may cause the refresh to fail.
[0119] 5) In the S5 state, the retimer end is not powered on, and the I2C link from the retimer to the firmware memory does not work and is in a disconnected state. At this moment, a refresh action is initiated, and the I2C link from the baseboard management controller to the retimer firmware memory through the firmware upgrade module works normally;
[0120] 6) When the refresh starts, the baseboard management controller erases and re-burns the re-timer firmware memory through the firmware upgrade module. After the burning is completed, the firmware memory content is read back and the content is verified;
[0121] 7) If the verification is successful, the power-on action is executed. The retimer obtains the contents of the retimer firmware memory when it is powered on and completes the configuration of the new parameters;
[0122] 8) Under normal working conditions without refresh request, the retimer can directly obtain the configuration information in the retimer firmware memory to complete parameter configuration;
[0123] 9) In order to avoid the multi-master competition problem of I2C slave, the firmware upgrade module detects the PWRBTN signal (power-on signal) of the universal baseboard box card and opens the I2C link between the firmware memory when the power is on.
[0124] The embodiment of the present invention also provides a server device, including the firmware upgrade system as described above. The firmware upgrade system can be Figure 1 The form shown can also be further Figure 2 The form shown can be set according to actual application requirements.
[0125] It should be pointed out that the embodiments of the present invention do not limit other hardware structures in the server device, and can be set according to actual application requirements. For example, the server device may also include a processor, a memory, a power supply, a pass interface, an input / output interface, a communication bus and other structures. In addition, the components in the firmware upgrade system in the above embodiments may also have a connection relationship with the components in the server device. For example, the OAM interface in the universal substrate can be connected to the central processing unit in the server device through the PCIe bus, and then the OAM card (such as a GPU accelerator card) connected to the OAM interface can communicate with the central processing unit of the server through the PCIe bus, and the PCIe signal sent by the OAM card to the server central processing unit can be restored by the retimer corresponding to the OAM interface in the universal substrate to improve the cross-board transmission quality of the PCIe signal.
[0126] Since the embodiments of the server device part correspond to the embodiments of the firmware upgrade system part, please refer to the description of the embodiments of the firmware upgrade system part for the embodiments of the server device part, which will not be repeated here.
[0127] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the firmware upgrade method described in the above embodiment is implemented.
[0128] Since the embodiments of the computer program product part correspond to the embodiments of the firmware upgrade method part, please refer to the description of the embodiments of the firmware upgrade method part for the embodiments of the computer program product part, and will not be repeated here.
[0129] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the firmware upgrade method described in the above embodiment is implemented.
[0130] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the firmware upgrade method part, the embodiments of the storage medium part refer to the description of the embodiments of the firmware upgrade method part, which will not be repeated here.
[0131] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0132] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0133] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0134] The firmware upgrade system, method, server device, program product and storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A firmware upgrade system, characterized in that: Applied to a server, the system comprises: a baseboard management controller, a universal baseboard, the universal baseboard is provided with a firmware upgrade module and a retimer, the retimer is provided with a corresponding firmware memory, the baseboard management controller is connected to the firmware memory through the firmware upgrade module; the firmware upgrade module is connected to the firmware memory through a second integrated circuit bus, the retimer is connected to the firmware memory through a third integrated circuit bus, and the second integrated circuit bus and the third integrated circuit bus are integrated circuit buses of the same type; The baseboard management controller is used to upgrade the retimer firmware to the firmware memory through the firmware upgrade module when the server is in a shutdown state; The firmware upgrade module is used to write the retimer firmware issued by the baseboard management controller into the firmware memory as a bus master; when it is detected that the server enters the power-on state, the second integrated circuit bus is opened; The retimer is used to obtain the upgraded retimer firmware from the firmware memory as a bus master when the server enters the power-on state.
2. The firmware upgrade system according to claim 1, characterized in that: The baseboard management controller is further used for: When triggering the retimer firmware upgrade operation, if it is determined that the server is in the power-on state, controlling the server to shut down; When it is determined that the server enters the shutdown state, the step of upgrading the retimer firmware to the firmware memory through the firmware upgrade module is performed.
3. The firmware upgrade system according to claim 1, characterized in that: The firmware upgrade module is connected to the baseboard management controller via a first integrated circuit bus.
4. The firmware upgrade system according to claim 3, characterized in that: The baseboard management controller is further used for: Obtaining a bus address of the firmware memory from the firmware upgrade module; According to the bus address, upgrading the retimer firmware to the firmware memory through the firmware upgrade module; The firmware upgrade module is further used for: A bus address of the firmware memory is returned to the baseboard management controller.
5. The firmware upgrade system according to claim 1, characterized in that: The firmware upgrade module is further used for: When a power-on signal is detected, it is determined that the server enters a power-on state.
6. The firmware upgrade system according to claim 1, characterized in that: The baseboard management controller is further used for: After the retimer firmware is upgraded to the firmware memory by the firmware upgrade module, the firmware to be verified is read from the firmware memory by the firmware upgrade module; The firmware to be verified is compared with the retimer firmware, and when it is determined that the firmware to be verified is different from the retimer firmware, the retimer firmware is upgraded to the firmware memory again through the firmware upgrade module.
7. The firmware upgrade system according to claim 6, characterized in that: The baseboard management controller is further used for: The first hash value of the firmware to be verified is compared and verified with the second hash value of the retimer firmware.
8. The firmware upgrade system according to claim 1, characterized in that: The firmware upgrade module is a complex programmable logic device or a field programmable gate array.
9. The firmware upgrade system according to claim 1, characterized in that: The firmware memory is an electrically erasable programmable read-only memory.
10. The firmware upgrade system according to any one of claims 1 to 9, characterized in that: The universal substrate includes open computing acceleration module interfaces corresponding one to one with retimers, different models of retimers correspond to different first bill of materials attributes in the universal substrate design stage, and different models of open computing acceleration module interfaces correspond to different second bill of materials attributes in the universal substrate design stage. Different models of retimers and different models of open computing acceleration module interfaces are assembled to the universal substrate in a manner of combining different first bill of materials attributes with different second bill of materials attributes to obtain a plurality of bill of materials attribute combinations, and assembling the universal substrate according to the plurality of bill of materials attribute combinations.
11. A firmware upgrade method, characterized in that: Applied to the firmware upgrade system according to any one of claims 1 to 10, the method comprises: When determining that the server is in a shutdown state, the baseboard management controller upgrades the retimer firmware to a firmware memory corresponding to the retimer in the universal baseboard through a firmware upgrade module in the universal baseboard; The firmware upgrade module writes the retimer firmware issued by the baseboard management controller into the firmware memory as a bus master; when it is detected that the server enters the power-on state, the second integrated circuit bus is opened; the firmware upgrade module is connected to the firmware memory through the second integrated circuit bus; when the retimer determines that the server enters the power-on state, the retimer obtains the upgraded retimer firmware from the firmware memory as a bus master; the retimer is connected to the firmware memory through a third integrated circuit bus, and the second integrated circuit bus and the third integrated circuit bus are integrated circuit buses of the same type.
12. A server device, characterized in that: Comprising a firmware upgrade system as claimed in any one of claims 1 to 10.
13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the firmware upgrade method according to claim 11 are implemented.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the firmware upgrade method according to claim 11 is implemented.
