[go: up one dir, main page]

CN113220332A - BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and storage medium - Google Patents

BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113220332A
CN113220332A CN202110634252.XA CN202110634252A CN113220332A CN 113220332 A CN113220332 A CN 113220332A CN 202110634252 A CN202110634252 A CN 202110634252A CN 113220332 A CN113220332 A CN 113220332A
Authority
CN
China
Prior art keywords
bios
server
configuration information
latest
firmware
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.)
Granted
Application number
CN202110634252.XA
Other languages
Chinese (zh)
Other versions
CN113220332B (en
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 CN202110634252.XA priority Critical patent/CN113220332B/en
Publication of CN113220332A publication Critical patent/CN113220332A/en
Application granted granted Critical
Publication of CN113220332B publication Critical patent/CN113220332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a BIOS firmware refreshing test method and device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method is applied to the electronic equipment, and the electronic equipment is in communication connection with the server; the method comprises the following steps: modifying the BIOS setting options of the server and storing the modified settings; restarting the remote control server; acquiring and storing current configuration information of a BIOS in a server; selecting a reserved configuration option and refreshing the firmware of the BIOS; the control server is restarted again, and the latest firmware version and the latest configuration information of the BIOS in the server are obtained; and determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result. By the method, the problem that the previous configuration information is restored to the default setting after each BIOS FW upgrade, so that the configuration information needs to be reset and a large amount of labor and time are wasted can be solved.

Description

BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and a storage medium.
Background
As the update time of server technology is getting faster, the need for upgrading BIOS (Basic Input Output System) FW (firmware) of a server by each company is getting more frequent. In the prior art, when a Basic Input Output System (BIOS) in a server needs to be upgraded, the following method is mostly adopted: the upgrading file is remotely copied to a server to be upgraded, then the upgrading file is logged in an Operating System (OS) of the server to complete the upgrading operation of the BIOS, and after the upgrading operation is completed, the server is restarted to enable the upgrading to be effective. This method has certain disadvantages in practical applications, for example, after each BIOS FW upgrade, the previous configuration information may be restored to the default setting, which requires resetting, and wastes a lot of manpower and time.
Disclosure of Invention
In view of the above, an object of the present application is to provide a BIOS firmware refresh testing method, device, electronic device and storage medium, so as to improve the problem that the existing firmware upgrade method will cause the previous configuration information to be restored to the default setting after each BIOS FW upgrade, so that the configuration information needs to be reset, and a lot of manpower and time are wasted.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a BIOS firmware refresh test method, which is applied to an electronic device, where the electronic device is in communication connection with a server; the method comprises the following steps: modifying the BIOS setting options of the server and storing the modified settings; remotely controlling the server to restart; acquiring and storing the current configuration information of the BIOS in the server; selecting a reserved configuration option and refreshing the firmware of the BIOS; controlling the server to restart again, and acquiring the latest firmware version and the latest configuration information of the BIOS in the server; and determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result. In the embodiment of the application, the BIOS FW automatic upgrading and downgrading can be realized and the BIOS retention configuration test can be carried out at the same time, and a reliable scheme is provided for the BIOS FW upgrading of the server and the configuration before the BIOS FW is retained, so that the problems that the previous configuration information is restored to the default setting after each BIOS FW upgrading, the resetting is needed, and a large amount of labor and time are wasted can be solved.
With reference to one possible implementation manner of the embodiment of the first aspect, the electronic device is further communicatively connected to a power manager, and the power manager is electrically connected to the server; controlling the server to restart again, comprising: and controlling the power manager to power off the server, delay the power on again and control the server to start. In the embodiment of the application, a power manager in communication connection with the electronic device is introduced to supply power to the server, and the server is powered off and powered on again in a delayed mode through the remote control power manager, so that the influence of the power-off of the server on the retention of the configuration function when the BIOS FW is upgraded and downgraded is eliminated.
With reference to a possible implementation manner of the embodiment of the first aspect, before selecting the retained configuration option and performing firmware refresh on the BIOS, the method further includes: acquiring and storing the current firmware version of the BIOS in the server; accordingly, determining whether a test passes based on the current configuration information, the latest firmware version, and the latest configuration information includes: determining whether a test passes based on the current firmware version, the current configuration information, the latest firmware version, the latest configuration information. In the embodiment of the application, besides the current configuration information of the BIOS in the server, the current firmware version of the BIOS in the server is also obtained and stored, so that whether the test passes or not is determined based on the current firmware version, the current configuration information, the latest firmware version and the latest configuration information, and the accuracy of the judgment result can be further improved.
With reference to a possible implementation manner of the embodiment of the first aspect, determining whether the test passes based on the current firmware version, the current configuration information, the latest firmware version, and the latest configuration information includes: judging whether the current firmware version is consistent with the firmware version used before refreshing, judging whether the latest firmware version is consistent with the firmware version used during refreshing, and judging whether the current configuration information is consistent with the latest configuration information; and when the judgment results are consistent, the characterization test is passed. In the embodiment of the application, the passing of the test is represented only when the current firmware version is consistent with the firmware version used before refreshing, the latest firmware version is consistent with the firmware version used during refreshing, and the current configuration information is consistent with the latest configuration information, so that the accuracy and reliability of the test can be ensured.
With reference to one possible implementation manner of the embodiment of the first aspect, the method further includes: when the test result represents that the test passes, repeatedly executing the following steps: and modifying the BIOS setting options of the server and storing the modified settings until whether the test is passed or not is determined based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result. In the embodiment of the application, when the test result representation test passes, the above-mentioned BIOS firmware refresh test method is further repeatedly performed, and the reliability of the test method is improved by the repeated test.
With reference to a possible implementation manner of the embodiment of the first aspect, before controlling the server to restart again, the method further includes: determining that the BIOS firmware refresh is successful. In the embodiment of the application, the server is controlled to restart again only when the BIOS firmware is determined to be successfully refreshed, so that the efficiency can be improved.
With reference to one possible implementation manner of the embodiment of the first aspect, the method further includes: if the BIOS firmware fails to be refreshed, selecting a reserved configuration option again and refreshing the BIOS firmware until the BIOS firmware is successfully refreshed. In the embodiment of the application, if the BIOS firmware fails to be refreshed, the reserved configuration option is selected again, and the BIOS is refreshed until the BIOS firmware is successfully refreshed, so that the efficiency can be improved.
In a second aspect, an embodiment of the present application further provides a BIOS firmware refresh test apparatus, which is applied to an electronic device, where the electronic device is in communication connection with a server; the device comprises: the device comprises a modification module, a control module, an acquisition module, a refreshing module and a test module; the modification module is used for modifying the BIOS setting options of the server and storing the modified setting; the control module is used for remotely controlling the restarting of the server; the acquisition module is used for acquiring and storing the current configuration information of the BIOS in the server; the refreshing module is used for selecting a reserved configuration option and refreshing the firmware of the BIOS; the control module is also used for controlling the server to restart again; the acquisition module is further used for acquiring the latest firmware version and the latest configuration information of the BIOS in the server; and the test module is used for determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the processor coupled to the memory; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform the method according to the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fourth aspect, embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method provided in the foregoing first aspect and/or any one of the possible implementation manners of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 is a flowchart illustrating a BIOS firmware refresh testing method according to an embodiment of the present disclosure.
Fig. 2 shows an architecture diagram of an electronic device, a server, and a power manager connection provided in an embodiment of the present application.
Fig. 3 is a flowchart illustrating a further BIOS firmware refresh testing method according to an embodiment of the present application.
Fig. 4 shows a block diagram of a BIOS firmware refresh testing apparatus according to an embodiment of the present application.
Fig. 5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
After the BIOS FW is upgraded, the configuration information is restored to the default setting and needs to be reset, which wastes a lot of labor and time. Therefore, the server BIOS FW upgrade while preserving the previously configured functionality comes along, and a lot of tests are required to ensure the stability of this functionality. The embodiment of the application provides a BIOS firmware refreshing test method, which realizes the automatic upgrading and downgrading of BIOS FW and simultaneously performs the test of BIOS reserved configuration, and provides a reliable scheme for the upgrading of the BIOS FW of a server and the reservation of the previous configuration, so that the problems that the previous configuration information is restored to default setting after the BIOS FW is upgraded every time, the resetting is needed, and a large amount of labor and time are wasted can be avoided.
The BIOS firmware refreshing test method provided by the embodiment of the application is applied to electronic equipment, the electronic equipment is in communication connection with a server to be tested, and the electronic equipment is in communication with the server to be tested through a network so as to test the server conveniently. The BIOS firmware refresh testing method provided in the embodiment of the present application will be described with reference to fig. 1.
Step S101: and modifying the BIOS setting options of the server and saving the modified settings.
In order to test whether the previous configuration information is restored to the default setting when the BIOS firmware is refreshed, in the embodiment of the application, before the firmware of the BIOS is refreshed, the BIOS setting option of the server to be tested is modified and the modified setting is stored. For example, modify Boot Mode under Boot option to UEFI and Legacy. The BIOS setting options of the server may be modified by remotely logging in a BMC (Baseboard Management Controller) web Interface of the server to be tested, and the modified settings may be saved by remotely executing an IPMI (Intelligent Platform Management Interface) OEM (Enterprise administrator) command.
Step S102: and remotely controlling the server to restart.
The server needs to be restarted to enable the modified BIOS setting option to be effective, and the IPMI is executed on the electronic equipment to command the remote control server to restart so as to enable the modified BIOS setting option to be effective.
Step S103: and acquiring and storing the current configuration information of the BIOS in the server.
And after the server is restarted, acquiring and storing the current configuration information of the BIOS in the server. The current configuration information of the BIOS in the server may be obtained and saved by accessing the BMC web of the server on the electronic device, for example, it may be saved in file 1, and if there is a file with the same name, the original file is overwritten.
Under an alternative embodiment, the method further comprises: and acquiring and storing the current firmware version of the BIOS in the server. The current firmware version of the BIOS in the server may be obtained and saved by accessing the BMC web of the server on the electronic device, for example, it may be saved in file 2, and if there is a file with the same name, the original file is overwritten. In this embodiment, the current configuration information and the current firmware version of the BIOS in the server are obtained and stored at the same time.
Step S104: selecting a retention configuration option and performing firmware refresh on the BIOS.
After the current configuration information of the BIOS in the server is acquired and stored, the BMC web is accessed on the electronic equipment, the firmware update option is entered, the option for reserving the configuration is selected, then the FW file is uploaded, the BIOS FW refresh test is executed, and the BIOS firmware is refreshed.
After the option for reserving the configuration is selected, when the BIOS is refreshed, the configuration information configured before is reserved by default, and if the option is not selected, when the BIOS is refreshed, the configuration information configured before is reserved by default, so that the configuration information is restored to the default setting.
It should be noted that, the firmware version may be upgraded or downgraded by refreshing the firmware of the BIOS.
Step S105: and controlling the server to restart again, and acquiring the latest firmware version and the latest configuration information of the BIOS in the server.
And after the firmware is updated, restarting the control server again, and acquiring the latest firmware version and the latest configuration information of the BIOS in the server. The remote control server may be instructed to restart again by executing IPMI on the electronic device to validate the updated firmware. The latest firmware version and the latest configuration information of the BIOS in the server can be acquired and stored by accessing the BMC web of the server on the electronic device, for example, the latest firmware version can be stored in the file 3, and if a file with the same name exists, the original file is overwritten; the latest configuration information may be saved in file 4, and if a file of the same name exists, the original file may be overwritten.
Optionally, in order to improve the testing efficiency, before the control server restarts again, the method further includes: determining that the BIOS firmware refresh is successful. In this embodiment, the control server is restarted again only after determining that the BIOS firmware is successfully refreshed. If the BIOS firmware fails to be refreshed, the reserved configuration option is selected again, and the BIOS is refreshed until the BIOS firmware is successfully refreshed.
Wherein, in order to eliminate the influence of the power-off of the server on the retention of the configuration function when the BIOS FW is upgraded and downgraded. In one embodiment, the embodiment of the present application further includes a Power manager for supplying Power to the server, for example, a pdu (Power Distribution unit) Power controller, an apc (american Power Conversion corporation) Power controller, the server is electrically connected to the Power manager, and the electronic device is further communicatively connected to the Power manager, which is schematically shown in fig. 2. In this embodiment, the process of restarting the control server again may be: and controlling the power manager to power off the server, delaying the power on again, and controlling the server to start. For example, the power manager is remotely controlled by the electronic device to power down, and waits for a period of time to power up again, so that the server is powered down and is powered up again in a delayed manner, and then the IPMI is executed on the electronic device to command the remote control server to power up.
Step S106: and determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
And determining whether the test is passed or not based on the saved current configuration information, the latest firmware version and the latest configuration information to obtain a test result. The implementation process can be as follows: judging whether the latest firmware version is consistent with the firmware version used in refreshing, and judging whether the current configuration information is consistent with the latest configuration information; and when the judgment results are all consistent, the characterization test is passed, and when one judgment result is inconsistent, the characterization test is not passed. When the judgment is performed, two judgments (whether the latest firmware version is consistent with the firmware version used in the refresh, and whether the current configuration information is consistent with the latest configuration information) may be performed simultaneously, or one judgment may be a judgment result depending on the previous judgment, that is, the next judgment is performed only when the result of the previous judgment is yes. For example, it is determined whether the latest firmware version is consistent with the firmware version used in the refresh, and when the latest firmware version is consistent with the firmware version used in the refresh, it is determined whether the current configuration information is consistent with the latest configuration information.
If the current configuration information and the current firmware version of the BIOS in the server are obtained and stored at the same time before the configuration option is selected to be reserved and the firmware of the BIOS is refreshed, the implementation process of step S106 may be: determining whether the test passes based on the current firmware version, the current configuration information, the latest firmware version, and the latest configuration information. The implementation process can be as follows: judging whether the current firmware version is consistent with the firmware version used before refreshing, judging whether the latest firmware version is consistent with the firmware version used during refreshing, and judging whether the current configuration information is consistent with the latest configuration information; and when the judgment results are consistent, the characterization test is passed.
Optionally, the method further includes: when the test result represents that the test passes, repeatedly executing the following steps: and modifying the BIOS setting options of the server and saving the modified settings until whether the test is passed or not is determined based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result. That is, the method is repeated, for example, the steps S101 to S106 are repeatedly performed, so as to perform multiple verifications, and if the verification results of the multiple verifications all represent that the test passes, the test is accurate and reliable.
To facilitate understanding of the testing process of the BIOS firmware refresh testing method, in one embodiment, the testing process of the BIOS firmware refresh testing method may be as shown in fig. 3. It should be noted that fig. 3 is only one of many shown embodiments of the present application, and therefore, should not be construed as limiting the present application.
Based on the same inventive concept, an embodiment of the present application further provides a BIOS firmware refresh testing apparatus 100 applied to an electronic device, as shown in fig. 4, where the BIOS firmware refresh testing apparatus 100 includes: a modification module 110, a control module 120, an acquisition module 130, a refresh module 140, and a test module 150.
A modification module 110, configured to modify the BIOS setting option of the server and store the modified setting.
A control module 120, configured to remotely control the server to restart.
An obtaining module 130, configured to obtain and store current configuration information of the BIOS in the server.
A refresh module 140, configured to select a retention configuration option and perform a firmware refresh on the BIOS.
The control module 120 is further configured to control the server to restart again.
The obtaining module 130 is further configured to obtain a latest firmware version and latest configuration information of the BIOS in the server.
And a test module 150, configured to determine whether the test passes or not based on the current configuration information, the latest firmware version, and the latest configuration information, so as to obtain a test result.
Optionally, the control module 120 is further specifically configured to control the power manager to power off the server, delay power on again, and control the server to power on.
The obtaining module 130 is further configured to obtain and store a current firmware version of the BIOS in the server, and correspondingly, the testing module 150 is configured to determine whether the test is passed based on the current firmware version, the current configuration information, the latest firmware version, and the latest configuration information.
The test module 150 is specifically configured to determine whether the current firmware version is consistent with a firmware version used before the refresh, determine whether the latest firmware version is consistent with a firmware version used during the refresh, and determine whether the current configuration information is consistent with the latest configuration information; and when the judgment results are consistent, the characterization test is passed.
Optionally, the BIOS firmware refresh testing apparatus 100 further includes a determining module, configured to determine that the BIOS firmware is successfully refreshed before the control module 120 controls the server to restart again.
The refresh module 140 is further configured to, if the BIOS firmware fails to be refreshed, select the retention configuration option again and perform firmware refresh on the BIOS until the BIOS firmware is successfully refreshed.
The implementation principle and the resulting technical effect of the BIOS firmware refresh testing apparatus 100 provided in the embodiment of the present application are the same as those of the foregoing method embodiments, and for a brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the embodiment that are not mentioned in the description.
As shown in fig. 5, fig. 5 is a block diagram illustrating a structure of an electronic device 200 according to an embodiment of the present disclosure. The electronic device 200 includes: a transceiver 210, a memory 220, a communication bus 230, and a processor 240.
The elements of the transceiver 210, the memory 220, and the processor 240 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 230 or signal lines. The transceiver 210 is used for transceiving data. The memory 220 is used for storing a computer program, such as the software functional module shown in fig. 4, i.e. the BIOS firmware refresh test apparatus 100. The BIOS firmware refresh testing apparatus 100 includes at least one software function module, which may be stored in the memory 220 in the form of software or firmware (firmware) or fixed in an Operating System (OS) of the electronic device 200. The processor 240 is configured to execute an executable module stored in the memory 220, such as a software function module or a computer program included in the BIOS firmware refresh testing apparatus 100. For example, a processor 240 for modifying the BIOS setting options of the server and saving the modified settings; remotely controlling the server to restart; acquiring and storing the current configuration information of the BIOS in the server; selecting a reserved configuration option and refreshing the firmware of the BIOS; controlling the server to restart again, and acquiring the latest firmware version and the latest configuration information of the BIOS in the server; and determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
The Memory 220 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 240 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 240 may be any conventional processor or the like.
The electronic device 200 includes, but is not limited to, a computer, a tablet computer, a controller, a server, and the like.
The embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter, referred to as a storage medium), where a computer program is stored on the storage medium, and when the computer program is run by the electronic device 200, the method for testing the BIOS firmware refresh is executed.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or an electronic device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A BIOS firmware refreshing test method is characterized by being applied to electronic equipment, wherein the electronic equipment is in communication connection with a server; the method comprises the following steps:
modifying the BIOS setting options of the server and storing the modified settings;
remotely controlling the server to restart;
acquiring and storing the current configuration information of the BIOS in the server;
selecting a reserved configuration option and refreshing the firmware of the BIOS;
controlling the server to restart again, and acquiring the latest firmware version and the latest configuration information of the BIOS in the server;
and determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
2. The method of claim 1, wherein the electronic device is further communicatively coupled to a power manager, the power manager being electrically coupled to the server; controlling the server to restart again, comprising:
and controlling the power manager to power off the server, delay the power on again and control the server to start.
3. The method of claim 1, wherein prior to selecting a retention configuration option and performing a firmware refresh for the BIOS, the method further comprises:
acquiring and storing the current firmware version of the BIOS in the server; accordingly, determining whether a test passes based on the current configuration information, the latest firmware version, and the latest configuration information includes:
determining whether a test passes based on the current firmware version, the current configuration information, the latest firmware version, the latest configuration information.
4. The method of claim 3, wherein determining whether a test passes based on the current firmware version, the current configuration information, the latest firmware version, and the latest configuration information comprises:
judging whether the current firmware version is consistent with the firmware version used before refreshing, judging whether the latest firmware version is consistent with the firmware version used during refreshing, and judging whether the current configuration information is consistent with the latest configuration information;
and when the judgment results are consistent, the characterization test is passed.
5. The method of claim 1, further comprising:
when the test result represents that the test passes, repeatedly executing the following steps: and modifying the BIOS setting options of the server and storing the modified settings until whether the test is passed or not is determined based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
6. The method of claim 1, wherein before controlling the server to restart again, the method further comprises:
determining that the BIOS firmware refresh is successful.
7. The method of claim 6, further comprising:
if the BIOS firmware fails to be refreshed, selecting a reserved configuration option again and refreshing the BIOS firmware until the BIOS firmware is successfully refreshed.
8. The BIOS firmware refreshing test device is applied to electronic equipment, and the electronic equipment is in communication connection with a server; the device comprises:
the modification module is used for modifying the BIOS setting options of the server and storing the modified setting;
the control module is used for remotely controlling the restarting of the server;
the acquisition module is used for acquiring and storing the current configuration information of the BIOS in the server;
the refreshing module is used for selecting a reserved configuration option and refreshing the firmware of the BIOS;
the control module is also used for controlling the server to restart again;
the acquisition module is further used for acquiring the latest firmware version and the latest configuration information of the BIOS in the server;
and the test module is used for determining whether the test is passed or not based on the current configuration information, the latest firmware version and the latest configuration information to obtain a test result.
9. An electronic device, comprising:
a memory and a processor, the processor coupled to the memory;
the memory is used for storing programs;
the processor to invoke a program stored in the memory to perform the method of any of claims 1-7.
10. A storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1-7.
CN202110634252.XA 2021-06-07 2021-06-07 BIOS firmware refreshing test method and device, electronic equipment and storage medium Active CN113220332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110634252.XA CN113220332B (en) 2021-06-07 2021-06-07 BIOS firmware refreshing test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110634252.XA CN113220332B (en) 2021-06-07 2021-06-07 BIOS firmware refreshing test method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113220332A true CN113220332A (en) 2021-08-06
CN113220332B CN113220332B (en) 2024-07-19

