Firmware batch updating method and device, electronic equipment and storage medium

By obtaining and automatically processing the target firmware update list, determining the firmware to be updated and obtaining the update version and method, the problem of inefficient update of existing firmware update tools is solved, and efficient automatic firmware batch update is achieved.

CN119917127APending Publication Date: 2025-05-02NETTRIX INFORMATION IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311433438.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

Existing firmware update tools cannot be flexibly configured on multiple different firmware, which is inefficient in updates and consumes a lot of manpower and material resources.

Method used

By obtaining the target firmware update list of the target firmware update device, the target firmware to be updated is automatically determined, and the target firmware to be updated according to its acquisition of the target updated version and the matching update method, and batch automatic update is achieved.

Benefits of technology

It improves the efficiency of firmware updates, saves manpower and material resources, and realizes automatic acquisition and batch automatic update of target firmware and update methods to be updated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917127A_ABST
    Figure CN119917127A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a firmware batch updating method and device, electronic equipment and a storage medium. The method comprises the steps that a target firmware updating list of target firmware updating equipment is acquired; wherein the target firmware updating list comprises different types of firmware information of the target firmware; determining current to-be-updated target firmware according to the target firmware updating list; obtaining a target update version firmware of the current to-be-updated target firmware and a target firmware update method matched with the current to-be-updated target firmware; and updating the current to-be-updated target firmware by using the target updating version firmware according to the target firmware updating method. According to the technical scheme provided by the embodiment of the invention, the batch automatic updating of the firmware is realized, and the firmware updating efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of firmware update, and in particular to a firmware batch update method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of computer and server technology, the types of firmware installed in computers or servers and other related devices are increasing, and their functions are becoming more and more powerful. The firmware contains complete drivers and codes for specific functions, and the operating system can complete a series of specific operations through the drivers and codes in the firmware.

[0003] However, as the types and functions of firmware continue to expand, devices that install firmware will often face the problem of firmware updates. Since different firmware are produced by different manufacturers, their models are different, and their internal firmware update rules are also different accordingly. The current firmware update tools can only update for a specific manufacturer and cannot be flexibly configured for multiple different firmwares. The update efficiency is low and a lot of manpower and material resources are consumed. Summary of the invention

[0004] The embodiments of the present invention provide a firmware batch update method, device, electronic device and storage medium, which realize batch automatic update of server firmware and improve the efficiency of firmware update.

[0005] According to a first aspect of the present invention, there is provided a method for batch updating of firmware, comprising:

[0006] Obtain a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware;

[0007] Determine the current target firmware to be updated according to the target firmware update list;

[0008] Obtain a target update version firmware of the current target firmware to be updated and a target firmware update method matching the current target firmware to be updated;

[0009] The target firmware to be updated is updated using the target updated version firmware according to the target firmware update method.

[0010] The embodiment of the present invention determines the current target firmware to be updated by obtaining the target firmware update list of the target firmware update device, and then obtains the target update version firmware and the target firmware update method matching the current target firmware to be updated according to the target firmware to be updated, and updates the current target firmware to be updated by using the target update version firmware through the target firmware update method, wherein the current target firmware to be updated may include network card firmware and hard disk firmware. The method of the embodiment of the present invention realizes the automatic acquisition of the target firmware to be updated and the update method and the batch automatic update of the target firmware to be updated, solves the problem of low firmware update efficiency when batch updating firmware in the existing firmware update method, improves the firmware update efficiency, and saves manpower and material resources.

[0011] Optionally, the target firmware includes network card firmware; the target firmware update list includes a network card firmware update list; and the step of obtaining the target firmware update list of the target firmware update device includes:

[0012] Scan the network port resources of the target firmware update device;

[0013] Obtain the PCIE address of the network port resource of the target firmware update device;

[0014] Read the network card firmware association information of the target firmware update device according to the PCIE address of the network port resource of the target firmware update device;

[0015] A network card firmware update list of the target firmware update device is generated according to the network card firmware association information.

[0016] The above technical solution can quickly generate a network card firmware update list corresponding to the network card firmware, improve the efficiency of obtaining basic information of the network card firmware, and facilitate the staff to quickly obtain the basic information of all network card firmware.

[0017] Optionally, the target firmware includes hard disk firmware; the target firmware update list includes a hard disk firmware update list; and obtaining the target firmware update list of the target firmware update device includes:

[0018] Obtaining configuration information of hard disk resources of the target firmware update device;

[0019] A hard disk firmware update list of the target firmware update device is generated according to the configuration information of the hard disk resources of the target firmware update device.

