A chip firmware upgrade method and computing device

By pre-storing multiple firmware upgrade files in the computing device and storing their identification information after receiving the upgrade instructions, the problems of inefficient firmware upgrade and business interruption are solved, and the firmware upgrade is directly completed when the computing device is restarted, which improves the Upgrade efficiency and stability.

CN118708200BActive Publication Date: 2024-11-19ZHONGCHENG HUALONG COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410681047.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-11-19
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The firmware upgrade process of computing devices is inefficient, and frequent restarts affect the normal operation of the business.

Method used

Multiple firmware upgrade files are stored in advance, and their identification information is stored after receiving the upgrade instructions. When the computing device restarts, the firmware upgrade is completed based on this information to avoid the restart process.

Benefits of technology

Improves firmware upgrade efficiency, reduces business interruptions caused by upgrades, and improves the operational stability of computing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708200B_ABST
    Figure CN118708200B_ABST
Patent Text Reader

Abstract

The present invention relates to a chip firmware upgrade method and a computing device, and to the field of chip technology. The above method includes: a processor receives a firmware upgrade instruction, the firmware upgrade instruction is used to instruct to upgrade a target chip according to a first firmware upgrade file, the first firmware upgrade file is one of a plurality of firmware upgrade files pre-stored in the computing device, and the firmware upgrade instruction carries identification information of the first firmware upgrade file. The processor stores the identification information of the first firmware upgrade file in a first storage location. When the computing device is restarted, the controller generates and sends a first control signal according to the identification information of the first firmware upgrade file to complete the upgrade of the target chip. The present invention can directly complete the chip upgrade according to the pre-input firmware upgrade instruction when the computing device is restarted, can improve the efficiency of the firmware upgrade, and avoid the business from not being able to operate normally due to the firmware upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip technology, and in particular to a chip firmware upgrade method and computing device. Background Art

[0002] At present, the firmware of the internal chip of a computing device is usually updated and upgraded through a baseboard management controller (BMC). The BMC first receives the firmware upgrade file of the chip to be upgraded, then stores the firmware upgrade file of the chip to be upgraded to a specified location, and then sends instructions to the chip to be upgraded to restart the computing device so that the chip to be upgraded responds to the instructions. After the computing device is restarted, the firmware upgrade is completed according to the firmware upgrade file.

[0003] Since it takes a certain amount of time to restart a computing device each time, there is a problem of low upgrade efficiency. In addition, different services are usually running on the computing device, and the restart caused by frequent firmware upgrades seriously affects the normal operation of the service. Summary of the invention

[0004] The present invention provides a chip firmware upgrade method and computing device, which can receive and store chip firmware upgrade instructions, and when the computing device is restarted, directly complete the chip upgrade according to the pre-input firmware upgrade instructions, thereby improving the firmware upgrade efficiency and avoiding the business from being unable to operate normally due to the firmware upgrade.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] In a first aspect, the present invention provides a chip firmware upgrade method, which is applied to a computing device, wherein the computing device includes a processor, a controller and a target chip, and the computing device pre-stores multiple firmware upgrade files. The method includes: the processor receives a firmware upgrade instruction, the firmware upgrade instruction is used to instruct the target chip to be upgraded according to a first firmware upgrade file, the first firmware upgrade file is one of multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file; the processor stores the identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction; the controller obtains the identification information of the first firmware upgrade file from the first storage location when the computing device is restarted; the controller generates a first control signal according to the identification information of the first firmware upgrade file; the controller sends a first control signal to the target chip, and the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.

[0007] The method provided by the embodiment of the present invention stores multiple firmware upgrade files in advance, and after the computing device receives the firmware upgrade instruction, stores the identification information carried in the firmware upgrade instruction in the first storage location. In this way, when the computing device is restarted, the target firmware upgrade file is determined from the multiple firmware upgrade files according to the identification information stored in the first storage location, thereby completing the firmware upgrade of the chip. Compared with the method in the related art, in which the chip to be upgraded responds to the instruction, restarts the computing device, and completes the firmware upgrade according to the firmware upgrade file after the computing device is restarted, the method provided by the present invention can directly complete the chip upgrade according to the pre-input firmware upgrade instruction when the computing device is restarted, thereby improving the efficiency of the firmware upgrade and avoiding the failure of the business to operate normally due to the firmware upgrade.

[0008] On the basis of the above technical solution, the present invention can also be improved as follows.

[0009] In a possible implementation of the first aspect, the computing device communicates with the server, and before the processor receives the firmware upgrade instruction, the method further includes: the processor receives multiple firmware upgrade files sent by the server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm; the processor stores the multiple firmware upgrade files in a second storage location; and the processor stores the first verification information of each firmware upgrade file in a third storage location.

