Firmware upgrading system and method and related equipment
By setting up the baseboard management controller and the target controller in the server and using physical links to upgrade the network card firmware, the problems of complex operations and security risks in the existing technology are solved, and a safer and more efficient firmware upgrade process is achieved.
Patent Information
- Application Number
- CN202411060042.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing server technology, the network card firmware upgrade operation is complex and has security risks. It is impossible to use the baseboard management controller to directly upgrade through the high-speed serial computer expansion bus standard message cache protocol, which causes the user to enter the operating system to upgrade, which increases the amount of information. Risk of leakage.
Set up a baseboard management controller in the server, connect to the target controller of the network card through a physical link, monitor the network card status in real time, and send the target image file to the target controller for firmware upgrade, including decompression, verification, parsing and burning , to prevent users from entering the operating system to directly upgrade.
It improves the security and reliability of firmware upgrade, reduces the operation complexity and time, and enhances the convenience and efficiency of firmware upgrade inside the network card.
Smart Images

Figure CN118626110A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a firmware upgrade system, method and related equipment. Background Art
[0002] Due to technical limitations and protocol incompatibility, many servers cannot use the baseboard management controller to directly upgrade the firmware in the network card through the message caching technology over PCIe (MCTP OVER PCIe) based on the high-speed serial computer expansion bus standard. The lack of this function has brought a lot of inconvenience to many users.
[0003] When users upgrade the firmware in the network card of such a server, they can only use the in-band upgrade method to upgrade the firmware in the network card. However, the in-band upgrade method is not only complicated to operate, but also requires the user to enter the server's operating system to perform the firmware upgrade operation, which increases the probability of leakage of stored information and poses a great security risk. At present, there is no effective solution to this technical problem. Summary of the invention
[0004] The purpose of the present invention is to provide a firmware upgrade system, method and related equipment to solve the current technical problems of complex operation and high security risks when upgrading the firmware of a network card in a server.
[0005] In order to solve the above technical problems, the present invention provides a firmware upgrade system, comprising:
[0006] Server, used to upgrade the firmware of the internal network card in-band;
[0007] A baseboard management controller is arranged in the server and is used to monitor the operation status of the network card in real time; when a request for upgrading the firmware is received, a target image file for upgrading the firmware is obtained and the target image file is sent to a target controller in the network card;
[0008] The target controller is connected to the main control chip in the network card through a physical link, and is used to upgrade the firmware through the target image file.
[0009] In order to solve the above technical problems, the present invention also provides a firmware upgrade method, which is applied to a baseboard management controller in a server; the server upgrades the firmware of an internal network card in an in-band manner; the method comprises:
[0010] Performing real-time monitoring on the operating status of the network card;
[0011] When a request to upgrade the firmware is received, a target image file for upgrading the firmware is obtained;
[0012] The target image file is sent to the target controller of the network card, so as to use the target controller to upgrade the firmware through the target image file; wherein the target controller is connected to the main control chip in the network card through a physical link.
[0013] On the one hand, the target controller is connected to the main control chip in the network card through an integrated circuit bus.
[0014] On the other hand, sending the target image file to the target controller of the network card, so as to upgrade the firmware by using the target controller through the target image file, comprises:
[0015] Decompressing the target image file to obtain a target decompressed file;
[0016] Verifying the target decompressed file;
[0017] If the target decompressed file fails the verification, it is determined that the target decompressed file is damaged, and a first warning message is prompted;
[0018] If the target decompressed file passes the verification, the target decompressed file is parsed to obtain target parsed data;
[0019] Determine the version number corresponding to the firmware according to the target parsed data to obtain a first version number;
[0020] Sending a first instruction to the target controller, so as to obtain a version number corresponding to the firmware at the current running time by using the first instruction, and obtain a second version number;
[0021] Determine whether the first version number is consistent with the second version number;
[0022] If the first version number is consistent with the second version number, it is determined that the version corresponding to the firmware at the current running time is the latest version, and a second warning message is prompted;
[0023] If the first version number is inconsistent with the second version number, the target decompressed file is sent to the target controller, and a second instruction is sent to the target controller, so as to use the second instruction to notify the target controller to upgrade the firmware through the target decompressed file.
[0024] On the other hand, after sending the target image file to the target controller of the network card so as to upgrade the firmware by using the target controller through the target image file, the method further includes:
[0025] Sending a third instruction to the target controller, and using the third instruction to obtain the firmware upgrade information to obtain target upgrade information;
[0026] If it is determined according to the target upgrade information that the firmware has not been successfully upgraded, a third warning message is prompted.
[0027] On the other hand, sending the target image file to the target controller of the network card includes:
[0028] The target image file is sent to the target controller of the network card through a local area network.
[0029] In order to solve the above technical problems, the present invention also provides a firmware upgrade method, which is applied to a target controller of a network card in a server; the server upgrades the firmware in the network card in an in-band manner, and the target controller is connected to a main control chip in the network card through a physical link; the method comprises:
[0030] When a request to upgrade the firmware is received, a target image file is obtained from a baseboard management controller of the server;
[0031] The firmware is upgraded using the target image file.
[0032] On the one hand, the firmware is upgraded using the target image file, including:
[0033] Determine a storage area of the firmware in the network card, obtain a target storage area, and erase data in the target storage area;
[0034] Burn the target image file to the target storage area to upgrade the firmware.
[0035] On the other hand, burning the target image file to the target storage area to upgrade the firmware includes:
[0036] Burning the target image file frame by frame to the target storage area;
[0037] In the process of burning the target image file frame by frame into the target storage area, verifying the frame data burned into the target storage area in real time;
[0038] When each frame of data burned into the target image file in the target storage area passes the verification, it is determined that the firmware upgrade is successful.
[0039] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a firmware upgrade method disclosed above are implemented.
[0040] In the present invention, when the firmware of the internal network card of the server can only be upgraded in an in-band manner, a target controller is pre-connected to the main control chip of the network card through a physical link. When the baseboard management controller receives a request for upgrading the firmware during real-time monitoring of the operating status of the network card, the target image file for upgrading the firmware is first obtained, and the target image file is sent to the target controller in the network card. When the target controller receives the target image file sent by the baseboard management controller, the target image file is used to upgrade the firmware in the network card.
[0041] The beneficial effect of the present invention is that after the target controller is connected to the main control chip of the network card through a physical link, when the firmware in the network card is upgraded, the user does not need to enter the operating system of the server to upgrade the firmware, thereby improving the security and reliability when upgrading the firmware in the network card. In addition, when upgrading the firmware in the network card, it is only necessary to send the target image file to the target controller on the network card through the baseboard management controller, which can not only greatly reduce the complexity of upgrading the firmware inside the network card, making the firmware upgrade process more convenient, but also improve the efficiency of upgrading the firmware inside the network card.
[0042] In addition, the present invention also provides a firmware upgrade method and related equipment, with the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A structural diagram of a firmware upgrade system provided by an embodiment of the present invention;
[0045] Figure 2 A flowchart of a firmware upgrade method provided by an embodiment of the present invention;
[0046] Figure 3 A flowchart of another firmware upgrade method provided by an embodiment of the present invention;
[0047] Figure 4 A flowchart of another firmware upgrade method provided by an embodiment of the present invention;
[0048] Figure 5 A schematic diagram showing the principle of data interaction between the baseboard management controller and the target controller in the server;
[0049] Figure 6 A structural diagram of a firmware upgrade device provided by an embodiment of the present invention;
[0050] Figure 7 A structural diagram of another firmware upgrade device provided by an embodiment of the present invention;
[0051] Figure 8 A structural diagram of a firmware upgrade device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0053] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0054] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0055] See also Figure 1 , Figure 1 A structural diagram of a firmware upgrade system provided by an embodiment of the present invention, the system comprising:
[0056] Server 101, used to upgrade the firmware of the internal network card in an in-band manner;
[0057] The baseboard management controller 102 is arranged in the server 101 and is used to monitor the operation status of the network card in real time; when receiving a request for firmware upgrade, it obtains the target image file for firmware upgrade and sends the target image file to the target controller 103 in the network card;
[0058] The target controller 103 is connected to the main control chip in the network card through a physical link, and is used to upgrade the firmware through the target image file.
[0059] In this embodiment, a firmware upgrade system is provided, which can not only make the upgrade process of the firmware in the network card more secure and reliable, but also improve the convenience and efficiency of upgrading the firmware in the network card.
[0060] It should be noted that the firmware upgrade method described in the present invention is applicable to a server 101 that can only upgrade the firmware of the internal network card in an in-band manner. That is, the server 101 described in this application refers to a server that does not support the message cache protocol (MCTP OVER PCIe) based on the high-speed serial computer expansion bus standard, and such servers include most domestic servers, such as Haiguang servers, etc.
[0061] As the core management component of the server 101, the baseboard management controller 102 (BMC) has the functions of remotely monitoring, configuring and managing the server 101. Therefore, when the server 101 is powered on, the baseboard management controller 102 will detect each component in the server 101. During the startup of the server 101, the network card inside it will also be started. When the network card is successfully started, it will exchange information with other components in the server 101.
[0062] When the baseboard management controller 102 receives a request from the client to upgrade the firmware during real-time monitoring of the operating status of the network card, the baseboard management controller 102 obtains the target image file for upgrading the firmware from the client and sends the target image file to the target controller 103 in the network card.
[0063] It should be noted that the target controller 103 is pre-connected to the main control chip in the network card through a physical link, which ensures that the target controller 103 can directly obtain various operating information of the network card from the main control chip of the network card, such as: key data such as the working status, temperature, and voltage of the network card. At the same time, the target controller 103 also has the ability to operate the firmware storage area of the network card main control chip. That is, the target controller 103 can read, write, and update the firmware of the network card. Through these functions of the target controller 103, a more comprehensive and sophisticated management of the network card can be achieved.
[0064] Obviously, under this setting mode, the target controller 103 is equivalent to a simplified version of the baseboard management controller. We can name the target controller 103 SBMC (Simplified Baseboard Management Controller). The original intention of designing the target controller 103 is to meet its special needs when managing the network card firmware in the above-mentioned server 101.
[0065] When the target controller 103 receives the target image file sent by the baseboard management controller 102, the target controller 103 will use the target image file to upgrade the firmware in the network card. Specifically, after the target controller 103 receives the target image file sent by the baseboard management controller 102, it will erase the storage area used to store the firmware in the network card and burn the target image file into the storage area to upgrade the firmware in the network card.
[0066] In addition, through the collaborative work of the baseboard management controller 102 and the target controller 103, the operating status of the network card can be monitored more accurately, and potential problems that may exist in the server 101 can be discovered in time, which not only helps to reduce service interruptions and data losses caused by network card failures in the server 101, but also greatly improves the reliability and stability of the server 101 during operation.
[0067] Obviously, in the present invention, after the target controller is connected to the main control chip of the network card through a physical link, when upgrading the firmware in the network card, the user does not need to enter the operating system of the server to upgrade the firmware, thereby improving the security and reliability when upgrading the firmware in the network card. In addition, when upgrading the firmware in the network card, it is only necessary to send the target image file to the target controller on the network card through the baseboard management controller, which can not only greatly reduce the complexity of upgrading the firmware inside the network card, making the firmware upgrade process more convenient, but also improve the efficiency of upgrading the firmware inside the network card.
[0068] See also Figure 2 , Figure 2 A flowchart of a firmware upgrade method provided by an embodiment of the present invention, the method comprising:
[0069] Step S11: monitor the running status of the network card in real time;
[0070] Step S12: when a request for upgrading the firmware is received, a target image file for upgrading the firmware is obtained;
[0071] Step S13: Send the target image file to the target controller of the network card, so as to use the target controller to upgrade the firmware through the target image file; wherein the target controller is connected to the main control chip in the network card through a physical link.
[0072] The firmware upgrade method provided in this embodiment is described with the baseboard management controller in the server as the execution subject. The relevant description of the method can refer to the technical content disclosed in the above firmware upgrade system, and will not be described in detail here.
[0073] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation mode, the target controller is connected to the main control chip in the network card through an integrated circuit bus.
[0074] In this embodiment, the target controller can be connected to the main control chip in the network card through the Inter-Integrated Circuit (I2C). Because the integrated circuit bus not only has the advantages of wide operating voltage, strong anti-interference ability, low power consumption and low data loss, but also the integrated circuit bus only needs to use the SDA line (Serial Data, data line) and the SCL line (Serial Clock Line, clock line) to connect the devices at both ends, thereby greatly reducing the complexity of the circuit on the circuit board.
[0075] Obviously, the technical solution provided by this embodiment can not only reduce the circuit complexity on the circuit board, but also improve the reliability of the target controller when acquiring data from the network card main control chip.
[0076] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. Figure 3 , Figure 3 A flowchart of another firmware upgrade method provided by an embodiment of the present invention. As a preferred implementation, the above step S13: sending the target image file to the target controller of the network card, so as to upgrade the firmware through the target image file by using the target controller, includes:
[0077] Step S301: decompress the target image file to obtain a target decompressed file;
[0078] Step S302: verifying the target decompressed file;
[0079] Step S303: If the target decompressed file fails the verification, it is determined that the target decompressed file is damaged, and a first warning message is prompted;
[0080] Step S304: if the target decompressed file passes the verification, the target decompressed file is parsed to obtain target parsed data;
[0081] Step S305: determining the version number corresponding to the firmware according to the target parsed data to obtain a first version number;
[0082] Step S306: sending a first instruction to the target controller, so as to obtain the version number corresponding to the firmware at the current running time by using the first instruction, and obtain a second version number;
[0083] Step S307: Determine whether the first version number is consistent with the second version number;
[0084] Step S308: If the first version number is consistent with the second version number, it is determined that the version corresponding to the current running time of the firmware is the latest version, and a second warning message is prompted;
[0085] Step S309: If the first version number is inconsistent with the second version number, the target decompressed file is sent to the target controller, and a second instruction is sent to the target controller to notify the target controller to upgrade the firmware through the target decompressed file using the second instruction.
[0086] When the baseboard management controller obtains the target image file for upgrading the firmware in the network card, it can first verify the target image file to determine the integrity and availability of the target image file. Specifically, redundancy correction, hash correction or parity correction can be used to verify the target decompressed file.
[0087] If the target decompressed file fails the verification, it means that the target decompressed file has been damaged during the data transmission process, has been tampered with by illegal personnel, or a transmission error has occurred. At this time, the baseboard management controller will prompt the first warning information and the staff will handle it.
[0088] If the target decompressed file passes the verification, it means that there is no abnormality in the data transmission process of the target decompressed file, and the target decompressed file is safe and reliable. At this time, the baseboard management controller will parse the target decompressed file to obtain target parsing data, and determine the version number corresponding to the firmware according to the target parsing data to obtain the first version number.
[0089] Afterwards, the baseboard management controller sends a first instruction to the target controller, and uses the first instruction to obtain the version number corresponding to the firmware at the current running time to obtain the second version number. When the baseboard management controller obtains the second version number of the firmware at the current running time, it compares the first version number with the second version number and determines whether the first version number and the second version number are consistent.
[0090] In order to ensure the accuracy and reliability of the target controller when feeding back information to the baseboard management controller, when the target controller receives the first instruction sent by the baseboard management controller, the target controller can also directly access the register in the network card through the serial communication protocol (I2C protocol) and read the version number corresponding to the firmware at the current running time from the register.
[0091] If the first version number is consistent with the second version number, it means that the version corresponding to the firmware at the current running time is the latest version. At this time, the baseboard management controller will prompt the second warning information to alert the staff.
[0092] If the first version number and the second version number are inconsistent, it means that the firmware needs to be upgraded. At this time, the baseboard management controller will send the target decompressed file to the target controller and send a second instruction to the target controller. When the target controller receives the second instruction sent by the baseboard management controller, it will use the target decompressed file to upgrade the firmware.
[0093] Obviously, through the technical solution provided by this embodiment, the security and reliability of the baseboard management controller when using the target controller to upgrade the firmware in the network card can be guaranteed.
[0094] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of sending the target image file to the target controller of the network card to upgrade the firmware through the target image file by using the target controller also includes:
[0095] Sending a third instruction to the target controller, and using the third instruction to obtain firmware upgrade information to obtain target upgrade information;
[0096] If it is determined according to the target upgrade information that the firmware has not been successfully upgraded, a third warning message is prompted.
[0097] When sending the target image file to the target controller of the network card and using the target controller to upgrade the firmware in the network card, the baseboard management controller can also send a third instruction to the target controller and use the third instruction to obtain firmware upgrade information to obtain target upgrade information.
[0098] If the baseboard management controller determines that the firmware in the network card has been successfully upgraded based on the target upgrade information fed back by the target controller, the baseboard management controller will monitor the running status of the network card after the upgrade in real time.
[0099] If the baseboard management controller determines that the firmware in the network card has not been successfully upgraded based on the target upgrade information fed back by the target controller, the baseboard management controller will prompt the third warning information, thereby prompting the staff to arrive at the site to check the specific reasons why the firmware in the network card has not been successfully upgraded, and let the staff take corresponding solutions to deal with the abnormal problems that occur in the firmware of the network card during the upgrade process.
[0100] Obviously, through the technical solution provided in this embodiment, the staff can more quickly discover the anomalies that occur during the firmware upgrade process, thereby further improving the efficiency of the staff in handling faults.
[0101] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of sending the target image file to the target controller of the network card includes:
[0102] The target image file is sent to the target controller of the network card through the local area network.
[0103] In this embodiment, the baseboard management controller can send the target image file to the target controller of the network card through the local area network (LAN). Because the LAN not only has the advantages of fast transmission speed, easy management, and low setting cost, but also the devices in the LAN can be centrally managed, which makes it convenient for the staff to maintain the devices in the LAN.
[0104] In addition, the closed data interaction environment in the LAN can also improve the security and reliability of the baseboard management controller when interacting with the target controller, thereby further reducing the risk of information leakage and improving the stability of the server during operation.
[0105] Obviously, the technical solution provided by this embodiment can not only improve the security of data interaction between the baseboard management controller and the target controller, but also improve the speed of data interaction between the baseboard management controller and the target controller.
[0106] See also Figure 4 , Figure 4 A flowchart of another firmware upgrade method provided by an embodiment of the present invention, the method comprising:
[0107] Step S21: when a request for firmware upgrade is received, a target image file is obtained from a baseboard management controller of the server;
[0108] Step S22: upgrading the firmware using the target image file.
[0109] This embodiment also provides a firmware upgrade method, which is specifically described with the target controller set on the network card in the server as the execution subject. The server upgrades the firmware in the network card in an in-band manner, and the target controller is connected to the main control chip in the network card through a physical link. The relevant description of this method can be found in the technical content disclosed by the above-mentioned firmware upgrade system, and will not be described in detail here.
[0110] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of upgrading the firmware using the target image file includes:
[0111] Determine the storage area of the firmware in the network card, obtain the target storage area, and clear the data in the target storage area;
[0112] Burn the target image file to the target storage area to upgrade the firmware.
[0113] In this embodiment, when the target controller receives the target image file sent by the baseboard management controller, it will use the target image file to upgrade the firmware in the network card. When the target controller uses the target image file to upgrade the firmware in the network card, it first determines the storage area of the firmware in the network card and obtains the target storage area; then, the target controller erases the data stored in the target storage area.
[0114] After the target controller erases the data stored in the target storage area, the target controller will burn the target image file into the target storage area. When the target controller burns all the target image files into the target storage area, the firmware upgrade of the network card is completed.
[0115] It should be noted that when determining the storage area of the firmware in the network card, the target controller reads the target data from the register of the network card through the serial communication protocol, and determines the storage area of the firmware in the network card according to the target data.
[0116] Because when the target controller uses the serial communication protocol (I2C protocol) to read the target data from the register in the network card, it adopts the response mechanism to read the target data from the register of the network card. This ensures the accuracy and reliability of the target controller when determining the storage area of the firmware in the network card based on the target data.
[0117] Obviously, the technical solution provided by this embodiment can ensure that the target controller controls the firmware in the network card to perform a reliable upgrade operation.
[0118] As a preferred implementation, the above step of: burning the target image file to the target storage area to upgrade the firmware includes:
[0119] Burn the target image file frame by frame to the target storage area;
[0120] In the process of burning the target image file frame by frame into the target storage area, the frame data burned into the target storage area is verified in real time;
[0121] When each frame of data burned into the target image file in the target storage area passes the verification, it is determined that the firmware upgrade is successful.
[0122] In this embodiment, the target controller needs to burn the target image file into the target storage area frame by frame when burning the target image file into the target storage area and upgrading the firmware. The target controller also needs to verify the frame data burned into the target storage area in real time when burning the target image file into the target storage area frame by frame.
[0123] Only when each frame of data in the target image file burned into the target storage area passes the verification, can the firmware in the network card be determined to have been successfully upgraded. If a frame of data burned into the target storage area fails to pass the verification, it means that an abnormality and error occurred in the process of burning the target image file into the target storage area, and the firmware in the network card cannot be successfully upgraded.
[0124] In actual operation, the target controller may use parity correction, cyclic redundancy check (CRC) correction, longitudinal redundancy check (LRC) correction or XOR correction to correct each frame of data burned into the target storage area.
[0125] Obviously, the technical solution provided by this embodiment can ensure the accuracy and reliability of the firmware upgrade result in the network card.
[0126] Based on the technical contents disclosed in the above embodiments, the technical contents disclosed above are described in detail through an application scenario embodiment. Figure 5 , Figure 5 The schematic diagram is a principle diagram of data interaction between the baseboard management controller and the target controller in the server. It should be noted that the server is a server that upgrades the firmware of its internal network card in an in-band manner, and the target controller is connected to the main control chip of the network card through an integrated circuit bus on the network card. The network card is connected to the riser card (an expansion card) of the server.
[0127] When the server is powered on, the baseboard management controller inside it will detect the operating status of each component inside the server. When the baseboard management controller receives a request from the client to upgrade the firmware in the network card, it will obtain the target image file for upgrading the firmware in the network card from the client.
[0128] After the baseboard management controller obtains the target image file from the client, it will decompress the target image file and verify it. After the target image file passes the verification, the baseboard management controller will parse the target image file and determine the version number corresponding to the firmware to obtain the first version number.
[0129] After that, the baseboard management controller will send a first instruction to the target controller via the local area network, and use the first instruction to obtain the version number corresponding to the firmware at the current running time to obtain the second version number. If the first version number and the second version number are inconsistent, it means that the firmware in the network card needs to be upgraded. At this time, the baseboard management controller will send the target image file to the target controller via the local area network.
[0130] When the target controller receives the target image file sent by the baseboard management controller, it reads the data from the register and determines the storage area of the firmware in the network card to obtain the target storage area. Then, the target controller erases the data in the target storage area. When the target controller finishes erasing the data in the target storage area, it burns the target image file frame by frame into the target storage area.
[0131] When the target controller burns the target image file to the target storage area frame by frame, it will verify each frame of data burned to the target storage area. Only when each frame of data in the target image file burned to the target storage area passes the verification, it means that the target controller has successfully burned the target image file to the target storage area and completed the firmware upgrade.
[0132] Obviously, in this embodiment, after the target controller is connected to the main control chip of the network card through the integrated circuit bus, when upgrading the firmware in the network card, the user does not need to enter the server's operating system to upgrade the firmware, thereby improving the security and reliability when upgrading the firmware in the network card.
[0133] Moreover, when upgrading the firmware in the network card, you only need to use the baseboard management controller to send the target image file to the target controller on the network card through the local area network. This not only greatly reduces the complexity of upgrading the firmware inside the network card, making the firmware upgrade process more convenient and faster, but also users can choose the appropriate firmware version and upgrade strategy to generate the target image file according to their actual needs, and have a personalized upgrade experience.
[0134] See also Figure 6 , Figure 6 This is a structural diagram of a firmware upgrade device provided by an embodiment of the present invention. The device is applied to a baseboard management controller in a server. The server upgrades the firmware of an internal network card in an in-band manner. The device includes:
[0135] The status monitoring module 11 is used to monitor the operation status of the network card in real time;
[0136] The file acquisition module 12 is used to acquire the target image file for upgrading the firmware when receiving a request for upgrading the firmware;
[0137] The firmware upgrade module 13 is used to send the target image file to the target controller of the network card, so as to use the target controller to upgrade the firmware through the target image file; wherein the target controller is connected to the main control chip in the network card through a physical link.
[0138] On the one hand, the firmware upgrade module includes:
[0139] A file decompression unit, used for decompressing the target image file to obtain a target decompressed file;
[0140] A file verification unit, used to verify the target decompressed file;
[0141] A first determination unit, configured to determine that the target decompressed file is damaged and prompt a first warning message when the determination result of the file verification unit is negative;
[0142] A second determination unit, configured to parse the target decompressed file to obtain target parsed data when the determination result of the file verification unit is yes;
[0143] A first determining unit, configured to determine a version number corresponding to the firmware according to the target parsed data, to obtain a first version number;
[0144] A second determining unit is used to send a first instruction to the target controller, so as to obtain a version number corresponding to the firmware at the current running time by using the first instruction, and obtain a second version number;
[0145] A version determination unit, used to determine whether the first version number is consistent with the second version number;
[0146] An information warning unit, used for determining that the version corresponding to the firmware at the current running time is the latest version when the determination result of the version determination unit is yes, and prompting a second warning message;
[0147] The firmware upgrade unit is used to send the target decompressed file to the target controller and send a second instruction to the target controller when the determination result of the version determination unit is no, so as to use the second instruction to notify the target controller to upgrade the firmware through the target decompressed file.
[0148] On the other hand, the above device also includes:
[0149] An information feedback module is used to send the target image file to the target controller of the network card, so as to use the target controller to upgrade the firmware through the target image file, send a third instruction to the target controller, and use the third instruction to obtain the firmware upgrade information to obtain the target upgrade information;
[0150] The early warning prompt module is used to prompt the third early warning information if it is determined according to the target upgrade information that the firmware has not been successfully upgraded.
[0151] On the other hand, the firmware upgrade module includes:
[0152] The file sending unit is used to send the target image file to the target controller of the network card through the local area network.
[0153] A firmware upgrade device provided by an embodiment of the present invention has the beneficial effects of the aforementioned firmware upgrade method disclosed above.
[0154] See also Figure 7 , Figure 7 This is a structural diagram of another firmware upgrade device provided by an embodiment of the present invention, which is applied to a target controller of a network card in a server; the server upgrades the firmware in the network card in an in-band manner, and the target controller is connected to a main control chip in the network card through a physical link; the device includes:
[0155] The image acquisition module 21 is used to acquire the target image file from the baseboard management controller of the server when receiving a request to upgrade the firmware;
[0156] The file upgrade module 22 is used to upgrade the firmware using the target image file.
[0157] On the one hand, the file upgrade module 22 includes:
[0158] A data erasing unit, used to determine the storage area of the firmware in the network card, obtain the target storage area, and erase the data in the target storage area;
[0159] The file burning unit is used to burn the target image file to the target storage area to upgrade the firmware.
[0160] On the other hand, the file burning unit includes:
[0161] The file burning subunit is used to burn the target image file frame by frame to the target storage area;
[0162] The data verification subunit is used to verify the frame data burned into the target storage area in real time during the process of burning the target image file frame by frame into the target storage area;
[0163] The firmware determination subunit is used to determine that the firmware upgrade is successful when each frame of data burned into the target image file in the target storage area passes the verification.
[0164] A firmware upgrade device provided by an embodiment of the present invention has the beneficial effects of the aforementioned firmware upgrade method disclosed above.
[0165] Correspondingly, 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 steps of a firmware upgrade method disclosed above are implemented.
[0166] A computer-readable storage medium provided by an embodiment of the present invention has the beneficial effects of the aforementioned firmware upgrade method disclosed above.
[0167] In the above embodiment, a firmware upgrade method is described in detail, and the present invention further provides a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the firmware upgrade method in any of the above embodiments are implemented.
[0168] See also Figure 8 , Figure 8 A structural diagram of a firmware upgrade device provided in an embodiment of the present invention, the device comprising:
[0169] A memory 31, used for storing computer programs;
[0170] The processor 32 is used to implement the steps of the firmware upgrade method of the above embodiment when executing the computer program.
[0171] The firmware upgrade device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0172] Among them, the processor 32 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 32 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 32 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 32 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 32 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0173] The memory 31 may include one or more computer-readable storage media, which may be non-transitory. The memory 31 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 31 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 32, it can implement the relevant steps of the firmware upgrade method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 31 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include but is not limited to data involved in the firmware upgrade method.
[0174] In some embodiments, the firmware upgrade device may further include a display screen 33 , an input / output interface 34 , a communication interface 35 , a power supply 36 , and a communication bus 37 .
[0175] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the firmware upgrade device, and may include more or fewer components than shown in the figure.
[0176] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0177] Based on this, 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 steps of the above-mentioned firmware upgrade method are implemented.
[0178] 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.
[0179] 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.
[0180] The above is a detailed introduction to a firmware upgrade system, method and related equipment provided by the present invention. This article uses specific examples 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 claims of the present invention.
Claims
1. A firmware upgrade system, characterized in that: include: Server, used to upgrade the firmware of the internal network card in-band; A baseboard management controller is arranged in the server and is used to monitor the operation status of the network card in real time; When a request to upgrade the firmware is received, a target image file for upgrading the firmware is obtained, and the target image file is sent to a target controller in the network card; The target controller is connected to the main control chip in the network card through a physical link, and is used to upgrade the firmware through the target image file.
2. A firmware upgrade method, characterized in that: Baseboard management controller used in servers; The server upgrades the firmware of the internal network card in an in-band manner; the method comprises: Performing real-time monitoring on the operating status of the network card; When a request to upgrade the firmware is received, a target image file for upgrading the firmware is obtained; The target image file is sent to the target controller of the network card, so as to use the target controller to upgrade the firmware through the target image file; wherein the target controller is connected to the main control chip in the network card through a physical link.
3. A firmware upgrade method according to claim 2, characterized in that: The target controller is connected to the main control chip in the network card through an integrated circuit bus.
4. A firmware upgrade method according to claim 2, characterized in that: Sending the target image file to the target controller of the network card, so as to upgrade the firmware by using the target controller through the target image file, comprises: Decompressing the target image file to obtain a target decompressed file; Verifying the target decompressed file; If the target decompressed file fails the verification, it is determined that the target decompressed file is damaged, and a first warning message is prompted; If the target decompressed file passes the verification, the target decompressed file is parsed to obtain target parsed data; Determine the version number corresponding to the firmware according to the target parsed data to obtain a first version number; Sending a first instruction to the target controller, so as to obtain a version number corresponding to the firmware at the current running time by using the first instruction, and obtain a second version number; Determine whether the first version number is consistent with the second version number; If the first version number is consistent with the second version number, it is determined that the version corresponding to the firmware at the current running time is the latest version, and a second warning message is prompted; If the first version number is inconsistent with the second version number, the target decompressed file is sent to the target controller, and a second instruction is sent to the target controller to use the second instruction to notify the target controller to upgrade the firmware through the target decompressed file.
5. A firmware upgrade method according to claim 2, characterized in that: After sending the target image file to the target controller of the network card so as to upgrade the firmware by using the target controller through the target image file, the method further includes: Sending a third instruction to the target controller, and using the third instruction to obtain the firmware upgrade information to obtain target upgrade information; If it is determined according to the target upgrade information that the firmware has not been successfully upgraded, a third warning message is prompted.
6. A firmware upgrade method according to any one of claims 2 to 5, characterized in that: Sending the target image file to the target controller of the network card includes: The target image file is sent to the target controller of the network card via a local area network.
7. A firmware upgrade method, characterized in that: A target controller applied to a network card in a server; the server upgrades the firmware in the network card in an in-band manner, and the target controller is connected to a main control chip in the network card through a physical link; the method comprises: When a request to upgrade the firmware is received, a target image file is obtained from a baseboard management controller of the server; The firmware is upgraded using the target image file.
8. A firmware upgrade method according to claim 7, characterized in that: The firmware is upgraded by using the target image file, comprising: Determine a storage area of the firmware in the network card, obtain a target storage area, and erase data in the target storage area; Burn the target image file to the target storage area to upgrade the firmware.
9. A firmware upgrade method according to claim 8, characterized in that: Burning the target image file to the target storage area to upgrade the firmware includes: Burning the target image file frame by frame to the target storage area; In the process of burning the target image file frame by frame into the target storage area, verifying the frame data burned into the target storage area in real time; When each frame of data burned into the target image file in the target storage area passes the verification, it is determined that the firmware upgrade is successful.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a firmware upgrade method as claimed in any one of claims 2 to 6 or claims 7 to 9 are implemented.
Citation Information
Cited By
Adapter card updating method and equipment
CN121029205A
A method and apparatus for updating a switch card
CN121029205B
Firmware updating method of expansion card and electronic equipment
CN122450485A