[0020] The above technical solution can quickly generate a hard disk firmware update list corresponding to hard disk resources, improve the efficiency of obtaining basic information of hard disk firmware resources, and facilitate staff to quickly obtain basic information of all hard disk firmware resources.

[0021] Optionally, determining the current target firmware to be updated according to the target firmware update list includes:

[0022] In response to a list update instruction from a user for the target firmware update list, deleting target model firmware information from the target firmware update list to obtain a target firmware update list to be updated;

[0023] In response to an update mode confirmation instruction input by the user for the update list of target firmware to be updated, determining an update mode for target firmware in the update list of target firmware to be updated;

[0024] The current target firmware to be updated is determined according to the update mode of the target firmware in the update list of the target firmware to be updated.

[0025] The above technical solution obtains the target firmware update list to be updated by deleting the target model firmware information, and then can accurately determine the firmware to be updated, meet the personalized needs of firmware update, and prevent the occurrence of erroneous updates.

[0026] Optionally, determining the current target firmware to be updated according to the update mode of the target firmware in the update list of the target firmware to be updated includes:

[0027] In the case where it is determined that the update mode of the target firmware is automatic update, the current target firmware to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated;

[0028] In the case where it is determined that the update mode of the target firmware is manual update, the target firmware to be confirmed to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated;

[0029] In response to a confirmation update instruction input by the user for the target firmware to be confirmed and updated, the target firmware to be confirmed and updated is determined as the current target firmware to be updated.

[0030] The above technical scheme can flexibly determine the specific update method of the firmware. Furthermore, the automatic update can determine the target firmware to be confirmed to be updated in sequence according to the sorting order of the target firmware update list to be updated, thereby realizing batch updates of the firmware and improving the efficiency of the firmware update; the manual update can flexibly determine the firmware to be updated, thereby improving the update efficiency of the firmware and meeting the personalized update requirements of the firmware.

[0031] Optionally, the method for obtaining the target update version firmware of the current target firmware to be updated and the target firmware update method matching the current target firmware to be updated includes:

[0032] When it is determined that the target update version firmware of the current target firmware to be updated stored in the target firmware update device is empty, obtaining the communication address information of the remote server;

[0033] Establishing a communication connection with the remote server according to the communication address information of the remote server, and requesting to obtain the target updated version firmware of the current target firmware to be updated from the remote server;

[0034] A target firmware update method matching the current target firmware to be updated is determined from among the candidate target firmware update methods according to the identification information of the target update version firmware of the current target firmware to be updated.

[0035] The above technical solution can realize the automatic acquisition of the target update version firmware of the current target firmware to be updated and the target firmware update method matching the current target firmware to be updated, which can improve the efficiency of firmware update and save manpower and material resources.

[0036] Optionally, before updating the current target firmware to be updated using the target updated version firmware according to the target firmware update method, the method further includes:

[0037] Acquire the firmware association information of the current target firmware to be updated according to the target firmware update list;

[0038] Determine the installation location of the current target firmware to be updated in the target firmware update device according to the firmware association information of the current target firmware to be updated;

[0039] A signal indication instruction is sent to a signal indication component of the target firmware to be updated at the installation location of the target firmware update device, so that the signal indication component performs a signal indication operation for firmware update in response to the signal indication instruction.

[0040] The above technical solution automatically sends out corresponding signal indication operations corresponding to the update process of the current target firmware to be updated through the signal indication component at the installation position of the target firmware update device, so as to intuitively display and prompt the status of the firmware update, thereby improving the interactivity of the firmware update.

[0041] According to a second aspect of the present invention, there is provided a firmware batch update device, comprising:

[0042] A target firmware update list acquisition module is used to acquire a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware;

[0043] A current target firmware to be updated determining module, which determines the current target firmware to be updated according to the target firmware update list;

[0044] A version firmware update method matching module is used to obtain a target update version firmware of the current target firmware to be updated and a target firmware update method that matches the current target firmware to be updated;

[0045] A target firmware update module is used to update the current target firmware to be updated using the target update version firmware according to the target firmware update method.

[0046] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0047] at least one processor; and

[0048] a memory communicatively connected to the at least one processor; wherein,

[0049] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a firmware batch update method described in any embodiment of the present invention.

[0050] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a firmware batch update method described in any embodiment of the present invention when executed.

[0051] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 A flowchart of a firmware batch update method provided by an embodiment of the present invention;

[0054] Figure 2 A flowchart of a firmware batch update method provided by an embodiment of the present invention;

[0055] Figure 3 A flowchart of a firmware batch update method provided by an embodiment of the present invention;