[0010] The beneficial effect of adopting the above further scheme is: the method provided by the present invention can receive multiple firmware upgrade files and the first verification information corresponding to each firmware upgrade file, and store the multiple firmware upgrade files in a second storage location, and then when the computing device is restarted, it can directly determine the first firmware upgrade file from the second storage location according to the pre-input firmware upgrade instruction, thereby completing the chip upgrade, which can improve the efficiency of firmware upgrades and avoid the business from being unable to operate normally due to firmware upgrades.

[0011] In a possible implementation of the first aspect, the processor stores identification information of a first firmware upgrade file in a first storage location in response to a firmware upgrade instruction, including: the processor determines second verification information of the first firmware upgrade file according to a preset algorithm in response to the firmware upgrade instruction; the processor obtains the first verification information of the first firmware upgrade file from a third storage location; and the processor stores the identification information of the first firmware upgrade file in the first storage location when the first verification information of the first firmware upgrade file and the second verification information of the first firmware upgrade file are consistent.

[0012] The beneficial effect of adopting the above further scheme is: the method provided by the present invention determines the second verification information of the first firmware upgrade file through a preset algorithm, and verifies the second verification information according to the first verification information of the first firmware upgrade file stored in advance, thereby ensuring the security of the first firmware upgrade file and avoiding unnecessary losses.

[0013] In a possible implementation of the first aspect, a computing device communicates with multiple servers, and a processor receives multiple firmware upgrade files sent by the server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm, including: the processor receives multiple firmware upgrade files sent by a target server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm, and the target server is the one with the largest network bandwidth among the multiple servers.

[0014] The beneficial effect of adopting the above further scheme is: the method provided by the present invention communicates with multiple servers through a computing device, and receives multiple firmware upgrade files sent by the server with the largest network bandwidth and the first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to a preset algorithm, which can improve the transmission rate of the first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to the preset algorithm, thereby improving the firmware upgrade efficiency.

[0015] In a possible implementation of the first aspect, the computing device includes multiple processors, and the above method also includes: when the computing device is started, the first processor receives a firmware upgrade instruction, and the first processor is one of the multiple processors; the first processor responds to the firmware upgrade instruction and determines the second processor from the multiple processors, and the second processor is the processor with the lowest resource utilization among the multiple processors; the first processor sends the firmware upgrade instruction to the second processor; the second processor responds to the firmware upgrade instruction and determines the second verification information of the first firmware upgrade file according to a preset algorithm; the second processor obtains the first verification information of the first firmware upgrade file from a third storage location; the second processor stores the identification information of the first firmware upgrade file in the first storage location when the first verification information of the first firmware upgrade file is consistent with the second verification information of the first firmware upgrade file.

[0016] The beneficial effect of adopting the above further scheme is: the method provided by the present invention can achieve rational utilization of processor resources by setting multiple processors and completing the verification of the first firmware upgrade file through the second processor with the lowest resource utilization rate, thereby avoiding the verification process of the first firmware upgrade file being prolonged due to excessive processor resource utilization, thereby affecting the firmware upgrade of the target chip.

[0017] In a possible implementation of the first aspect, the method further includes: when the computing device is not started, the controller receives identification information of a second firmware upgrade file input by a user; when the computing device is started, the controller generates a second control signal based on the identification information of the second firmware upgrade file; the controller sends a second control signal to the target chip, and the second control signal is used to instruct the target chip to load the second firmware upgrade file to complete the upgrade of the target chip.

[0018] The beneficial effect of adopting the above further scheme is that the method provided by the present invention can send the identification information of the second firmware upgrade file to the controller when the computing device is not started, so that when the computing device is started, the second firmware upgrade file is determined from multiple firmware upgrade files according to the identification information of the second firmware upgrade file, and the upgrade of the target chip is completed based on the second firmware upgrade file. In this way, the user does not need to input the firmware upgrade instruction when the computing device is started, and the computing device does not need to restart again to complete the upgrade of the target chip, thereby improving the efficiency of the firmware upgrade and avoiding the inability of the business to operate normally due to the firmware upgrade.

[0019] In a possible implementation of the first aspect, the third firmware upgrade file includes multiple sub-files, the data volume of the third firmware upgrade file is greater than or equal to a preset threshold, and the third firmware upgrade file is one of the multiple firmware upgrade files. The above method also includes: the processor receives multiple sub-files included in the third firmware upgrade file sent by multiple servers, wherein each server is used to send one or more of the multiple sub-files; the processor generates a third firmware upgrade file based on the multiple sub-files included in the third firmware upgrade file; the processor stores the third firmware upgrade file in a second storage location.

[0020] The beneficial effect of adopting the above further scheme is: when the data volume of the third firmware upgrade file is greater than or equal to the preset threshold, the method provided by the present invention can effectively improve the transmission efficiency of the third firmware upgrade file by sending different sub-files included in the third firmware upgrade file through multiple servers respectively, thereby improving the firmware upgrade efficiency, thereby improving the user experience. In a possible implementation of the first aspect, the target chip is connected to multiple external devices, and the above method also includes: when the computing device is not started, the controller obtains the configuration information of the multiple external devices, and the configuration information includes the type and model of the external device; when the computing device is restarted, the controller determines the identification information of the fourth firmware upgrade file corresponding to the multiple external devices according to the configuration information of the multiple external devices, and the fourth firmware upgrade file is one of the multiple firmware upgrade files; the controller generates a third control signal according to the identification information of the fourth firmware upgrade file; the controller sends a third control signal to the target chip, and the third control signal is used to instruct the target chip to load the fourth firmware upgrade file so that the multiple external devices can operate normally.

