Firmware update method and device, storage medium and electronic device
By detecting changes in the firmware flashing tool library and updating the instruction template library and instruction library, the problem of low efficiency in generating firmware flashing instructions was solved, and automatic synchronous updates after changes to the flashing tool were achieved, thus improving the efficiency of generation and updating.
Patent Information
- Application Number
- CN202511189101.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2045-08-25
AI Technical Summary
In existing technologies, firmware update commands are generated inefficiently, and need to be regenerated after the update tool is changed, which fails to meet the requirements of timeliness and consistency.
By detecting changes in the firmware flashing tool library, updating the instruction template library and instruction library, and establishing the association between the firmware flashing tool, instruction template, and firmware flashing instruction, automatic synchronous updates are achieved.
It improves the efficiency of generating and updating firmware refresh commands when the refresh tool changes, avoids command failure due to tool changes, and improves generation efficiency and accuracy.
Smart Images

Figure CN120670011B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of servers, and more specifically, to a method and apparatus for updating firmware flashing instructions, a storage medium, and an electronic device. Background Technology
[0002] In the server manufacturing industry, customers have increasingly diverse customization needs for server components. Components with firmware, such as hard drives and network cards, often have firmware versions that do not meet customer requirements, necessitating firmware updates to meet production needs.
[0003] In related technologies, firmware update commands mainly rely on manual generation: the planning engineer first initiates the update request, specifying the components to be updated and the target firmware version; after receiving the request, the component engineer manually compiles the corresponding update tools and operation steps into firmware update commands and sends them to the server production line. However, this method has obvious limitations: each update requires reorganizing the update tools and steps according to the requirements, and once the update tools are upgraded or the steps are changed, the previously issued firmware update commands will become invalid and must be regenerated. This cannot meet the timeliness of update requirements, and inconsistencies in firmware update commands are easily caused by differences in manual operation, affecting production efficiency.
[0004] No effective solution has yet been proposed to address the technical issues of low efficiency in generating firmware update commands in related technologies. Summary of the Invention
[0005] This application provides a method and apparatus for updating firmware update instructions, a storage medium, and an electronic device to at least solve the technical problem of low generation efficiency of firmware update instructions in related technologies.
[0006] According to one embodiment of the present application, a firmware update method is provided, comprising:
[0007] The system detects changes to reference flashing tools in the firmware flashing tool library. The firmware flashing tool library stores firmware flashing tools, which are the flashing tools called when flashing the firmware of server components.
[0008] When a change message is detected indicating that the reference refresh tool should be changed to a candidate refresh tool, the reference instruction template corresponding to the reference refresh tool in the instruction template library is updated according to the reference refresh tool and the candidate refresh tool to obtain an instruction template library that stores candidate instruction templates. The instruction template library is used to store instruction templates, and the instruction templates are used to indicate the calling method of the firmware refresh tool used to generate the instruction template during the firmware refresh process of the server component. The candidate instruction templates are used to indicate the calling method of the candidate refresh tool during the firmware refresh process of the server component.
[0009] Based on the reference instruction template and the candidate instruction template, the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library is replaced with the candidate instruction template to obtain an instruction library that stores candidate instructions. The instruction library is used to store firmware refresh instructions, and the firmware refresh instructions record the instruction template and firmware refresh information.
[0010] According to another embodiment of the present application, a firmware update instruction update apparatus is also provided, comprising:
[0011] The first detection module is used to detect the change information of the reference flashing tools in the firmware flashing tool library. The firmware flashing tool library is used to store firmware flashing tools, which are the flashing tools called when flashing the firmware of the server components of the server.
[0012] The update module is used to update the reference instruction template corresponding to the reference refresh tool in the instruction template library according to the reference refresh tool and the candidate refresh tool when the change information is detected to indicate that the reference refresh tool has been changed to the candidate refresh tool. The update module obtains an instruction template library that stores candidate instruction templates. The instruction template library is used to store instruction templates. The instruction templates are used to indicate the calling method of the firmware refresh tool used to generate the instruction template during the firmware refresh process of the server component. The candidate instruction templates are used to indicate the calling method of the candidate refresh tool during the firmware refresh process of the server component.
[0013] The replacement module is used to replace the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library with the candidate instruction template according to the reference instruction template and the candidate instruction template, so as to obtain an instruction library storing candidate instructions. The instruction library is used to store firmware refresh instructions, and the firmware refresh instructions record the instruction template and firmware refresh information.
[0014] This application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the update method of any of the above-described firmware refresh instructions.
[0015] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the update method of any of the above-described firmware refresh instructions.
[0016] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the update method of any of the above-described firmware refresh instructions.
[0017] This application describes a method for updating a firmware update tool library to a candidate update tool upon detecting a change from a reference update tool to a candidate update tool. The method updates the reference instruction template corresponding to the reference update tool in the instruction template library based on the reference update tool and the candidate update tool, resulting in an instruction template library storing candidate instruction templates. This instruction template library stores instruction templates, which indicate how the firmware update tool used to generate the instruction template is invoked during firmware update of the server component. The candidate instruction templates indicate how the candidate update tool is invoked during firmware update of the server component. Furthermore, based on the reference instruction template and the candidate instruction templates, the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library is replaced with the candidate instruction template, resulting in an instruction library storing candidate instructions. This instruction library stores firmware update instructions, which record instruction templates and firmware update information. In other words, when a change in the reference refresh tool is detected, the reference instruction templates associated with the reference refresh tool in the instruction template library are updated to obtain candidate instruction templates. Then, all reference instructions in the instruction library that record this reference instruction template are updated to obtain candidate instructions. This avoids the situation in related technologies where refresh instructions become invalid due to a change in the refresh tool, requiring a re-initiation of the refresh request and regeneration of the firmware refresh instructions. By establishing and utilizing the correlation between the firmware refresh tool, instruction templates, and firmware refresh instructions, the above method achieves automatic synchronous updates of relevant instruction templates and firmware refresh instructions after a change in the refresh tool. This improves the generation and updating efficiency of firmware refresh instructions in the event of a refresh tool change. Therefore, it can solve the technical problem of low generation efficiency of firmware refresh instructions in related technologies, achieving the technical effect of improving the generation efficiency of firmware refresh instructions. Attached Figure Description
[0018] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a hardware structure block diagram of a computer device for a firmware update command update method according to an embodiment of this application.
[0020] Figure 2 This is a flowchart of a firmware update method according to an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of a modular structure of a firmware update instruction according to an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of an instruction template identifier according to an embodiment of this application;
[0023] Figure 5 This is a schematic diagram of a process for generating firmware update instructions according to an embodiment of this application;
[0024] Figure 6 This is a structural block diagram of an update device for firmware refresh instructions according to an embodiment of this application;
[0025] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0027] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0028] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] The methods and embodiments provided in this application can be executed on a server device or a similar computing device. Taking running on a server device as an example, Figure 1 This is a hardware structure block diagram of a computer device for a firmware update command method according to an embodiment of this application. For example... Figure 1 As shown, the server device may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The server device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the server equipment described above. For example, the server equipment may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0030] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the firmware refresh instruction update method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to server devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0032] This embodiment provides a method for updating firmware flashing commands. Figure 2 This is a flowchart of a firmware flashing instruction update method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0033] Step S12: Detect the change information of the reference refresh tool in the firmware refresh tool library. The firmware refresh tool library is used to store firmware refresh tools, which are refresh tools called when refreshing the server components of the server.
[0034] Step S14: When a change message is detected indicating that the reference refresh tool has been changed to a candidate refresh tool, the reference instruction template corresponding to the reference refresh tool in the instruction template library is updated according to the reference refresh tool and the candidate refresh tool to obtain an instruction template library that stores candidate instruction templates. The instruction template library is used to store instruction templates, and the instruction templates are used to indicate the calling method of the firmware refresh tool used to generate the instruction template during the firmware refresh process of the server component. The candidate instruction templates are used to indicate the calling method of the candidate refresh tool during the firmware refresh process of the server component.
[0035] Step S16: Based on the reference instruction template and the candidate instruction template, replace the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library with the candidate instruction template to obtain an instruction library that stores candidate instructions. The instruction library is used to store firmware refresh instructions, and the firmware refresh instructions record the instruction template and firmware refresh information.
[0036] Optionally, in this embodiment, Figure 3 This is a schematic diagram of a modular structure of a firmware update instruction according to an embodiment of this application, as shown below. Figure 3 As shown, firmware refresh instructions can be divided into fixed modules, semi-fixed modules, and variable modules, but are not limited to these. Fixed modules indicate fixed information in the firmware refresh instructions, such as the template architecture and header / footer format, including the basic structure, start and end identifiers, which remain unchanged during instruction generation and updating. Semi-fixed modules indicate information related to the refresh tool, calling method, and execution steps in the firmware refresh instructions, corresponding to the interface type, connection mode, and server architecture of the server components. Variable modules indicate the firmware refresh information of the server components, which may include, but are not limited to, the encoding before and after the component refresh, the firmware version before and after the component refresh, the firmware file path, and the connection mode and architecture type of the component. The firmware refresh information changes dynamically according to specific refresh requirements.
[0037] Optionally, in this embodiment, the server components may be, but are not limited to, hardware modules or components with firmware in the server, such as: motherboard BIOS (Basic Input / Output System), hard disk, RAID (Redundant Array of Independent Disks) card or network card, etc.
[0038] Optionally, in this embodiment, the firmware update method can be applied, but is not limited to, a Product Lifecycle Management (PLM) system, a server management platform, or a data center operation and maintenance system. This embodiment uses the firmware update method applied to a PLM system as an example, but it does not limit the application scenarios of the aforementioned firmware update method.
[0039] Optionally, in this embodiment, the firmware refresh tool library, instruction template library, and instruction library may be stored in the PLM system in the form of storage space or a database, but are not limited to. The PLM system may store the information of the firmware refresh tool library, instruction template library, and instruction library through a relational database. The firmware refresh tool library may store executable program files or toolkits of multiple firmware refresh tools, but are not limited to. The instruction template library may store multiple instruction templates, as well as information such as template identifier, associated tool identifier, and calling parameter specifications for each instruction template. Each instruction template may include, but is not limited to, fixed modules and semi-fixed modules for generating firmware refresh instructions. The instruction library may store, but is not limited to, all firmware refresh instructions generated by the PLM system. Each entry corresponds to one firmware refresh instruction and includes information such as instruction identifier, associated template identifier, and firmware refresh information. The firmware refresh information may include, but is not limited to, variable modules.
[0040] Optionally, in this embodiment, the change information of the reference flashing tool in the firmware flashing tool library can be detected by the following steps, but not limited to: scanning the tool information of all firmware flashing tools in the firmware flashing tool library at a fixed period, such as version identifier, file feature value, modification time, etc.; comparing the currently scanned tool information with the historical records; if the comparison shows that the tool information of a certain tool (equivalent to the reference flashing tool) has changed, it is determined that the tool has changed, and the change information has been detected.
[0041] Optionally, in this embodiment, the tool information of the firmware flashing tool may be manually edited and maintained, such as engineers manually updating the version identifier, modification instructions, and other information according to the upgrade status of the firmware flashing tool; or it may be automatically updated by the system, such as when the tool is uploaded to the firmware flashing tool library, the system automatically calculates and records the file feature value and collects the upload time as the modification time, etc.
[0042] Optionally, in this embodiment, the reference instruction template corresponding to the reference refresh tool in the instruction template library can be updated through, but is not limited to, the following steps: searching for an instruction template (i.e., a reference instruction template) associated with the reference refresh tool in the instruction template library; obtaining the functional differences between the reference refresh tool and the candidate refresh tool, including added, deleted, or modified functional points and calling requirements; adjusting the reference instruction template according to the above functional differences to adapt to the candidate refresh tool; and using the adjusted template as a candidate instruction template, associating it with the candidate refresh tool, and storing it in the instruction template library. Through the above update method, the instruction template library always remains synchronized with the latest firmware refresh tool, ensuring that the stored instruction templates can dynamically match changes in the firmware refresh tool.
[0043] Optionally, in this embodiment, the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library can be replaced with the candidate instruction template through the following steps, but not limited to: retrieving all firmware refresh instructions (equivalent to reference instructions) with template identifiers associated with reference instruction templates in the instruction library, replacing the template identifiers in all retrieved firmware refresh instructions with the template identifiers of candidate instruction templates, and replacing the content related to the reference refresh tool in the instruction with the content related to the candidate refresh tool, and finally forming a new firmware refresh instruction (equivalent to candidate instruction) and saving it to the instruction library, while deleting the original firmware refresh instruction (equivalent to reference instruction).
[0044] In this embodiment, when a change in the reference refresh tool is detected, the reference instruction templates associated with the reference refresh tool in the instruction template library are updated to obtain candidate instruction templates. Then, all reference instructions in the instruction library that record this reference instruction template are updated to obtain candidate instructions. This avoids the situation in related technologies where a refresh instruction becomes invalid due to a change in the refresh tool, requiring a re-initiation of the refresh request and regeneration of the firmware refresh instruction. By establishing and utilizing the correlation between the firmware refresh tool, instruction templates, and firmware refresh instructions, the above method achieves automatic synchronous updates of relevant instruction templates and firmware refresh instructions after a change in the refresh tool. This improves the generation and updating efficiency of firmware refresh instructions in the event of a change in the refresh tool, thereby achieving the technical effect of improving the generation efficiency of firmware refresh instructions and solving the technical problem of low generation efficiency of firmware refresh instructions in related technologies.
[0045] As an optional approach, based on the reference refresh tool and the candidate refresh tool, the reference instruction template corresponding to the reference refresh tool in the instruction template library is updated to obtain an instruction template library storing candidate instruction templates, including:
[0046] S21, Search the instruction template library for an instruction template that is associated with the reference refresh tool as a reference instruction template, wherein the association relationship is used to indicate that the reference instruction template was generated using the reference refresh tool;
[0047] S22, Update the reference instruction template according to the candidate refresh tool to obtain the instruction template library that stores the candidate instruction templates.
[0048] Optionally, in this embodiment, the method for finding instruction templates associated with the reference refresh tool may include, but is not limited to, comparing the associated tool identifiers of instruction templates stored in the instruction template library with the tool identifiers of the reference refresh tool, and determining the instruction templates that match the comparison as reference instruction templates. Reference instruction templates may be, but are not limited to, instruction templates in the instruction template library whose associated tool identifiers match the tool identifiers of the reference refresh tool.
[0049] Optionally, in this embodiment, the reference instruction template can be updated according to the candidate refresh tool through the following steps, but not limited to: locating the semi-fixed module in the reference instruction template; obtaining the difference information between the candidate refresh tool and the reference refresh tool, such as step additions / reductions, logic adjustments, etc.; modifying the semi-fixed module according to the difference information, such as supplementing new calling specifications, adding / reducing functional steps corresponding to the candidate refresh tool, adjusting the tool execution order, etc.; combining the modified semi-fixed module with the fixed module to generate a candidate instruction template; establishing the association between the candidate instruction template and the candidate refresh tool to obtain an instruction template library storing the candidate instruction templates, thereby realizing the update from the reference instruction template to the candidate instruction template in the instruction template library.
[0050] In this embodiment, by searching for the reference instruction template associated with the reference refresh tool, it is ensured that all instruction templates that depend on the tool are included in the update scope; then, the semi-fixed modules related to the reference refresh tool in the updated reference instruction template are updated according to the changed candidate refresh tool, thereby achieving the adaptation of the instruction template with the updated refresh tool. This avoids the situation in related technologies where the instruction template becomes invalid due to the change of refresh tool and the need to regenerate the refresh instruction, thus improving the update efficiency of firmware refresh instructions in the scenario of tool change.
[0051] As an optional approach, based on the reference instruction template and the candidate instruction template, the reference instruction template recorded in the reference instructions corresponding to the reference instruction template in the instruction library is replaced with the candidate instruction template to obtain an instruction library storing candidate instructions, including:
[0052] S31, Search the instruction library for the instruction that records the reference instruction template and use it as the reference instruction;
[0053] S32, replace the reference instruction template recorded in the reference instruction with the candidate instruction template to obtain an instruction library that stores the candidate instructions.
[0054] Optionally, in this embodiment, the method for finding the instruction that records the reference instruction template may include, but is not limited to: comparing the associated template identifier of the firmware refresh instruction stored in the instruction library with the template identifier of the reference instruction template, and determining the firmware refresh instruction that matches the comparison as the reference instruction. The reference instruction may be, but is not limited to, a firmware refresh instruction whose associated template identifier in the instruction library matches the template identifier of the reference instruction template.
[0055] Optionally, in this embodiment, the reference instruction template recorded in the reference instruction can be replaced with a candidate instruction template through the following steps, but not limited to: locating the identification information associated with the reference instruction template in the reference instruction and updating the identification information to the identification information of the candidate instruction template; simultaneously, updating the content in the reference instruction corresponding to the semi-fixed module, such as tool call logic and execution step description, according to the differences between the candidate instruction template and the reference instruction template, to ensure that the instruction content matches the candidate instruction template; controlling the firmware refresh information in the reference instruction (such as the encoding before and after the refresh, firmware version number, etc.) to remain unchanged, determining the modified reference instruction as a candidate instruction, obtaining an instruction library storing candidate instructions, and realizing the update from reference instructions to candidate instructions in the instruction library.
[0056] In this embodiment, by retrieving reference instructions associated with the reference instruction template, it is ensured that all instructions generated based on the template are included in the update scope. Then, the content in the reference instructions corresponding to the semi-fixed modules is adjusted according to the candidate instruction template. While retaining the firmware refresh information in the refresh instructions, the refresh instructions are adapted to the new template, thereby achieving batch updates of refresh instructions. This ensures that all instructions that have become invalid due to changes in the refresh tool can be synchronized to the latest version in a timely manner, avoiding the situation in related technologies where historical instructions become invalid due to refresh tool upgrades and require re-initiating refresh requests. At the same time, it saves the repetitive work of manually modifying each one, effectively improving the accuracy, timeliness, and update efficiency of refresh instructions.
[0057] As an alternative approach, the method also includes:
[0058] S41, Receive instruction acquisition request, wherein the instruction acquisition request is used to request the acquisition of target refresh instruction, and the target refresh instruction is used to instruct a firmware refresh operation to be performed on the target server component;
[0059] S42, responding to the instruction acquisition request, search for a target instruction template that matches the target component information of the target server component from the instruction template currently stored in the instruction template library. The target component information is used to instruct the target server component to call the refresh tool when performing firmware refresh.
[0060] S43, if the target instruction template is found in the instruction template currently stored in the instruction template library, the target refresh instruction is generated based on the target firmware refresh information of the target server component and the target instruction template.
[0061] Optionally, in this embodiment, the instruction retrieval request may be, but is not limited to, a request submitted by the engineer through the PLM system's operation interface. The instruction retrieval request may, but is not limited to, carry target component information and target firmware refresh information. The target component information may, but is not limited to, recording the hardware characteristics of the server component. Different server components with different hardware characteristics use different refresh tools when performing firmware refreshes. The target firmware refresh information may, but is not limited to, recording dynamic information related to the specific refresh requirement, such as: the encoding before and after the component refresh, the firmware version before and after the component refresh, the firmware file path, etc.
[0062] Optionally, in this embodiment, in response to the received instruction acquisition request, each instruction template stored in the instruction template library is traversed, and instruction templates that match the target component information are selected from the corresponding component information and instruction templates as target instruction templates. When a target instruction template is found, according to the target firmware refresh information, the variable module content and template content are combined according to the fixed module structure and semi-fixed module logic of the target instruction template to generate a target refresh instruction.
[0063] Optionally, in this embodiment, after generating the target refresh instruction, the method further includes: generating an upgrade compressed package according to the target refresh instruction, the upgrade compressed package including: a verification file, a digital signature of the verification file, refresh tools used for different configurations and platforms, a refreshed firmware file, and instruction documentation corresponding to the refresh command and refresh steps; and transmitting the upgrade compressed package to the server production line.
[0064] In this embodiment, a target instruction template matching the component information of the refresh material (equivalent to the target server component) is selected from the instruction template library, and then a target refresh instruction is generated in combination with the firmware refresh information. This realizes the automated generation of firmware refresh instructions, avoids the process of manually compiling refresh requirements and refresh tools to generate refresh instructions in related technologies, reduces manual intervention, improves the efficiency and accuracy of firmware refresh instruction generation, and effectively ensures the timeliness of firmware refresh for server components.
[0065] As an optional approach, a target instruction template matching the target component information of the target server component can be searched from the instruction template library currently stored in the instruction template library, including:
[0066] S51, extract the interface parameters, configuration parameters and architecture parameters recorded in the target component information, wherein the interface parameters are used to indicate the interface type of the target server component, the configuration parameters are used to indicate the connection mode of the target server component, and the architecture parameters are used to indicate the architecture type of the server.
[0067] S52 generates lookup fields based on interface parameters, configuration parameters, and architecture parameters;
[0068] S53, search for the target instruction template from the instruction templates currently stored in the instruction template library based on the search field.
[0069] Optionally, in this embodiment, the interface parameters may include, but are not limited to, the physical interface type of the target server component, such as SATA (Serial Advanced Technology Attachment), SAS (Serial Attached Small Computer System Interface), NVME (Non-Volatile Memory Host Controller Interface Specification), etc.; the configuration parameters may include, but are not limited to, the connection topology of the component, such as direct connection mode, RAID card mode, etc.; the architecture parameters may include, but are not limited to, the hardware architecture of the server, such as x86, ARM, etc.
[0070] Optionally, in this embodiment, the lookup field can be generated based on interface parameters, configuration parameters, and architecture parameters through, but is not limited to, the following steps: combining the extracted interface parameters, configuration parameters, and architecture parameters according to a preset format, such as using key-value pairs, like "Interface type: SAS; Connection mode: Direct connection; Architecture type: X86", or using underscores to connect them, like "SAS_Direct connection_X86", thereby forming a lookup field that uniquely identifies the characteristics of the target server component.
[0071] Optionally, in this embodiment, the method of finding the target instruction template based on the search field may include, but is not limited to, traversing the template identifier of each instruction template in the instruction template library, wherein the template identifier is set according to the characteristics such as interface parameters, configuration parameters and architecture parameters of the server component to which the instruction template is adapted, comparing the search field with the characteristic fields of each instruction template, and if the two match, then the instruction template is determined as the target instruction template.
[0072] In this embodiment, by extracting three types of hardware feature parameters—interface, configuration, and architecture—from the target component information, corresponding lookup fields are generated. Then, based on these lookup fields, the corresponding target instruction template is accurately matched from the instruction template library. This method achieves rapid location and accurate matching of instruction templates, ensuring that the selected instruction templates are highly compatible with the target component. It effectively avoids template selection errors caused by parameter omissions or matching deviations, thereby reducing firmware refresh failures and improving the accuracy of firmware refresh instructions.
[0073] As an optional approach, the target instruction template can be located from the currently stored instruction templates in the instruction template library based on the search field, including:
[0074] S61, Detect the matching parameters of the search field and each instruction template in the instruction template library currently stored. The matching parameters are used to indicate the degree of matching between the instruction template identifier corresponding to the instruction template and the search field. The larger the matching parameter, the higher the degree of matching between the instruction template identifier and the search field.
[0075] S62, if it is detected that there is a matching parameter in the instruction template currently stored in the instruction template library that is greater than the preset parameter threshold, the instruction template corresponding to the matching parameter is determined as the target instruction template.
[0076] Optionally, in this embodiment, the matching parameters between the search word and each instruction template segment can be detected by calculating the similarity between the search field and the template identifier of each instruction template.
[0077] Optionally, in this embodiment, the preset parameter threshold can be set according to the actual application scenario. For example, according to the accuracy requirements of server component firmware refresh, the threshold can be set to 0.8. If the matching parameter of a certain instruction template exceeds the threshold, it means that it is highly compatible with the search field and can be determined as the target instruction template. If the matching parameters of multiple instruction templates all exceed the threshold, the instruction template with the largest matching parameter is selected as the target instruction template.
[0078] In this embodiment, by quantifying the matching degree between the search field and each instruction template, and setting a preset parameter threshold as a filtering standard, the accurate selection of instruction templates is ensured, effectively preventing deviations in refresh instruction generation caused by template errors, and significantly improving the accuracy of instruction template matching.
[0079] As an optional approach, after detecting the matching parameters of each instruction template in the currently stored instruction template library with the lookup field, the method further includes:
[0080] S71, if it is detected that there is no instruction template with matching parameters greater than the preset parameter threshold in the instruction template currently stored in the instruction template library, obtain the target refresh tool and the calling method of the target refresh tool corresponding to the interface parameters, configuration parameters and architecture parameters;
[0081] S72, generate a target instruction template based on the target refresh tool and the calling method of the target refresh tool, and store the target instruction template in the instruction template library.
[0082] Optionally, in this embodiment, the steps of obtaining the target flashing tool and the calling method of the target flashing tool may include, but are not limited to: selecting firmware flashing tools that are compatible with the interface parameters, configuration parameters and architecture parameters from the firmware flashing tool library as target flashing tools; and then, in conjunction with the official documentation, historical call records or preset tool call specifications of the firmware flashing tool, extracting its calling method, including the flashing command and command execution order.
[0083] Optionally, in this embodiment, after obtaining the target refresh tool and its invocation method, the target refresh tool and its invocation method are integrated into a semi-fixed module according to the fixed module structure of the instruction template. Then, the fixed module and the semi-fixed module are combined to obtain the target instruction template. Subsequently, an associated tool identifier is added to the target instruction template, wherein the associated tool identifier is the identifier of the target refresh tool. Finally, the target instruction template is stored in the instruction template library and combined according to a preset format, such as using underscores to connect interface parameters, configuration parameters, and architecture parameters, to generate the template identifier of the target instruction template "interface parameters_configuration parameters_architecture parameters". This allows subsequent requests for similar instructions to directly call the target instruction template through the template identifier of the target instruction template, thereby improving instruction generation efficiency.
[0084] In this embodiment, when a target instruction template is not found in the instruction template library, the system automatically obtains the appropriate target refresh tool and its invocation method, thereby generating a new target instruction template and storing it in the instruction template library. This approach enables dynamic expansion and autonomous improvement of instruction templates, avoiding interruptions in instruction generation due to missing templates while enhancing system scalability. It further strengthens the automation level of the firmware refresh instruction generation process, ensuring efficient response to diverse server component firmware refresh requirements.
[0085] As an optional approach, before searching for a target instruction template that matches the target component information of the target server component from the instruction templates currently stored in the instruction template library, the method further includes:
[0086] S81, acquire multiple reference server components that have completed firmware flashing;
[0087] S82 generates an instruction template for each reference server component based on the refresh tool called by each reference server component during the firmware refresh process and the calling method of the refresh tool, and generates a reference identifier for each reference server component based on the interface type, connection mode and architecture type of each reference server component.
[0088] S83, establish the correspondence between reference identifiers and instruction templates corresponding to the same reference server component;
[0089] S84 constructs an instruction template library based on the correspondence between multiple reference server components. The instruction template library records the corresponding reference identifiers and instruction templates.
[0090] Optionally, in this embodiment, the reference server component may be, but is not limited to, a server component that has completed firmware update. The step of obtaining multiple reference server components that have completed firmware update may include, but is not limited to, filtering out server components that have completed firmware update and whose process is without abnormality from historical firmware update records, covering different interface types (such as SATA, SAS), connection modes (such as direct connection, cascading, etc.) and architecture types (such as X86, ARM, etc.).
[0091] Optionally, in this embodiment, the steps of generating instruction templates and reference identifiers may include, but are not limited to, the following: for each reference server component, extract the refresh tool and specific calling method (including refresh commands and command execution order, etc.) actually called during its refresh process, generate corresponding instruction templates according to fixed modules and semi-fixed modules, and generate reference identifiers "interface type_connection mode_architecture type" according to the interface type, connection mode and architecture type of the reference server component in a preset format, such as using underscores to connect them, to identify the server component to which the instruction templates are applicable.
[0092] Optionally, in this embodiment, reference identifiers of the same reference server component are bound to instruction templates to form reference identifiers and instruction templates with corresponding relationships. Figure 4 This is a schematic diagram of the instruction template identifier according to an embodiment of this application, such as... Figure 4 As shown, the template identifier of each instruction template in the instruction template library is set according to the characteristics of the server component to which the instruction template is adapted, such as the interface parameters, configuration parameters, and architecture parameters. For example, the template record (equivalent to the template identifier) of an instruction template adapted to a server component with the interface parameter "interface 1", the configuration parameter "configuration 1", and the architecture parameter "platform 1" is "interface 1 + configuration 1 + platform 1".
[0093] In this embodiment, by extracting the refresh tool, calling method, and hardware characteristics from the reference server component that has completed firmware refresh, corresponding instruction templates and reference identifiers are generated, and the correspondence between the two is constructed to form an instruction template library. This achieves the standardized initialization construction of the template library and lays a data foundation for the accurate search of target instruction templates in the future.
[0094] As an optional approach, a target refresh instruction is generated based on the target firmware refresh information and target instruction template of the target server component, including:
[0095] S91, locate the placeholder for recording firmware refresh information from the target instruction template;
[0096] S92 writes the target firmware refresh information into the placeholder and obtains the target refresh command.
[0097] Optionally, in this embodiment, placeholders corresponding to firmware refresh information are pre-set in the fixed module and semi-fixed module of the target instruction template, such as "{firmware version before refresh}", "{firmware version after refresh}", "{firmware file path}", etc. The placeholders are used to mark the positions where firmware refresh information needs to be filled.
[0098] Optionally, in this embodiment, if the target firmware refresh information records the firmware version "V1.0.0" before refresh, the firmware version "V1.0.0" after refresh, and the firmware file path " / firmware / update.bin", the target firmware refresh information can be written into the placeholders "{firmware version before refresh}", "{firmware version after refresh}", and "{firmware file path}" to form a complete target refresh instruction.
[0099] In this embodiment, by accurately locating placeholders that record firmware refresh information from the target instruction template and then writing the target firmware refresh information into these placeholders, the instruction template and dynamic information are rapidly integrated, thereby efficiently generating the target refresh instruction. This approach simplifies the instruction generation process, eliminating redundant operations that repeatedly construct the instruction framework. Furthermore, by precisely matching standardized placeholders with dynamic information, the consistency of the generated instructions in format and the accuracy of their content are ensured.
[0100] Optionally, in this embodiment, in order to better understand the process of generating firmware update instructions using the above firmware update instruction method, the process of generating firmware update instructions will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solutions of the embodiments of this application.
[0101] This embodiment provides a method for updating firmware flashing commands. Figure 5This is a schematic diagram illustrating a process for generating firmware update instructions according to an embodiment of this application, as shown below. Figure 5 As shown, the main steps include the following:
[0102] Step S501: The planning engineer fills in the requirements (variable module) through the PLM system's operation interface, including dynamic information such as the material's code before and after the refresh, the firmware version before and after the refresh, and the platform and connection mode corresponding to the material, and submits the firmware refresh requirement (equivalent to an instruction retrieval request), and executes S502.
[0103] Step S502: The system parses the received requirements and automatically identifies the matching semi-fixed module (equivalent to the instruction template) based on the material interface, configuration and platform information (equivalent to the target component information), and simultaneously triggers S503 and S504;
[0104] Step S503: Based on the identified semi-fixed module and required parameters, the system automatically determines the required flashing tool, matching firmware file and verification file (such as MD5 value file), and stores these files in a preset fixed path (such as a directory specified on the server), and executes S505.
[0105] Step S504: The system retrieves the fixed module, combines the variable parameters in the requirements (such as version number and target component code) and the instruction template record of the semi-fixed module, automatically fills in and combines them to generate a complete firmware flashing instruction, and executes S505.
[0106] Step S505: The system packages the generated refresh command, the refresh tool stored in a fixed path, the firmware file, the verification file, and the operation instruction document into an upgrade compressed package, and executes S506;
[0107] Step S506: The system automatically generates a to-do task in the PLM system based on the upgrade compressed package information, and triggers an email to remind the component engineer to review it, and then executes S507;
[0108] Step S507: The component engineer logs into the system to view the contents of the upgrade package, reviews the contents of the upgrade package, and performs a second confirmation. If the confirmation is successful, proceed to S508; if a problem is found (such as incorrect parameters or incompatible tools), proceed to S509.
[0109] Step S508: The confirmed firmware update instruction package and task order are sent to the production line terminal, and the production line operators perform the firmware update operation according to the instructions.
[0110] Step S509: The component engineer confirms the reason for the failure (such as incorrect version number or mismatched component model) and reports it back to the system. The planning engineer modifies the requirements (such as variable modules) based on the feedback, resubmits after modification, and returns to execute S502.
[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0112] Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0113] This embodiment also provides a firmware update instruction update device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0114] Figure 6 This is a structural block diagram of a firmware update device according to an embodiment of this application; as shown... Figure 6 As shown, it includes:
[0115] The first detection module 602 is used to detect the change information of the reference flashing tool in the firmware flashing tool library. The firmware flashing tool library is used to store firmware flashing tools, which are flashing tools called when the server component of the server is flashed.
[0116] The update module 604 is used to update the reference instruction template corresponding to the reference refresh tool in the instruction template library according to the reference refresh tool and the candidate refresh tool when the change information is detected to indicate that the reference refresh tool has been changed to the candidate refresh tool, so as to obtain an instruction template library storing candidate instruction templates. The instruction template library is used to store instruction templates, and the instruction templates are used to indicate the calling method of the firmware refresh tool used to generate the instruction template during the firmware refresh process of the server component. The candidate instruction templates are used to indicate the calling method of the candidate refresh tool during the firmware refresh process of the server component.
[0117] The replacement module 606 is used to replace the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library with the candidate instruction template according to the reference instruction template and the candidate instruction template, so as to obtain an instruction library storing the candidate instructions. The instruction library is used to store firmware refresh instructions, and the firmware refresh instructions record the instruction template and firmware refresh information.
[0118] In one exemplary embodiment, the updating module includes:
[0119] The first search unit is used to search the instruction template library for an instruction template that is associated with the reference refresh tool as a reference instruction template. The association relationship is used to indicate that the reference instruction template was generated using the reference refresh tool.
[0120] The update unit is used to update the reference instruction template according to the candidate refresh tool, so as to obtain the instruction template library that stores the candidate instruction templates.
[0121] In one exemplary embodiment, the replacement module includes:
[0122] The second search unit is used to search for instructions that record reference instruction templates from the instruction library as reference instructions;
[0123] The replacement unit is used to replace the reference instruction template recorded in the reference instructions with the candidate instruction template, thereby obtaining an instruction library that stores the candidate instructions.
[0124] In one exemplary embodiment, the apparatus further includes:
[0125] The receiving module is used to receive instruction acquisition requests, wherein the instruction acquisition request is used to request the acquisition of a target refresh instruction, and the target refresh instruction is used to instruct a firmware refresh operation to be performed on the target server component.
[0126] The response module is used to respond to command acquisition requests and search for a target command template that matches the target component information of the target server component from the command template library currently stored in the command template library. The target component information is used to instruct the target server component to call the refresh tool when performing firmware refresh.
[0127] The first generation module is used to generate a target refresh instruction based on the target firmware refresh information of the target server component and the target instruction template when the target instruction template is found in the instruction template currently stored in the instruction template library.
[0128] In one exemplary embodiment, the response module includes:
[0129] The extraction unit is used to extract the interface parameters, configuration parameters and architecture parameters recorded in the target component information. The interface parameters are used to indicate the interface type of the target server component, the configuration parameters are used to indicate the connection mode of the target server component, and the architecture parameters are used to indicate the architecture type of the server.
[0130] The generation unit is used to generate lookup fields based on interface parameters, configuration parameters, and architecture parameters;
[0131] The third search unit is used to search for the target instruction template from the instruction templates currently stored in the instruction template library based on the search field.
[0132] In one exemplary embodiment, the third search unit is further configured to:
[0133] The system checks the matching parameters between the search field and each instruction template currently stored in the instruction template library. The matching parameters indicate the degree of matching between the instruction template identifier corresponding to the instruction template and the search field. The larger the matching parameter, the higher the degree of matching between the instruction template identifier and the search field.
[0134] If a matching parameter greater than a preset parameter threshold is detected in the instruction template currently stored in the instruction template library, the instruction template corresponding to the matching parameter is determined as the target instruction template.
[0135] In one exemplary embodiment, the apparatus further includes:
[0136] The second detection module is used to, after detecting the matching parameters of each instruction template in the instruction template currently stored in the instruction template library with the search field, obtain the target refresh tool and the calling method of the target refresh tool corresponding to the interface parameters, configuration parameters and architecture parameters if it is detected that there is no instruction template in the instruction template currently stored in the instruction template library with matching parameters greater than the preset parameter threshold.
[0137] The second generation module is used to generate target instruction templates based on the target refresh tool and the calling method of the target refresh tool, and to store the target instruction templates in the instruction template library.
[0138] In one exemplary embodiment, the apparatus further includes:
[0139] The acquisition module is used to acquire multiple reference server components that have completed firmware flashing before searching for a target instruction template that matches the target component information of the target server component from the instruction templates currently stored in the instruction template library.
[0140] The third generation module is used to generate an instruction template for each reference server component based on the refresh tool called by each reference server component during the firmware refresh process and the calling method of the refresh tool, and to generate a reference identifier for each reference server component based on the interface type, connection mode and architecture type of each reference server component.
[0141] The first building module is used to build the correspondence between reference identifiers and instruction templates corresponding to the same reference server component;
[0142] The second construction module is used to construct an instruction template library based on the correspondence between multiple reference server components. The instruction template library records reference identifiers and instruction templates with corresponding relationships.
[0143] In one exemplary embodiment, the first generation module includes:
[0144] The positioning unit is used to locate the placeholder for recording firmware refresh information from the target instruction template;
[0145] The writing unit is used to write the target firmware refresh information into the placeholder to obtain the target refresh instruction.
[0146] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0147] For a description of the features in the embodiment corresponding to the firmware update device for the firmware update instruction, please refer to the relevant description in the embodiment corresponding to the firmware update method for the firmware update instruction, which will not be repeated here.
[0148] Embodiments of this application also provide an electronic device. Figure 7 This is a schematic diagram of an electronic device according to an embodiment of this application, such as... Figure 7 As shown, the electronic device includes a memory and a processor, the memory storing a computer program, and the processor being configured to run the computer program to execute the steps in any of the firmware flashing instructions described above in the update method embodiment.
[0149] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0150] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0151] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the firmware flashing instruction update method embodiments described above when running.
[0152] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0153] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0154] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods in various embodiments of this application; the computer program product further includes a non-volatile computer-readable storage medium storing the computer program, which, when executed by a processor, implements the update method of the firmware refresh instruction in various embodiments of this application.
[0155] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0156] The above provides a detailed description of a firmware flashing instruction update method provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A firmware update method using a firmware flashing command, characterized in that, include: The system detects changes to reference refresh tools in the firmware refresh tool library, which stores firmware refresh tools that are invoked when refreshing the firmware of server components. When the change information is detected to indicate that the reference refresh tool has been changed to a candidate refresh tool, the reference instruction template corresponding to the reference refresh tool in the instruction template library is updated according to the reference refresh tool and the candidate refresh tool to obtain the instruction template library storing the candidate instruction templates. The instruction template library is used to store instruction templates, and the instruction templates are used to indicate the calling method of the firmware refresh tool used to generate the instruction template during the firmware refresh process of the server component. The candidate instruction templates are used to indicate the calling method of the candidate refresh tool during the firmware refresh process of the server component. Based on the reference instruction template and the candidate instruction template, the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library is replaced with the candidate instruction template to obtain the instruction library storing the candidate instructions. The instruction library is used to store firmware refresh instructions, and the firmware refresh instructions record the instruction template and firmware refresh information.
2. The method according to claim 1, characterized in that, The step of updating the reference instruction template corresponding to the reference refresh tool in the instruction template library according to the reference refresh tool and the candidate refresh tool, to obtain the instruction template library storing candidate instruction templates, includes: The instruction template that is associated with the reference refresh tool is found in the instruction template library and used as the reference instruction template, wherein the association is used to indicate that the reference instruction template was generated using the reference refresh tool; The reference instruction template is updated using the candidate refresh tool to obtain the instruction template library that stores the candidate instruction templates.
3. The method according to claim 1, characterized in that, The step of replacing the reference instruction template recorded in the reference instruction corresponding to the reference instruction template in the instruction library with the candidate instruction template, according to the reference instruction template and the candidate instruction template, to obtain the instruction library storing candidate instructions, includes: The instruction that records the reference instruction template is retrieved from the instruction library and used as the reference instruction; The reference instruction template recorded in the reference instruction is replaced with the candidate instruction template to obtain the instruction library that stores the candidate instructions.
4. The method according to claim 1, characterized in that, The method further includes: Receive instruction acquisition request, wherein the instruction acquisition request is used to request acquisition of target refresh instruction, and the target refresh instruction is used to instruct a firmware refresh operation to be performed on the target server component; In response to the instruction acquisition request, a target instruction template matching the target component information of the target server component is searched from the instruction template currently stored in the instruction template library. The target component information is used to instruct the target server component to call the refresh tool when performing firmware refresh. If the target instruction template is found in the instruction template currently stored in the instruction template library, the target refresh instruction is generated based on the target firmware refresh information of the target server component and the target instruction template.
5. The method according to claim 4, characterized in that, The step of searching for a target instruction template that matches the target component information of the target server component from the instruction templates currently stored in the instruction template library includes: Extract the interface parameters, configuration parameters, and architecture parameters recorded in the target component information, wherein the interface parameters are used to indicate the interface type of the target server component, the configuration parameters are used to indicate the connection mode of the target server component, and the architecture parameters are used to indicate the architecture type of the server; A lookup field is generated based on the interface parameters, the configuration parameters, and the architecture parameters; The target instruction template is searched from the instruction templates currently stored in the instruction template library based on the search field.
6. The method according to claim 5, characterized in that, The step of searching for the target instruction template from the instruction templates currently stored in the instruction template library according to the search field includes: The matching parameter of the search field with each instruction template in the instruction template library currently stored is detected. The matching parameter is used to indicate the degree of matching between the instruction template identifier corresponding to the instruction template and the search field. The larger the matching parameter, the higher the degree of matching between the instruction template identifier and the search field. If it is detected that there is a matching parameter greater than a preset parameter threshold in the instruction template currently stored in the instruction template library, the instruction template corresponding to the matching parameter is determined as the target instruction template.
7. The method according to claim 6, characterized in that, After detecting the matching parameters of each instruction template in the instruction template library currently stored with the search field, the method further includes: If it is detected that there is no instruction template in the instruction template library that matches a parameter greater than a preset parameter threshold, the target refresh tool and the calling method of the target refresh tool corresponding to the interface parameter, the configuration parameter and the architecture parameter are obtained. The target instruction template is generated based on the target refresh tool and the calling method of the target refresh tool, and the target instruction template is stored in the instruction template library.
8. The method according to claim 4, characterized in that, Before searching for a target instruction template that matches the target component information of the target server component from the instruction templates currently stored in the instruction template library, the method further includes: Obtain multiple reference server components that have completed firmware flashing; Based on the refresh tool invoked by each reference server component during firmware refresh and the method of invoking the refresh tool, an instruction template for each reference server component is generated, and a reference identifier for each reference server component is generated based on the interface type, connection mode, and architecture type of each reference server component. Establish a correspondence between reference identifiers and instruction templates corresponding to the same reference server component; The instruction template library is constructed based on the correspondence between the multiple reference server components, wherein the instruction template library records reference identifiers and instruction templates with the correspondence.
9. The method according to claim 4, characterized in that, The step of generating the target refresh instruction based on the target firmware refresh information of the target server component and the target instruction template includes: Locate the placeholder for recording firmware refresh information from the target instruction template; The target firmware refresh information is written into the placeholder to obtain the target refresh instruction.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the update method of firmware refresh instructions as claimed in any one of claims 1 to 9 when executing the computer program.
Citation Information
Patent Citations
Firmware version refreshing method, device and system and medium
CN112685067A
Firmware management method and device
CN119336359A