[0056] Figure 4A schematic diagram of the structure of a firmware batch update device provided by an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0060] Figure 1 The flowchart of a firmware batch update method provided by an embodiment of the present invention is applicable to the case of batch updating the same type of different models of firmware in a device. The method can be executed by a firmware batch update device, which can be implemented in the form of hardware and / or software and configured in an electronic device. The electronic device can be a terminal device or a server device. As long as the firmware that needs to be batch updated is installed, the embodiment of the present invention does not limit the specific device type of the electronic device. Accordingly, if Figure 1 As shown, the method includes the following operations:

[0061] like Figure 1 As shown, the method includes:

[0062] S110, obtaining a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware.

[0063] The target firmware update device is the device where the firmware to be updated is located, the target firmware update list is the information list of the firmware to be updated, and the target firmware update list includes the firmware information of different models of the target firmware. The target firmware can be a type of firmware, such as network card firmware, hard disk firmware, and printer firmware, etc. The embodiment of the present invention does not limit the firmware type of the target firmware.

[0064] In an embodiment of the present invention, before batch updating the target firmware of the target firmware update device, a target firmware update list corresponding to the target firmware in the target firmware update device may be first obtained. The target firmware update list may store various associated information of the target firmware, such as but not limited to the firmware model, firmware name, and firmware installation location. When the target firmware has firmware information of different models, the specific information of the target firmware may be distinguished and sorted out in the form of the target firmware update list.

[0065] The so-called different types of firmware information of the target firmware can be understood as different manufacturers, that is, different types of firmware, configured for the same target firmware. For example, for the network card firmware, its target firmware update list can include the firmware information of the network card manufacturer A and the firmware information of the network card manufacturer B installed in the target firmware update device, and other types of network card firmware information.

[0066] Optionally, the target firmware may include network card firmware; the target firmware update list includes a network card firmware update list; obtaining the target firmware update list of the target firmware update device may include: scanning the network port resources of the target firmware update device; obtaining the PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) address of the network port resources of the target firmware update device; reading the network card firmware association information of the target firmware update device according to the PCIE address of the network port resources of the target firmware update device; and generating the network card firmware update list of the target firmware update device according to the network card firmware association information.

[0067] The network card firmware update list may be a list determined based on the basic information of various network card firmware on the target firmware update device; the network port resource may be a network interface resource of the target firmware update device connected to the network card firmware. Optionally, the firmware-related information may include but is not limited to the PCIE address of the network card firmware, the network card name, the manufacturer, the network card firmware information, the network card installation location and the corresponding IP address, etc.

[0068] Specifically, when the target firmware is a network card firmware, the network port resources of the target firmware update device can be scanned to determine the PCIE address of the network port resources, and then the network card firmware associated information of the target firmware update device can be obtained, thereby generating a corresponding network card firmware update list according to the network card firmware associated information.

[0069] The above technical solution can quickly generate a network card firmware update list corresponding to the network card firmware, improve the efficiency of obtaining basic information of the network card firmware, and facilitate the staff to quickly obtain the basic information of all network card firmware.

[0070] Exemplarily, the network card firmware association information of the network card firmware corresponding to each network port resource can be added to the preset network card firmware update list in sequence according to the scanning order of the network port resources. Alternatively, the priority of each network port can be set, and the network card firmware association information of the network card firmware corresponding to each network port resource can be added to the preset network card firmware update list in the order of priority. The embodiment of the present invention does not limit the arrangement order of the network card firmware association information in the network card firmware update list.

[0071] Optionally, the target firmware includes hard disk firmware; the target firmware update list includes a hard disk firmware update list; obtaining the target firmware update list of the target firmware update device includes: obtaining configuration information of the hard disk resources of the target firmware update device; generating the hard disk firmware update list of the target firmware update device according to the configuration information of the hard disk resources of the target firmware update device.

[0072] The configuration information of the hard disk resource can be understood as the specific information generated by the hard disk firmware configuration on the target firmware update device, such as the name and manufacturer information of the hard disk firmware, the location or address of the installation interface, and the link and communication protocol, etc. The hard disk firmware update list can be a list determined according to the basic information of various hard disk firmware on the target firmware update device.

[0073] Specifically, when the target firmware is a hard disk firmware, the configuration information of the hard disk resource of the target firmware update device can be obtained, such as by accessing the official website of the target firmware update device to obtain the configuration information of its hard disk resource, or by reading the disk configuration information of the target firmware update device, etc. Accordingly, after obtaining the configuration information of the hard disk resource, the hard disk firmware update list of the target firmware update device can be generated according to the configuration information of the hard disk resource.

