CN112506758A - Firmware refreshing method and device, computer equipment and storage medium - Google Patents

Firmware refreshing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112506758A
CN112506758A CN202011302985.5A CN202011302985A CN112506758A CN 112506758 A CN112506758 A CN 112506758A CN 202011302985 A CN202011302985 A CN 202011302985A CN 112506758 A CN112506758 A CN 112506758A
Authority
CN
China
Prior art keywords
firmware
refreshing
refresh
equipment
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011302985.5A
Other languages
Chinese (zh)
Inventor
许飞
秦晓宁
魏冰清
张珅
颜顺鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202011302985.5A priority Critical patent/CN112506758A/en
Publication of CN112506758A publication Critical patent/CN112506758A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Abstract

The application relates to a firmware refreshing method and device, computer equipment and a storage medium. The method comprises the following steps: reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set; and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file. By adopting the method, the firmware refreshing test can be automatically carried out, and the consistency of the firmware refreshing test is ensured.

Description

Firmware refreshing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of server testing technologies, and in particular, to a firmware refreshing method and apparatus, a computer device, and a storage medium.
Background
In a server System, a BIOS (Basic Input Output System) and a BMC (Baseboard Management Controller) have very important functions, and as functions of the BIOS and the BMC are increased, requirements on stability of the BIOS and the BMC are higher and higher, and therefore, it is necessary to test stability of a BMC refresh function.
According to the traditional method for testing the BMC refreshing function, manual operation is adopted, a BMC web interface is logged in for firmware refreshing, however, the manual refreshing mode is long in time consumption and low in efficiency, and the requirement that a server needs to refresh and test for many times cannot be met.
Disclosure of Invention
In view of the above, it is necessary to provide a firmware refreshing method, apparatus, computer device and storage medium for solving the above technical problems.
A firmware refreshing method is applied to a first device and comprises the following steps:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file.
By adopting the method, the configuration instruction is sent to the second equipment according to the instruction sequence set in the firmware refreshing configuration file, the automatic refreshing pressure test is carried out on the firmware of the second equipment, the test instruction which is generated during manual random sampling test is prevented from having incompleteness, the consistency of the firmware refreshing test and the incompleteness of the firmware refreshing function test are ensured in the multiple refreshing process through the instruction sequence set in the firmware refreshing configuration file, and meanwhile, the efficiency of the firmware refreshing pressure test is improved.
In one embodiment, the method further comprises:
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet a preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end firmware refreshing.
By adopting the method, the firmware is refreshed one time in the process of circularly executing the instruction sequence set in the firmware configuration file, and when the preset firmware refreshing times are met, the firmware is determined to have stable refreshing function under the pressure of multiple refreshing tests.
In one embodiment, the sequentially sending configuration instructions in the instruction sequence to a second device to be firmware refreshed according to the instruction sequence, and instructing the second device to refresh the firmware according to a refresh version file in the firmware refresh configuration file includes:
sending a network diagnosis instruction to second equipment of the firmware to be refreshed;
receiving first feedback information returned by the second equipment according to the network diagnosis instruction, and determining that the first equipment is in network communication with the second equipment;
sending a webpage opening instruction of a baseboard management controller to the second equipment;
receiving second feedback information returned by the second equipment according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second equipment is successfully opened;
sending an intelligent platform management interface communication instruction to the second equipment;
receiving third feedback information returned by the second equipment according to the intelligent platform management interface communication instruction, and determining that the first equipment is communicated with the intelligent platform management interface of the second equipment;
and sending a firmware refreshing instruction to the second equipment, wherein the firmware refreshing instruction carries firmware refreshing information and instructs the second equipment to refresh the firmware according to a refreshing version file contained in the firmware refreshing information.
In this embodiment, by sending the network diagnosis instruction, the webpage opening instruction, and the interface communication instruction to the second device in advance, it can be ensured that the BMC IP communication, the BMC web login, and the BMC version information in the second device of the first device and the second device are normally obtained, so as to complete the preparation before the firmware is refreshed.
In one embodiment, the receiving the refresh information fed back by the second device, determining that the second device is finished refreshing according to the refresh information, and recording the number of times of firmware refreshing includes:
reading an instruction sequence set in the firmware refreshing configuration file, analyzing an instruction for acquiring the basic firmware information in the instruction sequence set, and sending the instruction for acquiring the 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 firmware baseline information prestored in the firmware refreshing configuration file;
and if the firmware basic information is consistent with the firmware baseline information, determining that the firmware of the second equipment is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process.
In this embodiment, the first device reads and analyzes the instruction sequence set in the firmware configuration file, and sends the configuration instruction to the second device, and when the second device performs the firmware refresh test and feeds back that the firmware refresh is completed each time according to the configuration instruction, the firmware refresh times are recorded, so as to ensure that the firmware refresh pressure test of sufficient times is completed.
In one embodiment, the refresh information is refresh failure information, and the method further includes:
and receiving refresh failure information fed back by the second equipment, determining the refresh failure of the second equipment according to the refresh failure information, and outputting prompt information corresponding to the failure according to the corresponding relation between the refresh failure information and the failure type.
A firmware refresh method, the method being applied to a second device, the method comprising:
receiving a configuration instruction contained in a firmware configuration file sent by first equipment;
according to the configuration command, obtaining a refreshing version file and refreshing the firmware according to the refreshing version file to obtain a firmware refreshing result;
and feeding back firmware refreshing information to the first equipment according to the firmware refreshing result.
In this embodiment, the second device sequentially and automatically completes the corresponding refresh operation according to the configuration instruction in the received firmware configuration file: and entering a refresh mode, acquiring a refresh version firmware, verifying the refresh version firmware and firmware refresh, and finally feeding back a firmware refresh result to the first device, so that a firmware refresh test is realized, the consistency of the firmware refresh process of each time is ensured, and the time and the personnel cost are saved.
In one embodiment, the firmware is a baseboard management controller firmware, and the 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:
starting a firmware refreshing mode of the baseboard management controller according to the configuration instruction;
acquiring a substrate management controller refresh file uploaded by the first device, and comparing the substrate management controller refresh file with an original substrate management controller firmware;
if the firmware in the baseboard management controller refresh version file is not consistent with the original baseboard management controller firmware, refreshing the firmware according to the baseboard management controller refresh version file;
and determining a firmware refreshing result according to the refreshed basic information of the baseboard management controller.
In this embodiment, the first device sends the configuration instruction to the baseboard management controller of the second device by reading and analyzing the configuration instruction in the firmware refresh configuration file, so as to simulate a basic refresh operation process of a technician, and enable the second device to respond to each configuration instruction, automatically complete the BMC firmware refresh, and feed back a BMC firmware refresh result, thereby ensuring consistency of the BMC firmware refresh process.
In one embodiment, the step of obtaining a firmware update result includes:
the baseboard management controller sends a mode switching instruction to the basic input and output system, and a firmware refreshing mode of the basic input and output system is started according to the mode switching instruction;
the baseboard management controller acquires the basic input and output system refreshing version file and refreshes the firmware according to the basic input and output system refreshing version file;
determining a firmware refreshing result according to the refreshed basic information of the basic input and output system;
and the baseboard management controller sends a mode switching instruction to the basic input and output system, and switches to the normal mode of the firmware of the basic input and output system according to the mode switching instruction.
In this embodiment, the second device, in response to the configuration instruction sent by the first device, instructs the BIOS to perform automatic refresh through the external baseboard management controller, and feeds back a BIOS firmware refresh result, thereby ensuring consistency of the BIOS firmware refresh process.
A firmware refresh apparatus, the apparatus comprising:
the reading module is used for reading the instruction sequence set in the firmware refreshing configuration file and analyzing the instruction sequence in the instruction sequence set;
the sending module is used for sequentially sending the configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed according to the instruction sequence and indicating the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file;
the recording module is used for receiving the refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and the second sending module is used for sending a firmware refreshing ending instruction to the second equipment if the firmware refreshing times meet a preset refreshing time threshold value, and indicating the second equipment to end firmware refreshing.
By adopting the device, the reading module is used for reading and analyzing the instruction sequence set in the firmware refreshing configuration file, the sending module and the second sending module are used for sending the configuration instruction to the second equipment and carrying out automatic refreshing pressure test on the firmware of the second equipment, and the recording module is used for recording refreshing times, so that the consistency of the firmware refreshing test is ensured in the multiple refreshing process, and meanwhile, the efficiency of the firmware refreshing pressure test is improved.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet a preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end firmware refreshing.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a configuration instruction contained in a firmware configuration file sent by first equipment;
according to the configuration command, obtaining a refreshing version file and refreshing the firmware according to the refreshing version file to obtain a firmware refreshing result;
and feeding back firmware refreshing information to the first equipment according to the firmware refreshing result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet a preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end firmware refreshing.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a configuration instruction contained in a firmware configuration file sent by first equipment;
according to the configuration command, obtaining a refreshing version file and refreshing the firmware according to the refreshing version file to obtain a firmware refreshing result;
and feeding back firmware refreshing information to the first equipment according to the firmware refreshing result.
The firmware refreshing method, the firmware refreshing device, the computer equipment and the storage medium read the instruction sequence set in the firmware refreshing configuration file and analyze the instruction sequence in the instruction sequence set; and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file. By adopting the method, the configuration instruction is sent to the second equipment according to the instruction sequence set in the firmware refreshing configuration file, the automatic refreshing pressure test is carried out on the firmware of the second equipment, the test instruction which is generated during manual random sampling test is prevented from having incompleteness, and the consistency of the firmware refreshing test and the incompleteness of the firmware refreshing function test are ensured in the multiple refreshing process through the instruction sequence set in the firmware refreshing configuration file.
Drawings
FIG. 1 is a diagram of an application environment of a firmware refresh method in one embodiment;
FIG. 2 is a flowchart illustrating a firmware refresh method according to an embodiment;
FIG. 3 is a flowchart of the stress test step of recording refresh times in one embodiment;
FIG. 4 is a flowchart illustrating the step of sending a configuration instruction to a second device in one embodiment;
FIG. 5 is a flowchart illustrating steps of recording firmware refresh times according to refresh information in an embodiment;
FIG. 6 is a flowchart illustrating a firmware refresh method according to another embodiment;
FIG. 7 is a flowchart illustrating a firmware refresh method for a baseboard management controller in one embodiment;
FIG. 8 is a flowchart illustrating a BIOS firmware refresh method according to an embodiment;
FIG. 9 is a flow diagram of an example BMC firmware refresh in one embodiment;
FIG. 10 is a flow diagram of an example BIOS firmware refresh in one embodiment;
FIG. 11 is a block diagram showing the structure of a firmware refresh apparatus according to an embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The firmware refreshing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the first device 102 communicates with the second device 104 over a network. The first device 102 reads an instruction sequence set in the firmware refreshing configuration file, and analyzes an instruction sequence in the instruction sequence set; according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to the second equipment 104 of the firmware to be refreshed, and instructing the second equipment 104 to refresh the firmware according to a refresh version file in the firmware refresh configuration file; receiving refreshing information fed back by the second equipment 104, determining that the second equipment 104 is refreshed according to the refreshing information, and recording the refreshing times of the firmware; if the firmware refresh times meet the preset refresh time threshold, a firmware refresh end instruction is sent to the second device 104, and the second device 104 is instructed to end the firmware refresh. The first device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the second device 104 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a firmware refresh method is provided, which is illustrated by applying the method to the first device 102 in fig. 1, and includes the following steps:
step 201, reading an instruction sequence set in the firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set.
In implementation, a firmware refresh configuration file is uploaded in a test flow of the first device in advance, and the first device reads an instruction sequence set in the firmware refresh configuration file and analyzes an instruction sequence in the instruction sequence set.
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 composed of all instructions in the firmware refresh process, the firmware refresh configuration file is uploaded to a firmware refresh test flow of the first device, and an instruction sequence in the file instruction sequence set is analyzed.
Step 202, according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to a second device of the firmware to be refreshed, and instructing the second device to refresh the firmware according to a refresh version file in the firmware refresh configuration file.
In implementation, the first device sequentially sends configuration instructions in the instruction sequence to the second device of the firmware to be refreshed according to the instruction sequence to instruct the second device to refresh the original firmware according to the refresh version file in the firmware refresh configuration file.
Specifically, the updated version file (also referred to as a high version firmware file) and the original firmware version file (also referred to as a low version firmware file) are uploaded to a firmware update test process of the first device, so as to update the original firmware version file according to the high version firmware file.
In the firmware refreshing method, an instruction sequence set in a firmware refreshing configuration file is read, and an instruction sequence in the instruction sequence set is analyzed; and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file. By adopting the method, the configuration instruction is sent to the second equipment according to the instruction sequence set in the firmware refreshing configuration file, the automatic refreshing pressure test is carried out on the firmware of the second equipment, the test instruction which is generated during manual random sampling test is prevented from having incompleteness, the consistency of the firmware refreshing test and the incompleteness of the firmware refreshing function test are ensured in the multiple refreshing process through the instruction sequence set in the firmware refreshing configuration file, and meanwhile, the efficiency of the firmware refreshing pressure test is improved.
In one embodiment, as shown in fig. 3, the method further comprises:
step 301, receiving the refresh information fed back by the second device, determining that the second device is finished refreshing according to the refresh information, and recording the firmware refresh times.
In implementation, the first device receives the refresh information fed back by the second device, determines that the firmware refresh of the second device is completed according to the refresh information, and then updates the firmware refresh times (i.e. records the firmware refresh times) according to the firmware refresh.
Step 302, if the firmware refresh time meets a preset refresh time threshold, sending a firmware refresh end instruction to the second device, and instructing the second device to end firmware refresh.
In implementation, the second device receives a firmware refresh configuration command sent by the first device, performs firmware refresh, and needs to feed back the firmware refresh frequency to the first device every time the firmware refresh is completed, and the first device determines the firmware refresh frequency, and if the firmware refresh frequency meets a preset refresh frequency threshold (that is, the current firmware refresh frequency is equal to the refresh frequency threshold), the first device sends a firmware refresh end command to the second device to instruct the second device to end the firmware refresh pressure test.
In this embodiment, in the process of executing the instruction sequence set in the firmware configuration file in a cycle, that is, performing firmware refresh once and again, when the preset firmware refresh times are met, it is determined that the firmware has a stable refresh function under the pressure of the multiple refresh tests.
In one embodiment, as shown in fig. 4, the specific process of step 202 is as follows:
step 2021, send a network diagnostic instruction to the second device whose firmware is to be refreshed.
In implementation, a BMC port of a second device to be refreshed to be tested is inserted into a DHCP (Dynamic Host Configuration Protocol) network, and a first device sends a network diagnosis instruction to the second device connected through a network, where the network diagnosis instruction is used to diagnose whether the network is connected.
Specifically, the first device sends a curl instruction of network diagnosis to the second device according to a pre-known BMC IP (Baseboard Management Controller Internet Protocol) address of the second device, and the curl instruction can realize a function of determining whether the BMC IP of the second device is PING (Packet Internet Groper, connectivity test program) without opening a browser.
Step 2022, receiving the first feedback information returned by the second device according to the network diagnosis instruction, and determining that the first device is in network communication with the second device.
In implementation, the first device receives first feedback information returned by the second device according to the network diagnosis instruction, and determines that the network connection between the first device and the second device is successful according to the corresponding relationship between the preset feedback information and the network connection result, that is, the first device and the second device can be PING-connected in the same network segment.
Step 2023, send a baseboard management controller webpage opening instruction to the second device.
In an implementation, a first device sends a baseboard management controller web page open instruction to a second device, the baseboard management controller web page open instruction to check whether a baseboard management controller web page (BMC web) can be opened and logged in.
Step 2024, 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 successfully opened.
In implementation, the first device receives second feedback information returned by the second device according to the baseboard management controller webpage opening instruction, and determines that the baseboard management controller webpage (BMC web) of the second device is successfully opened in the corresponding relationship between the preset feedback information and the BMC web login result, that is, the BMC web is logged in.
Step 2025, sending the intelligent platform management interface connectivity instruction to the second device.
In an implementation, the first device sends an Intelligent Platform Management Interface connectivity instruction, which may be an IPMI (Intelligent Platform Management Interface) instruction, to the second device, so as to check whether an IPMI CMD (command prompt) is communicated.
Step 2026, 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 interfaces of the first device and the second device are connected.
In implementation, the first device receives third feedback information returned by the second device according to an intelligent platform management interface communication instruction (IPMI instruction), and determines that the intelligent platform management interfaces of the first device and the second device are communicated in a corresponding relationship between the feedback information and a communication result of the intelligent platform management interfaces.
Step 2027, sending 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.
In implementation, the first device sends a firmware refresh command to the second device, where the firmware refresh command carries firmware refresh information (for example, version information including a firmware refresh file, etc.), and instructs the second device to perform firmware refresh according to the firmware refresh version file.
In this embodiment, by sending the network diagnosis instruction, the webpage opening instruction, and the interface communication instruction to the second device in advance, it can be ensured that the BMC IP communication, the BMC web login, and the BMC version information in the second device of the first device and the second device are normally obtained, so as to complete the preparation before the firmware is refreshed.
In one embodiment, as shown in fig. 5, if the refresh information is the firmware basic information, the specific processing procedure of step 203 is as follows:
step 2031, reading the instruction sequence set in the firmware refreshing configuration file, analyzing the instruction for acquiring the basic firmware information in the instruction sequence set, and sending the instruction for acquiring the basic firmware information to the second device.
In implementation, the first device reads an instruction sequence set in the firmware refresh configuration file, and when an instruction for acquiring basic firmware information in the instruction sequence set is resolved, the first device sends the instruction for acquiring basic firmware information to the second device for firmware refresh.
Step 2032, 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 refreshing configuration file.
In implementation, according to the sent instruction for obtaining the basic firmware information, the first device may receive the basic firmware information (i.e., a firmware refresh result) fed back after the firmware of the second device is refreshed, and then compare the basic firmware information with the firmware baseline information pre-stored in the firmware refresh configuration file.
Step 2033, if the basic firmware information is consistent with the baseline firmware information, determining that the firmware of the second device is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process of this time.
In implementation, if the acquired firmware basic information is consistent with the firmware baseline information, and it is determined that the firmware refreshing of the second device is completed, the first device takes the firmware refreshing process as a firmware refreshing record, and updates the firmware refreshing times in the history record.
In this embodiment, the first device reads and analyzes the instruction sequence set in the firmware configuration file, and sends the configuration instruction to the second device, and when the second device performs the firmware refresh test and feeds back that the firmware refresh is completed each time according to the configuration instruction, the firmware refresh times are recorded, so as to ensure that the firmware refresh pressure test of sufficient times is completed.
In one embodiment, the refresh information is refresh failure information, and the firmware refresh method further includes: and receiving refresh failure information fed back by the second equipment, determining the refresh failure of the second equipment according to the refresh failure information, and outputting prompt information corresponding to the failure according to the corresponding relation between the refresh failure information and the failure type.
In implementation, in the refreshing process, if the refreshing information fed back by the second device is the refreshing failure information, the first device receives the refreshing failure information fed back by the second device, determines that the second device has a refreshing fault, determines the type of the refreshing fault of the firmware of the second device according to the corresponding relationship between the refreshing failure information and the type of the fault, and then outputs corresponding fault prompt information.
Specifically, the verification processes corresponding to the firmware refresh configuration instructions in the refresh process all include failure result processes, for example, a BMC IP unconnected process, a BMC web unsuccessful login process, an IPMI CMD unsuccessful communication process, and a refresh process abnormal process, where the failure result processes all correspond to different feedback information (refresh failure information), the second device feeds back the refresh failure information to the first device, and the first device outputs prompt information corresponding to a failure according to a corresponding relationship between the refresh failure information and a failure type, so as to prompt a user about a problem of the firmware refresh.
In another embodiment, as shown in fig. 6, a firmware refresh method is provided, which is illustrated by applying the method to the second device 104 in fig. 1, and includes the following steps:
step 601, receiving a configuration instruction contained in a firmware configuration file sent by a first device.
In implementation, the second device receives each configuration instruction contained in the firmware configuration file sent by the first device.
Step 602, according to the configuration command, obtaining a refresh version file and refreshing the firmware according to the refresh version file to obtain a firmware refresh result.
In implementation, the second device enters a firmware refreshing mode according to the configuration command, a firmware refreshing version file is obtained in a corresponding firmware refreshing flow, if files of two versions, namely the firmware refreshing file and the original firmware file, exist in the refreshing flow, the firmware refreshing file is an effective refreshing version file, then the second device refreshes the original firmware version file according to the refreshing version file, and after refreshing is completed, a firmware refreshing result is obtained.
Step 603, according to the firmware refreshing result, feeding back firmware refreshing information to the first device.
In implementation, the second device feeds back firmware refresh information to the first device according to the firmware refresh result. And displaying the result by the first equipment according to the firmware refreshing information.
In this embodiment, the second device sequentially and automatically completes the corresponding refresh operation according to the configuration instruction in the received firmware configuration file: and entering a refresh mode, acquiring a refresh version firmware, verifying the refresh version firmware and firmware refresh, and finally feeding back a firmware refresh result to the first device, so that a firmware refresh test is realized, the consistency of the firmware refresh process of each time is ensured, and the time and the personnel cost are saved.
In one embodiment, as shown in fig. 7, the firmware is a baseboard management controller firmware, and the specific processing procedure of step 502 is as follows:
step 6021, according to the configuration command, starting the firmware refreshing mode of the baseboard management controller.
In implementation, when the firmware to be refreshed is a baseboard management controller firmware (BMC) of the second device, the second device starts a baseboard management controller firmware refresh mode (i.e., logs in a BMC web page, starts a BMC refresh mode) according to the received configuration command
Step 6022, acquiring a baseboard management controller refresh file (bmc1.ima, that is, a high-version firmware file) uploaded by the first device, and comparing the baseboard management controller refresh file with an original baseboard management controller firmware (bmc2.ima, that is, a low-version firmware file).
In implementation, the second device obtains the baseboard management controller refresh version file uploaded by the first device according to a flow where the firmware refresh version file in the first device firmware refresh configuration file is located, and performs module-by-module comparison on the baseboard management controller refresh version file and original baseboard management controller firmware (BMC FW) according to the functional modules.
And 6023, if the firmware in the baseboard management controller refresh version file is not consistent with the original baseboard management controller firmware, refreshing the firmware according to the baseboard management controller refresh version file.
In implementation, if the firmware in the baseboard management controller refresh version file is inconsistent with the original baseboard management controller firmware file, which indicates that the high-low version BMC firmware file exists 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.
Step 6024, according to the refreshed basic information of the baseboard management controller, determining the firmware refreshing result.
In implementation, the first device determines a second device BMC firmware refresh result according to the captured refreshed baseboard management controller basic information.
In this embodiment, the first device sends the configuration instruction to the baseboard management controller of the second device by reading and analyzing the configuration instruction in the firmware refresh configuration file, so as to simulate a basic refresh operation process of a technician, and enable the second device to respond to each configuration instruction, automatically complete the BMC firmware refresh, and feed back a BMC firmware refresh result, thereby ensuring consistency of the BMC firmware refresh process.
In one embodiment, as shown in fig. 8, if the firmware is bios firmware, the specific processing procedure of step 502 is as follows:
step 6021', the baseboard management controller sends a mode switching command to the BIOS and starts the BIOS firmware refresh mode according to the mode switching command.
In an implementation, when the Firmware to be refreshed is Basic Input Output System Firmware (BIOS FW) of the second device, after the second device receives a configuration instruction of the first device, the substrate management controller external to the second device sends a mode switching instruction to the Basic Input Output System, and starts a Basic Input Output System Firmware refresh mode (recovery mode) according to the mode switching instruction.
Step 6022', the baseboard management controller obtains the basic input/output system refreshing version file, and refreshes the firmware according to the basic input/output system refreshing version file.
In implementation, in response to a configuration instruction sent by the first device, the Baseboard Management Controller (BMC) of the second device acquires a BIOS refresh version file (BIOS1.bin, that is, a high version firmware file) in a firmware refresh version file flow uploaded by the first device, and refreshes an original BIOS firmware file (BIOS2.bin, that is, a low version firmware file) according to the BIOS refresh version file.
Step 6023', according to the refreshed basic information of the basic input/output system, determining the firmware refreshing result.
In implementation, the second device determines the BIOS firmware refresh result according to the refreshed BIOS basic information.
In step 6024', the bmc sends a mode switching command to the bios and switches to the bios firmware normal mode according to the mode switching command.
In implementation, after obtaining the firmware refresh result, the baseboard management controller sends a mode switching instruction to the basic input/output system, and the second device switches the basic input/output system to a firmware normal mode (or a normal mode) according to the mode switching instruction.
In this embodiment, the second device, in response to the configuration instruction sent by the first device, instructs the BIOS to perform automatic refresh through the external baseboard management controller, and feeds back a BIOS firmware refresh result, thereby ensuring consistency of the BIOS firmware refresh process.
In an embodiment, as shown in fig. 9, the present application further provides an example of BMC firmware refresh, which is specifically as follows:
step 901, the first device checks whether the second device BMC IP can ping, if ping, then step 902 is executed; otherwise, prompting the second equipment to refresh failure information, and finishing the refresh test process.
Step 902, the first device checks whether the BMC web can log in, and if so, executes step 903; otherwise, prompting the second equipment to refresh failure information, and finishing the refresh test process.
Step 903, the first device checks whether the IPMI CMD interface of the second device is sent, and if yes, step 904 is executed; otherwise, prompting the second equipment to refresh failure information, and finishing the refresh test process.
Step 904, the first device checks whether a BMC firmware refresh version firmware and an original BMC firmware refresh version firmware exist in the refresh test flow, then step 905 is executed; otherwise, prompting the second equipment to refresh failure information, and finishing the refresh test process.
Step 905, the second device refreshes the BMC firmware.
Step 906, obtaining the updated basic information of the BMC firmware, detecting whether the updating process is abnormal according to the baseline information of the high-version BMC firmware in the configuration file, if the updated basic information of the BMC firmware is consistent with the baseline information of the high-version BMC firmware, no abnormal condition exists, recording the updating times of the firmware, and executing step 907; otherwise, if the second device is abnormal, the second device is prompted to refresh failure information, and the refresh test process is finished.
In step 907, the first device detects whether the number of refreshes (i.e. the number of refresh cycles count) meets a preset number of refresh thresholds, if yes, the refresh is finished, and if not, the process of steps 901 to 906 is continuously executed.
In an embodiment, as shown in fig. 10, a BIOS firmware refresh example is provided, where refreshing BIOS firmware needs to be implemented by an out-of-band BMC, so that refreshing BIOS firmware also needs to be performed in steps 1001 to 1003 in the above example to check BMC stability, and verification of a status and a refresh frequency after BIOS refresh is similar to steps 1006 to 1007 in the above example, which is not described herein again, and this application only describes a BIOS firmware refresh process, specifically as follows:
step 1001, the BMC sends a mode switching instruction to the BIOS, and starts a basic input output system firmware refresh mode (recovery mode) according to the mode switching instruction.
Step 1002, the BMC obtains the bios refresh version file and performs firmware refresh according to the bios refresh version file.
And 1003, determining a firmware refreshing result according to the refreshed basic information of the basic input/output system.
Step 1004, the BMC sends a mode switching instruction to the BIOS, and switches to the normal mode (normal mode) of the BIOS firmware according to the mode switching instruction.
In step 1005, the BMC sends a complete signal to the first device, and the BIOS firmware is refreshed.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 11, there is provided an apparatus 1100 comprising: a read module 1110 and a transmit module 1120, wherein:
the reading module 1110 is configured to read an instruction sequence set in the firmware refresh configuration file, and analyze an instruction sequence in the instruction sequence set.
A sending module 1120, configured to sequentially send the configuration instructions in the instruction sequence to a second device of the firmware to be refreshed 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.
In the firmware refreshing apparatus 1100, the reading module 1110 reads the instruction sequence set in the firmware refreshing configuration file and analyzes 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 of the firmware 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 the device, the configuration command is sent to the second equipment according to the command sequence set in the firmware refreshing configuration file, the automatic refreshing pressure test is carried out on the firmware of the second equipment, the test command which is generated during manual random sampling test is prevented from having incompleteness, and the consistency of the firmware refreshing test and the incompleteness of the firmware refreshing function test are ensured in the multiple refreshing process through the command sequence set in the firmware refreshing configuration file.
In one embodiment, the apparatus 1100 further comprises:
and the recording module is used for receiving the refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware.
And the second sending module is used for sending a firmware refreshing ending instruction to the second equipment if the firmware refreshing times meet a preset refreshing time threshold value, and indicating the second equipment to end firmware refreshing.
In one embodiment, the sending module 1120 is specifically configured to send a network diagnostic instruction to a second device whose firmware is to be refreshed;
receiving first feedback information returned by the second equipment according to the network diagnosis instruction, and determining that the first equipment is in network communication with the second equipment;
sending a webpage opening instruction of a baseboard management controller to the second equipment;
receiving second feedback information returned by the second equipment according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second equipment is successfully opened;
sending an intelligent platform management interface communication instruction to the second equipment;
receiving third feedback information returned by the second equipment according to the intelligent platform management interface communication instruction, and determining that the first equipment is communicated with the intelligent platform management interface of the second equipment;
and sending a firmware refreshing instruction to the second equipment, wherein the firmware refreshing instruction carries firmware refreshing information and instructs the second equipment to refresh the firmware according to a refreshing version file contained in the firmware refreshing information.
In an embodiment, if the firmware basic information is the firmware basic information, the recording module is specifically configured to read an instruction sequence set in the firmware refresh configuration file, analyze an instruction for acquiring the firmware basic information in the instruction sequence set, and send the instruction for acquiring the firmware basic 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 firmware baseline information prestored in the firmware refreshing configuration file;
and if the firmware basic information is consistent with the firmware baseline information, determining that the firmware of the second equipment is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process.
In an embodiment, if the refresh information is refresh failure information, the recording module is further configured to receive the 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 a failure type.
For specific limitations of the firmware refreshing apparatus, reference may be made to the above limitations of the firmware refreshing method, which are not described herein again. The various modules in the firmware refresh apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a firmware refresh method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in a firmware refresh configuration file;
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet the preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end the firmware refreshing.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
sending a network diagnosis instruction to second equipment of the firmware to be refreshed;
receiving first feedback information returned by the second equipment according to the network diagnosis instruction, and determining that the first equipment is in network communication with the second equipment;
sending a webpage opening instruction of a baseboard management controller to second equipment;
receiving second feedback information returned by the second equipment according to the webpage opening instruction of the baseboard management controller, and determining that the webpage of the baseboard management controller of the second equipment is successfully opened;
sending an intelligent platform management interface communication instruction to second equipment;
receiving third feedback information returned by the second equipment according to the intelligent platform management interface communication instruction, and determining that the first equipment is communicated with the intelligent platform management interface of the second equipment;
and sending a firmware refreshing instruction to the second equipment, wherein the firmware refreshing instruction carries firmware refreshing information and instructs the second equipment to refresh the firmware according to a refreshing version file contained in the firmware refreshing information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
reading an instruction sequence set in the firmware refreshing configuration file, analyzing an instruction for acquiring the basic firmware information in the instruction sequence set, and sending the instruction for acquiring the basic firmware information to the second device;
receiving firmware basic information fed back after the firmware of the second device is refreshed, and comparing the firmware basic information with firmware baseline information prestored in a firmware refreshing configuration file;
and if the basic firmware information is consistent with the firmware baseline information, determining that the firmware of the second equipment is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and receiving refresh failure information fed back by the second equipment, determining the refresh failure of the second equipment according to the refresh failure information, and outputting prompt information corresponding to the failure according to the corresponding relation between the refresh failure information and the failure type.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in a firmware refresh configuration file;
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet the preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end the firmware refreshing.
In one embodiment, the computer program when executed by the processor further performs the steps of:
sending a network diagnosis instruction to second equipment of the firmware to be refreshed;
receiving first feedback information returned by the second equipment according to the network diagnosis instruction, and determining that the first equipment is in network communication with the second equipment;
sending a webpage opening instruction of a baseboard management controller to second equipment;
receiving second feedback information returned by the second equipment according to the webpage opening instruction of the baseboard management controller, and determining that the webpage of the baseboard management controller of the second equipment is successfully opened;
sending an intelligent platform management interface communication instruction to second equipment;
receiving third feedback information returned by the second equipment according to the intelligent platform management interface communication instruction, and determining that the first equipment is communicated with the intelligent platform management interface of the second equipment;
and sending a firmware refreshing instruction to the second equipment, wherein the firmware refreshing instruction carries firmware refreshing information and instructs the second equipment to refresh the firmware according to a refreshing version file contained in the firmware refreshing information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
reading an instruction sequence set in the firmware refreshing configuration file, analyzing an instruction for acquiring the basic firmware information in the instruction sequence set, and sending the instruction for acquiring the basic firmware information to the second device;
receiving firmware basic information fed back after the firmware of the second device is refreshed, and comparing the firmware basic information with firmware baseline information prestored in a firmware refreshing configuration file;
and if the basic firmware information is consistent with the firmware baseline information, determining that the firmware of the second equipment is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and receiving refresh failure information fed back by the second equipment, determining the refresh failure of the second equipment according to the refresh failure information, and outputting prompt information corresponding to the failure according to the corresponding relation between the refresh failure information and the failure type.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A firmware refreshing method is applied to a first device, and comprises the following steps:
reading an instruction sequence set in a firmware refreshing configuration file, and analyzing an instruction sequence in the instruction sequence set;
and according to the instruction sequence, sequentially sending configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed, and instructing the second equipment to refresh the firmware according to a refresh version file in the firmware refresh configuration file.
2. The method of claim 1, further comprising:
receiving refreshing information fed back by the second equipment, determining that the second equipment is refreshed according to the refreshing information, and recording the refreshing times of the firmware;
and if the firmware refreshing times meet a preset refreshing time threshold, sending a firmware refreshing ending instruction to the second equipment, and indicating the second equipment to end firmware refreshing.
3. The method according to claim 1, wherein the sequentially sending configuration instructions in the instruction sequence to a second device to be firmware refreshed according to the instruction sequence to instruct the second device to refresh the firmware according to a refresh version file in the firmware refresh configuration file comprises:
sending a network diagnosis instruction to second equipment of the firmware to be refreshed;
receiving first feedback information returned by the second equipment according to the network diagnosis instruction, and determining that the first equipment is in network communication with the second equipment;
sending a webpage opening instruction of a baseboard management controller to the second equipment;
receiving second feedback information returned by the second equipment according to the baseboard management controller webpage opening instruction, and determining that the baseboard management controller webpage of the second equipment is successfully opened;
sending an intelligent platform management interface communication instruction to the second equipment;
receiving third feedback information returned by the second equipment according to the intelligent platform management interface communication instruction, and determining that the first equipment is communicated with the intelligent platform management interface of the second equipment;
and sending a firmware refreshing instruction to the second equipment, wherein the firmware refreshing instruction carries firmware refreshing information and instructs the second equipment to refresh the firmware according to a refreshing version file contained in the firmware refreshing information.
4. The method according to claim 2, wherein the refresh information is firmware basic information, the receiving of the refresh information fed back by the second device, the determining that the second device is finished refreshing according to the refresh information, and recording the number of times of firmware refreshing comprises:
reading an instruction sequence set in the firmware refreshing configuration file, analyzing an instruction for acquiring the basic firmware information in the instruction sequence set, and sending the instruction for acquiring the 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 firmware baseline information prestored in the firmware refreshing configuration file;
and if the firmware basic information is consistent with the firmware baseline information, determining that the firmware of the second equipment is refreshed, and updating the firmware refreshing times in the record according to the firmware refreshing process.
5. A firmware refresh method applied to a second device, the method comprising:
receiving a configuration instruction contained in a firmware configuration file sent by first equipment;
according to the configuration command, obtaining a refreshing version file and refreshing the firmware according to the refreshing version file to obtain a firmware refreshing result;
and feeding back firmware refreshing information to the first equipment according to the firmware refreshing result.
6. The method of claim 5, wherein the firmware is a baseboard management controller firmware, and the obtaining a refresh version file according to the configuration command and refreshing the firmware according to the refresh version file to obtain a firmware refresh result comprises:
starting a firmware refreshing mode of the baseboard management controller according to the configuration instruction;
acquiring a substrate management controller refresh file uploaded by the first device, and comparing the substrate management controller refresh file with an original substrate management controller firmware;
if the firmware in the baseboard management controller refresh version file is not consistent with the original baseboard management controller firmware, refreshing the firmware according to the baseboard management controller refresh version file;
and determining a firmware refreshing result according to the refreshed basic information of the baseboard management controller.
7. The method according to claim 5, wherein the firmware is bios firmware, and the obtaining a refresh version file according to the configuration command and refreshing the firmware according to the refresh version file to obtain a firmware refresh result includes:
the baseboard management controller sends a mode switching instruction to the basic input and output system, and a firmware refreshing mode of the basic input and output system is started according to the mode switching instruction;
the baseboard management controller acquires the basic input and output system refreshing version file and refreshes the firmware according to the basic input and output system refreshing version file;
determining a firmware refreshing result according to the refreshed basic information of the basic input and output system;
and the baseboard management controller sends a mode switching instruction to the basic input and output system, and switches to the normal mode of the firmware of the basic input and output system according to the mode switching instruction.
8. A firmware refresh apparatus, the apparatus comprising:
the reading module is used for reading the instruction sequence set in the firmware refreshing configuration file and analyzing the instruction sequence in the instruction sequence set;
and the sending module is used for sequentially sending the configuration instructions in the instruction sequence to second equipment of the firmware to be refreshed according to the instruction sequence and indicating the second equipment to refresh the firmware according to the refresh version file in the firmware refresh configuration file.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4 or 5 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4 or 5 to 7.
CN202011302985.5A 2020-11-19 2020-11-19 Firmware refreshing method and device, computer equipment and storage medium Pending CN112506758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011302985.5A CN112506758A (en) 2020-11-19 2020-11-19 Firmware refreshing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011302985.5A CN112506758A (en) 2020-11-19 2020-11-19 Firmware refreshing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112506758A true CN112506758A (en) 2021-03-16

