Computing equipment and firmware upgrading method
The BMC and processor use the USB interface to obtain the firmware upgrade package from the USB device, which is independent of the management network. This solves the problem of firmware upgrade relying on the management network and improves the success rate and stability of firmware upgrade.
Patent Information
- Application Number
- CN202410678043.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
Smart Images

Figure CN118567678A
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a computing device and a firmware upgrade method. Background Art
[0002] Firmware such as the baseboard management controller (BMC) and basic input / output system (BIOS) in computing devices need to be upgraded from time to time to fix vulnerabilities or implement new functions.
[0003] At present, the following management network-based method is often used for firmware upgrades: the device that needs to be upgraded, such as BMC or BIOS, is connected to the corresponding management interface through the management network. Then, on the management interface, the firmware upgrade package is uploaded and the firmware upgrade package is executed. However, this management network-based firmware upgrade method requires the normal operation of the management network to complete the firmware upgrade. If the management network fails, the management network is unstable, or the management network port is damaged, etc., it will affect the firmware upgrade process of the device and the probability of successful firmware upgrade. Summary of the invention
[0004] The embodiments of the present application provide a computing device and a firmware upgrade method, which improves the probability of successful firmware upgrade when performing firmware upgrade on a device that needs to be upgraded, such as a BMC or BIOS.
[0005] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0006] In a first aspect, an embodiment of the present application provides a computing device, the computing device comprising a BMC and a processor, wherein the BMC is connected to the processor, and the BMC is used to communicate with a target USB device through a communication serial bus (Universal Serial Bus, USB) interface. The target USB device pre-stores a target firmware upgrade package of a first target device. The first target device can be a BMC and / or a BIOS, etc.
[0007] The processor is used to respond to receiving a trigger operation for performing a firmware upgrade on a first target device by sending a notification instruction to the BMC; the notification instruction instructs the BMC to obtain a target firmware upgrade package from a target USB device. The BMC is used to respond to receiving the notification instruction sent by the processor by obtaining a target firmware upgrade package from a target USB device connected to the BMC through a USB interface; and performing a firmware upgrade on the first target device by using a target upgrade file in the target firmware upgrade package.
[0008] In an embodiment of the present application, when the first target device is undergoing a firmware upgrade, the processor receives a trigger operation and notifies the BMC to perform a firmware upgrade on the first target device. After receiving the notification, the BMC obtains the target firmware upgrade package from the target USB device connected to the BMC via the USB interface through the USB interface. In other words, the acquisition of the target firmware upgrade package by the BMC is related to the USB interface and the USB device, and is not dependent on the management network. Even if the management network fails, the management network is unstable, or the management network port is damaged, the firmware upgrade process will not be affected. Therefore, the method of obtaining the target firmware upgrade package from the USB device using the USB interface in the embodiment of the present application helps to increase the probability of a successful firmware upgrade.
[0009] In a specific implementation, the USB interface is a USB interface provided by a second target device in a computing device, and the second target device is a non-BMC including a USB interface; the computing device also includes a switch component, the mobile end of the switch component is used to connect to the BMC and any one of the second target devices, and the fixed end of the switch component is connected to the USB interface; the processor is also used to: in response to receiving a trigger operation for firmware upgrade of the first target device, send a first switching signal to the switch component, the first switching signal instructing the mobile end of the switch component to connect to the BMC; the switch component is used to: in response to receiving the first switching signal sent by the processor, control the mobile end to connect to the BMC, and send a connection completion instruction to the processor; the processor is used to: in response to receiving the connection completion instruction sent by the switch component, send a notification instruction to the BMC. That is, the USB interface provided by other devices can be used to implement firmware upgrade.
[0010] In another specific implementation, the BMC is also used to: if the firmware upgrade of the first target device is completed, send an upgrade completion instruction to the processor; the processor is also used to: in response to receiving the upgrade completion instruction sent by the processor, send a second switching signal to the switch component, the second switching signal instructing the mobile end of the switch component to connect to the second target device; the switch component is also used to: in response to receiving the second switching signal sent by the processor, control the mobile end to connect to the second target device. At the same time, a switch component is added, and the switch component is connected to the second target device during the non-firmware upgrade process, thereby ensuring the normal operation of other target devices of the computing device during the non-firmware upgrade process and improving the resource utilization of the USB interface.
[0011] In another specific implementation, the USB interface is a USB interface provided by the BMC. That is, the BMC can directly use the USB interface provided by the BMC to upgrade the firmware without adding additional devices such as switch components, and does not need to adjust the layout of the computing device, thereby saving hardware costs and the workload of adjusting the layout of the computing device.
[0012] In another specific implementation, the processor is used to respond to receiving a trigger operation for performing a firmware upgrade on the first target device, first detect whether a USB device is inserted into the USB interface; if it is detected for the first time that the USB interface is not connected to the USB device, output a prompt message, the prompt message is to prompt to insert the target USB device into the USB interface; wait for a first preset time, and then detect whether the USB interface is connected to the target USB device for the second time; if it is detected for the second time that the USB interface is inserted into the target USB device, send a notification instruction to the BMC. Because the USB interface has been inserted into the USB device before the processor performs the firmware upgrade operation, that is, the computing device may be running the data of the USB device at this time. In order to avoid interruption of data operations in the inserted USB device when the BMC performs a firmware upgrade on the first target device, the processor is also used to directly perform a first detection after receiving the trigger operation to determine whether the USB interface is inserted into the USB device. If a USB device is inserted, the firmware upgrade operation is stopped and the firmware upgrade is performed in other ways.
[0013] In another specific implementation, the target firmware upgrade package also includes a verification file, and the verification file is used to verify whether the upgrade file in the target firmware upgrade package is the target upgrade file; if the BMC determines that the upgrade file in the target firmware upgrade package obtained by the BMC is the target upgrade file according to the verification file, the target upgrade file in the target firmware upgrade package is used to perform firmware upgrade on the first target device. This avoids the problem that data may be leaked, changed, or damaged during data transmission, and ensures that the target upgrade file in the target upgrade package is correct.
[0014] In another specific implementation, the computing device further includes a display, and the display is used to connect to the BMC; the BMC is also used to: during the firmware upgrade of the first target device, based on a preset interval, obtain the upgrade progress; according to the upgrade progress, determine the display content of the display, the display content corresponds to the upgrade progress; according to the display content, control the display to display the display content. That is, by displaying the upgrade progress of the firmware upgrade of the first target device on the display, the user can intuitively understand the upgrade progress of the first target device, thereby improving the user experience.
[0015] In addition, the BMC is further configured to: if the first target device does not complete the firmware upgrade within the second preset time period, or if the first target device completes the firmware upgrade within the second preset time period, output a prompt message instructing to remove the target USB device.
[0016] The processor includes a field programmable gate array FPGA or a complex programmable logic device CPLD.
[0017] In a second aspect, an embodiment of the present application provides a firmware upgrade method, which is applied to a computing device, wherein the computing device includes: a baseboard management controller BMC and a processor; the BMC is connected to the processor, the BMC communicates with a target USB device through a USB interface, and the target USB pre-stores a target firmware upgrade package of a first target device, and the method includes:
[0018] In response to receiving a trigger operation for performing a firmware upgrade on a first target device, the processor sends a notification instruction to the BMC; the notification instruction instructs the BMC to obtain a target firmware upgrade package from a target USB device; after receiving the notification instruction sent by the processor, the BMC obtains the target firmware upgrade package from the target USB device through a USB interface; and the firmware of the first target device is upgraded using a target upgrade file in the target firmware upgrade package.
[0019] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed on a computer, the computer executes the operating steps of the firmware upgrade method of the second aspect described above.
[0020] In a fourth aspect, an embodiment of the present application further provides a computer program product, which, when running on a computer, executes the operating steps of the firmware upgrade method of the second aspect.
[0021] Any of the computing devices, firmware upgrade methods, computer-readable storage media or computer program products provided above are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the architecture of a computing device provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the architecture of another computing device provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of the architecture of another computing device provided in an embodiment of the present application;
[0025] Figure 4 A schematic diagram of the architecture of another computing device provided in an embodiment of the present application;
[0026] Figure 5 An interactive diagram of a firmware upgrade method provided in an embodiment of the present application;
[0027] Figure 6 Another firmware upgrade method interaction diagram provided in an embodiment of the present application;
[0028] Figure 7 An interaction diagram of another firmware upgrade method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0030] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0031] In order to enable those skilled in the art to better understand the embodiments of the present application, professional terms are first introduced.
[0032] Computing device: A computing device refers to an electronic device with computing capabilities. The computing device may be a server, wherein a server is an electronic device with data processing capabilities, data receiving and sending capabilities, and data storage capabilities. The embodiment of the present application does not specifically limit the type of server. For example, the server may be a rack server, a cabinet server, a blade server, a high-density server, a graphics processing unit (GPU) server, etc. The computing device may also be other terminal devices with computing capabilities, for example, the computing device may be a laptop computer, a mobile phone, etc. In the embodiment of the present application, the computing device includes a BMC.
[0033] BMC: BMC is a dedicated microcontroller on the motherboard of a computing device, which is used to exchange information with the motherboard, BIOS, central processing unit (CPU), memory and other devices in the computing device through the Intelligent Platform Management Interface (IPMI) protocol, so as to monitor and manage the computing device. Specifically, BMC can be used to: manage computing device information, such as recording computing device information, recording the generation and technical information of each part, etc.; detect the status of the computing device, such as monitoring the health status of each component such as temperature and voltage, etc. In an embodiment of the present application, BMC can manage the upgrade of some or all devices in the computing device that need to be upgraded with firmware.
[0034] Firmware: Firmware is a software program stored on the hardware of a computing device, which is used to control the basic functions and operations of the computing device. Among them, the firmware can be written inside the chip, or written into the non-volatile memory (such as flash memory, read-only memory) of the computing device. There are many types of firmware, for example, BIOS firmware, or BMC firmware. Among them, BIOS firmware is the firmware stored on the motherboard of the computing device, which is responsible for the basic input and output services of the computing device, the self-test server after startup, and the self-starting service of the operating system. BMC firmware is firmware written into the BMC secondary non-volatile memory, which is used to implement the functions of BMC.
[0035] At present, the firmware of many devices in computing devices, such as BIOS, BMC and other devices, need to be upgraded from time to time to fix vulnerabilities or implement new functions. At present, the firmware upgrade of devices often depends on the management network. The specific upgrade method is: upload the firmware upgrade package on the BMC management interface, and the uploaded firmware upgrade package is sent to the management network port of the BMC through the management network. After receiving the firmware upgrade package, the BMC parses the firmware upgrade package, obtains the upgrade file in the firmware upgrade package, and uses the upgrade file to perform firmware upgrade operations on the devices that need to be upgraded. Among them, the management network port is the network port carried by the BMC itself, which is used for network communication with remote devices such as servers.
[0036] However, when the BMC management network port is not allowed to be used, the BMC management network port is damaged, the management network is unstable or the management network fails, the BMC cannot receive the firmware upgrade package sent by the BMC management interface through the management network, which affects the probability of successful firmware upgrade of the device.
[0037] In view of the above problems, an embodiment of the present application provides a computing device, which includes a BMC and a processor. The BMC is connected to the processor. The BMC is used to connect to a USB device (referred to as the target USB device) that pre-stores a target firmware upgrade package for a first target device through a USB interface. The processor receives a trigger operation and notifies the BMC to perform a firmware upgrade on the first target device. After receiving the notification, the BMC obtains the target firmware upgrade package from the target USB device connected to the BMC through the USB interface through the USB interface. In other words, the acquisition of the target firmware upgrade package by the BMC is related to the USB interface and the USB device, and does not depend on the management network. Even if the management network fails, the management network is unstable, or the management network port is damaged, it will not affect the firmware upgrade process. Therefore, the method of obtaining the target firmware upgrade package from the USB device through the USB interface in the embodiment of the present application helps to increase the probability of a successful firmware upgrade.
[0038] The computing device provided in the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0039] Attached Figure 1 A schematic diagram of the architecture of a computing device provided in an embodiment of the present application. Figure 1 The computing device 100 shown includes a processor 101, a BMC 102 and a USB interface 103, wherein the processor 101 is connected to the BMC 102. The BMC 102 is used to connect to a target USB device through the USB interface 103. The target USB device 104 refers to a USB device that pre-stores a target firmware upgrade package corresponding to the first target device.
[0040] In the embodiment of the present application, the processor 101 is used to receive a trigger operation for performing a firmware upgrade on a first target device.
[0041] A trigger operation refers to an operation that triggers a firmware upgrade for the first target device. For example, the trigger operation may be an operation of clicking a preset button of a computing device based on a preset method. Among them, the preset method may be a double-click, a single-click, or other pre-set triggering method, which is not specifically limited in the embodiments of the present application. The preset button may be a power button of a computing device, which is a button used to turn on or off the power of the computing device. The preset button may also be a user identity (UID) button, etc. For another example, the trigger operation may be a trigger button displayed in a display interface, and the user may perform a trigger operation based on the trigger button. The embodiments of the present application do not specifically limit the form of the trigger operation.
[0042] It can be understood that the processor 101 pre-stores the corresponding relationship between the trigger operation and the firmware upgrade operation of the first target device. The processor 101 receives the trigger operation of performing firmware upgrade on the first target device, and triggers the upgrade operation of performing firmware upgrade on the first target device.
[0043] The first target device refers to a device that needs to perform a firmware upgrade. For example, the first target device may be a BMC, a BIOS, or both a BMC and a BIOS, which is not specifically limited in the embodiments of the present application.
[0044] In the embodiment of the present application, the processor 101 is further configured to send a notification instruction to the BMC 102 in response to receiving a trigger operation for performing a firmware upgrade on the first target device.
[0045] The notification instruction instructs the BMC 102 to obtain a target firmware upgrade package from the target USB device 104. The target firmware upgrade package refers to a firmware upgrade package required to perform a firmware upgrade on the first target device. In the embodiment of the present application, the processor 101 pre-stores a correspondence between a trigger operation and a notification instruction. After receiving a trigger operation for upgrading the firmware of the first target device, the processor 101 generates a notification instruction based on the correspondence between the trigger operation and the notification instruction, and sends the notification instruction to the BMC 102.
[0046] Considering that only when the target USB device 104 is inserted into the USB interface 103, the BMC 102 can read the target firmware upgrade package from the target USB device 104 through the USB interface 103. If the USB interface 103 is not inserted into the target USB device 104, the BMC 102 cannot obtain the target firmware upgrade package from the target USB device 104. Therefore, in order to increase the probability of successful firmware upgrade, the processor 101 first detects whether the USB interface 103 is inserted into the target USB device 104. If it is detected that the USB interface 103 is inserted into the target USB device 104, the subsequent operation of triggering the BMC 102 to obtain the target firmware upgrade package is executed. If the processor 101 detects that the USB interface 103 is not inserted into the target USB device 104, the first prompt information is output, prompting the USB interface 103 to insert the target USB device 104. Or the processor 101 detects that the USB interface 103 is not inserted into the target USB device 104, and stops the subsequent firmware upgrade operation.
[0047] The method for the processor 101 to detect whether the USB interface 103 is inserted into the target USB device 104 may be: the processor 101 pre-stores the voltage value of the designated data line when the USB interface 103 is in an idle state (referred to as the first preset value). The processor 101 detects whether the voltage value of the designated data line in the USB interface 103 is the first preset value. If so, it is determined that the USB interface 103 is in an idle state and the USB interface 103 is not inserted into the USB device. If the processor 101 detects that the voltage value of the designated data line of the USB interface 103 is not the first preset value, at this time, it is determined that the USB interface 103 is connected to the USB device.
[0048] Furthermore, before the processor 101 performs the firmware upgrade operation, the USB interface 103 has been inserted into the USB device, that is, the computing device 100 may be running the data of the USB device at this time. In order to avoid the interruption of the data operation in the inserted USB device when the BMC performs the firmware upgrade on the first target device, the processor 101 is also used to directly perform the first detection after receiving the trigger operation to determine whether the USB interface 103 is inserted into the USB device. If the USB device is inserted, stop the firmware upgrade operation and use other methods to perform the firmware upgrade, such as connecting the BMC management interface through the management network to perform the firmware upgrade operation. If the USB device is not inserted, output the first prompt information to prompt the USB interface 103 to insert the target USB device 104. After outputting the first prompt information and waiting for the first preset time, the processor 101 detects whether the USB interface 103 is inserted into the USB device for the second time. If inserted, send a notification instruction to the BMC. If not inserted, output the first prompt information or stop executing the firmware upgrade operation. In the embodiment of the present application, the purpose of waiting for the first preset time is to wait for the user to insert the target USB device. The first preset duration may be 10 seconds, 20 seconds, 30 seconds, etc., which is not specifically limited in the embodiment of the present application.
[0049] In addition, to ensure that the BMC 102 can read the target firmware upgrade package in the target USB device 104, the file system format of the target USB device 104 needs to correspond to the operating system format corresponding to the BMC 102. For example, if the computing device is a Linux operating system, the file system format of the target USB device 104 must meet the FAT 32 file system format, or meet the ext 4 file system format.
[0050] In the embodiment of the present application, the BMC 102 is configured to obtain a target firmware upgrade package from a target USB device through the USB interface 103 after receiving a notification instruction sent by the processor 101 .
[0051] In the embodiment of the present application, BMC 102 pre-stores the storage path of the target firmware upgrade package stored in the target USB device. After BMC 102 receives the notification instruction, it obtains the target firmware upgrade package based on the pre-stored storage path. For example, BMC 102 pre-stores the storage path of the target firmware upgrade package in the target USB device as a BMC firmware file package in a fixed directory / / Upgrade, where the file extension of the BMC firmware file package is .hpm. After BMC 102 receives the notification instruction, it first finds the fixed directory from the target USB device, then finds Upgrade from the fixed directory, and finds the BMC firmware file package with the file extension .hpm from Upgrade, so that BMC 102 can automatically obtain the target firmware upgrade package.
[0052] In the embodiment of the present application, BMC 102 is also used to perform a firmware upgrade on the first target device using the target upgrade file in the target firmware upgrade package. For example, the first target device is BMC 102. After BMC 102 obtains that the target firmware upgrade package is a BMC firmware upgrade package, it uses the target upgrade file in the BMC firmware upgrade package to upgrade its own firmware. For another example, the first target device is BIOS. After BMC 102 obtains the BIOS firmware upgrade package, it sends the BIOS firmware upgrade package to BIOS, so that BIOS obtains the target upgrade file in the target firmware upgrade package and performs a firmware upgrade on the target device.
[0053] In the embodiment of the present application, when the first target device performs a firmware upgrade, the processor 101 receives a trigger operation and notifies the BMC 102 to perform a firmware upgrade of the first target device.
[0054] In summary, after receiving the notification, the BMC obtains the target firmware upgrade package from the target USB device connected to the BMC via the USB interface through the USB interface. In other words, the BMC's acquisition of the target firmware upgrade package is related to the USB interface and the USB device, and does not depend on the management network. Even if the management network fails, the management network is unstable, or the management network port is damaged, it will not affect the firmware upgrade process. Therefore, the method of obtaining the target firmware upgrade package from the USB device using the USB interface in the embodiment of the present application helps to increase the probability of a successful firmware upgrade.
[0055] For attachment Figure 1 In the computing device 100 shown, the USB interface 103 may be a USB interface provided by a second target device in the computing device 100, or may be a USB interface provided by a BMC. The second target device is a non-BMC that provides a USB interface. For example, the second target device is a platform controller hub (Platform Controller Hub, PCH).
[0056] Furthermore, in order to ensure that the second target device of the computing device operates normally during the non-firmware upgrade process. Therefore, a switch component is added between the second target device and the USB interface 103. Among them, the fixed end of the switch component is connected to the USB interface 103, and the mobile end of the switch component is connected to the BMC 102 and any one of the second target devices. In order to better illustrate the firmware upgrade method provided in the embodiment of the present application, the second target device is taken as a platform controller hub (Platform Controller Hub, PCH) as an example for explanation.
[0057] Attached Figure 2 This is a schematic diagram of the architecture of another computing device provided in an embodiment of the present application. Figure 2 The USB interface 103 of the computing device 100 shown is a USB interface provided by the PCH. The computing device 100 includes a PCH 201, a BMC 102, a USB interface 103, a switch component 202, and a processor 101. Among them, the PCH 201 is a key component in the computing device, including a memory controller for communicating with the system memory, such as performing data reading and writing, memory timing setting, error detection, etc.
[0058] The mobile end of the switch component 202 is used to connect to either the PCH 201 or the BMC 102. The fixed end of the switch component 202 is connected to the USB interface 103. The USB interface 103 is used to connect to the target USB device. The mobile end of the switch component 202 is also connected to the processor 101, and the processor 103 controls whether the mobile end of the switch component is connected to the PCH 201 or the BMC 102. The processor 101 is also connected to the BMC 102.
[0059] In an embodiment of the present application, the processor 101 is also used to send a first switching signal to the switch component 202 after receiving a trigger operation for performing a firmware upgrade on the first target device. The switch component is used to receive the first switching signal and switch the mobile terminal to the BMC 102 side, that is, the mobile terminal connects to the BMC 102 for a firmware upgrade operation.
[0060] The first switching signal indicates that the mobile terminal of the switch component 202 is connected to the BMC 102. When the processor 101 receives the trigger operation, it generates the first switching signal and sends the first switching signal to the switch component. The switch component has a built-in switch controller, and the switch controller is used to control the switch component 202 to switch to the BMC 102 or to the PCH 201 side. After the processor 101 generates the first switching signal, it sends the first switching signal to the switch controller. The switch controller receives the first switching signal and controls the mobile terminal to connect to the BMC 102.
[0061] In the embodiment of the present application, the default state of the switch component 202 is that the mobile terminal is connected to the PCH 201. The default state is a state in which the target device does not perform a firmware upgrade or a state in which the target device completes a firmware upgrade. In the default state, the switch component 202 sends a second switching signal to the switch controller, and after receiving the second switching signal, the switch controller controls the mobile terminal to connect to the PCH 201. Thus, the second target device of the computing device is guaranteed to operate normally during a non-firmware upgrade process.
[0062] In the embodiment of the present application, after the mobile end of the switch component 202 is connected to the BMC 102, the switch component 202 is also used to send a connection completion instruction to the processor 101. The connection completion instruction indicates that the switch component is connected to the BMC 102, and the subsequent firmware upgrade operation can be performed. The processor 101 is used to detect whether the USB device 103 is connected to the target USB device 104, and send the detection result to the BMC 102, and the BMC 102 obtains the target upgrade package from the target USB device 104 to perform the firmware upgrade operation. Therefore, through the above method, the BMC 102 can accurately obtain the target firmware upgrade package for the first target device to perform the firmware upgrade, thereby increasing the probability of a successful firmware upgrade.
[0063] The embodiment of the present application does not specifically limit the form of the switch component 202. For example, the switch component 202 may be a single-pole single-throw switch, or a single-pole double-throw switch.
[0064] In an embodiment of the present application, when the upgrade of the first target device is completed, the BMC 102 is also used to: send an upgrade completion instruction to the processor 101, and the upgrade completion instruction indicates that the upgrade of the first target device is completed. After receiving the upgrade completion instruction sent by the BMC 102, the processor 101 sends a second switching signal to the switch component. Among them, the second switching signal indicates that the mobile end of the switch component is connected to the PCH 201. The switch component 202 is used to receive the second switching signal and connect the mobile end to the PCH 201. That is, after the upgrade of the first target device is completed, the PCH 201 is connected to the USB interface 103, so the PCH 201 can run the USB device connected to the USB interface 103.
[0065] In summary, the embodiment of the present application can realize that during the upgrade process of the first target device, the BMC 102 performs a firmware upgrade operation through the USB interface 103. When the first target device does not perform a firmware upgrade, the second target device executes the data of the USB device connected to the USB interface 103. Therefore, the embodiment of the present application does not need to add an additional USB interface. In addition, when the firmware upgrade is not required, the second target device can use the USB interface to perform other operations, thereby improving the resource utilization of the USB interface.
[0066] Furthermore, the computing device provided in the embodiment of the present application may also include a display for displaying the firmware upgrade progress of the first target device. The display may be an electronic device with a display function, for example, the display may be a digital tube. A digital tube is an electronic device that can display numbers (for example, 0 to 10). The following description takes the display as a digital tube as an example.
[0067] Attached Figure 3 The schematic diagram of the architecture of another computing device provided in the embodiment of the present application is as follows: Figure 2 The computing device shown further includes a display 301 , which is connected to the BMC 102 .
[0068] In the embodiment of the present application, during the firmware upgrade process of the first target device, the BMC 102 obtains the upgrade progress of the firmware upgrade of the first target device based on a preset interval, wherein the preset interval is a time interval set by a person skilled in the art, and the preset interval may be 1s, 10s, etc., which is not specifically limited in the embodiment of the present application.
[0069] BMC 102 pre-stores the correspondence between the upgrade progress and the display content, and after obtaining the upgrade progress of the firmware upgrade for the first target device, BMC 102 determines the display content of the display based on the correspondence, and controls the display to display according to the determined display content.
[0070] For example, if the display is a digital tube, the corresponding relationship between the upgrade progress and the content displayed on the digital tube is: when the upgrade progress is 0% to 10%, the digital tube displays 0; when the upgrade progress is 10% to 20%, the digital tube displays 1, ..., when the upgrade progress is 90% to 100%, the digital tube displays 9; when the upgrade progress is 100%, the digital tube displays 10. After the BMC determines the upgrade progress, it determines the content displayed on the digital tube according to the corresponding relationship between the upgrade progress and the content displayed on the digital tube, and controls the digital tube to display according to the determined display content. For example, if BMC 102 determines that the display content of the digital tube is 9, then BMC 102 controls the digital tube to display 9. Among them, the upgrade progress is a to b, which means that the upgrade progress is in the range of a to b, but includes a and excludes b.
[0071] In addition, the user can unplug the USB device according to the display of the display. For example, the digital tube displays the upgrade progress as 10, indicating that the firmware upgrade of the first target device is complete, and the user can unplug the USB device at this time. After unplugging the USB device, the processor 101 detects that the USB device is unplugged, and notifies BMC 102. BMC 102 determines that the display content of the digital tube 301 is the default content, such as the default content is 0, and controls the digital tube 301 to display according to the default content. For example, from the time when the BMC executes the firmware upgrade of the first target device to the second preset time, the digital tube displays that the upgrade progress has never reached 10, and it is determined that the firmware upgrade has failed. The user can unplug the target USB device, or unplug the target USB device and then reinsert the target USB device to re-execute the firmware upgrade operation. That is, the user experience can be improved through the digital tube display.
[0072] In summary, in the embodiment of the present application, by displaying the upgrade progress of the firmware upgrade of the first target device through the display 301, the user can intuitively understand the upgrade progress of the first target device, thereby improving the user experience.
[0073] Furthermore, considering that in actual use, a display may be damaged, resulting in abnormal display and affecting the user's operating experience, the embodiment of the present application can also use a UID button light for display.
[0074] Attached Figure 4 The schematic diagram of the architecture of another computing device provided in the embodiment of the present application is shown in FIG. Figure 3 The computing device 100 shown also includes a UID key light 401. The UID key light is a display already present in the computing device, and is used to display key operations of the UID key.
[0075] In an embodiment of the present application, the UID button light 401 is connected to the processor 101. After the BMC 102 obtains the firmware upgrade progress of the first target device, it sends it to the processor 101. The processor 101 determines the display content of the UID button light 401 according to the correspondence between the upgrade progress and the display content of the UID button light 401, and controls the UID button light 401 to display based on the display content. For example, when the firmware upgrade is not completed, the UID button light 401 flashes at a first frequency, for example, the first frequency is 2Hz, or 3Hz. After the firmware upgrade is completed, the UID button light 401 is always on. Thus, the user can determine the progress of the firmware upgrade based on the display of the UID button light 401 or the display of the display 301.
[0076] To sum up, the computing device provided in the embodiment of the present application can display through displays such as a display and a UID button light, which can facilitate users to intuitively understand the firmware upgrade process, and avoid the situation where the user cannot understand the progress of the firmware upgrade when the display is damaged, thereby further improving the user experience.
[0077] In addition, the present application embodiment also provides a firmware upgrade method. Figure 5 ~Attached Figure 7 The following describes a firmware upgrade method provided in an embodiment of the present application.
[0078] Attached Figure 5 An interactive diagram of a firmware upgrade method provided in an embodiment of the present application. The method comprises the following steps:
[0079] S510: The processor receives a trigger operation for upgrading the firmware of the first target device and sends a notification instruction to the BMC.
[0080] The processor is attached Figure 1 ~Attached Figure 4 The processor 101. BMC is attached Figure 1 ~Attached Figure 4 BMC 102 is shown.
[0081] For trigger operations and notification instructions, see the attached Figure 1 ~Attached Figure 4 The content shown will not be discussed here.
[0082] Exemplary description: The processor 101 pre-stores the correspondence between the trigger operation and the execution of the firmware upgrade operation for the first target device. Among them, the trigger operation is to double-click the UID button to execute the firmware upgrade operation of the BMC, the trigger operation is to click the UID button to execute the firmware upgrade operation of the BIOS, and the trigger operation is to click the UID button for a long time (the click time exceeds the third preset time, for example, the third preset time is 10s, etc.) to execute the firmware upgrade operations of the BMC and BIOS. After receiving the trigger operation for the target case, the processor 101 triggers the upgrade operation of the firmware upgrade for the first target device based on the pre-stored correspondence between the trigger operation and the execution of the firmware upgrade operation for the first target device.
[0083] The notification instruction instructs BMC 102 to obtain the target firmware upgrade package from the target USB device 104. Exemplarily, the processor 101 receives a trigger operation of long-clicking the UID button, and executes the firmware upgrade operation of the BMC and BIOS. The notification instruction is a first notification instruction, and the first notification instruction instructs BMC 102 to obtain the BMC firmware upgrade package and the BIOS firmware upgrade package from the target USB device. If the processor 101 receives a trigger operation of double-clicking the UID button, the notification instruction is a second notification instruction, and the second notification instruction instructs BMC 102 to obtain the BMC firmware upgrade package from the target USB device. If the processor 101 receives a trigger operation of single-clicking the UID button, the notification instruction is a third notification instruction, and the third notification instruction instructs BMC 102 to obtain the BIOS firmware upgrade package from the target USB device.
[0084] S520: After receiving the notification instruction, the BMC obtains the target firmware upgrade package from the target USB device through the USB interface.
[0085] The target firmware upgrade package includes a target upgrade file. The target upgrade file is used to perform firmware upgrade on the first target device. The BMC uses the target upgrade file to perform firmware upgrade on the first target device. Specifically, after the BMC obtains the target firmware upgrade package from the target USB device, it parses the target firmware upgrade package to obtain the target upgrade file.
[0086] In addition, the target firmware upgrade package also includes a verification file. The verification file is used to verify whether the upgrade file in the target firmware upgrade package is the target upgrade file. Since data may be leaked, changed, or damaged during data transmission, in order to ensure that the target upgrade file in the target upgrade package is correct, the target firmware upgrade package includes a verification file. The BMC determines whether the acquired target upgrade file is correct through the verification file. For example, the verification file is a file encrypted by the company's digital signature. The BMC parses the target firmware upgrade package, obtains the verification file, and decrypts the verification file encrypted by the company's digital signature. If the decryption is successful, it is determined that the target upgrade file is not damaged, and the target upgrade file can be used to effectively upgrade the first target device. For another example, the verification file can be a reference hash value of the target upgrade file. If the actual hash value of the target upgrade file is calculated to be the same as the reference hash value, the target upgrade file is a correct, undamaged file. The first target device can be effectively upgraded using the target upgrade file. For example, the hash value can be SHA 256.
[0087] After receiving the notification command, the BMC obtains the target firmware upgrade package from the target USB device through the USB interface. Figure 1 ~Attached Figure 4 The content shown will not be discussed here.
[0088] S530: The BMC performs a firmware upgrade on the first target device using the target upgrade file in the target firmware upgrade package.
[0089] Exemplarily, if the target firmware upgrade package is a BMC firmware upgrade package, the BMC obtains the target firmware upgrade package, parses the target upgrade package to obtain a target upgrade file, and uses the target upgrade file to replace the upgrade file in the original BMC memory to complete the BMC firmware upgrade.
[0090] Exemplarily, if the target firmware upgrade package is a BIOS firmware upgrade package, after the BMC obtains the target firmware upgrade package, the BMC parses the target firmware upgrade package to obtain the target upgrade file, and sends the target upgrade file to the BIOS to replace the upgrade file in the original BIOS memory, thereby completing the BIOS firmware upgrade.
[0091] It can be understood that the target firmware upgrade package corresponding to the first target device carries the identification code of the first target device. Through the identification code of the first target device, the BMC can uniquely identify the first target device and perform firmware upgrade on the first target device based on the target firmware upgrade package.
[0092] In an embodiment of the present application, when the first target device is undergoing a firmware upgrade, the processor receives a trigger operation and notifies the BMC to perform a firmware upgrade on the first target device. After receiving the notification, the BMC obtains the target firmware upgrade package from the target USB device connected to the BMC via the USB interface through the USB interface. In other words, the acquisition of the target firmware upgrade package by the BMC is related to the USB interface and the USB device, and is not dependent on the management network. Even if the management network fails, the management network is unstable, or the management network port is damaged, the firmware upgrade process will not be affected. Therefore, the method of obtaining the target firmware upgrade package from the USB device using the USB interface in the embodiment of the present application helps to increase the probability of a successful firmware upgrade.
[0093] Furthermore, considering that the interface connecting the target USB device is the USB interface corresponding to the second target device, in order to ensure that the second target device can operate the data in the USB device corresponding to the USB interface during the non-firmware upgrade process, the embodiment of the present application provides another firmware upgrade method. Figure 6 Another firmware upgrade method interaction diagram provided in an embodiment of the present application. The method comprises the following steps:
[0094] S610: The processor receives a trigger operation for upgrading the firmware of the first target device and detects whether a USB device is inserted into the USB interface. If a USB device is inserted, execute S670. If no USB device is inserted, execute S620.
[0095] In one example, the processor pre-stores the level state of the specified data line when the USB interface is not plugged into the USB device, for example, the level value of the specified data line is a first preset value. If the level value of the data line is not the first preset value, it is determined that the USB interface is plugged into the USB device. If the level value of the data line is still the first preset value, it is determined that the USB interface is not plugged into the USB device.
[0096] S620: The processor switches the mobile end of the switch component to the BMC side, and prompts the user to insert the target USB device.
[0097] The processor determines that the USB interface is not plugged into a USB device, switches the mobile end of the switch component to the BMC side, and outputs a first prompt message. For example, the first prompt message is that the UID button light flashes based on a second frequency. For example, the second frequency is 1 Hz. The user determines that the USB interface is not plugged into the target USB device according to the first prompt message, and executes to insert the target USB device into the USB interface.
[0098] It should be noted that the switch component is connected to the non-BMC interface providing device during the non-firmware upgrade process. It is only connected to the BMC during the firmware upgrade process. This prevents the BMC firmware upgrade from affecting the performance of the non-BMC interface providing device.
[0099] S630: Wait for a first preset time period, the processor detects that the target USB device is inserted and sends a notification instruction to the BMC.
[0100] After the USB interface is plugged into the target USB device, the level state of the specified data line will be triggered to change. At this time, the processor determines that the USB interface is plugged into the target USB device and sends a notification instruction to the BMC. Considering that it takes a certain amount of time to plug in the target USB device, the embodiment of the present application limits the processor to send a notification instruction to the BMC when it detects that the target USB device is plugged in within a first preset time.
[0101] S640: The BMC obtains a target firmware upgrade package from a target USB device through a USB interface.
[0102] In an embodiment of the present application, the BMC pre-stores the storage path for storing the target firmware upgrade package from the target USB device. After the BMC receives the notification instruction, it obtains the target firmware upgrade package based on the pre-stored storage path. For example, the BMC pre-stores the target firmware upgrade package in the target USB device as a BMC firmware file package in a fixed directory / / Upgrade, where the file extension of the BMC firmware file package is .hpm. After the BMC receives the notification instruction, it first finds the fixed directory from the target USB device, then finds Upgrade from the fixed directory, and finds the BMC firmware file package with the file extension .hpm from Upgrade, so that the BMC can automatically obtain the target firmware upgrade package.
[0103] S650: The BMC uses the target upgrade file in the target firmware upgrade package to upgrade the firmware of the first target device.
[0104] In an embodiment of the present application, the BMC uses the target upgrade file in the target firmware upgrade package to perform a firmware upgrade on the first target device. For example, the first target device is the BMC. After the BMC obtains that the target firmware upgrade package is the BMC firmware upgrade package, it uses the target upgrade file in the BMC firmware upgrade package to upgrade its own firmware. For another example, the first target device is the BIOS. After the BMC obtains the BIOS firmware upgrade package, it sends the BIOS firmware upgrade package to the BIOS, so that the BIOS obtains the target upgrade file in the target firmware upgrade package and performs a firmware upgrade on the target device.
[0105] S660: Stop the firmware upgrade operation.
[0106] It should be noted that if it is detected in step S610 that a USB device is inserted into the USB interface, at this time, the computing device may perform other operations based on the USB settings. To avoid the terminal from performing such operations, the processor stops the firmware upgrade.
[0107] In summary, the embodiment of the present application can realize that during the upgrade process of the first target device, the BMC performs a firmware upgrade operation through the USB interface. When the first target device does not perform a firmware upgrade, the second target device executes the data of the USB device connected to the USB interface. Therefore, the embodiment of the present application does not need to add an additional USB interface. In addition, when the firmware upgrade is not required, the second target device can use the USB interface to perform other operations, thereby improving the resource utilization of the USB interface.
[0108] Attached Figure 7 An interactive diagram of another firmware upgrade method provided in an embodiment of the present application, the method is applied in a computing device including a UID key light and a digital tube, and the method includes the following steps:
[0109] S710: The processor detects a triggering operation of the first target device and determines a first display content of the UID button light.
[0110] Exemplarily, the triggering operation is an operation of double-clicking the UID button.
[0111] The first display content is that the UID key light switches from an off state to a lit state. The lit state indicates that the UID key light is always on.
[0112] S720: The processor controls the UID key light to display according to the first display content.
[0113] Exemplarily, the first display content is that the UID key light switches from an off state to a lit state, and the processor controls the UID key light to be in the lit state.
[0114] S730: The processor detects the triggering operation of the first target device and detects whether the designated USB interface is connected to a USB device. If so, execute S7160; if not, execute S740.
[0115] The designated USB interface refers to the USB interface of the computing device connected to the target USB device during the firmware upgrade. The processor pre-stores the address of the designated USB interface. When the processor detects the trigger operation of the first target device, it detects whether the designated USB interface is connected to the USB device. If the USB device is connected, it means that the computing device may use the USB interface to perform other operations. In order to avoid interrupting the current operation of the computing device, the firmware upgrade operation is stopped.
[0116] It should be noted that step S710 and step S730 may be performed simultaneously, or step S710 may be performed first and then S730, or step S730 may be performed first and then S710, which is not specifically limited in the embodiments of the present application.
[0117] S740: The processor connects the switch component mobile terminal to the BMC and outputs the first prompt information.
[0118] If the processor detects that the specified USB interface is not connected to a USB device, that is, the specified USB interface is in an idle state, the mobile end of the switch component is switched to the BMC side, that is, the attached Figure 2 ~Attached Figure 4 The mobile end of the switch component 202 shown is connected to the BMC. And outputs a first prompt message to prompt the user to insert the target USB device. Among them, the first prompt message is that the UID button light flashes at a second frequency. Therefore, the user clearly specifies that the USB interface is not inserted with the target USB device, and inserts the target USB device into the specified USB interface.
[0119] S750: After waiting for a first preset time, the processor detects whether the USB interface is plugged into the target USB device. If so, execute S760; if not, execute S7170.
[0120] Since it takes a certain amount of time for the user to insert the target USB device, the processor waits for the first preset time and then detects whether the USB interface is inserted into the target USB device. If inserted, the firmware upgrade operation is performed. If not inserted, the user is prompted that the target USB device is not inserted. If the target USB device is still not inserted after waiting for the first preset time, the UID button light goes out. The first preset time is set by technicians in this field as needed, for example, the first preset time is 10s.
[0121] In the embodiment of the present application, the first preset duration starts at the moment when the processor connects the mobile terminal to the BMC.
[0122] S760: The processor sends a notification instruction to the BMC.
[0123] S770: After receiving the notification instruction, the BMC reads the target firmware upgrade package from the target USB device.
[0124] Exemplarily, the BMC reads the target firmware upgrade package from the Upgrade folder in the fixed directory of the first USB device. The process of the BMC reading the target firmware upgrade package is the process of performing firmware upgrade on the first target device.
[0125] S780: The BMC obtains the reading progress and sends the reading progress to the processor.
[0126] The BMC monitors the reading progress of the target firmware upgrade package from the target USB device and sends the reading progress to the processor. The BMC can monitor the target USB device in real time or based on a first preset interval to monitor the reading progress.
[0127] S790: The processor receives the reading progress sent by the BMC, and determines the second display content of the UID button light according to the corresponding relationship between the reading progress and the display content of the UID button light.
[0128] The processor pre-stores the corresponding relationship between the reading progress and the second display content of the UID key light. If the reading progress is in the reading incomplete state, the second display content is that the UID key light flashes at a first frequency, wherein the first frequency is different from the second frequency, for example, the first frequency is 2Hz and the second frequency is 1Hz. If the reading progress is in the reading completed state, the UID key light is always on.
[0129] The processor determines the second display content of the UID key light according to the reading progress received from the BMC and the corresponding relationship, and controls the UID key light to display based on the second display content.
[0130] S7110: The processor controls the UID key light to display based on the second display content.
[0131] S7120: After the BMC has finished reading the target firmware upgrade package, it uses the target upgrade file in the target firmware upgrade package to perform a firmware upgrade on the first target device, and obtains the upgrade progress based on a second preset interval.
[0132] It should be noted that the second preset interval may be the same as or different from the first preset interval, and this is not specifically limited in the embodiment of the present application.
[0133] S7130: The BMC determines and controls the display of the monitor according to the upgrade progress.
[0134] For example, if the display is a digital tube, the corresponding relationship between the upgrade progress and the content displayed on the digital tube is: when the upgrade progress is 0% to 10%, the digital tube displays 0, when the upgrade progress is 10% to 20%, the digital tube displays 1, ..., when the upgrade progress is 90% to 100%, the digital tube displays 9, and when the upgrade progress is 100%, the digital tube displays 10. After the BMC determines the upgrade progress, it determines the content displayed on the digital tube according to the corresponding relationship between the upgrade progress and the content displayed on the digital tube, and controls the digital tube to display according to the determined display content. For example, if BMC 102 determines that the display content of the digital tube is 9, then BMC 102 controls the digital tube to display 9.
[0135] S7140: After the BMC determines that the upgrade is complete, it outputs the second prompt information.
[0136] The second prompt message indicates that the BMC upgrade is complete and the target USB device needs to be unplugged. For example, the second prompt message may be that the digital tube displays 10 and the UID button light is always on.
[0137] In the embodiment of the present application, the BMC determines the correspondence between the removal of the target USB device and the display and the UID key light display, wherein, when the target USB device is removed, the digital tube is displayed in the default state, and the UID key light is restored to the default state. Exemplarily, the default state of the digital tube is that the digital tube displays 0, and the default state of the UID key light is off. If the target USB device is removed, the digital tube and the UID key light are restored to the default state.
[0138] S7150: The BMC determines that the upgrade is not completed within the preset time interval, and outputs a third prompt message.
[0139] The third prompt message indicates that the BMC upgrade fails and the target USB device needs to be unplugged. For example, the third prompt message is that the digital tube always displays 9.
[0140] In the embodiment of the present application, the BMC determines the correspondence between the removal of the target USB device and the display and the UID key light display, wherein, when the target USB device is removed, the digital tube is displayed in the default state, and the UID key light is restored to the default state. Exemplarily, the default state of the digital tube is that the digital tube displays 0, and the default state of the UID key light is off. If the target USB device is removed, the digital tube and the UID key light are restored to the default state.
[0141] S7160: The processor controls the UID button light to turn off after a third preset time.
[0142] After the processor detects that the USB interface is connected to a USB device, it waits for a third preset time, prompts the user that the USB interface is connected to a USB device, and stops the firmware upgrade operation. The processor prompts the user that the USB interface is connected to a USB device by controlling the UID button light to turn off after the third preset time. The third preset time is a time set by a technician in this field as needed, for example, the third preset time is 5s.
[0143] S7170: The processor controls the UID button light to turn off after a fourth preset time period.
[0144] The processor executes step S750, and after detecting that the USB interface is not plugged into a USB device, it waits for the fourth preset time and prompts to stop the firmware upgrade operation. The processor prompts to stop the firmware upgrade operation in the following manner: after waiting for the fourth preset time, the UID button light is controlled to turn off. The fourth preset time is a time set by a person skilled in the art as required, and the fourth preset time is different from the third preset time, for example, the fourth preset time is 10S.
[0145] Therefore, the embodiment of the present application provides a UID button light and a display for displaying the progress of the firmware upgrade, prompting the user to insert the target USB device into the USB interface, and displaying that the BMC reads the target firmware upgrade package from the target USB device, displaying that the upgrade is completed and prompting to unplug the target USB device, and displaying the operation of unplugging the result, so that the user can intuitively understand each node in the firmware upgrade process and improve the user experience.
[0146] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions in the embodiments of the present application are generated.
[0147] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a magnetic disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0148] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of protection of the technical solution of the present application.
Claims
1. A computing device, characterized in that: The computing device comprises: a baseboard management controller BMC and a processor; the BMC is connected to the processor, the BMC is used to communicate with a target USB device through a universal serial bus USB interface, and the target USB device pre-stores a target firmware upgrade package of a first target device; The processor is used to: in response to receiving a trigger operation for performing a firmware upgrade on the first target device, send a notification instruction to the BMC; the notification instruction instructs the BMC to obtain the target firmware upgrade package from the target USB device; The BMC is used for: in response to receiving the notification instruction sent by the processor, obtaining the target firmware upgrade package from the target USB device through the USB interface; and performing firmware upgrade on the first target device using the target upgrade file in the target firmware upgrade package.
2. The computing device according to claim 1, characterized in that: The USB interface is a USB interface provided by a second target device in the computing device, and the second target device is a non-BMC including the USB interface; The computing device further includes a switch component, a mobile end of the switch component is used to connect the BMC and any one of the second target devices, and a fixed end of the switch component is connected to the USB interface; The processor is further configured to: in response to receiving a trigger operation for performing a firmware upgrade on the first target device, send a first switching signal to the switch component, wherein the first switching signal instructs the mobile end of the switch component to connect to the BMC; The switch component is used for: in response to receiving the first switching signal sent by the processor, controlling the mobile terminal to connect to the BMC, and sending a connection completion instruction to the processor; The processor is configured to: in response to receiving the connection completion instruction sent by the switch component, send the notification instruction to the BMC.
3. The computing device according to claim 2, characterized in that: The BMC is further configured to: if the firmware upgrade of the first target device is completed, send an upgrade completion instruction to the processor; The processor is further configured to: in response to receiving an upgrade completion instruction sent by the processor, send a second switching signal to the switch component, wherein the second switching signal instructs the mobile end of the switch component to connect to the second target device; The switch component is further used for controlling the mobile terminal to connect to the second target device in response to receiving the second switching signal sent by the processor.
4. The computing device according to claim 1, characterized in that: The USB interface is a USB interface provided by the BMC.
5. The computing device according to any one of claims 1 to 4, characterized in that: The processor is configured to send a notification instruction to the BMC in response to receiving a trigger operation for performing a firmware upgrade on the first target device, including: The processor is used for, in response to receiving a trigger operation for performing a firmware upgrade on the first target device, first detecting whether a USB device is inserted into the USB interface; if it is detected for the first time that the USB interface is not connected to the USB device, outputting a prompt message, wherein the prompt message is a prompt to insert the target USB device into the USB interface; waiting for a first preset time, and second detecting whether the USB interface is connected to the target USB device; and if it is detected for the second time that the USB interface is inserted into the target USB device, sending a notification instruction to the BMC.
6. The computing device according to any one of claims 1 to 4, characterized in that: The target firmware upgrade package also includes a verification file, and the verification file is used to verify whether the upgrade file in the target firmware upgrade package is the target upgrade file; The BMC is used to upgrade the firmware of the first target device using the target upgrade file in the target firmware upgrade package, including: The BMC is used to upgrade the firmware of the first target device using the target upgrade file in the target firmware upgrade package if it is determined according to the verification file that the upgrade file in the target firmware upgrade package acquired by the BMC is the target upgrade file.
7. The computing device according to any one of claims 1 to 4, characterized in that: The computing device further includes a display, wherein the display is used to connect to the BMC; The BMC is further used to: obtain the upgrade progress based on a preset interval during the firmware upgrade of the first target device; According to the upgrade progress, the display content of the display is determined, and the display content corresponds to the upgrade progress; according to the display content, the display is controlled to display the display content.
8. The computing device according to any one of claims 1 to 4, characterized in that: The BMC is also used to: If the first target device has not completed the firmware upgrade within the second preset time period, or if the first target device has completed the firmware upgrade within the second preset time period, a prompt message is output, wherein the prompt message indicates to unplug the target USB device.
9. The computing device according to claim 1, characterized in that: The processor includes a field programmable gate array FPGA or a complex programmable logic device CPLD.
10. A firmware upgrade method, characterized in that: Applied to a computing device, the computing device comprises: a baseboard management controller BMC and a processor; the BMC is connected to the processor, the BMC communicates with a target USB device via a USB interface, the target USB pre-stores a target firmware upgrade package of a first target device, and the method comprises: The processor sends a notification instruction to the BMC in response to receiving a trigger operation for performing a firmware upgrade on the first target device; the notification instruction instructs the BMC to obtain the target firmware upgrade package from the target USB device; In response to receiving the notification instruction sent by the processor, the BMC obtains the target firmware upgrade package from the target USB device through the USB interface; and uses the target upgrade file in the target firmware upgrade package to perform firmware upgrade on the first target device.