[0074] Exemplarily, the configuration information of each hard disk resource can be added to the preset hard disk firmware update list in sequence according to the scanning order of the hard disk resources. Alternatively, the priority of each hard disk can be set, and the configuration information of each hard disk resource can be added to the preset hard disk firmware update list in the order of priority. The embodiment of the present invention does not limit the arrangement order of the configuration information of the hard disk resources in the hard disk firmware update list.

[0075] The above technical solution can quickly generate a hard disk firmware update list corresponding to hard disk resources, improve the efficiency of obtaining basic information of hard disk firmware resources, and facilitate staff to quickly obtain basic information of all hard disk firmware resources.

[0076] S120: Determine the current target firmware to be updated according to the target firmware update list.

[0077] The current target firmware to be updated may be the target firmware that currently needs to be updated on the target firmware update device.

[0078] Optionally, one of the target firmwares to be updated can be determined in sequence according to the target firmware update list as the current target firmware to be updated, that is, each target firmware in the target firmware update list can be updated in sequence. Alternatively, multiple target firmwares to be updated can also be determined at the same time according to the target firmware update list as the current target firmware to be updated, that is, multiple target firmwares in the target firmware update list can also be updated synchronously. The embodiment of the present invention does not limit the update method of each target firmware in the target firmware update list.

[0079] S130: Obtain a target update version firmware of the current target firmware to be updated and a target firmware update method matching the current target firmware to be updated.

[0080] The target firmware update method may be an update method used to update the current target firmware to the target firmware update method.

[0081] Specifically, before the firmware is updated, preparatory work needs to be done, including determining the target update version firmware of the current target firmware to be updated and the target firmware update method that matches the current target firmware to be updated, so as to facilitate the subsequent firmware update work.

[0082] It is understandable that different target firmware models may have different corresponding target update version firmware and target firmware update methods.

[0083] S140: Update the current target firmware to be updated using the target updated version firmware according to the target firmware update method.

[0084] Specifically, the target firmware to be updated can be updated and replaced based on the target firmware update method and the target updated version firmware.

[0085] Optionally, in an embodiment of the present invention, before updating the current target firmware to be updated using the target update version firmware according to the target firmware update method, it may also include: obtaining firmware association information of the current target firmware to be updated according to the target firmware update list; determining the installation location of the current target firmware to be updated in the target firmware update device according to the firmware association information of the current target firmware to be updated; and sending a signal indication instruction to a signal indication component of the current target firmware to be updated at the installation location of the target firmware update device, so that the signal indication component performs a signal indication operation for firmware update in response to the signal indication instruction.

[0086] In the embodiment of the present invention, the firmware-related information may also include the installation location information of the firmware, etc. The signal indication component may be a display or identification component, such as a flashing light or a speaker, etc. The signal indication instruction may be a control instruction for controlling the signal indication component to perform a corresponding signal indication operation, and the signal indication operation may include, but is not limited to, turning on, flashing and turning off a flashing light, and causing a speaker to emit audio according to a rule, etc.

[0087] Specifically, the installation position of the current target firmware to be updated in the target firmware update device can be determined through the firmware association information, and the signal indication component corresponding to the current target firmware to be updated, such as a flashing light or a horn, can be determined through the installation position. Then, a signal indication instruction is sent to the signal indication component at the installation position, so that the signal indication component completes the corresponding signal indication operation, so that the staff can observe the update status of the target firmware to be updated.

[0088] For example, the flashing light at the installation location can be turned on, off or flashing to indicate whether the firmware device at this installation location does not need to be updated, is being updated or has been updated, so that the staff can intuitively understand the update process of each target firmware.

[0089] The above technical solution automatically sends out corresponding signal indication operations corresponding to the update process of the current target firmware to be updated through the signal indication component at the installation position of the target firmware update device, so as to intuitively display and prompt the status of the firmware update, thereby improving the interactivity of the firmware update.

[0090] The embodiment of the present invention determines the current target firmware to be updated by obtaining the target firmware update list of the target firmware update device, and then obtains the target update version firmware and the target firmware update method matching the current target firmware to be updated according to the target firmware to be updated, and updates the current target firmware to be updated by using the target update version firmware through the target firmware update method, wherein the current target firmware to be updated may include network card firmware and hard disk firmware. The method of the embodiment of the present invention realizes the automatic acquisition of the target firmware to be updated and the update method and the batch automatic update of the target firmware to be updated, solves the problem of low firmware update efficiency when batch updating firmware in the existing firmware update method, improves the firmware update efficiency, and saves manpower and material resources.

[0091] Figure 2 A flowchart of a firmware batch update method provided by an embodiment of the present invention. This embodiment is based on the above embodiments and further optimizes the step of determining the current target firmware to be updated according to the target firmware update list. Figure 2 .