Family

ID=77083367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110634252.XA Active CN113220332B (en) 2021-06-07 2021-06-07 BIOS firmware refreshing test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113220332B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113611352A (en) * 2021-08-11 2021-11-05 深圳豪杰创新电子有限公司 Solid state disk testing method, device and system and readable storage medium
CN113849239A (en) * 2021-09-29 2021-12-28 超越科技股份有限公司 Method and medium for remotely modifying BIOS starting item by server
CN114860611A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 BIOS (basic input output System) upgrading test method, device and medium
CN115687146A (en) * 2022-11-15 2023-02-03 中科可控信息产业有限公司 BIOS test method, device, computer equipment and storage medium
CN115686578A (en) * 2022-11-11 2023-02-03 苏州浪潮智能科技有限公司 BIOS FW and DPS FW linkage updating method, system, device and medium
CN116185459A (en) * 2023-04-24 2023-05-30 苏州浪潮智能科技有限公司 Start firmware update method, device and equipment and medium
CN119676083A (en) * 2024-12-20 2025-03-21 苏州元脑智能科技有限公司 A network setting method, device, equipment and medium
WO2025260861A1 (en) * 2024-06-18 2025-12-26 苏州元脑智能科技有限公司 Upgrade method and apparatus for basic input/output system, and non-volatile computer-readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289412A1 (en) * 2009-05-04 2010-11-18 Stuart Middleton-White Integrated lighting system and method
CN104834575A (en) * 2015-05-07 2015-08-12 杭州昆海信息技术有限公司 Firmware recovery method and device
CN108089898A (en) * 2018-01-16 2018-05-29 郑州云海信息技术有限公司 The method, apparatus and system of a kind of upgrading BIOS
CN108111929A (en) * 2017-11-17 2018-06-01 深圳市飞鸿光电子有限公司 A kind of method based on Python automatic tests, system and test terminal
CN108170495A (en) * 2018-01-29 2018-06-15 郑州云海信息技术有限公司 A kind of BIOS upgrade methods, system, equipment and computer readable storage medium
CN108170451A (en) * 2017-12-28 2018-06-15 曙光信息产业股份有限公司 A kind of method and system of server B MC controls bios version upgrading
CN110224877A (en) * 2019-06-28 2019-09-10 贵阳研卓电子科技有限公司 PDU management system based on Ethernet
CN110554938A (en) * 2019-07-19 2019-12-10 苏州浪潮智能科技有限公司 A BIOS testing method, system, terminal and storage medium based on script collection
TW202009688A (en) * 2018-08-28 2020-03-01 緯創資通股份有限公司 Firmware update method and computer system
CN111104271A (en) * 2019-12-06 2020-05-05 苏州浪潮智能科技有限公司 Stability testing method, device and equipment for in-band firmware updating process
US20200356357A1 (en) * 2019-05-10 2020-11-12 Dell Products L.P. Firmware update architecture with os-bios communication

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289412A1 (en) * 2009-05-04 2010-11-18 Stuart Middleton-White Integrated lighting system and method
CN104834575A (en) * 2015-05-07 2015-08-12 杭州昆海信息技术有限公司 Firmware recovery method and device
CN108111929A (en) * 2017-11-17 2018-06-01 深圳市飞鸿光电子有限公司 A kind of method based on Python automatic tests, system and test terminal
CN108170451A (en) * 2017-12-28 2018-06-15 曙光信息产业股份有限公司 A kind of method and system of server B MC controls bios version upgrading
CN108089898A (en) * 2018-01-16 2018-05-29 郑州云海信息技术有限公司 The method, apparatus and system of a kind of upgrading BIOS
CN108170495A (en) * 2018-01-29 2018-06-15 郑州云海信息技术有限公司 A kind of BIOS upgrade methods, system, equipment and computer readable storage medium
TW202009688A (en) * 2018-08-28 2020-03-01 緯創資通股份有限公司 Firmware update method and computer system
US20200356357A1 (en) * 2019-05-10 2020-11-12 Dell Products L.P. Firmware update architecture with os-bios communication
CN110224877A (en) * 2019-06-28 2019-09-10 贵阳研卓电子科技有限公司 PDU management system based on Ethernet
CN110554938A (en) * 2019-07-19 2019-12-10 苏州浪潮智能科技有限公司 A BIOS testing method, system, terminal and storage medium based on script collection
CN111104271A (en) * 2019-12-06 2020-05-05 苏州浪潮智能科技有限公司 Stability testing method, device and equipment for in-band firmware updating process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GSLS200808: "华为S5700交换机升级记录", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/gsls200808/article/details/107430839> *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113611352A (en) * 2021-08-11 2021-11-05 深圳豪杰创新电子有限公司 Solid state disk testing method, device and system and readable storage medium
CN113611352B (en) * 2021-08-11 2024-01-19 深圳豪杰创新电子有限公司 Solid state disk testing method, device and system and readable storage medium
CN113849239A (en) * 2021-09-29 2021-12-28 超越科技股份有限公司 Method and medium for remotely modifying BIOS starting item by server
CN114860611A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 BIOS (basic input output System) upgrading test method, device and medium
CN115686578A (en) * 2022-11-11 2023-02-03 苏州浪潮智能科技有限公司 BIOS FW and DPS FW linkage updating method, system, device and medium
CN115686578B (en) * 2022-11-11 2025-07-08 苏州浪潮智能科技有限公司 BIOS FW and DPS FW linkage updating method, system, device and medium
CN115687146A (en) * 2022-11-15 2023-02-03 中科可控信息产业有限公司 BIOS test method, device, computer equipment and storage medium
CN116185459A (en) * 2023-04-24 2023-05-30 苏州浪潮智能科技有限公司 Start firmware update method, device and equipment and medium
WO2025260861A1 (en) * 2024-06-18 2025-12-26 苏州元脑智能科技有限公司 Upgrade method and apparatus for basic input/output system, and non-volatile computer-readable storage medium
CN119676083A (en) * 2024-12-20 2025-03-21 苏州元脑智能科技有限公司 A network setting method, device, equipment and medium
CN119676083B (en) * 2024-12-20 2025-10-10 苏州元脑智能科技有限公司 Network setting method, device, equipment and medium

