CN116450432A - BIOS refreshing test method, device, equipment and storage medium - Google Patents

BIOS refreshing test method, device, equipment and storage medium Download PDF

Info

Publication number
CN116450432A
CN116450432A CN202310395705.7A CN202310395705A CN116450432A CN 116450432 A CN116450432 A CN 116450432A CN 202310395705 A CN202310395705 A CN 202310395705A CN 116450432 A CN116450432 A CN 116450432A
Authority
CN
China
Prior art keywords
refreshing
bios
refresh
preset
information
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
CN202310395705.7A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310395705.7A priority Critical patent/CN116450432A/en
Publication of CN116450432A publication Critical patent/CN116450432A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention discloses a BIOS refreshing test method, a device, equipment and a storage medium, belonging to the field of communication. Comprising the following steps: automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type; setting a refreshing mode of the refreshing according to the preset refreshing mode, and setting BIOS refreshing files to be selected for the refreshing according to the preset refreshing type; and acquiring a refreshing test result of the refreshing according to the setting. Compared with the prior art, the embodiment of the invention can achieve the purpose of automatically selecting the refresh mode and the refresh type before each refresh, and solves the problem that testers need to manually set the refresh mode and the refresh type for the next refresh after finishing the last refresh in the prior art.

Description

BIOS refreshing test method, device, equipment and storage medium
Technical Field
The application belongs to the field of communication, and particularly relates to a BIOS refreshing test method, device, equipment and storage medium.
Background
A basic input/output system (BIOS) is integrated on a ROM chip on the main board, and comprises a boot code, a basic hardware driver, a parameter setting program, software independently developed by some manufacturers and the like, so that the basic functional support of the system is provided.
In daily test work, two refreshing modes of reserved configuration and complete refreshing are needed to be selected respectively, and three types of refreshing including level refreshing, downgrade refreshing and upgrade refreshing are carried out on the BIOS. According to the combination of the two refreshing modes and the three refreshing types, the BIOS is refreshed at least six times in the whole testing process.
However, before each refresh, the refresh mode and the refresh type need to be manually set, and after the tester needs to wait for the last refresh to be completed, the refresh mode and the refresh type need to be manually set for the next refresh, and this process consumes a lot of waiting time for the tester.
Disclosure of Invention
The embodiment of the application aims to provide a BIOS refreshing test method, device, equipment and storage medium, which can automatically select a refreshing mode and a refreshing type before refreshing each time without manual setting of a tester.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for testing BIOS refresh, where the method includes:
automatically acquiring preset refreshing information, wherein the preset information comprises a preset refreshing mode and a preset refreshing type;
setting a refreshing mode of the refreshing according to the preset refreshing mode, and setting BIOS refreshing files to be selected for the refreshing according to the preset refreshing type;
And acquiring a refreshing test result of the refreshing according to the setting.
In a second aspect, an embodiment of the present application provides a BIOS refresh test device, including:
the first acquisition module is used for automatically acquiring preset refreshing information, wherein the preset information comprises a preset refreshing mode and a preset refreshing type, the preset refreshing mode comprises reserved configuration or complete refreshing, and the preset refreshing type comprises level refreshing, downgrade refreshing or upgrade refreshing;
the first setting module is used for setting a refreshing mode of the refreshing according to the preset refreshing mode and setting a BIOS refreshing file to be selected for the refreshing according to the preset refreshing type;
and the second acquisition module is used for acquiring a refreshing test result of the refreshing according to the setting.
In a third aspect, embodiments of the present application provide an apparatus comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
Compared with the prior art, the embodiment of the invention can automatically acquire preset refreshing information before refreshing BIOS each time, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type, then the refreshing mode of the refreshing is set according to the preset refreshing mode, the BIOS refreshing file to be selected for the refreshing is set according to the preset refreshing type, and finally the refreshing test result of the refreshing is obtained, thereby achieving the purpose of automatically selecting the refreshing mode and the refreshing type before refreshing each time, and solving the problem that testers need to manually set the refreshing mode and the refreshing type for the next refreshing after the last refreshing is finished in the prior art.
Drawings
FIG. 1 is a flowchart of a BIOS refresh test method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another BIOS refresh test method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another BIOS refresh test method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another BIOS refresh test method according to an embodiment of the present invention;
FIG. 5 is a flowchart of another BIOS refresh test method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a BIOS refresh test device according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating another BIOS refresh testing device according to an embodiment of the present invention;
FIG. 8 is a block diagram illustrating another BIOS refresh test device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first obtaining module of a BIOS refresh test device according to an embodiment of the present invention;
FIG. 10 is a block diagram of an apparatus according to an embodiment of the present invention;
fig. 11 is a schematic hardware structure of an apparatus according to an embodiment of the present invention.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail the BIOS refresh test provided in the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for testing BIOS refresh according to an embodiment of the present invention, where the method for testing BIOS refresh includes:
step 101, automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type.
In this embodiment, the preset refreshing mode includes a reserved configuration and a complete refreshing mode, if the reserved configuration refreshing mode is adopted, some configuration items of the BIOS after refreshing are unchanged, and if the complete refreshing mode is adopted, the configuration items of the BIOS after refreshing become default values of new versions; the preset refresh types comprise level refresh, downgrade refresh and upgrade refresh, wherein the level refresh is to refresh with a BIOS refresh file which is the same as the current BIOS version, the downgrade refresh is to refresh with a BIOS refresh file which is older than the current BIOS version, and the upgrade refresh is to refresh with a BIOS refresh file which is updated with the current BIOS version. Of course, the foregoing is merely specific to illustration, and the preset refresh mode and the preset refresh type in the actual use process may also include other types, which are not described herein in detail.
In this embodiment, the preset refresh information is not limited, and in the actual use process, the preset refresh information may be any information capable of only indicating the BIOS refresh test.
Step 102, setting a refreshing mode of the refreshing according to a preset refreshing mode, and setting a BIOS refreshing file to be selected for the refreshing according to a preset refreshing type.
In this embodiment, the preset refresh mode may be reserved configuration or full refresh, the preset refresh type may be flat refresh, downgrade refresh or upgrade refresh, if the preset refresh type is flat refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, if the preset refresh type is downgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, and if the preset refresh type is upgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing.
Specifically, the BIOS refresh files include an old version BIOS refresh file and a new version BIOS refresh file. If the current BIOS version is lower than the new BIOS refreshing file, the new BIOS refreshing file can be used for upgrading and refreshing to the new BIOS, then the new BIOS refreshing file is used for carrying out level refreshing, then the old BIOS file is used for carrying out degradation refreshing, and then the new BIOS file is used for upgrading and refreshing; if the current BIOS version is the same as the new BIOS refreshing file, the level, downgrade and upgrade refreshing can be directly carried out. The BIOS can be continuously subjected to level, degradation and upgrade refreshing tests sequentially through the old version BIOS refreshing file and the new version BIOS refreshing file.
And step 103, acquiring a refreshing test result of the refreshing according to the setting.
In this embodiment, the server is restarted to enable the setting in step 102 to be effective, and at this time, the refresh mode and the BIOS refresh file of the present refresh are selected, so as to obtain the refresh test result of the present refresh.
Compared with the prior art, the embodiment of the invention can automatically acquire preset refreshing information before refreshing BIOS each time, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type, then the refreshing mode of the refreshing is set according to the preset refreshing mode, the BIOS refreshing file to be selected for the refreshing is set according to the preset refreshing type, and finally the refreshing test result of the refreshing is obtained, thereby achieving the purpose of automatically selecting the refreshing mode and the refreshing type before refreshing each time, and solving the problem that testers need to manually set the refreshing mode and the refreshing type for the next refreshing after the last refreshing is finished in the prior art.
FIG. 2 is a flowchart of another BIOS refresh testing method according to an embodiment of the present invention, where the BIOS refresh testing method includes:
step 104, obtaining preset BIOS configuration item information and current BIOS configuration item information, wherein the preset BIOS configuration item information is at least one configuration item information of a preset BIOS, is irrelevant to a BIOS version, and is different from default configuration information of any version of the BIOS.
In this embodiment, the preset BIOS configuration item information includes a network interface, and some configuration items of the BIOS are preset to be different from any version of default configuration information of the BIOS before the first refresh. Of course, the above is only a specific illustration, and the information of the preset BIOS configuration item in the actual use process may further include other configuration items, which are not described herein in detail.
Step 105, if the current BIOS configuration item information is different from the preset BIOS configuration item information, setting the current BIOS configuration item information as the preset BIOS configuration item information.
In this embodiment, before each refresh, the current BIOS configuration item information is set to the preset BIOS configuration item information. Because the preset BIOS configuration item information is different from the default configuration information of any version of the BIOS, whether the BIOS is successfully refreshed in a preset refreshing mode can be judged by comparing whether the refreshed BIOS configuration item information is the same as the preset BIOS configuration item information after the BIOS is refreshed.
Step 101, automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type.
In this embodiment, the preset refreshing mode includes a reserved configuration and a complete refreshing mode, if the reserved configuration refreshing mode is adopted, some configuration items of the BIOS after refreshing are unchanged, and if the complete refreshing mode is adopted, the configuration items of the BIOS after refreshing become default values of new versions; the preset refresh types comprise level refresh, downgrade refresh and upgrade refresh, wherein the level refresh is to refresh with a BIOS refresh file which is the same as the current BIOS version, the downgrade refresh is to refresh with a BIOS refresh file which is older than the current BIOS version, and the upgrade refresh is to refresh with a BIOS refresh file which is updated with the current BIOS version. Of course, the foregoing is merely specific to illustration, and the preset refresh mode and the preset refresh type in the actual use process may also include other types, which are not described herein in detail.
In this embodiment, the preset refresh information is not limited, and in the actual use process, the preset refresh information may be any information capable of only indicating the BIOS refresh test.
Step 102, setting a refreshing mode of the refreshing according to a preset refreshing mode, and setting a BIOS refreshing file to be selected for the refreshing according to a preset refreshing type.
In this embodiment, the preset refresh mode may be reserved configuration or full refresh, the preset refresh type may be flat refresh, downgrade refresh or upgrade refresh, if the preset refresh type is flat refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, if the preset refresh type is downgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, and if the preset refresh type is upgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing.
Specifically, the BIOS refresh files include an old version BIOS refresh file and a new version BIOS refresh file. If the current BIOS version is lower than the new BIOS refreshing file, the new BIOS refreshing file can be used for upgrading and refreshing to the new BIOS, then the new BIOS refreshing file is used for carrying out level refreshing, then the old BIOS file is used for carrying out degradation refreshing, and then the new BIOS file is used for upgrading and refreshing; if the current BIOS version is the same as the new BIOS refreshing file, the level, downgrade and upgrade refreshing can be directly carried out. The BIOS can be continuously subjected to level, degradation and upgrade refreshing tests sequentially through the old version BIOS refreshing file and the new version BIOS refreshing file.
And step 103, acquiring a refreshing test result of the refreshing according to the setting.
In this embodiment, the server is restarted to enable the setting in step 102 to be effective, and at this time, the refresh mode and the BIOS refresh file of the present refresh are selected, so as to obtain the refresh test result of the present refresh.
Step 106, acquiring BIOS configuration item information before refreshing and BIOS configuration item information after refreshing, wherein the BIOS configuration item information is irrelevant to BIOS version but is different from default configuration information of any version of BIOS.
In this embodiment, the information of the BIOS configuration items before refreshing and the information of the BIOS configuration items after refreshing are information corresponding to certain configuration items of the BIOS, and these configuration items are not related to the BIOS version, but are different from the default configuration information of any version of the BIOS.
Step 107, if the preset refresh mode is reserved configuration, but the information of the refreshed BIOS configuration item is different from the information of the pre-refreshed BIOS configuration item, or if the preset refresh mode is completely refreshed, but the information of the refreshed BIOS configuration item is the same as the information of the pre-refreshed BIOS configuration item, outputting a BIOS configuration item error log.
In this embodiment, by comparing the information of the BIOS configuration item after refreshing with the information of the BIOS configuration item before refreshing, it can be determined whether the refreshing is successful in the two cases of preserving the configuration and completely refreshing, respectively.
Compared with the prior art, the method and the device have the advantages that after each refreshing, the server can automatically compare the refreshed BIOS configuration item information with the BIOS configuration item information before refreshing, if errors occur, corresponding error logs are output, and the problem that the testers can miss information or compare errors when manually comparing the configuration items is avoided.
FIG. 3 is a flowchart of another BIOS refresh testing method according to an embodiment of the present invention, where the BIOS refresh testing method includes:
step 101, automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type.
In this embodiment, the preset refreshing mode includes a reserved configuration and a complete refreshing mode, if the reserved configuration refreshing mode is adopted, some configuration items of the BIOS after refreshing are unchanged, and if the complete refreshing mode is adopted, the configuration items of the BIOS after refreshing become default values of new versions; the preset refresh types comprise level refresh, downgrade refresh and upgrade refresh, wherein the level refresh is to refresh with a BIOS refresh file which is the same as the current BIOS version, the downgrade refresh is to refresh with a BIOS refresh file which is older than the current BIOS version, and the upgrade refresh is to refresh with a BIOS refresh file which is updated with the current BIOS version. Of course, the foregoing is merely specific to illustration, and the preset refresh mode and the preset refresh type in the actual use process may also include other types, which are not described herein in detail.
In this embodiment, the preset refresh information is not limited, and in the actual use process, the preset refresh information may be any information capable of only indicating the BIOS refresh test.
Step 102, setting a refreshing mode of the refreshing according to a preset refreshing mode, and setting a BIOS refreshing file to be selected for the refreshing according to a preset refreshing type.
In this embodiment, the preset refresh mode may be reserved configuration or full refresh, the preset refresh type may be flat refresh, downgrade refresh or upgrade refresh, if the preset refresh type is flat refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, if the preset refresh type is downgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, and if the preset refresh type is upgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing.
Specifically, the BIOS refresh files include an old version BIOS refresh file and a new version BIOS refresh file. If the current BIOS version is lower than the new BIOS refreshing file, the new BIOS refreshing file can be used for upgrading and refreshing to the new BIOS, then the new BIOS refreshing file is used for carrying out level refreshing, then the old BIOS file is used for carrying out degradation refreshing, and then the new BIOS file is used for upgrading and refreshing; if the current BIOS version is the same as the new BIOS refreshing file, the level, downgrade and upgrade refreshing can be directly carried out. The BIOS can be continuously subjected to level, degradation and upgrade refreshing tests sequentially through the old version BIOS refreshing file and the new version BIOS refreshing file.
And step 103, acquiring a refreshing test result of the refreshing according to the setting.
In this embodiment, the server is restarted to enable the setting in step 102 to be effective, and at this time, the refresh mode and the BIOS refresh file of the present refresh are selected, so as to obtain the refresh test result of the present refresh.
Step 108, obtaining the basic information of the server before the refresh and the basic information of the server after the refresh, wherein the basic information of the server before the refresh is stored in a file before the refresh.
In the present embodiment, the server basic information includes: CPU information, memory information, hard disk information, drive version information, board card information, etc., which do not change after BIOS refreshing. Of course, the above is merely specific illustration, and the basic information of the server may also include other types of information in the actual use process, which is not described herein in detail.
And step 109, outputting a server information error log if the refreshed server basic information is different from the server basic information before refreshing.
In this embodiment, after each BIOS refresh, by comparing the server basic information after the refresh with the server basic information before the refresh, it can be determined whether an error occurs in the BIOS refresh.
Compared with the prior art, the embodiment can enable the server to automatically compare the refreshed server basic information with the server basic information before refreshing after each refreshing, and if errors occur, corresponding error logs are output, so that the problem that information omission or comparison errors possibly exist when testers manually compare configuration items is avoided.
FIG. 4 is a flowchart of another BIOS refresh testing method according to an embodiment of the present invention, where the BIOS refresh testing method includes:
in step 1011, the preset refresh information of multiple refreshes and the number of times of refreshes are automatically acquired, wherein the preset refresh information of multiple refreshes comprises a preset refresh mode of multiple refreshes and a preset refresh type of multiple refreshes.
In this embodiment, the preset refresh information for multiple refreshes includes refresh information corresponding to each BIOS refresh to be sequentially performed in the whole BIOS refresh test process, where the number of times that the refresh is performed is the number of times that the refresh has been performed before the present BIOS refresh. The preset refreshing mode for multiple refreshing comprises reserved configuration and complete refreshing, if the reserved configuration refreshing mode is adopted, certain configuration items of the BIOS after refreshing are unchanged, and if the complete refreshing mode is adopted, the configuration items of the BIOS after refreshing become default values of new versions; the preset refresh types of the multiple refreshes comprise a level refresh, a downgrade refresh and an upgrade refresh, wherein the level refresh is to refresh with a BIOS refresh file which is the same as the current BIOS version, the downgrade refresh is to refresh with a BIOS refresh file which is older than the current BIOS version, and the upgrade refresh is to refresh with a BIOS refresh file which is updated with the current BIOS version. Of course, the foregoing is merely specific to illustration, and the preset refresh mode of multiple refreshes and the preset refresh type of multiple refreshes in the actual use process may also include other types, which are not described herein in detail.
Specifically, the preset refreshing information of multiple refreshing includes at least six refreshing, including performing level refreshing, degradation refreshing and upgrading refreshing in sequence when the refreshing mode is reserved configuration, and performing level refreshing, degradation refreshing and upgrading refreshing in sequence when the refreshing mode is complete refreshing. Through at least six different refreshing ways, various combinations of BIOS refreshing ways and refreshing types can be comprehensively tested, and the test is ensured not to be omitted.
Step 1012, automatically acquiring the refresh information preset by the refresh according to the refresh information and the refreshed times of the preset multiple refreshes;
step 102, setting a refreshing mode of the refreshing according to a preset refreshing mode, and setting a BIOS refreshing file to be selected for the refreshing according to a preset refreshing type.
In this embodiment, the preset refresh mode may be reserved configuration or full refresh, the preset refresh type may be flat refresh, downgrade refresh or upgrade refresh, if the preset refresh type is flat refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, if the preset refresh type is downgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing, and if the preset refresh type is upgrade refresh, the same BIOS refresh file as the current BIOS version is used for refreshing.
Specifically, the BIOS refresh files include an old version BIOS refresh file and a new version BIOS refresh file. If the current BIOS version is lower than the new BIOS refreshing file, the new BIOS refreshing file can be used for upgrading and refreshing to the new BIOS, then the new BIOS refreshing file is used for carrying out level refreshing, then the old BIOS file is used for carrying out degradation refreshing, and then the new BIOS file is used for upgrading and refreshing; if the current BIOS version is the same as the new BIOS refreshing file, the level, downgrade and upgrade refreshing can be directly carried out. The BIOS can be continuously subjected to level, degradation and upgrade refreshing tests sequentially through the old version BIOS refreshing file and the new version BIOS refreshing file.
And step 103, acquiring a refreshing test result of the refreshing according to the setting.
In this embodiment, the server is restarted to enable the setting in step 102 to be effective, and at this time, the refresh mode and the BIOS refresh file of the present refresh are selected, so as to obtain the refresh test result of the present refresh.
Compared with the prior art, the embodiment of the invention stores all BIOS refreshing information in the server in advance, and can automatically acquire preset refreshing information by the refreshed times before each BIOS refreshing, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type, then the refreshing mode of the refreshing is set according to the preset refreshing mode, the BIOS refreshing file to be selected for the refreshing is set according to the preset refreshing type, and finally the refreshing test result of the refreshing is obtained, thereby achieving the purpose of automatically selecting the refreshing mode and the refreshing type before each refreshing, and solving the problem that testers need to manually set the refreshing mode and the refreshing type for the next refreshing after the last refreshing in the prior art.
FIG. 5 is a flowchart of another BIOS refreshing test method according to an embodiment of the present invention, based on a Linux operating system, which combines the steps of several BIOS refreshing test methods described above, including:
step 104, obtaining preset BIOS configuration item information and current BIOS configuration item information, wherein the preset BIOS configuration item information is at least one configuration item information of a preset BIOS, is irrelevant to a BIOS version, and is different from default configuration information of any version of the BIOS.
Step 105, if the current BIOS configuration item information is different from the preset BIOS configuration item information, setting the current BIOS configuration item information as the preset BIOS configuration item information.
In this embodiment, the boot enters the SETUP interface of the BIOS; modifying BIOS default value, namely presetting BIOS configuration item information; entering a Linux system, and storing a refreshing file; running a BIOS refreshing test tool; recording the current value of each configuration item and recording the basic information of a server; judging whether the current version of the BIOS is the same as the new version, and if not, automatically refreshing to the new version; judging whether the BIOS current configuration item value is consistent with the saved modified configuration item value, if not, executing in-band import, and setting the BIOS current configuration item value as the modified configuration item value.
Step 101, automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type.
Step 102, setting a refreshing mode of the refreshing according to a preset refreshing mode, and setting a BIOS refreshing file to be selected for the refreshing according to a preset refreshing type.
And step 103, acquiring a refreshing test result of the refreshing according to the setting.
In this embodiment, according to preset refresh information, in a two-week refresh mode of reserved configuration and full refresh, leveling, downgrade, and upgrade refresh are sequentially performed, respectively.
Step 106, acquiring BIOS configuration item information before refreshing and BIOS configuration item information after refreshing, wherein the BIOS configuration item information is irrelevant to BIOS version but is different from default configuration information of any version of BIOS.
Step 107, if the preset refresh mode is reserved configuration, but the information of the refreshed BIOS configuration item is different from the information of the pre-refreshed BIOS configuration item, or if the preset refresh mode is completely refreshed, but the information of the refreshed BIOS configuration item is the same as the information of the pre-refreshed BIOS configuration item, outputting a BIOS configuration item error log.
In this embodiment, if the refresh mode is a reserved configuration and the current configuration item value is inconsistent with the saved configuration item value, or if the refresh mode is a complete refresh and the current configuration item value is consistent with the saved configuration item value, it is indicated that an error occurs in the refresh, and a corresponding error log is output.
Step 108, obtaining the basic information of the server before the refresh and the basic information of the server after the refresh, wherein the basic information of the server before the refresh is stored in a file before the refresh.
And step 109, outputting a server information error log if the refreshed server basic information is different from the server basic information before refreshing.
In this embodiment, if the current server basic information does not match the saved value, a refresh error is described, and a corresponding refresh log is brushed.
Compared with the prior art, the embodiment of the invention can automatically acquire preset refreshing information before refreshing BIOS each time, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type, then the refreshing mode of the refreshing is set according to the preset refreshing mode, the BIOS refreshing file to be selected for the refreshing is set according to the preset refreshing type, and finally the refreshing test result of the refreshing is obtained, thereby achieving the purpose of automatically selecting the refreshing mode and the refreshing type before refreshing each time, and solving the problem that testers need to manually set the refreshing mode and the refreshing type for the next refreshing after the last refreshing is finished in the prior art.
Fig. 6 is a block diagram of a BIOS refresh test device according to an embodiment of the present invention, including:
the first obtaining module 601 is configured to automatically obtain preset refresh information, where the preset information includes a preset refresh mode and a preset refresh type, the preset refresh mode includes a reserved configuration or a full refresh, and the preset refresh type includes a flat refresh, a downgraded refresh or an upgrade refresh.
The first setting module 602 is configured to set a refresh mode of the present refresh according to the preset refresh mode, and set a BIOS refresh file to be selected for the present refresh according to the preset refresh type.
And the second obtaining module 603 is configured to obtain a refresh test result of the current refresh according to the setting.
Further, as shown in fig. 9, the first obtaining module 601 includes:
the first obtaining submodule 6011 is configured to automatically obtain preset refresh information of multiple refreshes and a number of times of refreshes, where the preset refresh information of multiple refreshes includes a preset refresh mode of multiple refreshes and a preset refresh type of multiple refreshes.
The second obtaining submodule 6012 is configured to automatically obtain the refresh information preset in the present refresh according to the preset refresh information for multiple refreshes and the refreshed times.
Fig. 7 is a block diagram of another BIOS refresh test device according to an embodiment of the present invention, including:
the third obtaining module 604 is configured to obtain preset BIOS configuration item information and current BIOS configuration item information, where the preset BIOS configuration item information is at least one configuration item information of a preset BIOS, is independent of a BIOS version, and is different from default configuration information of any version of the BIOS.
A second setting module 605 is configured to set the current BIOS configuration item information to the preset BIOS configuration item information if the current BIOS configuration item information is different from the preset BIOS configuration item information.
The first obtaining module 601 is configured to automatically obtain preset refresh information, where the preset information includes a preset refresh mode and a preset refresh type, the preset refresh mode includes a reserved configuration or a full refresh, and the preset refresh type includes a flat refresh, a downgraded refresh or an upgrade refresh.
The first setting module 602 is configured to set a refresh mode of the present refresh according to the preset refresh mode, and set a BIOS refresh file to be selected for the present refresh according to the preset refresh type.
And the second obtaining module 603 is configured to obtain a refresh test result of the current refresh according to the setting.
A fourth obtaining module 606, configured to obtain the BIOS configuration item information before refreshing and the BIOS configuration item information after refreshing, where the BIOS configuration item information is independent of the BIOS version and is different from the default configuration information of any version of the BIOS.
The first output module 607 is configured to output a BIOS configuration item error log if the preset refresh mode is a reserved configuration but the information of the refreshed BIOS configuration item is different from the information of the BIOS configuration item before the refresh, or if the preset refresh mode is a complete refresh but the information of the refreshed BIOS configuration item is the same as the information of the BIOS configuration item before the refresh.
Fig. 8 is a block diagram of another BIOS refresh test device according to an embodiment of the present invention, including:
the first obtaining module 601 is configured to automatically obtain preset refresh information, where the preset information includes a preset refresh mode and a preset refresh type, the preset refresh mode includes a reserved configuration or a full refresh, and the preset refresh type includes a flat refresh, a downgraded refresh or an upgrade refresh.
The first setting module 602 is configured to set a refresh mode of the present refresh according to the preset refresh mode, and set a BIOS refresh file to be selected for the present refresh according to the preset refresh type.
And the second obtaining module 603 is configured to obtain a refresh test result of the current refresh according to the setting.
A fifth obtaining module 608, configured to obtain the pre-refresh server basic information and the post-refresh server basic information, where the pre-refresh server basic information is stored in a file before the refresh.
And a second output module 609, configured to output a server information error log if the refreshed server basic information is different from the server basic information before refreshing.
The BIOS refresh test device in the embodiment of the present application may be a device, or may be a component in the device, for example, an integrated circuit or a chip. The device may be a terminal or may be other devices than a terminal. By way of example, the device may be a cell phone, tablet, notebook, palm, car device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., but also a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The BIOS refresh test device in the embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The refresh testing device provided in this embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 5, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an apparatus, which includes a processor 1001 and a memory 1002, where the memory 1002 stores a program or an instruction that can be executed on the processor 1001, and the program or the instruction implements each step of the above embodiment of the BIOS refresh test method when executed by the processor 1001, and the steps can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
It should be noted that, the devices in the embodiments of the present application include the mobile device and the non-mobile device described above.
Fig. 11 is a schematic hardware structure of an apparatus for implementing an embodiment of the present application.
The device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
Those skilled in the art will appreciate that the device 1100 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1110 by a power management system so as to perform functions such as managing charging, discharging, and power consumption by the power management system. The device structure shown in fig. 11 does not constitute a limitation of the device, and the device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
It should be appreciated that in embodiments of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, the graphics processor 11041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also referred to as a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the BIOS refresh test method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the above embodiment of the BIOS refresh test method, and achieving the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the BIOS refresh test method described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A BIOS refresh test method, comprising:
automatically acquiring preset refreshing information, wherein the preset refreshing information comprises a preset refreshing mode and a preset refreshing type;
setting a refreshing mode of the refreshing according to the preset refreshing mode, and setting BIOS refreshing files to be selected for the refreshing according to the preset refreshing type;
and acquiring a refreshing test result of the refreshing according to the setting.
2. The method of claim 1, further comprising, prior to automatically acquiring the preset refresh information:
acquiring preset BIOS configuration item information and current BIOS configuration item information, wherein the preset BIOS configuration item information is at least one configuration item information of a preset BIOS, is irrelevant to a BIOS version, and is different from default configuration information of any version of the BIOS;
and if the current BIOS configuration item information is different from the preset BIOS configuration item information, setting the current BIOS configuration item information as the preset BIOS configuration item information.
3. The method according to claim 2, wherein after obtaining the refresh test result of the current refresh according to the setting, further comprising:
Acquiring BIOS configuration item information before refreshing and BIOS configuration item information after refreshing, wherein the BIOS configuration item information is irrelevant to a BIOS version and is different from default configuration information of any version of the BIOS;
if the preset refreshing mode is reserved configuration, but the information of the BIOS configuration items after refreshing is different from the information of the BIOS configuration items before refreshing, or if the preset refreshing mode is completely refreshing, but the information of the BIOS configuration items after refreshing is the same as the information of the BIOS configuration items before refreshing, outputting a BIOS configuration item error log.
4. The method of claim 1, wherein after obtaining the refresh test result of the current refresh according to the setting, further comprising:
acquiring server basic information before refreshing and server basic information after refreshing, wherein the server basic information before refreshing is stored in a file before refreshing;
and outputting a server information error log if the refreshed server basic information is different from the server basic information before refreshing.
5. The method of claim 1, wherein the setting the refresh mode of the present refresh according to the preset refresh mode, and setting the BIOS refresh file to be selected for the present refresh according to the preset refresh type, includes:
The BIOS refreshing file comprises an old version BIOS refreshing file and a new version BIOS refreshing file, and the BIOS refreshing file and the new version BIOS refreshing file are stored in a server before being acquired.
6. The method of claim 1, wherein automatically acquiring the preset refresh information comprises:
automatically acquiring preset refreshing information of a plurality of times of refreshing and the number of times of refreshing, wherein, the preset multi-refresh information comprises a preset multi-refresh mode and a preset multi-refresh type;
and automatically acquiring the refreshing information preset by the refreshing according to the preset refreshing information refreshed for a plurality of times and the refreshed times.
7. The method of claim 6, wherein automatically acquiring the preset refresh information for the plurality of refreshes and the number of refreshes comprises:
the preset refreshing information of the multiple refreshing includes at least six refreshing, including level refreshing, degradation refreshing and upgrading refreshing in sequence when the refreshing mode is reserved configuration, and level refreshing, degradation refreshing and upgrading refreshing in sequence when the refreshing mode is complete refreshing.
8. A BIOS refresh test device, comprising:
the first acquisition module is used for automatically acquiring preset refreshing information, wherein the preset information comprises a preset refreshing mode and a preset refreshing type, the preset refreshing mode comprises reserved configuration or complete refreshing, and the preset refreshing type comprises level refreshing, downgrade refreshing or upgrade refreshing;
The first setting module is used for setting a refreshing mode of the refreshing according to the preset refreshing mode and setting a BIOS refreshing file to be selected for the refreshing according to the preset refreshing type;
and the second acquisition module is used for acquiring a refreshing test result of the refreshing according to the setting.
9. An apparatus comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the BIOS refresh test method of any one of claims 1-7.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the BIOS refresh test method of any one of claims 1-7.
CN202310395705.7A 2023-04-13 2023-04-13 BIOS refreshing test method, device, equipment and storage medium Pending CN116450432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310395705.7A CN116450432A (en) 2023-04-13 2023-04-13 BIOS refreshing test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310395705.7A CN116450432A (en) 2023-04-13 2023-04-13 BIOS refreshing test method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116450432A true CN116450432A (en) 2023-07-18