[0092] like Figure 2 As shown, including:

[0093] S210. Obtain a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware.

[0094] S220: In response to a list update instruction issued by the user for the target firmware update list, delete the target model firmware information from the target firmware update list to obtain a target firmware update list to be updated.

[0095] Among them, the list update instruction is a computer instruction used to determine the firmware that needs to be updated in the target firmware update list; the target model firmware is the firmware in the firmware update list that does not need to be updated in this update, and the target model firmware information is all information about the target model firmware in the firmware update list; the target firmware update list to be updated is a list formed by the information of all firmware that needs to be updated in this update operation.

[0096] Specifically, the firmware that does not need to be updated in this update operation can be deleted through the list update instruction to obtain the update list of the target firmware to be updated.

[0097] The above technical solution obtains the target firmware update list to be updated by deleting the target model firmware information, and then can accurately determine the firmware to be updated, meet the personalized needs of firmware update, and prevent the occurrence of erroneous updates.

[0098] S230: In response to an update mode confirmation instruction input by the user for the update list of target firmware to be updated, determine an update mode for the target firmware in the update list of target firmware to be updated.

[0099] The update mode confirmation instruction is an instruction for determining the update mode of the target firmware, which may include manual update and automatic update.

[0100] Specifically, the user may input a confirmation instruction for sending an update mode for the update list of target firmware to be updated, and select manual update or automatic update.

[0101] S240: Determine the current target firmware to be updated according to the update mode of the target firmware in the update list of the target firmware to be updated.

[0102] Optionally, when it is determined that the update mode of the target firmware is automatic update, the current target firmware to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated; when it is determined that the update mode of the target firmware is manual update, the target firmware to be confirmed to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated; in response to the confirmation update instruction input by the user for the target firmware to be confirmed to be updated, the target firmware to be confirmed to be updated is determined as the current target firmware to be updated.

[0103] Among them, the current target firmware to be updated can be understood as the batch update operation of the present invention, that is, according to the update list of the target firmware to be updated, it is updated in sequence. After one target firmware update is completed, the next target firmware update can be performed. The current target firmware to be updated is the target firmware currently prepared for update.

[0104] Specifically, the automatic update method is that during the automatic update process, the current target firmware to be updated will be automatically determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated.

[0105] Specifically, manual updating is to manually confirm whether each target firmware is confirmed to be updated before updating. If it is confirmed to be updated, the target firmware is determined as the current target firmware to be updated. If it is not updated, the target firmware is skipped and it is determined whether the next target firmware is confirmed to be updated.

[0106] The above technical scheme can flexibly determine the specific update method of the firmware. Furthermore, the automatic update can determine the target firmware to be confirmed to be updated in sequence according to the sorting order of the target firmware update list to be updated, thereby realizing batch updates of the firmware and improving the efficiency of the firmware update; the manual update can flexibly determine the firmware to be updated, thereby improving the update efficiency of the firmware and meeting the personalized update requirements of the firmware.

[0107] S250: Obtain a target update version firmware of the current target firmware to be updated and a target firmware update method that matches the current target firmware to be updated.

[0108] Optionally, when it is determined that the target update version firmware of the current target firmware to be updated stored locally in the target firmware update device is empty, the communication address information of the remote server is acquired.

[0109] The target updated version firmware is the required target updated version of the target firmware to be updated, such as the latest firmware installation package or the required version firmware installation package.

[0110] Specifically, due to device type restrictions of the target firmware update device, the required target update version firmware may not be stored in the local device, such as the terminal device may not store the version firmware to be updated. In this case, it is necessary to determine the remote server that stores the target update version firmware and obtain the communication address information of the remote server to establish a communication connection with the remote server according to the communication address information of the remote server. After determining that the connection is successfully established, the target update version firmware of the current target firmware to be updated can be requested from the remote server, for example, the target update version firmware of the current target firmware to be updated can be downloaded from the remote server.

[0111] Optionally, the target firmware update method matching the current target firmware to be updated may be determined from among various candidate target firmware update methods according to identification information of the target update version firmware of the current target firmware to be updated.

[0112] The identification information can be understood as the identification information of the target update version firmware of the target firmware to be updated, which is used to classify the target firmware. Exemplarily, the identification information can include but is not limited to the name, manufacturer, and update version of the firmware; each candidate target firmware update method can be understood as a collection of all target firmware update methods. The target firmware update method is also the method applicable to the current target firmware update to be updated.

[0113] Specifically, the target firmware update method that matches the target firmware to be updated can be determined from the candidate target firmware update methods using the preset identification information as the tag feature, and then the target firmware update method can be used to complete the update of the target firmware to be updated.

[0114] The above technical solution can realize the automatic acquisition of the target update version firmware of the current target firmware to be updated and the target firmware update method matching the current target firmware to be updated, which can improve the efficiency of firmware update and save manpower and material resources.

[0115] S260: Update the current target firmware to be updated using the target updated version firmware according to the target firmware update method.

[0116] This embodiment obtains a target firmware update list to be updated by deleting the target model firmware information from the target firmware update list, selects an update method, determines the current target firmware to be updated, obtains the target update version firmware of the current target firmware to be updated and the target firmware update method that matches the current target firmware to be updated, and then completes the batch firmware update task. Specifically, the update method may include manual update and automatic update. The selection of the update method can improve the security during firmware update and avoid erroneous updates. Furthermore, the method of this embodiment solves the problem of low firmware update efficiency in batch firmware updates in existing firmware update methods, and improves the speed and efficiency of firmware updates.

[0117] In order to more clearly illustrate the technical solution provided by the embodiment of the present invention, the embodiment of the present invention takes the network card firmware as the target firmware as an example to specifically illustrate the specific process of the firmware batch update method. Figure 3 A flowchart of a method for batch updating of network card firmware provided by an embodiment of the present invention, correspondingly, as Figure 3 As shown, the process of the method for batch updating of network card firmware may include the following operations:

[0118] S301. The operating system scans all network port resources.

[0119] The network port resources may include network port resources such as eth0 and ib1. The operating system may include but is not limited to Linux system or Windows system.

[0120] S302, collecting PCIE addresses corresponding to all network port resources.

[0121] S303. Acquire the network card information and network card firmware information under each PCIE address according to the PCIE address, and obtain corresponding network card firmware association information.

[0122] The network port firmware related information includes the network card name, manufacturer, network card firmware information and corresponding IP address.

[0123] S304: Determine a target firmware update list according to the network card firmware association information.

[0124] Specifically, a target firmware update list may be generated according to the network card firmware association information.

[0125] S305: Determine the network card firmware that needs to be updated, and remove the network port firmware that does not need to be updated from the target firmware update list.

[0126] Specifically, after the target firmware update list is generated, the user may be asked whether the firmware needs to be updated. The user may manually select items in the generated target firmware update list to determine the network card firmware to be updated, and delete the network card firmware that does not need to be updated from the generated target firmware update list.

[0127] S306: Confirm whether to start updating the network card firmware.

[0128] Specifically, if it is confirmed to start updating, S307 is executed, otherwise S322 is executed.

[0129] S307: Select an update method.

[0130] Among them, the updating method may include manual updating and automatic updating.

[0131] S308: Start automatic updating.

[0132] S309: Change the flashing light state.

[0133] Optionally, before the network card firmware is updated, a flashing light at the network card firmware installation location flashes, and the flashing light goes out after the update starts.

[0134] S310: Obtain network card firmware and a firmware update method that matches the network card firmware.

[0135] The firmware update method that matches the required current network card firmware can be determined through the preset identification information, and then the update of the current target firmware to be updated can be completed through this update method.

[0136] S311, start updating the current network card firmware.

[0137] S312: Determine whether the update of all network card firmware is completed.

[0138] Specifically, if the update of all network card firmware is completed, execute S320, otherwise execute S308.

[0139] S313: Start manual update.

[0140] S314: Confirm whether the current network card firmware is updated.

[0141] Specifically, in manual update, the network card firmware needs to be updated item by item according to the update list. Before each network card firmware update, it will be confirmed to be updated. If the update is confirmed, S316 is executed, otherwise, S315 is executed to skip the current network card firmware.

[0142] S316: Change the flashing light state.

[0143] Optionally, before the network card firmware is updated, a flashing light at the network card firmware installation location flashes, and the flashing light goes out after the update starts.

[0144] S317: Obtain network card firmware and a firmware update method that matches the network card firmware.

[0145] The firmware update method that matches the required current network card firmware can be determined through the preset identification information, and then the update of the current target firmware to be updated can be completed through this update method.

[0146] S318, start updating the current network card firmware.

[0147] S319: Determine whether the update of all network card firmware is completed.

[0148] Specifically, if the update of all network card firmware is completed, execute S320, otherwise execute S313.

[0149] S320: Confirm whether the device needs to be restarted.

[0150] Specifically, after some updates are completed, the device needs to be restarted before it can be used normally. If it is confirmed that the device needs to be restarted, step S321 is executed, otherwise step S322 is executed.

[0151] S321. Restart the electronic equipment.

[0152] S322, end.

[0153] The embodiment of the present invention determines the target firmware update list through the network card firmware association information, determines the current target firmware to be updated, and then selects the update method to update the network card firmware through manual update or automatic update. Among them, the network card firmware and the firmware update method matching the network card firmware can be obtained through the identification information, and the network card device is updated accordingly according to the firmware update method. The method of the embodiment of the present invention can quickly locate the correspondence between the actual network card in the server and the network port firmware under the OS (Operating System), and the actual position of the current target network card can be located at any time during the update process. The above-mentioned network card firmware update method can integrate the network card firmware update tools of network cards of all manufacturers. During the update process, the update process of other network card firmware except the network card being updated can be stopped at any time to achieve on-demand personalized updates. At the same time, by checking the firmware update status through the built-in device restart mechanism, additional firmware update time can be saved.

[0154] Figure 4The schematic diagram of the structure of a firmware batch update device provided by an embodiment of the present invention specifically includes: a target firmware update list acquisition module 410, a current target firmware to be updated determination module 420, a version firmware update method matching module 430 and a target firmware update module 440.

[0155] The target firmware update list acquisition module 410 is used to acquire the target firmware update list of the target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware;

[0156] A current target firmware to be updated determining module 420, which determines the current target firmware to be updated according to the target firmware update list;

[0157] The version firmware update method matching module 430 obtains the target update version firmware of the current target firmware to be updated and the target firmware update method matching the current target firmware to be updated;

[0158] The target firmware update module 440 updates the current target firmware to be updated using the target update version firmware according to the target firmware update method.

[0159] The embodiment of the present invention determines the current target firmware to be updated by obtaining the target firmware update list of the target firmware update device, and then obtains the target update version firmware and the target firmware update method matching the current target firmware to be updated according to the target firmware to be updated, and updates the current target firmware to be updated using the target update version firmware through the target firmware update method. The method of the embodiment of the present invention realizes the automatic acquisition of the target firmware to be updated and the update method, and the automatic batch update of the target firmware to be updated, which solves the problem of low firmware update efficiency when batch updating firmware in the existing firmware update method, and improves the firmware update efficiency.

[0160] Optionally, the target firmware includes network card firmware; the target firmware update list includes a network card firmware update list; the target firmware update list acquisition module 410 is specifically used to: scan the network port resources of the target firmware update device; obtain the PCIE address of the network port resources of the target firmware update device; read the network card firmware association information of the target firmware update device according to the PCIE address of the network port resources of the target firmware update device; and generate the network card firmware update list of the target firmware update device according to the network card firmware association information.

[0161] Optionally, the target firmware includes hard disk firmware; the target firmware update list includes a hard disk firmware update list; the target firmware update list acquisition module 410 is specifically used to: obtain the configuration information of the hard disk resources of the target firmware update device; and generate the hard disk firmware update list of the target firmware update device according to the configuration information of the hard disk resources of the target firmware update device.

[0162] Optionally, the current target firmware to be updated determination module 420 is specifically used to: in response to a list update instruction of the target firmware update list issued by the user, delete the target model firmware information from the target firmware update list to obtain a target firmware update list to be updated; in response to an update method confirmation instruction input by the user for the target firmware update list to be updated, determine the update method of the target firmware in the target firmware update list to be updated; and determine the current target firmware to be updated according to the update method of the target firmware in the target firmware update list to be updated.

[0163] Optionally, the current target firmware to be updated determination module 420 is specifically used to: when it is determined that the update mode of the target firmware is automatic update, determine the current target firmware to be updated in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated. When it is determined that the update mode of the target firmware is manual update, determine the target firmware to be confirmed to be updated in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated; in response to the confirmation update instruction input by the user for the target firmware to be confirmed to be updated, determine the target firmware to be confirmed to be updated as the current target firmware to be updated.

[0164] Optionally, the version firmware update method matching module 430 is specifically used to: when it is determined that the target update version firmware of the current target firmware to be updated stored locally in the target firmware update device is empty, obtain the communication address information of the remote server; establish a communication connection with the remote server according to the communication address information of the remote server, and request to obtain the target update version firmware of the current target firmware to be updated from the remote server; determine the target firmware update method that matches the current target firmware to be updated from each alternative target firmware update method according to the identification information of the target update version firmware of the current target firmware to be updated.

[0165] Optionally, the device of the embodiment of the present invention also includes a signal indication operation module, which is used to: obtain firmware association information of the current target firmware to be updated according to the target firmware update list; determine the installation location of the current target firmware to be updated in the target firmware update device according to the firmware association information of the current target firmware to be updated; and send a signal indication instruction to the signal indication component of the current target firmware to be updated at the installation location of the target firmware update device, so that the signal indication component performs a signal indication operation for firmware update in response to the signal indication instruction.