[0021] The beneficial effect of adopting the above further scheme is: the method provided by the present invention determines the fourth firmware upgrade file according to the external device configured by the computing device, and after the computing device is started, directly completes the upgrade of the target chip according to the fourth firmware upgrade file to achieve normal operation of multiple external devices. There is no need to restart the computing device again after the computing device is started, which can avoid the business from not being able to operate normally due to firmware upgrade.

[0022] In a possible implementation manner of the first aspect, the controller is a baseboard management controller BMC.

[0023] The beneficial effect of adopting the above further scheme is that the method provided by the embodiment of the present invention stores multiple firmware upgrade files in advance, and after the computing device receives the firmware upgrade instruction, the identification information carried in the firmware upgrade instruction is stored in the first storage location. In this way, when the computing device is restarted, the baseboard management controller BMC determines the target firmware upgrade file from the multiple firmware upgrade files according to the identification information stored in the first storage location, thereby completing the firmware upgrade of the chip. Compared with the method in the related art, in which the chip to be upgraded responds to the instruction, restarts the computing device, and completes the firmware upgrade according to the firmware upgrade file after the computing device is restarted, the method provided by the present invention can directly complete the chip upgrade according to the pre-input firmware upgrade instruction when the computing device is restarted, thereby improving the efficiency of the firmware upgrade and avoiding the failure of the business to operate normally due to the firmware upgrade.

[0024] In a second aspect, an embodiment of the present invention provides a computing device, comprising: a processor, a controller and a target chip; the processor is used to receive a firmware upgrade instruction, the firmware upgrade instruction is used to instruct to upgrade the target chip according to a first firmware upgrade file, the first firmware upgrade file is one of multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file; the processor is also used to store the identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction; the controller is used to obtain the identification information of the first firmware upgrade file from the first storage location when the computing device is restarted; the controller is also used to generate a first control signal according to the identification information of the first firmware upgrade file; the controller is also used to send a first control signal to the target chip, the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.

[0025] Among them, the technical effects brought about by the second aspect can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1aA schematic diagram of the structure of a computing device shown in an embodiment of the present invention;

[0027] Figure 1b A schematic diagram of the structure of another computing device shown in an embodiment of the present invention;

[0028] Figure 2 A method flow chart of a chip firmware upgrade method shown in an embodiment of the present invention;

[0029] Figure 3 A method flow chart of another chip firmware upgrade method according to an embodiment of the present invention;

[0030] Figure 4 A schematic diagram of a system architecture shown in an embodiment of the present invention;

[0031] Figure 5 A method flow chart of another chip firmware upgrade method according to an embodiment of the present invention;

[0032] Figure 6a A schematic diagram of the structure of another computing device according to an embodiment of the present invention;

[0033] Figure 6b An interactive flow chart of a chip firmware upgrade method shown in an embodiment of the present invention;

[0034] Figure 7 The present invention is a flowchart of another chip firmware upgrade method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention. In the description of the embodiments of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0036] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. At the same time, in the embodiments of the present invention, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0037] At present, the firmware of the internal chip of the computing device is usually updated and upgraded through the baseboard management controller BMC. The BMC first receives the firmware upgrade file of the chip to be upgraded, and then stores the firmware upgrade file of the chip to be upgraded to a specified location, and then sends an instruction to the chip to be upgraded, restarts the computing device, so that the chip to be upgraded responds to the instruction, and completes the firmware upgrade according to the firmware upgrade file after the computing device restarts. For example, during the startup process of the computing device, the computing device receives a firmware upgrade instruction for chip A, the computing device restarts, and sends an instruction to chip A after restarting, so that chip A completes the firmware upgrade according to the corresponding firmware upgrade file. Then the computing device receives a firmware upgrade instruction for chip B, the computing device restarts again, and sends an instruction to chip B after restarting, so that chip B completes the firmware upgrade according to the corresponding firmware upgrade file. Since it takes a certain amount of time to restart the computing device, there is a problem of low upgrade efficiency, and different services are usually running on the computing device, and the restart caused by frequent firmware upgrades seriously affects the normal operation of the service.

[0038] In view of this, an embodiment of the present invention provides a chip firmware upgrade method, which is applied to a computing device, wherein the computing device includes a processor, a controller, and a target chip, and the computing device pre-stores multiple firmware upgrade files. The method includes: the processor receives a firmware upgrade instruction, the firmware upgrade instruction is used to instruct the target chip to be upgraded according to a first firmware upgrade file, the first firmware upgrade file is one of multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file. The processor stores the identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction. When the computing device is restarted, the controller obtains the identification information of the first firmware upgrade file from the first storage location. The controller generates a first control signal according to the identification information of the first firmware upgrade file. The controller sends a first control signal to the target chip, and the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.

[0039] The method provided by the embodiment of the present invention stores multiple firmware upgrade files in advance, and after the computing device receives the firmware upgrade instruction, stores the identification information carried in the firmware upgrade instruction in the first storage location. In this way, when the computing device is restarted, the target firmware upgrade file is determined from the multiple firmware upgrade files according to the identification information stored in the first storage location, thereby completing the firmware upgrade of the chip. Compared with the method in the related art, in which the chip to be upgraded responds to the instruction, restarts the computing device, and completes the firmware upgrade according to the firmware upgrade file after the computing device is restarted, the method provided by the present invention can directly complete the chip upgrade according to the pre-input firmware upgrade instruction when the computing device is restarted, thereby improving the efficiency of the firmware upgrade and avoiding the failure of the business to operate normally due to the firmware upgrade.

[0040] See also Figure 1a , Figure 1aThe structural diagram of a computing device shown in an embodiment of the present invention is a computing device 100, comprising a processor 110, a controller 120 and a target chip 130, wherein the computing device 100 pre-stores a plurality of firmware upgrade files. The processor 110 communicates with the controller 120 and the target chip 130, and the controller 120 communicates with the target chip 130. The processor 110 is used to receive a firmware upgrade instruction, wherein the firmware upgrade instruction is used to instruct the target chip 130 to be upgraded according to a first firmware upgrade file, wherein the first firmware upgrade file is one of a plurality of firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file. The processor 110 is also used to store the identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction. The controller 120 is used to obtain the identification information of the first firmware upgrade file from the first storage location when the computing device is restarted. The controller 120 is also used to generate a first control signal according to the identification information of the first firmware upgrade file. The controller 120 is also used to send a first control signal to the target chip 130, wherein the first control signal is used to instruct the target chip 130 to load the first firmware upgrade file to complete the upgrade of the target chip 130.

[0041] See also Figure 1b , Figure 1b The schematic diagram of the structure of a computing device shown in an embodiment of the present invention, wherein the computing device 100 further includes a memory 140, which is connected to the processor 110, the controller 120 and the target chip 130 respectively, and is used to store multiple firmware upgrade files. Each firmware upgrade file corresponds to a different version of the target chip 130.

[0042] As an example, the computing device 100 may be any device with data processing capabilities, such as a general-purpose computer, a personal computer, a laptop computer, a switch, or a tablet computer, etc. The specific implementation of the computing device 100 is not limited herein.

[0043] In a possible implementation, the controller is a baseboard management controller BMC.

[0044] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the computing device 100. In other embodiments of the present invention, the computing device 100 may include more or fewer components than those illustrated, or combine certain components, or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0045] The following describes a chip firmware upgrade method provided by an embodiment of the present invention in conjunction with the accompanying drawings.

[0046] Figure 2The present invention is a flowchart of a chip firmware upgrade method according to an embodiment of the present invention.

[0047] Optionally, this method can be implemented by Figure 1a or Figure 1b The method may include the following steps:

[0048] S1. A processor receives a firmware upgrade instruction, where the firmware upgrade instruction is used to instruct to upgrade a target chip according to a first firmware upgrade file, where the first firmware upgrade file is one of multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file.

[0049] Specifically, the computing device pre-stores a plurality of firmware upgrade files, each of which corresponds to a different version of the target chip.

[0050] Exemplarily, the computing device pre-stores a firmware upgrade file A, a firmware upgrade file B, and a firmware upgrade file C. The firmware upgrade file A corresponds to version A of the target chip, the firmware upgrade file B corresponds to version B of the target chip, and the firmware upgrade file C corresponds to version C of the target chip. The processor receives a firmware upgrade instruction input by a user, the firmware upgrade instruction is used to instruct to upgrade the target chip according to the firmware upgrade file A, so that the target chip is upgraded to version A, and the firmware upgrade instruction carries identification information A of the firmware upgrade file A.

[0051] S2. The processor stores identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction.

[0052] In combination with the above example, the processor stores identification information A of firmware upgrade file A in the first storage location in response to the firmware upgrade instruction input by the user.

[0053] It should be understood that the first storage location is any memory connected to the controller and configured by the computing device, and the embodiment of the present invention does not impose any particular limitation on the specific implementation of the first storage location.

[0054] It should also be noted that the above steps S1 and S2 are executed by the processor when the computing device is started. It can also be understood that the above steps S1 and S2 are executed by the processor when the operating system of the computing device is running normally.

[0055] S3. When the computing device is restarted, the controller obtains identification information of the first firmware upgrade file from the first storage location.

[0056] Specifically, the controller monitors a startup event of the computing device, and when it monitors that the computing device is restarted, obtains identification information of the first firmware upgrade file from the first storage location.

[0057] In combination with the above example, when the computing device is restarted, the controller obtains the identification information A of the firmware upgrade file A from the first storage location.

[0058] S4. The controller generates a first control signal according to the identification information of the first firmware upgrade file.

[0059] In combination with the above example, the controller generates a control signal A according to the identification information A of the firmware upgrade file A.

[0060] S5. The controller sends a first control signal to the target chip, where the first control signal is used to instruct the target chip to load a first firmware upgrade file to complete the upgrade of the target chip.

[0061] In combination with the above example, the controller sends a control signal A to the target chip, and the control signal A is used to instruct the target chip to load the firmware upgrade file A to complete the upgrade of the target chip, so that the version of the target chip is upgraded to A.

[0062] It should be understood that, in the case where the computing device includes multiple chips, the processor receives the firmware upgrade instruction corresponding to each chip, and stores the identification information of the firmware upgrade file corresponding to each chip in the first storage location. When the computing device is restarted, the controller obtains the identification information of the firmware upgrade file of each chip to generate a control signal corresponding to each chip, and sends the control signal corresponding to each chip to each chip, so as to complete the firmware upgrade of multiple chips when the computing device is restarted once, wherein, for each chip in the multiple chips, the firmware upgrade process of the chip is the same as the firmware upgrade process of the target chip, which will not be repeated here.

[0063] In a possible implementation, the method provided in the embodiment of the present invention further includes the following steps:

[0064] The processor restarts the computing device at a preset frequency.

[0065] Exemplarily, in the case where the computing device includes multiple chips, the processor receives firmware upgrade instructions corresponding to five chips in a target time period, and stores identification information of the firmware upgrade file corresponding to each chip in a first storage location. When the processor restarts the computing device at a preset frequency, the controller obtains the identification information of the firmware upgrade files of the five chips to generate a control signal corresponding to each chip, and sends the control signal corresponding to each chip to the five chips, so as to complete the firmware upgrade of multiple chips when the computing device is restarted once, wherein, for each of the multiple chips, the firmware upgrade process of the chip is the same as the firmware upgrade process of the target chip, and will not be repeated here.

[0066] As can be seen from the above S1-S5, the method provided by the embodiment of the present invention stores multiple firmware upgrade files in advance, and after the computing device receives the firmware upgrade instruction, the identification information carried in the firmware upgrade instruction is stored in the first storage location. In this way, when the computing device is restarted, the target firmware upgrade file is determined from the multiple firmware upgrade files according to the identification information stored in the first storage location, thereby completing the firmware upgrade of the chip. Compared with the method in the related art, in which the chip to be upgraded responds to the instruction, restarts the computing device, and completes the firmware upgrade according to the firmware upgrade file after the computing device is restarted, the method provided by the present invention can directly complete the chip upgrade according to the pre-input firmware upgrade instruction when the computing device is restarted, thereby improving the efficiency of the firmware upgrade and avoiding the failure of the business to operate normally due to the firmware upgrade.

[0067] In some embodiments, see Figure 3 Before the above S1, the embodiment of the present invention further includes the following steps:

[0068] S31. The processor receives multiple firmware upgrade files sent by the server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm.

[0069] Exemplarily, when the preset algorithm is a hash algorithm, the server obtains a hash value corresponding to each firmware upgrade file through the hash algorithm based on each firmware upgrade file in the multiple firmware upgrade files, and the hash value of each firmware upgrade file is the first verification information of each firmware upgrade file. The server then sends each firmware upgrade file and the hash value corresponding to each firmware upgrade file to the computing device, so that the processor included in the computing device receives multiple firmware upgrade files and the first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to the preset algorithm.

[0070] For further information, see Figure 4 , Figure 4 A schematic diagram of a system architecture is shown in an embodiment of the present invention. A computing device 100 communicates with multiple servers 200. Each of the multiple servers 200 is used to send multiple firmware upgrade files and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm to the computing device 100.

[0071] Optionally, the above S31 specifically includes the following steps: the processor receives multiple firmware upgrade files sent by the target server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm, and the target server is the one with the largest network bandwidth among the multiple servers.

[0072] In this way, the method provided by the embodiment of the present invention communicates with multiple servers through a computing device, and receives multiple firmware upgrade files sent by the server with the largest network bandwidth and the first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to a preset algorithm. This can improve the transmission rate of the first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to the preset algorithm, thereby improving the firmware upgrade efficiency.

[0073] S32: The processor stores multiple firmware upgrade files in a second storage location.

[0074] S33: The processor stores the first verification information of each firmware upgrade file in a third storage location.

[0075] The method provided by the embodiment of the present invention can receive multiple firmware upgrade files and first verification information corresponding to each firmware upgrade file, and store the multiple firmware upgrade files in a second storage location, so that when the computing device is restarted, the first firmware upgrade file can be directly determined from the second storage location according to the pre-input firmware upgrade instruction, thereby completing the chip upgrade, improving the firmware upgrade efficiency, and avoiding the business from being unable to operate normally due to the firmware upgrade.