Family

ID=87131650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310395705.7A Pending CN116450432A (en) 2023-04-13 2023-04-13 BIOS refreshing test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116450432A (en)

Similar Documents

Publication Publication Date Title
US6473894B1 (en) Dynamic runtime and test architecture for Java applets
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN104156305A (en) Application program testing method and device
CN114661330B (en) Vehicle hardware program updating method, device, equipment and storage medium
US8892856B2 (en) Firmware flashing method and related computer system
CN103838651A (en) Mainboard function test management and control system and method
US20070005860A1 (en) Interrupt control system and method
CN112133357A (en) eMMC testing method and device
CN116450432A (en) BIOS refreshing test method, device, equipment and storage medium
CN104750553A (en) Application operating method and device
CN114691496A (en) Unit testing method, unit testing device, computing equipment and medium
CN112181853A (en) Program debugging method, device and system
US20060015776A1 (en) Built-in computer power-on memory test method
CN110968519A (en) Game testing method, device, server and storage medium
CN113962316A (en) Model training method and device and electronic equipment
CN112380800A (en) Automatic evaluation online FPGA (field programmable Gate array) experiment platform and related method
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN111506299B (en) Front-end data verification method and device and computer equipment
CN110633183B (en) Method and related device for monitoring execution progress of software product
CN116719544A (en) Method, device, electronic equipment and storage medium for refreshing component information offline
US8799616B2 (en) Method and system for preferred CPU binding on virtual partitions
CN117215398A (en) Voltage adjustment method, device, electronic equipment and readable storage medium
CN114528198A (en) Software automation test method and device, electronic equipment and storage medium
CN116610504A (en) Server testing method, device, equipment and storage medium
CN117992129A (en) Vehicle-mounted control system starting optimization method and device and computer equipment

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