[0166] A firmware batch update device provided by an embodiment of the present invention can execute a firmware batch update method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0167] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0168] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0169] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0170] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a firmware batch update method.

[0171] In some embodiments, a method for batch updating of firmware may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of a method for batch updating of firmware described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a method for batch updating of firmware in any other appropriate manner (e.g., by means of firmware).

[0172] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0173] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0174] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0175] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0176] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0177] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

Claims

1. A firmware batch update method, characterized in that: include: Obtain a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware; Determine the current target firmware to be updated according to the target firmware update list; Obtain a target update version firmware of the current target firmware to be updated and a target firmware update method matching the current target firmware to be updated; The target firmware to be updated is updated using the target updated version firmware according to the target firmware update method.

2. The method according to claim 1, characterized in that The target firmware includes the network card firmware; the target firmware update list includes the network card firmware update list; the step of obtaining the target firmware update list of the target firmware update device includes: Scan the network port resources of the target firmware update device; Obtain the PCIE address of the network port resource of the target firmware update device; Read the network card firmware association information of the target firmware update device according to the PCIE address of the network port resource of the target firmware update device; A network card firmware update list of the target firmware update device is generated according to the network card firmware association information.

3. The method according to claim 1, characterized in that The target firmware includes hard disk firmware; the target firmware update list includes a hard disk firmware update list; the step of obtaining the target firmware update list of the target firmware update device includes: Acquire configuration information of hard disk resources of the target firmware update device; A hard disk firmware update list of the target firmware update device is generated according to the configuration information of the hard disk resources of the target firmware update device.

4. The method according to claim 1, characterized in that: The step of determining the current target firmware to be updated according to the target firmware update list includes: In response to a list update instruction from a user for the target firmware update list, deleting target model firmware information from the target firmware update list to obtain a target firmware update list to be updated; In response to an update mode confirmation instruction input by the user for the target firmware update list to be updated, determining an update mode for the target firmware in the target firmware update list to be updated; The current target firmware to be updated is determined according to the update mode of the target firmware in the update list of the target firmware to be updated.

5. The method according to claim 4, characterized in that The step of determining the current target firmware to be updated according to the update mode of the target firmware in the update list of the target firmware to be updated includes: In the case where it is determined that the update mode of the target firmware is automatic update, the current target firmware to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated; In the case where it is determined that the update mode of the target firmware is manual update, the target firmware to be confirmed to be updated is determined in sequence according to the sorting order of each target firmware in the update list of the target firmware to be updated; In response to a confirmation update instruction input by the user for the target firmware to be confirmed and updated, the target firmware to be confirmed and updated is determined as the current target firmware to be updated.

6. The method according to claim 1, characterized in that The method for obtaining the target updated version firmware of the current target firmware to be updated and the target firmware update method matching the current target firmware to be updated includes: When it is determined that the target update version firmware of the current target firmware to be updated stored in the target firmware update device is empty, obtaining the communication address information of the remote server; Establishing a communication connection with the remote server according to the communication address information of the remote server, and requesting to obtain the target updated version firmware of the current target firmware to be updated from the remote server; A target firmware update method matching the current target firmware to be updated is determined from among the candidate target firmware update methods according to the identification information of the target update version firmware of the current target firmware to be updated.

7. The method according to claim 1, characterized in that Before updating the current target firmware to be updated using the target updated version firmware according to the target firmware update method, the method further includes: Acquire the firmware association information of the current target firmware to be updated according to the target firmware update list; Determine the installation location of the current target firmware to be updated in the target firmware update device according to the firmware association information of the current target firmware to be updated; A signal indication instruction is sent to a signal indication component of the target firmware to be updated at the installation location of the target firmware update device, so that the signal indication component performs a signal indication operation for firmware update in response to the signal indication instruction.

8. A firmware batch update device, characterized in that: include: A target firmware update list acquisition module is used to acquire a target firmware update list of a target firmware update device; wherein the target firmware update list includes firmware information of different models of the target firmware; A current target firmware to be updated determining module, which determines the current target firmware to be updated according to the target firmware update list; A version firmware update method matching module is used to obtain a target update version firmware of the current target firmware to be updated and a target firmware update method that matches the current target firmware to be updated; The target firmware update module updates the current target firmware to be updated using the target update version firmware according to the target firmware update method.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a firmware batch update method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a firmware batch update method as described in any one of claims 1-7 when executed.

Citation Information

Patent Citations

  • Firmware updating apparatus and firmware updating method

    CN101815151A

  • Hard disk firmware upgrading method and apparatus, and server

    CN107608695A