[0076] In one possible implementation, see Figure 5 The above S2 specifically includes the following steps:

[0077] S51. The processor determines second verification information of the first firmware upgrade file according to a preset algorithm in response to a firmware upgrade instruction.

[0078] S52: The processor obtains first verification information of the first firmware upgrade file from the third storage location.

[0079] S53: When the first verification information of the first firmware upgrade file is consistent with the second verification information of the first firmware upgrade file, the processor stores the identification information of the first firmware upgrade file in the first storage location.

[0080] Exemplarily, when the preset algorithm is a hash algorithm, the processor responds to the firmware upgrade instruction and determines the second verification information (hash value 1) of the first firmware upgrade file according to the preset algorithm, and hash value 1 is the hash value corresponding to the first firmware upgrade file calculated by the processor according to the first firmware upgrade file through the hash algorithm. Then the processor obtains the first verification information (hash value 2) of the first firmware upgrade file from the third storage location. Among them, hash value 2 is the hash value corresponding to the first firmware upgrade file calculated by the server according to the first firmware upgrade file through the hash algorithm. When hash value 1 and hash value 2 are consistent, the processor stores the identification information of the first firmware upgrade file in the first storage location.

[0081] It can be seen from the above S51-S53 that the method provided in the embodiment of the present invention determines the second verification information of the first firmware upgrade file through a preset algorithm, and verifies the second verification information according to the first verification information of the first firmware upgrade file pre-stored, which can ensure the security of the first firmware upgrade file and avoid unnecessary losses.

[0082] In some embodiments, see Figure 6a , Figure 6a The schematic diagram of the structure of another computing device shown in the embodiment of the present invention. The computing device 100 includes multiple processors 110, the multiple processors 110 communicate with each other, and each processor communicates with the controller 120 and the target chip 130 respectively. The method provided in the embodiment of the present invention also includes the following steps:

[0083] When the computing device is started, the first processor receives a firmware upgrade instruction, the first processor determines a second processor from a plurality of processors in response to the firmware upgrade instruction, and the first processor sends the firmware upgrade instruction to the second processor. The second processor determines the second verification information of the first firmware upgrade file according to a preset algorithm in response to the firmware upgrade instruction. The second processor obtains the first verification information of the first firmware upgrade file from the third storage location. When the first verification information of the first firmware upgrade file and the second verification information of the first firmware upgrade file are consistent, the second processor stores the identification information of the first firmware upgrade file in the first storage location.

[0084] Specifically, the first processor is one of the multiple processors, and the second processor is a processor with the lowest resource usage rate among the multiple processors.

[0085] Exemplarily, the computing device includes processor a, processor b, and processor c, wherein the resource utilization rate of processor a is 80%, the resource utilization rate of processor b is 60%, and the resource utilization rate of processor c is 40%. Figure 6b , Figure 6b The interactive flow chart of a chip firmware upgrade method shown in an embodiment of the present invention. When the computing device is started, processor a receives a firmware upgrade instruction. In response to the firmware upgrade instruction, processor a determines processor c from three processors, and processor a sends the firmware upgrade instruction to processor c. In response to the firmware upgrade instruction, processor c determines the second verification information of the first firmware upgrade file according to a preset algorithm. Processor c obtains the first verification information of the first firmware upgrade file from the third storage location. When the first verification information of the first firmware upgrade file is consistent with the second verification information of the first firmware upgrade file, processor c stores the identification information of the first firmware upgrade file in the first storage location.

[0086] The method provided by the embodiment of the present invention can achieve reasonable utilization of processor resources by setting multiple processors in a computing device and completing the verification of the first firmware upgrade file through the second processor with the lowest resource utilization rate, thereby avoiding the situation where the verification process of the first firmware upgrade file takes a long time due to excessive processor resource utilization rate, thereby affecting the firmware upgrade efficiency of the target chip.

[0087] In some possible implementations, see Figure 7 , the method provided by the embodiment of the present invention further includes the following steps:

[0088] S71: When the computing device is not started, the controller receives identification information of a second firmware upgrade file input by a user.

[0089] Specifically, the computing device is not started when the computing device is connected to a power source but the computing device is not powered on. At this time, the operating system of the computing device is not started. The controller can work normally when the operating system of the computing device is not started.

[0090] In a possible implementation, the controller is connected to a complex programmable logic device (CPLD), and the controller receives a level signal input by a user through the complex programmable logic device, where the level signal carries identification information of the second firmware upgrade file.

[0091] Exemplarily, the complex programmable logic device is used to output two level signals, and when the combination of the level signals is "high, low", the identification information of the corresponding second firmware upgrade file is 001. When the combination of the level signals is "low, low", the identification information of the corresponding second firmware upgrade file is 002.

[0092] S72: When the computing device starts, the controller generates a second control signal according to the identification information of the second firmware upgrade file.