Family

ID=74958857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011302985.5A Pending CN112506758A (en) 2020-11-19 2020-11-19 Firmware refreshing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112506758A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI791254B (en) * 2021-03-19 2023-02-01 日商鎧俠股份有限公司 Memory system, method for controlling memory system, and host device
CN115878501A (en) * 2021-07-27 2023-03-31 北京特纳飞电子技术有限公司 Firmware control and table-based conditioning for flexible storage controllers

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120036442A1 (en) * 2008-12-19 2012-02-09 Openpeak Inc. Managed services portals and method of operation of same
CN102495742A (en) * 2011-11-24 2012-06-13 曙光信息产业股份有限公司 BIOS (Basic Input Output System) refreshing method and device as well as computer
CN104601373A (en) * 2015-01-05 2015-05-06 浪潮电子信息产业股份有限公司 Method for setting and synchronizing Basic Input/Output System (BIOS) configuration parameters through out-of-band mode
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN105867975A (en) * 2016-04-01 2016-08-17 浪潮电子信息产业股份有限公司 Method for batch refreshing of BMC based on LINUX platform
CN106815054A (en) * 2017-01-25 2017-06-09 郑州云海信息技术有限公司 A kind of method and device of refreshing BMC firmwares
CN106886440A (en) * 2017-02-24 2017-06-23 郑州云海信息技术有限公司 The version updating method of testing and device of a kind of BMC
CN108958776A (en) * 2018-07-31 2018-12-07 山东超越数控电子股份有限公司 A kind of BMC firmware update and device based on order line

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120036442A1 (en) * 2008-12-19 2012-02-09 Openpeak Inc. Managed services portals and method of operation of same
CN102495742A (en) * 2011-11-24 2012-06-13 曙光信息产业股份有限公司 BIOS (Basic Input Output System) refreshing method and device as well as computer
CN104601373A (en) * 2015-01-05 2015-05-06 浪潮电子信息产业股份有限公司 Method for setting and synchronizing Basic Input/Output System (BIOS) configuration parameters through out-of-band mode
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN105867975A (en) * 2016-04-01 2016-08-17 浪潮电子信息产业股份有限公司 Method for batch refreshing of BMC based on LINUX platform
CN106815054A (en) * 2017-01-25 2017-06-09 郑州云海信息技术有限公司 A kind of method and device of refreshing BMC firmwares
CN106886440A (en) * 2017-02-24 2017-06-23 郑州云海信息技术有限公司 The version updating method of testing and device of a kind of BMC
CN108958776A (en) * 2018-07-31 2018-12-07 山东超越数控电子股份有限公司 A kind of BMC firmware update and device based on order line

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI791254B (en) * 2021-03-19 2023-02-01 日商鎧俠股份有限公司 Memory system, method for controlling memory system, and host device
CN115878501A (en) * 2021-07-27 2023-03-31 北京特纳飞电子技术有限公司 Firmware control and table-based conditioning for flexible storage controllers

Similar Documents

Publication Publication Date Title
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN110908909A (en) Automatic testing method and device, storage medium and equipment
CN112506758A (en) Firmware refreshing method and device, computer equipment and storage medium
CN111400179B (en) Method and device for terminal application program interaction, computer equipment and storage medium
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN111858201A (en) BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN114328243A (en) Abnormal operation data processing method, device, equipment and storage medium
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN111277476A (en) Gateway controller function verification method, gateway controller function verification device, computer equipment and storage medium
CN111427777A (en) SO L test method, system, equipment and medium
CN115328814B (en) Fault injection method, device, equipment and storage medium based on mirror pair
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN114816806A (en) Container availability verification method and device, computer equipment and storage medium
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN114416451A (en) Server testing method and device, computer equipment and storage medium
CN115022163A (en) Log collection method and device, computer equipment and storage medium
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN112988498B (en) Power consumption-based anomaly detection method and device, computer equipment and storage medium
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN116382968B (en) Fault detection method and device for external equipment
CN115454739A (en) Test information acquisition method and device, computer equipment and storage medium
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN116680101A (en) Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination