Firmware refreshing method, device, computer equipment and storage medium
By automatically sending firmware refresh configuration instructions, the problem of time and inconsistency in traditional BMC firmware refresh tests is solved, and efficient and stable firmware refresh tests are achieved, meeting the needs of multiple refresh tests of the server.
Patent Information
- Application Number
- CN202011302985.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-11-19
AI Technical Summary
The traditional BMC firmware refresh test method relies on manual operation, which is time-consuming and inefficient, and cannot meet the needs of multiple refresh tests of the server. The test instructions are not comprehensive, resulting in inconsistent stability tests.
By reading the instruction sequence set in the firmware refresh configuration file, parsing and automatically sending configuration instructions, the automatic refresh stress test of the firmware to be refreshed is realized, ensuring the consistency and comprehensiveness of each refresh process and improving testing efficiency.
It realizes automation of BMC firmware refresh test, ensures stability and comprehensiveness during multiple refreshes, significantly improves testing efficiency, and saves time and personnel costs.
Smart Images

Figure CN112506758B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of server testing, and in particular to a firmware refreshing method, device, computer equipment and storage medium. Background Art
[0002] In the server system, BIOS (Basic Input Output System) and BMC (Baseboard Management Controller) play a very important role. With the increase of the functions of BIOS and BMC, the stability requirements for BIOS and BMC are getting higher and higher. Therefore, it is necessary to test the stability of the BMC refresh function.
[0003] The traditional method for testing the BMC refresh function is to manually log in to the BMC web interface to perform firmware refresh. However, the manual refresh method is time-consuming and inefficient, and cannot meet the needs of multiple refresh tests on the server. Summary of the invention
[0004] Based on this, it is necessary to provide a firmware refresh method, device, computer equipment and storage medium to address the above technical problems.
[0005] A firmware updating method is applied to a first device, and comprises:
[0006] Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set;
[0007] According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
[0008] By adopting this method, configuration instructions are sent to the second device according to the instruction sequence set in the firmware refresh configuration file, and the firmware of the second device is automatically refreshed and stressed to avoid the incompleteness of the test instructions that occur during manual random sampling. The instruction sequence set in the firmware refresh configuration file is used to ensure the consistency of the firmware refresh test and the comprehensiveness of the firmware refresh function test during multiple refresh processes, while improving the efficiency of the firmware refresh stress test.
[0009] In one embodiment, the method further comprises:
[0010] receiving the refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes;
[0011] If the firmware refresh times meet a preset refresh times threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0012] By adopting this method, in the process of cyclically executing the instruction sequence set in the firmware configuration file, the firmware is refreshed again and again. When the preset number of firmware refreshes is met, it is determined that the firmware has a stable refresh function under the pressure of multiple refresh tests.
[0013] In one of the embodiments, sending configuration instructions in the instruction sequence to the second device whose firmware is to be refreshed in sequence according to the instruction sequence, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file, includes:
[0014] Sending a network diagnostic instruction to a second device to be flashed with firmware;
[0015] receiving first feedback information returned by the second device according to the network diagnostic instruction, and determining that the first device and the second device are connected to the network;
[0016] Sending a baseboard management controller webpage opening instruction to the second device;
[0017] receiving second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second device is opened successfully;
[0018] Sending an intelligent platform management interface connection instruction to the second device;
[0019] receiving third feedback information returned by the second device according to the intelligent platform management interface connection instruction, and determining that the intelligent platform management interface of the first device is connected to the intelligent platform management interface of the second device;
[0020] A firmware refresh instruction is sent to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
[0021] In this embodiment, by sending a network diagnostic instruction, a web page opening instruction, and an interface connection instruction to the second device in advance, it can be ensured that the BMC IP of the first device and the second device are connected, the BMC web can be logged in normally, and the BMC version information in the second device can be obtained normally, so as to complete the preparation before firmware refresh.
[0022] In one embodiment, the refresh information is basic firmware information, and the receiving of the refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes include:
[0023] Reading an instruction sequence set in the firmware refresh configuration file, parsing an instruction for obtaining basic firmware information in the instruction sequence set, and sending the instruction for obtaining basic firmware information to the second device;
[0024] Receiving the firmware basic information fed back after the firmware of the second device is refreshed, and comparing the firmware basic information with the firmware baseline information pre-stored in the firmware refresh configuration file;
[0025] If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware refresh of the second device is completed, and the firmware refresh times in the record are updated according to this firmware refresh process.
[0026] In this embodiment, the first device reads and parses the instruction sequence set in the firmware configuration file, and sends configuration instructions to the second device. When the second device performs a firmware refresh test according to the configuration instructions and feedbacks that the firmware refresh is completed each time, the number of firmware refreshes is recorded to ensure that a sufficient number of firmware refresh stress tests are completed.
[0027] In one embodiment, the refresh information is refresh failure information, and the method further includes:
[0028] Receive refresh failure information fed back by the second device, determine a refresh failure of the second device according to the refresh failure information, and output prompt information corresponding to the failure according to a correspondence between the refresh failure information and the failure type.
[0029] A firmware updating method, the method being applied to a second device, the method comprising:
[0030] Receiving a configuration instruction contained in a firmware configuration file sent by the first device;
[0031] According to the configuration instruction, a refresh version file is obtained and the firmware is refreshed according to the refresh version file to obtain a firmware refresh result;
[0032] According to the firmware update result, firmware update information is fed back to the first device.
[0033] In this embodiment, the second device automatically completes the corresponding refresh operations in sequence according to the configuration instructions in the received firmware configuration file: enters the refresh mode, obtains the refresh version firmware, verifies the refresh version firmware and the firmware refresh, and finally feeds back the firmware refresh result to the first device to implement the firmware refresh test, thereby ensuring the consistency of each firmware refresh process and saving time and personnel costs.
[0034] In one embodiment, the firmware is a baseboard management controller firmware, and the step of obtaining a refresh version file according to the configuration instruction and refreshing the firmware according to the refresh version file to obtain a firmware refresh result includes:
[0035] According to the configuration instruction, starting the baseboard management controller firmware refresh mode;
[0036] Obtaining a baseboard management controller refresh version file uploaded by the first device, and comparing the baseboard management controller refresh version file with an original baseboard management controller firmware;
[0037] If the firmware in the baseboard management controller refresh version file is inconsistent with the original baseboard management controller firmware, performing firmware refresh according to the baseboard management controller refresh version file;
[0038] The firmware refresh result is determined according to the refreshed baseboard management controller basic information.
[0039] In this embodiment, the first device reads and parses the configuration instructions in the firmware refresh configuration file, sends the configuration instructions to the baseboard management controller of the second device, simulates the basic refresh operation process of the technician, and enables the second device to respond to each configuration instruction, automatically complete the BMC firmware refresh, and feedback the BMC firmware refresh result, thereby ensuring the consistency of the BMC firmware refresh process.
[0040] In one embodiment, the firmware is basic input / output system firmware, and the step of obtaining a refresh version file according to the configuration instruction and refreshing the firmware according to the refresh version file to obtain a firmware refresh result includes:
[0041] The baseboard management controller sends a mode switching instruction to the basic input and output system, and starts the basic input and output system firmware refresh mode according to the mode switching instruction;
[0042] The baseboard management controller obtains the basic input and output system refresh version file, and performs firmware refresh according to the basic input and output system refresh version file;
[0043] Determine the firmware refresh result according to the refreshed basic input and output system basic information;
[0044] The baseboard management controller sends a mode conversion instruction to the basic input and output system, and switches to the basic input and output system firmware normal mode according to the mode conversion instruction.
[0045] In this embodiment, the second device responds to the configuration instruction sent by the first device, instructs the basic input and output system to automatically refresh through an external baseboard management controller, and feeds back the basic input and output system firmware refresh result, thereby ensuring the consistency of the BIOS firmware refresh process.
[0046] A firmware updating device, comprising:
[0047] A reading module, used for reading the instruction sequence set in the firmware refresh configuration file and parsing the instruction sequence in the instruction sequence set;
[0048] A sending module, configured to send configuration instructions in the instruction sequence to the second device to be flashed according to the instruction sequence, and instruct the second device to flash the firmware according to the flash version file in the firmware flash configuration file;
[0049] A recording module, used to receive the refresh information fed back by the second device, determine that the refresh of the second device is completed according to the refresh information, and record the number of firmware refreshes;
[0050] The second sending module is used to send a firmware refresh end instruction to the second device if the firmware refresh times meet a preset refresh times threshold, instructing the second device to end the firmware refresh.
[0051] With this device, the reading module is used to read and parse the instruction sequence set in the firmware refresh configuration file, the sending module and the second sending module are used to send configuration instructions to the second device, and perform automatic refresh stress testing on the firmware of the second device. The recording module is used to record the number of refreshes, so as to ensure the consistency of the firmware refresh test during multiple refresh processes and improve the efficiency of the firmware refresh stress test.
[0052] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0053] Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set;
[0054] According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
[0055] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0056] receiving the refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes;
[0057] If the firmware refresh times meet a preset refresh times threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0058] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0059] Receiving a configuration instruction contained in a firmware configuration file sent by the first device;
[0060] According to the configuration instruction, a refresh version file is obtained and the firmware is refreshed according to the refresh version file to obtain a firmware refresh result;
[0061] According to the firmware update result, firmware update information is fed back to the first device.
[0062] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0063] Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set;
[0064] According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
[0065] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0066] receiving the refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes;
[0067] If the firmware refresh times meet a preset refresh times threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0068] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0069] Receiving a configuration instruction contained in a firmware configuration file sent by the first device;
[0070] According to the configuration instruction, a refresh version file is obtained and the firmware is refreshed according to the refresh version file to obtain a firmware refresh result;
[0071] According to the firmware update result, firmware update information is fed back to the first device.
[0072] The above-mentioned firmware refresh method, device, computer equipment and storage medium read the instruction sequence set in the firmware refresh configuration file, parse the instruction sequence in the instruction sequence set; according to the instruction sequence, send the configuration instructions in the instruction sequence to the second device whose firmware is to be refreshed in sequence, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file. With this method, according to the instruction sequence set in the firmware refresh configuration file, the configuration instructions are sent to the second device, and the firmware of the second device is automatically refreshed. Stress testing is performed to avoid the incompleteness of the test instructions that occur during manual random sampling. The consistency of the firmware refresh test and the comprehensiveness of the firmware refresh function test are guaranteed during multiple refresh processes through the instruction sequence set in the firmware refresh configuration file. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 An application environment diagram of a firmware refresh method in an embodiment;
[0074] Figure 2 A schematic diagram of a firmware refresh method in one embodiment;
[0075] Figure 3 A schematic diagram of a flow chart of a stress test step for recording refresh times in an embodiment;
[0076] Figure 4 A schematic diagram of a flow chart of a step of sending a configuration instruction to a second device in an embodiment;
[0077] Figure 5 A schematic diagram of a flow chart of a step of recording the number of firmware refreshes according to refresh information in an embodiment;
[0078] Figure 6 is a flowchart of a firmware refresh method in another embodiment;
[0079] Figure 7 A schematic diagram of a process flow of a base board management controller firmware refresh method in one embodiment;
[0080] Figure 8 A schematic diagram of a basic input / output system firmware refresh method in one embodiment;
[0081] Fig. 9 An example flow chart of BMC firmware refresh in one embodiment;
[0082] Fig.10 An example flowchart of BIOS firmware refresh in one embodiment;
[0083] Fig.11 is a structural block diagram of a firmware refresh device in one embodiment;
[0084] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0086] The firmware refresh method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the first device 102 communicates with the second device 104 through the network. The first device 102 reads the instruction sequence set in the firmware refresh configuration file, and parses the instruction sequence in the instruction sequence set; according to the instruction sequence, the configuration instructions in the instruction sequence are sent to the second device 104 to refresh the firmware in sequence, instructing the second device 104 to refresh the firmware according to the refresh version file in the firmware refresh configuration file; receiving the refresh information fed back by the second device 104, determining that the refresh of the second device 104 is completed according to the refresh information, and recording the number of firmware refreshes; if the number of firmware refreshes meets the preset refresh number threshold, a firmware refresh end instruction is sent to the second device 104, instructing the second device 104 to end the firmware refresh. Among them, the first device 102 can be, but is not limited to, various personal computers, laptops, smart phones and tablets, and the second device 104 can be implemented with an independent server or a server cluster composed of multiple servers.
[0087] In one embodiment, Figure 2 As shown, a firmware refresh method is provided, which is applied to Figure 1 The first device 102 in the embodiment of the present invention is described as follows, including the following steps:
[0088] Step 201, read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set.
[0089] In implementation, a firmware refresh configuration file is pre-uploaded in the test process of the first device, and the first device reads the instruction sequence set in the firmware refresh configuration file and parses the instruction sequence in the instruction sequence set.
[0090] Specifically, the firmware refresh configuration file includes an env.py file (BMC configuration file) and a config.py file (BIOS configuration file). The firmware refresh configuration file includes an instruction sequence set consisting of all instructions in the firmware refresh process. The firmware refresh configuration file is uploaded to the firmware refresh test process of the first device, and the instruction sequence in the instruction sequence set of the file is parsed.
[0091] Step 202: according to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
[0092] In implementation, the first device sends configuration instructions in the instruction sequence to the second device whose firmware is to be refreshed in sequence according to the instruction sequence, so as to instruct the second device to refresh the original firmware according to the refresh version file in the firmware refresh configuration file.
[0093] Specifically, the refresh version file (also called the higher version firmware file) and the original firmware version file (also called the lower version firmware file) are uploaded to the firmware refresh test process of the first device to refresh the original firmware version file according to the higher version firmware file.
[0094] In the above firmware refresh method, the instruction sequence set in the firmware refresh configuration file is read, and the instruction sequence in the instruction sequence set is parsed; according to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file. With this method, according to the instruction sequence set in the firmware refresh configuration file, the configuration instructions are sent to the second device, and the firmware of the second device is automatically refreshed and stress tested, so as to avoid the incompleteness of the test instructions generated during manual random sampling. Through the instruction sequence set in the firmware refresh configuration file, the consistency of the firmware refresh test and the comprehensiveness of the firmware refresh function test are guaranteed during multiple refresh processes, while improving the efficiency of the firmware refresh stress test.
[0095] In one embodiment, Figure 3 As shown, the method also includes:
[0096] Step 301, receiving refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes.
[0097] In implementation, the first device receives refresh information fed back by the second device, determines that the second device firmware refresh is completed according to the refresh information, and then the first device updates the number of firmware refreshes (ie, records the number of firmware refreshes) according to the firmware refresh.
[0098] Step 302: If the number of firmware refreshes meets a preset refresh threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0099] During implementation, the second device receives the firmware refresh configuration instruction sent by the first device and performs a firmware refresh. Each time a firmware refresh is completed, feedback needs to be given to the first device, and the first device determines the number of firmware refreshes. If the number of firmware refreshes meets the preset refresh threshold (i.e., the current number of firmware refreshes = refresh threshold), the first device sends a firmware refresh end instruction to the second device to instruct the second device to end the firmware refresh stress test.
[0100] In this embodiment, in the process of cyclically executing the instruction sequence set in the firmware configuration file, the firmware is refreshed again and again. When the preset number of firmware refreshes is met, it is determined that the firmware has a stable refresh function under the pressure of multiple refresh tests.
[0101] In one embodiment, Figure 4 As shown, the specific processing process of step 202 is as follows:
[0102] Step 2021: Send a network diagnostic instruction to the second device whose firmware is to be refreshed.
[0103] In implementation, the BMC network port of the second device to be tested and refreshed is plugged into a DHCP (Dynamic Host Configuration Protocol) network, and the first device sends a network diagnostic instruction to the second device to be refreshed firmware connected via the network, and the network diagnostic instruction is used to diagnose whether the network is connected.
[0104] Specifically, the first device sends a network diagnostic curl command to the second device based on the BMC IP (Baseboard Management Controller Internet Protocol) address of the second device that is known in advance. The curl command can confirm whether the BMC IP of the second device is PING (Packet Internet Groper) connected without opening a browser.
[0105] Step 2022: Receive first feedback information returned by the second device according to the network diagnosis instruction, and determine whether the first device is connected to the second device through the network.
[0106] During implementation, the first device receives the first feedback information returned by the second device according to the network diagnostic instruction, and determines that the network connection between the first device and the second device is successful based on the correspondence between the preset feedback information and the network connection result, that is, within the same network segment, the first device and the second device can be pinged.
[0107] Step 2023: Send a baseboard management controller webpage opening instruction to the second device.
[0108] In implementation, the first device sends a baseboard management controller web page opening instruction to the second device, where the baseboard management controller web page opening instruction is used to check whether a baseboard management controller web page (BMC web) can be opened and logged in.
[0109] Step 2024: Receive second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determine that the baseboard management controller webpage of the second device is opened successfully.
[0110] In implementation, the first device receives second feedback information returned by the second device according to the baseboard management controller web page opening instruction, and determines that the baseboard management controller web page (BMC web) of the second device is opened successfully, i.e., the BMC web is logged in, in the correspondence between the preset feedback information and the BMC web login result.
[0111] Step 2025: Send an intelligent platform management interface connection instruction to the second device.
[0112] In implementation, the first device sends an intelligent platform management interface connection instruction to the second device, and the instruction may be an IPMI (Intelligent Platform Management Interface) instruction for checking whether an IPMI CMD (command) is sent successfully.
[0113] Step 2026: Receive third feedback information returned by the second device according to the intelligent platform management interface connection instruction, and determine that the intelligent platform management interface of the first device is connected to the second device.
[0114] In implementation, the first device receives third feedback information returned by the second device according to an intelligent platform management interface connection instruction (IPMI instruction), and determines that the intelligent platform management interface of the first device and the second device is connected in the correspondence between the feedback information and the intelligent platform management interface connection result.
[0115] Step 2027: Send a firmware refresh instruction to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to the refresh version file included in the firmware refresh information.
[0116] In implementation, the first device sends a firmware refresh instruction to the second device, where the firmware refresh instruction carries firmware refresh information (eg, version information of a firmware refresh file, etc.), instructing the second device to perform firmware refresh according to the firmware refresh version file.
[0117] In this embodiment, by sending a network diagnostic instruction, a web page opening instruction, and an interface connection instruction to the second device in advance, it can be ensured that the BMC IP of the first device and the second device are connected, the BMC web can be logged in normally, and the BMC version information in the second device can be obtained normally, so as to complete the preparation before firmware refresh.
[0118] In one embodiment, Figure 5 As shown, the refresh information is the basic information of the firmware, and the specific processing process of step 203 is as follows:
[0119] Step 2031, read the instruction sequence set in the firmware refresh configuration file, parse the instruction for obtaining basic firmware information in the instruction sequence set, and send the instruction for obtaining basic firmware information to the second device.
[0120] In implementation, the first device reads the instruction sequence set in the firmware refresh configuration file, and when parsing the instruction for obtaining basic firmware information in the instruction sequence set, the first device sends the instruction for obtaining basic firmware information to the second device that performs firmware refresh.
[0121] Step 2032: receiving basic firmware information fed back after the firmware of the second device is updated, and comparing the basic firmware information with the firmware baseline information pre-stored in the firmware update configuration file.
[0122] In implementation, according to the instruction issued to obtain basic firmware information, the first device can receive the basic firmware information (i.e., the firmware refresh result) fed back by the second device after the firmware is refreshed, and then, the first device compares the basic firmware information with the firmware baseline information pre-stored in the firmware refresh configuration file.
[0123] Step 2033: If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware refresh of the second device is completed, and the firmware refresh times in the record are updated according to the firmware refresh process.
[0124] In implementation, if the acquired firmware basic information is consistent with the firmware baseline information, and it is determined that the firmware refresh of the second device is completed, the first device will use this firmware refresh process as a firmware refresh record and update the firmware refresh count in the history record.
[0125] In this embodiment, the first device reads and parses the instruction sequence set in the firmware configuration file, and sends configuration instructions to the second device. When the second device performs a firmware refresh test according to the configuration instructions and feedbacks that the firmware refresh is completed each time, the number of firmware refreshes is recorded to ensure that a sufficient number of firmware refresh stress tests are completed.
[0126] In one embodiment, the refresh information is refresh failure information, and the firmware refresh method further includes: receiving refresh failure information fed back by the second device, determining the refresh failure of the second device according to the refresh failure information, and outputting prompt information of the corresponding fault according to the correspondence between the refresh failure information and the fault type.
[0127] In implementation, if the refresh information fed back by the second device during the refresh process is refresh failure information, the first device receives the refresh failure information fed back by the second device, determines that the second device has a refresh failure, and determines the second device firmware refresh failure type based on the correspondence between the refresh failure information and the failure type, and then outputs the corresponding failure prompt information.
[0128] Specifically, the inspection process corresponding to each firmware refresh configuration instruction in the above refresh process includes a failure result process, for example, a BMC IP unconnected process, a BMC web unsuccessful login process, an IPMI CMD unsuccessful send process, and a refresh process abnormal process. These failure result processes correspond to different feedback information (refresh failure information). The second device feeds back the refresh failure information to the first device. The first device outputs prompt information corresponding to the fault according to the correspondence between the refresh failure information and the fault type, so as to prompt the user where the problem of the firmware refresh is.
[0129] In another embodiment, Figure 6 As shown, a firmware refresh method is provided, which is applied to Figure 1 The second device 104 in the embodiment of the present invention is described, comprising the following steps:
[0130] Step 601: Receive a configuration instruction included in a firmware configuration file sent by a first device.
[0131] In implementation, the second device receives each configuration instruction included in the firmware configuration file sent by the first device.
[0132] Step 602: According to the configuration instruction, obtain the refresh version file and refresh the firmware according to the refresh version file to obtain the firmware refresh result.
[0133] During implementation, the second device enters the firmware refresh mode according to the configuration instruction, and obtains the refresh version file in the corresponding firmware refresh process. If there are two versions of the file, the firmware refresh file and the original firmware file, in the refresh process, the firmware refresh file is a valid refresh version file. Then, the second device refreshes the original firmware version file according to the refresh version file. After the refresh is completed, the firmware refresh result is obtained.
[0134] Step 603: Feedback firmware refresh information to the first device according to the firmware refresh result.
[0135] In implementation, the second device feeds back firmware refresh information to the first device according to the firmware refresh result, so that the first device can display the result according to the firmware refresh information.
[0136] In this embodiment, the second device automatically completes the corresponding refresh operations in sequence according to the configuration instructions in the received firmware configuration file: enters the refresh mode, obtains the refresh version firmware, verifies the refresh version firmware and the firmware refresh, and finally feeds back the firmware refresh result to the first device to implement the firmware refresh test, thereby ensuring the consistency of each firmware refresh process and saving time and personnel costs.
[0137] In one embodiment, Figure 7 As shown, the firmware is the baseboard management controller firmware, and the specific processing process of step 502 is as follows:
[0138] Step 6021, according to the configuration instruction, start the baseboard management controller firmware refresh mode.
[0139] In implementation, when the firmware to be refreshed is the baseboard management controller firmware (BMC) of the second device, the second device starts the baseboard management controller firmware refresh mode according to the received configuration instruction (i.e., logs in to the BMC web page and starts the BMC refresh mode).
[0140] Step 6022, obtain the baseboard management controller refresh version file (bmc1.ima, that is, the higher version firmware file) uploaded by the first device, and compare the baseboard management controller refresh version file with the original baseboard management controller firmware (bmc2.ima, that is, the lower version firmware file).
[0141] During implementation, the second device obtains the baseboard management controller refresh version file uploaded by the first device according to the process of the firmware refresh version file in the firmware refresh configuration file of the first device, and compares the baseboard management controller refresh version file with the original baseboard management controller firmware (BMC FW) module by module according to functional modules.
[0142] Step 6023: If the firmware in the baseboard management controller refresh version file is inconsistent with the original baseboard management controller firmware, the firmware is refreshed according to the baseboard management controller refresh version file.
[0143] In implementation, if the firmware in the baseboard management controller refresh version file is inconsistent with the original baseboard management controller firmware file, indicating that there are two versions of BMC firmware files, high and low, in the refresh system at this time, the original baseboard management controller firmware file is refreshed according to the baseboard management controller refresh version file.
[0144] Step 6024, determining the firmware refresh result according to the refreshed baseboard management controller basic information.
[0145] In implementation, the first device determines the BMC firmware refresh result of the second device according to the captured refreshed baseboard management controller basic information.
[0146] In this embodiment, the first device reads and parses the configuration instructions in the firmware refresh configuration file, sends the configuration instructions to the baseboard management controller of the second device, simulates the basic refresh operation process of the technician, and enables the second device to respond to each configuration instruction, automatically complete the BMC firmware refresh, and feedback the BMC firmware refresh result, thereby ensuring the consistency of the BMC firmware refresh process.
[0147] In one embodiment, Figure 8 As shown, the firmware is the basic input and output system firmware, and the specific processing process of step 502 is as follows:
[0148] Step 6021': the baseboard management controller sends a mode switching instruction to the basic input / output system, and starts the basic input / output system firmware refresh mode according to the mode switching instruction.
[0149] In implementation, when the firmware to be refreshed is the Basic Input Output System Firmware (BIOS FW) of the second device, after receiving the configuration instruction of the first device, the baseboard management controller carried by the second device sends a mode switching instruction to the BIOS, and starts the BIOS firmware refresh mode (recovery mode) according to the mode switching instruction.
[0150] Step 6022': the baseboard management controller obtains the basic input and output system refresh version file, and performs firmware refresh according to the basic input and output system refresh version file.
[0151] In implementation, the second device responds to the configuration instruction sent by the first device, and its baseboard management controller (BMC) obtains the basic input and output system refresh version file (bios1.bin, that is, the high version firmware file) in the firmware refresh version file process uploaded by the first device, and refreshes the original BIOS firmware file (bios2.bin, that is, the low version firmware file) according to the basic input and output system refresh version file.
[0152] Step 6023', determining the firmware refresh result according to the refreshed basic information of the basic input and output system.
[0153] In implementation, the second device determines the BIOS firmware refresh result according to the refreshed basic information of the basic input and output system.
[0154] Step 6024': the baseboard management controller sends a mode switching instruction to the basic input and output system, and switches to the basic input and output system firmware normal mode according to the mode switching instruction.
[0155] In implementation, after obtaining the firmware refresh result, the baseboard management controller sends a mode conversion instruction to the basic input and output system, and the second device switches the basic input and output system to the firmware normal mode (or called normal mode) according to the mode conversion instruction.
[0156] In this embodiment, the second device responds to the configuration instruction sent by the first device, instructs the basic input and output system to automatically refresh through an external baseboard management controller, and feeds back the basic input and output system firmware refresh result, thereby ensuring the consistency of the BIOS firmware refresh process.
[0157] In one embodiment, Fig. 9 As shown, this application also provides a BMC firmware refresh example, which is as follows:
[0158] Step 901, the first device checks whether the BMC IP of the second device can be pinged, and if so, executes step 902; otherwise, prompts the second device with refresh failure information, and the refresh test process ends.
[0159] Step 902, the first device checks whether the BMC web can be logged in, if it can be logged in, then execute step 903; otherwise, prompt the second device with a refresh failure message, and the refresh test process ends.
[0160] Step 903, the first device checks whether the IPMI CMD interface of the second device is connected, if so, execute step 904; otherwise, prompt the second device with refresh failure information, and the refresh test process ends.
[0161] Step 904, the first device checks whether there is a BMC firmware refresh version firmware and an original BMC firmware refresh version firmware in the refresh test process, and then executes step 905; otherwise, prompts the second device with a refresh failure message, and the refresh test process ends.
[0162] Step 905: The second device updates the BMC firmware.
[0163] Step 906, obtain the basic information of the refreshed BMC firmware, and detect whether there is an abnormality in the refresh process according to the high-version BMC firmware baseline information in the configuration file. If the basic information of the refreshed BMC firmware is consistent with the high-version BMC firmware baseline information, there is no abnormality, record the number of firmware refreshes this time, and execute step 907; otherwise, there is an abnormality, prompt the second device refresh failure information, and the refresh test process ends.
[0164] Step 907, the first device detects whether the refresh times (ie, the refresh cycle count) meets the preset refresh times threshold. If so, the refresh ends; if not, the process of steps 901 to 906 continues.
[0165] In one embodiment, Fig.10 As shown, a BIOS firmware refresh example is provided, wherein the BIOS firmware refresh needs to be implemented through an out-of-band BMC. Therefore, the BIOS firmware refresh also requires the process of steps 1001 to 1003 in the above example to check the BMC stability. The verification of the state and refresh times of the BIOS after the refresh is similar to steps 1006 to 1007 in the above example. This application example will not be repeated. This application only describes the BIOS firmware refresh process, which is specifically as follows:
[0166] Step 1001: BMC sends a mode switching instruction to BIOS, and starts a basic input / output system firmware refresh mode (recovery mode) according to the mode switching instruction.
[0167] Step 1002 , the BMC obtains a basic input / output system refresh version file, and performs firmware refresh according to the basic input / output system refresh version file.
[0168] Step 1003, determining the firmware refresh result according to the refreshed basic information of the basic input and output system.
[0169] Step 1004 , the BMC sends a mode switching instruction to the BIOS, and switches to the basic input and output system firmware normal mode according to the mode switching instruction.
[0170] Step 1005: The BMC sends a completion signal (complete signal) to the first device, and the BIOS firmware refresh is completed.
[0171] It should be understood that although Figure 2-10 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-10 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0172] In one embodiment, Fig.11 As shown, a device 1100 is provided, including: a reading module 1110 and a sending module 1120, wherein:
[0173] The reading module 1110 is used to read the instruction sequence set in the firmware refresh configuration file and parse the instruction sequence in the instruction sequence set.
[0174] The sending module 1120 is used to send the configuration instructions in the instruction sequence to the second device whose firmware is to be refreshed in sequence according to the instruction sequence, and instruct the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
[0175] In the above-mentioned firmware refresh device 1100, the reading module 1110 reads the instruction sequence set in the firmware refresh configuration file and parses the instruction sequence in the instruction sequence set; the sending module 1120 sequentially sends the configuration instructions in the instruction sequence to the second device whose firmware is to be refreshed according to the instruction sequence, and instructs the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file. By adopting this device, the configuration instructions are sent to the second device according to the instruction sequence set in the firmware refresh configuration file, and the firmware of the second device is automatically refreshed. Stress testing is performed to avoid the incompleteness of the test instructions that occur during manual random sampling. The consistency of the firmware refresh test and the comprehensiveness of the firmware refresh function test are guaranteed during multiple refresh processes through the instruction sequence set in the firmware refresh configuration file.
[0176] In one embodiment, the apparatus 1100 further includes:
[0177] The recording module is used to receive the refresh information fed back by the second device, determine that the refresh of the second device is completed according to the refresh information, and record the number of firmware refreshes.
[0178] The second sending module is used to send a firmware refresh end instruction to the second device if the firmware refresh times meet a preset refresh times threshold, instructing the second device to end the firmware refresh.
[0179] In one embodiment, the sending module 1120 is specifically used to send a network diagnostic instruction to the second device to be flashed with firmware;
[0180] receiving first feedback information returned by the second device according to the network diagnostic instruction, and determining that the first device and the second device are connected to the network;
[0181] Sending a baseboard management controller webpage opening instruction to the second device;
[0182] receiving second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second device is opened successfully;
[0183] Sending an intelligent platform management interface connection instruction to the second device;
[0184] receiving third feedback information returned by the second device according to the intelligent platform management interface connection instruction, and determining that the intelligent platform management interface of the first device is connected to the intelligent platform management interface of the second device;
[0185] A firmware refresh instruction is sent to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
[0186] In one embodiment, the refresh information is basic firmware information, and the recording module is specifically used to read the instruction sequence set in the firmware refresh configuration file, parse the instruction for obtaining basic firmware information in the instruction sequence set, and send the instruction for obtaining basic firmware information to the second device;
[0187] Receiving the firmware basic information fed back after the firmware of the second device is refreshed, and comparing the firmware basic information with the firmware baseline information pre-stored in the firmware refresh configuration file;
[0188] If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware refresh of the second device is completed, and the firmware refresh times in the record are updated according to this firmware refresh process.
[0189] In one embodiment, the refresh information is refresh failure information, and the recording module is also used to receive the refresh failure information fed back by the second device, determine the refresh failure of the second device according to the refresh failure information, and output prompt information of the corresponding fault according to the correspondence between the refresh failure information and the fault type.
[0190] For the specific definition of the firmware refresh device, please refer to the definition of the firmware refresh method above, which will not be repeated here. Each module in the above-mentioned firmware refresh device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0191] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a firmware refresh method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0192] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0193] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0194] Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set;
[0195] According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file;
[0196] Receive the refresh information fed back by the second device, determine that the refresh of the second device is completed according to the refresh information, and record the number of firmware refreshes;
[0197] If the number of firmware refreshes meets a preset refresh threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0198] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0199] Sending a network diagnostic instruction to a second device to be flashed with firmware;
[0200] Receiving first feedback information returned by the second device according to the network diagnosis instruction, and determining that the first device is connected to the second device through the network;
[0201] Sending a baseboard management controller webpage opening instruction to the second device;
[0202] Receiving second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second device is opened successfully;
[0203] Sending an intelligent platform management interface connection instruction to the second device;
[0204] receiving third feedback information returned by the second device according to the intelligent platform management interface connection instruction, and determining that the intelligent platform management interface of the first device is connected to the intelligent platform management interface of the second device;
[0205] A firmware refresh instruction is sent to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
[0206] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0207] Reading an instruction sequence set in a firmware refresh configuration file, parsing an instruction for obtaining basic firmware information in the instruction sequence set, and sending the instruction for obtaining basic firmware information to a second device;
[0208] Receiving basic firmware information fed back after the firmware of the second device is updated, and comparing the basic firmware information with firmware baseline information pre-stored in the firmware update configuration file;
[0209] If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware update of the second device is completed, and the firmware update number in the record is updated according to this firmware update process.
[0210] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0211] Receive refresh failure information fed back by the second device, determine a refresh failure of the second device according to the refresh failure information, and output prompt information corresponding to the failure according to a corresponding relationship between the refresh failure information and the failure type.
[0212] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0213] Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set;
[0214] According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file;
[0215] Receive the refresh information fed back by the second device, determine that the refresh of the second device is completed according to the refresh information, and record the number of firmware refreshes;
[0216] If the number of firmware refreshes meets a preset refresh threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0218] Sending a network diagnostic instruction to a second device to be flashed with firmware;
[0219] Receiving first feedback information returned by the second device according to the network diagnosis instruction, and determining that the first device is connected to the second device through the network;
[0220] Sending a baseboard management controller webpage opening instruction to the second device;
[0221] Receiving second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second device is opened successfully;
[0222] Sending an intelligent platform management interface connection instruction to the second device;
[0223] receiving third feedback information returned by the second device according to the intelligent platform management interface connection instruction, and determining that the intelligent platform management interface of the first device is connected to the intelligent platform management interface of the second device;
[0224] A firmware refresh instruction is sent to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
[0225] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0226] Reading an instruction sequence set in a firmware refresh configuration file, parsing an instruction for obtaining basic firmware information in the instruction sequence set, and sending the instruction for obtaining basic firmware information to a second device;
[0227] Receiving basic firmware information fed back after the firmware of the second device is updated, and comparing the basic firmware information with firmware baseline information pre-stored in the firmware update configuration file;
[0228] If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware update of the second device is completed, and the firmware update number in the record is updated according to this firmware update process.
[0229] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0230] Receive refresh failure information fed back by the second device, determine a refresh failure of the second device according to the refresh failure information, and output prompt information corresponding to the failure according to a corresponding relationship between the refresh failure information and the failure type.
[0231] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0232] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0233] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A firmware flashing method, It is characterized in that The method is applied to a first device, and the method includes: Read the instruction sequence set in the firmware refresh configuration file, and parse the instruction sequence in the instruction sequence set; According to the instruction sequence, the configuration instructions in the instruction sequence are sequentially sent to the second device whose firmware is to be refreshed, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file, and obtaining a firmware refresh result; the firmware refresh configuration file includes a baseboard management controller firmware configuration file and a basic input and output system firmware configuration file; Reading an instruction sequence set in the firmware refresh configuration file, parsing an instruction for obtaining basic firmware information in the instruction sequence set, and sending the instruction for obtaining basic firmware information to the second device; Receiving the firmware basic information fed back after the firmware of the second device is refreshed, and comparing the firmware basic information with the firmware baseline information pre-stored in the firmware refresh configuration file; If the firmware basic information is consistent with the firmware baseline information, it is determined that the firmware refresh of the second device is completed, and the firmware refresh times in the firmware refresh process record are updated according to this; when the firmware refresh times is equal to the preset refresh times threshold, the second device is instructed to end the firmware refresh stress test; The step of sending, in accordance with the instruction sequence, configuration instructions in the instruction sequence to the second device to be flashed with firmware, instructing the second device to flash the firmware according to the flash version file in the firmware flash configuration file comprises: Sending a network diagnostic instruction to a second device to be flashed with firmware; Sending a baseboard management controller webpage opening instruction to the second device; Sending an intelligent platform management interface connection instruction to the second device; A firmware refresh instruction is sent to the second device, where the firmware refresh instruction carries firmware refresh information and instructs the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
2. The method according to claim 1, It is characterized in that The method further comprises: receiving the refresh information fed back by the second device, determining that the refresh of the second device is completed according to the refresh information, and recording the number of firmware refreshes; If the firmware refresh times meet a preset refresh times threshold, a firmware refresh end instruction is sent to the second device to instruct the second device to end the firmware refresh.
3. The method according to claim 1, It is characterized in that The method further comprises: Receive refresh failure information fed back by the second device, determine a refresh failure of the second device according to the refresh failure information, and output prompt information corresponding to the failure according to a corresponding relationship between the refresh failure information and the failure type.
4. The method according to claim 3, It is characterized in that The refresh failure information corresponds to the failure result process; the failure result process includes the baseboard management controller Internet protocol unconnected process, the baseboard management controller firmware web page unsuccessful login process, the intelligent platform management interface command prompt unsuccessful process, and the refresh process abnormal process.
5. A firmware refresh method, It is characterized in that The method is applied to a second device, and the method includes: Receive configuration instructions contained in a firmware refresh configuration file sent by a first device; the configuration instructions are a set of instruction sequences read by the first device in the firmware refresh configuration file, and an instruction sequence in the instruction sequence set is parsed; and according to the instruction sequence, the configuration instructions are sequentially sent to a second device to be refreshed with firmware; the firmware refresh configuration file includes a baseboard management controller firmware configuration file and a basic input and output system firmware configuration file; According to the configuration instruction, a refresh version file is obtained and the firmware is refreshed according to the refresh version file to obtain a firmware refresh result; Feedback basic firmware information to the first device according to the firmware refresh result; the basic firmware information is used to compare with the firmware baseline information pre-stored in the firmware refresh configuration file; if the basic firmware information is consistent with the firmware baseline information, determine that the firmware refresh of the second device is completed, and update the firmware refresh number in the record according to the firmware refresh process; when the firmware refresh number is equal to the preset refresh number threshold, instruct the second device to end the firmware refresh stress test; The receiving a configuration instruction contained in a firmware refresh configuration file sent by the first device includes: Receiving a network diagnostic instruction sent by the first device; Receiving a baseboard management controller webpage opening instruction sent by the first device; Receiving an intelligent platform management interface connection instruction sent by the first device; A firmware refresh instruction sent by the first device is received; the firmware refresh instruction carries firmware refresh information, instructing the second device to perform firmware refresh according to a refresh version file included in the firmware refresh information.
6. The method according to claim 5, It is characterized in that The firmware is baseboard management controller firmware, and the step of obtaining a refresh version file according to the configuration instruction and refreshing the firmware according to the refresh version file to obtain a firmware refresh result includes: According to the configuration instruction, starting the baseboard management controller firmware refresh mode; Obtaining a baseboard management controller refresh version file uploaded by the first device, and comparing the baseboard management controller refresh version file with an original baseboard management controller firmware; If the firmware in the baseboard management controller refresh version file is inconsistent with the original baseboard management controller firmware, performing firmware refresh according to the baseboard management controller refresh version file; The firmware refresh result is determined according to the refreshed baseboard management controller basic information.
7. A firmware updating device, It is characterized in that The device comprises: A reading module, used for reading the instruction sequence set in the firmware refresh configuration file and parsing the instruction sequence in the instruction sequence set; A sending module, configured to send configuration instructions in the instruction sequence to the second device to be refreshed with firmware in sequence according to the instruction sequence, instructing the second device to refresh the firmware according to the refresh version file in the firmware refresh configuration file, and obtain a firmware refresh result; the firmware refresh configuration file includes a baseboard management controller firmware configuration file and a basic input and output system firmware configuration file; A recording module, used to read the instruction sequence set in the firmware refresh configuration file, parse the instruction for obtaining basic firmware information in the instruction sequence set, and send the instruction for obtaining basic firmware information to the second device; receive the basic firmware information fed back by the second device after the firmware is refreshed, and compare the basic firmware information with the firmware baseline information pre-stored in the firmware refresh configuration file; if the basic firmware information is consistent with the firmware baseline information, determine that the firmware refresh of the second device is completed, and update the firmware refresh number in the record according to this firmware refresh process; when the firmware refresh number is equal to a preset refresh number threshold, instruct the second device to end the firmware refresh stress test; The sending module is specifically used to send a network diagnostic instruction to a second device whose firmware is to be refreshed; send a baseboard management controller web page opening instruction to the second device; send an intelligent platform management interface connection instruction to the second device; and send a firmware refresh instruction to the second device, wherein the firmware refresh instruction carries firmware refresh information, instructing the second device to refresh the firmware according to the refresh version file contained in the firmware refresh information.
8. The device according to claim 7, It is characterized in that The recording module is further used to receive the refresh information fed back by the second device, determine that the refresh of the second device is completed according to the refresh information, and record the number of firmware refreshes; The second sending module is used to send a firmware refresh end instruction to the second device if the firmware refresh times meet a preset refresh times threshold, instructing the second device to end the firmware refresh.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.
Citation Information
Patent Citations
BIOS (Basic Input Output System) refreshing method and device as well as computer
CN102495742A
Batch BMC Firmware refreshing method
CN104317617A
Method for setting and synchronizing Basic Input / Output System (BIOS) configuration parameters through out-of-band mode
CN104601373A
Method and device for externally refreshing BIOS (basic input / output system) firmware
CN104834543A
Method for batch refreshing of BMC based on LINUX platform
CN105867975A