[0093] In combination with the above example, the controller determines the identification information of the second firmware upgrade file according to the level signal output by the complex programmable logic device, and generates a second control signal according to the identification information of the second firmware upgrade file.

[0094] S73. The controller sends a second control signal to the target chip, where the second control signal is used to instruct the target chip to load a second firmware upgrade file to complete the upgrade of the target chip.

[0095] As can be seen from the above, the method provided by the embodiment of the present invention can send the identification information of the second firmware upgrade file to the controller when the computing device is not started, so that when the computing device is started, the second firmware upgrade file is determined from multiple firmware upgrade files according to the identification information of the second firmware upgrade file, and the upgrade of the target chip is completed based on the second firmware upgrade file. In this way, the user does not need to input the firmware upgrade instruction when the computing device is started, and the computing device does not need to restart again to complete the upgrade of the target chip, thereby improving the efficiency of the firmware upgrade and avoiding the failure of the business to operate normally due to the firmware upgrade.

[0096] In some embodiments, the third firmware upgrade file includes multiple sub-files, the data volume of the third firmware upgrade file is greater than or equal to a preset threshold, and the third firmware upgrade file is one of the multiple firmware upgrade files. The method provided by the embodiment of the present invention also includes: the processor receives multiple sub-files included in the third firmware upgrade file sent by multiple servers, wherein each server is used to send one or more of the multiple sub-files. The processor generates the third firmware upgrade file according to the multiple sub-files included in the third firmware upgrade file. The processor stores the third firmware upgrade file in the second storage location.

[0097] Exemplarily, the third firmware upgrade file includes three subfiles, namely subfile a, subfile b and subfile c. The data volume of the third firmware upgrade file is greater than or equal to a preset threshold. The computing device is connected to server 1, server 2 and server 3 respectively, the processor receives subfile a included in the third firmware upgrade file sent by server 1, the processor receives subfile b included in the third firmware upgrade file sent by server 2, the processor receives subfile c included in the third firmware upgrade file sent by server 3, and the processor generates the third firmware upgrade file according to subfile a, subfile b and subfile c. The processor stores the third firmware upgrade file in the second storage location.

[0098] When the data volume of the third firmware upgrade file is greater than or equal to a preset threshold, the method provided by the present invention can effectively improve the transmission efficiency of the third firmware upgrade file by sending different subfiles included in the third firmware upgrade file through multiple servers, thereby improving the firmware upgrade efficiency and thus improving the user experience. In some embodiments, the target chip is connected to multiple external devices, and the method provided by the embodiment of the present invention further includes the following steps:

[0099] When the computing device is not started, the controller obtains configuration information of multiple external devices, and the configuration information includes the type and model of the external devices. When the computing device is restarted, the controller determines the identification information of the fourth firmware upgrade file corresponding to the multiple external devices according to the configuration information of the multiple external devices, and the fourth firmware upgrade file is one of the multiple firmware upgrade files. The controller generates a third control signal according to the identification information of the fourth firmware upgrade file. The controller sends a third control signal to the target chip, and the third control signal is used to instruct the target chip to load the fourth firmware upgrade file so that the multiple external devices can operate normally.

[0100] In one example, the controller obtains level signals output by multiple external devices, and the level signals carry configuration information of the multiple external devices, and the configuration information includes the type and model of the external devices. When the computing device is restarted, the controller determines the identification information of the fourth firmware upgrade file corresponding to the multiple external devices according to the configuration information of the multiple external devices, and the fourth firmware upgrade file is one of the multiple firmware upgrade files. The controller generates a third control signal according to the identification information of the fourth firmware upgrade file. The controller sends a third control signal to the target chip, and the third control signal is used to instruct the target chip to load the fourth firmware upgrade file so that the multiple external devices can operate normally.

[0101] The method provided by the present invention determines a fourth firmware upgrade file according to an external device configured by a computing device, and after the computing device is started, directly completes the upgrade of a target chip according to the fourth firmware upgrade file to achieve normal operation of multiple external devices. There is no need to restart the computing device again after the computing device is started, and the business cannot operate normally due to the firmware upgrade.

[0102] In order to facilitate understanding of the present solution, the present solution is explained below through an example. During the normal operation of the computing device, the processor receives a firmware upgrade instruction. At this time, the processor does not restart the computing device, but stores the identification information of the first firmware upgrade file carried in the firmware upgrade instruction. Then, when the computing device restarts, the controller obtains the identification information of the first firmware upgrade file from the first storage location; the controller generates a first control signal according to the identification information of the first firmware upgrade file; and then the controller sends a first control signal to the target chip to be upgraded, and the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.

[0103] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A chip firmware upgrade method, characterized in that: Applied to a computing device, the computing device includes a processor, a controller and a target chip, the computing device pre-stores a plurality of firmware upgrade files, and the method includes: The processor receives a firmware upgrade instruction, where the firmware upgrade instruction is used to instruct to upgrade the target chip according to a first firmware upgrade file, where the first firmware upgrade file is one of the multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file; The processor stores the identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction; The controller obtains identification information of the first firmware upgrade file from the first storage location when the computing device is restarted; The controller generates a first control signal according to the identification information of the first firmware upgrade file; The controller sends the first control signal to the target chip, where the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.

2. The method according to claim 1, characterized in that The computing device communicates with the server, and before the processor receives the firmware upgrade instruction, the method further includes: The processor receives the multiple firmware upgrade files sent by the server and first verification information generated by each firmware upgrade file in the multiple firmware upgrade files according to a preset algorithm; The processor stores the plurality of firmware upgrade files in a second storage location; The processor stores the first verification information of each of the firmware upgrade files in a third storage location.

3. The method according to claim 2, characterized in that The computing device communicates with a plurality of servers, and the processor receives the plurality of firmware upgrade files sent by the servers and first verification information generated by each of the plurality of firmware upgrade files according to a preset algorithm, including: The processor receives the multiple firmware upgrade files sent by a target server and first verification information generated by each of the multiple firmware upgrade files according to a preset algorithm, and the target server is the one with the largest network bandwidth among the multiple servers.

4. The method according to claim 3, characterized in that The processor stores, in response to the firmware upgrade instruction, identification information of the first firmware upgrade file in a first storage location, including: The processor determines, in response to the firmware upgrade instruction, second verification information of the first firmware upgrade file according to the preset algorithm; The processor obtains first verification information of the first firmware upgrade file from the third storage location; The processor stores the identification information of the first firmware upgrade file in a first storage location when the first verification information of the first firmware upgrade file is consistent with the second verification information of the first firmware upgrade file.

5. The method according to claim 4, characterized in that The computing device includes a plurality of processors, and the method further includes: When the computing device is started, a first processor receives the firmware upgrade instruction, and the first processor is one of the multiple processors; The first processor determines, in response to the firmware upgrade instruction, a second processor from the multiple processors, where the second processor is a processor with the lowest resource usage rate among the multiple processors; The first processor sends the firmware upgrade instruction to the second processor; The second processor determines, in response to the firmware upgrade instruction, second verification information of the first firmware upgrade file according to the preset algorithm; The second processor obtains first verification information of the first firmware upgrade file from the third storage location; The second processor stores the identification information of the first firmware upgrade file in a first storage location when the first verification information of the first firmware upgrade file is consistent with the second verification information of the first firmware upgrade file.

6. The method according to claim 5, characterized in that The method further comprises: When the computing device is not started, the controller receives identification information of a second firmware upgrade file input by a user; When the computing device is started, the controller generates a second control signal according to the identification information of the second firmware upgrade file; The controller sends the second control signal to the target chip, where the second control signal is used to instruct the target chip to load the second firmware upgrade file to complete the upgrade of the target chip.

7. The method according to claim 6, characterized in that The third firmware upgrade file includes a plurality of sub-files, the data volume of the third firmware upgrade file is greater than or equal to a preset threshold, the third firmware upgrade file is one of the plurality of firmware upgrade files, and the method further includes: The processor receives a plurality of sub-files included in the third firmware upgrade file sent by the plurality of servers, wherein each of the servers is used to send one or more of the plurality of sub-files; The processor generates the third firmware upgrade file according to a plurality of sub-files included in the third firmware upgrade file; The processor stores the third firmware upgrade file in the second storage location.

8. The method according to claim 7, characterized in that The target chip is connected to a plurality of external devices, and the method further comprises: When the computing device is not started, the controller obtains configuration information of the plurality of external devices, the configuration information including types and models of the external devices; When the computing device is restarted, the controller determines identification information of a fourth firmware upgrade file corresponding to the plurality of external devices according to configuration information of the plurality of external devices, the fourth firmware upgrade file being one of the plurality of firmware upgrade files; The controller generates a third control signal according to the identification information of the fourth firmware upgrade file; The controller sends the third control signal to the target chip, where the third control signal is used to instruct the target chip to load the fourth firmware upgrade file so that the multiple external devices operate normally.

9. The method according to claim 8, characterized in that The controller is a baseboard management controller BMC.

10. A computing device, characterized in that include: A processor, a controller and a target chip, wherein the computing device pre-stores a plurality of firmware upgrade files; The processor is used to receive a firmware upgrade instruction, where the firmware upgrade instruction is used to instruct to upgrade the target chip according to a first firmware upgrade file, where the first firmware upgrade file is one of the multiple firmware upgrade files, and the firmware upgrade instruction carries identification information of the first firmware upgrade file; The processor is further configured to store identification information of the first firmware upgrade file in a first storage location in response to the firmware upgrade instruction; The controller is configured to obtain identification information of the first firmware upgrade file from the first storage location when the computing device is restarted; The controller is further configured to generate a first control signal according to the identification information of the first firmware upgrade file; The controller is further used to send the first control signal to the target chip, where the first control signal is used to instruct the target chip to load the first firmware upgrade file to complete the upgrade of the target chip.