Also Published As

Publication number Publication date
CN113220332B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
CN113220332B (en) BIOS firmware refreshing test method and device, electronic equipment and storage medium
US8935509B2 (en) Method for controlling BMC having customized SDR
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
TW202030602A (en) The method and system of bios recovery and update
TW201717001A (en) Unified firmware managment system, non-transitory computer-readable storage medium and method for unified firmware managment
CN106598637B (en) Method for selective loading of components within a node
CN115934447B (en) Display information acquisition method, device, electronic device and storage medium
US20190278508A1 (en) Information Handling System Firmware Persistent Memory Runtime Reclaim
CN108897646B (en) A BIOS chip switching method and baseboard management controller
US11714632B2 (en) Action execution based on management controller action request
CN115951949B (en) BIOS configuration parameter recovery method and device and computing equipment
WO2019137280A1 (en) Terminal anomaly repair method, apparatus, mobile terminal, and storage medium
CN115129345A (en) Firmware upgrading method, device, equipment and storage medium
CN117806924B (en) Control method and device of indicating device, server and medium
CN116938711A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN111338698A (en) A kind of method and system for BIOS to accurately guide server to start
CN119225784B (en) Firmware updating method, computer device, storage medium, and program product
CN119960961A (en) Task execution method, multi-scheduler management system and medium for cloud supercomputing platform
US10705827B2 (en) Method for updating system information of a computer device
CN117234851A (en) A method, device and medium for obtaining the temperature of chip components
CN114253618B (en) BIOS modification method and device based on different manufacturers, computer equipment and storage medium
US20070016761A1 (en) Method, apparatus, and computer program product for implementing enhanced system behavior control
CN111400113A (en) Complete machine self-checking method, device and system of computer system
CN113867753B (en) A server firmware update method and system
CN119201705A (en) A data processing method, related equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant