Method, device and equipment for detecting options of basic input and output system and medium

By automating the detection of BIOS options through a method that creates a baseline file from BIOS code configurations, the method simplifies the BIOS version update process, reducing errors and improving efficiency.

CN119248653APending Publication Date: 2025-01-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411413879.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The manual export of BIOS option baselines during testing and verification phases leads to errors, increasing the BIOS development cycle and reducing efficiency in version updates.

Method used

A method and device for detecting BIOS options by obtaining configuration options and default values in the BIOS code, creating a baseline file, and comparing it with updated BIOS options to automate the process, eliminating the need for manual operations.

Benefits of technology

Simplifies the BIOS version update process, reduces errors, and enhances efficiency by automating the detection of BIOS options without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248653A_ABST
    Figure CN119248653A_ABST
Patent Text Reader

Abstract

The invention discloses an option detection method and device for a basic input and output system, equipment and a medium in the technical field of computers. According to the method, the BIOS option baseline file is determined, baseline export does not need to be carried out in subsequent testing and function verification stages, and the BIOS version updating process is simplified; moreover, the BIOS option baseline file is automatically determined based on the basic input and output system code, manual operation of related personnel is not needed, the error rate and the BIOS development period can be reduced, and the BIOS version updating and online efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a basic input and output system option detection method, device, equipment and medium. Background Art

[0002] Currently, during the testing and verification phases of the Basic Input Output System (BIOS), it is necessary to repeatedly export the BIOS option baseline in order to detect the BIOS options. Since the export operation requires manual operation by relevant personnel, it is prone to errors, which also increases the BIOS development cycle and reduces the efficiency of BIOS version updates.

[0003] Therefore, how to simplify the BIOS version update process is a problem that technical personnel in this field need to solve. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a basic input and output system option detection method, device, equipment and medium to simplify the BIOS version update process. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a method for detecting options of a basic input and output system, comprising:

[0006] In the compilation phase of the basic input and output system code, the configuration options defined in the basic input and output system code are obtained, and the configuration options and corresponding option default values ​​are recorded to obtain a baseline file;

[0007] Obtain a binary file obtained by compiling the basic input and output system code;

[0008] After updating the basic input and output system in the target device using the binary file, exporting the configuration options and corresponding option default values ​​recorded in the basic input and output system after the update in the target device to obtain a file to be tested;

[0009] Compare the baseline file with the file to be tested, and record the comparison result.

[0010] Optionally, obtaining configuration options defined in the basic input and output system code includes:

[0011] Accessing device files corresponding to each device defined in the basic input and output system code;

[0012] Read corresponding device configuration options from the device file;

[0013] Accessing a project file corresponding to a specific project defined in the basic input and output system code;

[0014] Read corresponding project configuration options from the project file;

[0015] The device configuration options and the project configuration options are aggregated to obtain configuration options defined in the basic input and output system code.

[0016] Optionally, record the configuration options and corresponding option default values ​​to obtain a baseline file, including:

[0017] Determine the option default value corresponding to the configuration option defined in the basic input and output system code by using the global variable;

[0018] A one-to-one correspondence between the configuration options defined in the basic input / output system code and the corresponding option default values ​​is constructed and recorded to obtain the baseline file.

[0019] Optionally, record the comparison results, including:

[0020] If the baseline file and the file to be tested have different option default values ​​for the same configuration option, then the same configuration option and the corresponding different option default values ​​are recorded in the comparison result;

[0021] If the option default values ​​set for each configuration option in the baseline file and the file to be tested are the same, the file comparison consistency information is recorded in the comparison result.

[0022] Optionally, after recording the file comparison consistency information in the comparison result, the method further includes:

[0023] Packing the binary file, the baseline file and the description file into a verification file package;

[0024] Performing a baseline comparison on the binary file in the verification file package;

[0025] After the baseline comparison is correct, functional verification is performed on the binary file in the verification file package;

[0026] If the function verification passes, the binary file in the verification file package is installed on the server, and the option value of the configuration option of the basic input and output system in the server is adjusted according to the device configuration of the server;

[0027] If the functional verification fails, repeating the step of performing functional verification on the binary file in the verification file package;

[0028] If the baseline comparison is incorrect, the steps of obtaining a binary file obtained by compiling the basic input and output system code is executed; after using the binary file to update the basic input and output system in the target device, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison results are recorded.

[0029] Optionally, before packaging the binary file, the baseline file and the description file into a verification file package, the method further includes:

[0030] The description file is constructed; the description file records different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0031] Optionally, adjusting the option value of the configuration option of the basic input / output system in the server according to the device configuration of the server includes:

[0032] Adjusting the device configuration of the server;

[0033] The option value of the configuration option of the basic input and output system in the server is adjusted and recorded according to the adjusted device configuration.

[0034] In a second aspect, the present application provides an option detection device for a basic input and output system, comprising:

[0035] A baseline determination module, used for obtaining configuration options defined in the basic input and output system code during the compilation phase of the basic input and output system code, and recording the configuration options and corresponding option default values ​​to obtain a baseline file;

[0036] An acquisition module, used for acquiring a binary file obtained by compiling the basic input and output system code;

[0037] A test module, configured to, after updating the basic input / output system in the target device using the binary file, export the configuration options and corresponding option default values ​​recorded in the updated basic input / output system in the target device to obtain a file to be tested;

[0038] The comparison module is used to compare the baseline file with the file to be tested and record the comparison result.

[0039] Optionally, the baseline determination module is specifically used for:

[0040] Accessing device files corresponding to each device defined in the basic input and output system code;

[0041] Read corresponding device configuration options from the device file;

[0042] Accessing a project file corresponding to a specific project defined in the basic input and output system code;

[0043] Read corresponding project configuration options from the project file;

[0044] The device configuration options and the project configuration options are aggregated to obtain configuration options defined in the basic input and output system code.

[0045] Optionally, the baseline determination module is specifically used for:

[0046] Determine the option default value corresponding to the configuration option defined in the basic input and output system code by using the global variable;

[0047] A one-to-one correspondence between the configuration options defined in the basic input / output system code and the corresponding option default values ​​is constructed and recorded to obtain the baseline file.

[0048] Optionally, the comparison module is specifically used for:

[0049] If the baseline file and the file to be tested have different option default values ​​for the same configuration option, then the same configuration option and the corresponding different option default values ​​are recorded in the comparison result;

[0050] If the option default values ​​set for each configuration option in the baseline file and the file to be tested are the same, the file comparison consistency information is recorded in the comparison result.

[0051] Optionally, the comparison module is further configured to:

[0052] Packing the binary file, the baseline file and the description file into a verification file package;

[0053] Performing a baseline comparison on the binary file in the verification file package;

[0054] After the baseline comparison is correct, functional verification is performed on the binary file in the verification file package;

[0055] If the function verification passes, the binary file in the verification file package is installed on the server, and the option value of the configuration option of the basic input and output system in the server is adjusted according to the device configuration of the server;

[0056] If the functional verification fails, repeating the step of performing functional verification on the binary file in the verification file package;

[0057] If the baseline comparison is incorrect, the steps of obtaining a binary file obtained by compiling the basic input and output system code is executed; after using the binary file to update the basic input and output system in the target device, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison results are recorded.

[0058] Optionally, the comparison module is further configured to:

[0059] The description file is constructed; the description file records different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0060] Optionally, the comparison module is further configured to:

[0061] Adjusting the device configuration of the server;

[0062] The option value of the configuration option of the basic input and output system in the server is adjusted and recorded according to the adjusted device configuration.

[0063] In a third aspect, the present application provides an electronic device, including:

[0064] Memory for storing computer programs;

[0065] The processor is used to execute the computer program to implement the option detection method of the basic input and output system disclosed above.

[0066] In a fourth aspect, the present application provides a non-volatile storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned disclosed basic input and output system option detection method.

[0067] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the option detection method of the basic input and output system disclosed above.

[0068] It can be seen from the above scheme that the present application provides a basic input and output system option detection method, including: in the compilation stage of the basic input and output system code, obtaining the configuration options defined in the basic input and output system code, and recording the configuration options and the corresponding option default values ​​to obtain a baseline file; obtaining the binary file obtained after the basic input and output system code is compiled; after using the binary file to update the basic input and output system in the target device, exporting the configuration options and the corresponding option default values ​​recorded in the updated basic input and output system in the target device to obtain a file to be tested; comparing the baseline file and the file to be tested, and recording the comparison result.

[0069] It can be seen that in the compilation stage of the basic input and output system code, the present application obtains the configuration options defined in the basic input and output system code, and records the configuration options and the corresponding option default values ​​to obtain a baseline file, and then obtains the binary file obtained after the basic input and output system code is compiled; after using the binary file to update the basic input and output system in the target device, the configuration options and the corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain the file to be tested; the baseline file and the file to be tested are compared, and the comparison results are recorded. This solution determines the BIOS option baseline file in the compilation stage of the basic input and output system code, and there is no need to export the baseline in the subsequent testing and function verification stages, which simplifies the BIOS version update process; and the BIOS option baseline file is automatically determined based on the basic input and output system code, without the need for manual operation by relevant personnel, which can reduce the error rate and BIOS development cycle, and improve the efficiency of BIOS version update and launch.

[0070] Correspondingly, the basic input and output system option detection device, equipment and medium provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0072] Figure 1 A flowchart of a method for detecting options of a basic input and output system disclosed in the present application;

[0073] Figure 2 A schematic diagram of the process from development to batch online application of a basic input and output system disclosed in this application;

[0074] Figure 3 A flow chart of another basic input and output system option detection method disclosed in the present application;

[0075] Figure 4 A schematic diagram of an option detection device for a basic input and output system disclosed in the present application;

[0076] Figure 5 A schematic diagram of an electronic device disclosed in this application;

[0077] Figure 6 A server structure diagram provided for this application;

[0078] Figure 7 A terminal structure diagram provided for this application. DETAILED DESCRIPTION

[0079] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other examples obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] At present, during the testing and verification phases of BIOS, it is necessary to repeatedly export the BIOS option baseline in order to detect the BIOS options; since the export operation requires manual operation by relevant personnel, it is prone to errors, which also increases the BIOS development cycle and reduces the efficiency of BIOS version updates. To this end, the present application provides an option detection scheme for a basic input and output system, which can simplify the BIOS version update process.

[0081] See also Figure 1 As shown, the embodiment of the present application discloses a method for detecting options of a basic input and output system, including:

[0082] S101. In the compiling stage of the basic input and output system code, the configuration options defined in the basic input and output system code are obtained, and the configuration options and corresponding option default values ​​are recorded to obtain a baseline file.

[0083] It should be noted that configuration options generally include conventional device configuration options, and may also include project configuration options defined for specific projects. Therefore, in one embodiment, obtaining configuration options defined in the basic input and output system code includes: accessing device files corresponding to each device defined in the basic input and output system code; reading corresponding device configuration options from the device files; accessing project files corresponding to specific projects defined in the basic input and output system code; reading corresponding project configuration options from the project files; summarizing device configuration options and project configuration options to obtain configuration options defined in the basic input and output system code. Among them, the device described in this embodiment is a PCIE device, and accessing the device files corresponding to each device can be implemented by a loop function.

[0084] In one embodiment, recording the configuration options and the corresponding option default values ​​to obtain a baseline file includes: using global variables to determine the option default values ​​corresponding to the configuration options defined in the basic input and output system code; constructing and recording a one-to-one correspondence between the configuration options defined in the basic input and output system code and the corresponding option default values ​​to obtain the baseline file.

[0085] S102: Obtain a binary file obtained by compiling the basic input and output system code.

[0086] After the BIOS code is compiled, you can compare the configuration options defined in this BIOS code with the configuration options defined in the previous BIOS code, and explain them in the description file. For example, if the current BIOS code is version 2, then compare the differences between the configuration options defined in version 2 and version 1.

[0087] S103 , after updating the basic input / output system in the target device using the binary file, export the configuration options and corresponding option default values ​​recorded in the basic input / output system after the update in the target device to obtain a file to be tested.

[0088] S104. Compare the baseline file and the file to be tested, and record the comparison result.

[0089] In this embodiment, comparing the baseline file and the file to be tested can be regarded as a BIOS test process. Therefore, in one implementation, recording the comparison result includes: if the baseline file and the file to be tested have different option default values ​​for the same configuration option, then recording the same configuration option and the corresponding different option default values ​​in the comparison result; if the baseline file and the file to be tested have the same option default values ​​for each configuration option, then recording the file comparison consistency information in the comparison result.

[0090] Among them, after recording the file comparison consistency information in the comparison result, it also includes: packaging the binary file, the baseline file and the description file into a verification file package; performing a baseline comparison on the binary file in the verification file package; after the baseline comparison is correct, performing functional verification on the binary file in the verification file package; if the functional verification passes, the binary file in the verification file package is installed on the server, and the option value of the configuration option of the basic input and output system in the server is adjusted according to the device configuration of the server; if the functional verification fails, repeat the step of performing functional verification on the binary file in the verification file package; if the baseline comparison is incorrect, execute the step of obtaining the binary file obtained by compiling the basic input and output system code; after using the binary file to update the basic input and output system in the target device, export the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device to obtain the file to be tested; compare the baseline file and the file to be tested, and record the comparison results.

[0091] In one embodiment, before packaging the binary file, the baseline file and the description file into a verification file package, the process further includes: constructing a description file; and recording in the description file different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0092] In one embodiment, adjusting the option value of the configuration option of the basic input / output system in the server according to the device configuration of the server includes: adjusting the device configuration of the server; adjusting and recording the option value of the configuration option of the basic input / output system in the server according to the adjusted device configuration. For example, if there are changes in the disk, network card, operating system, etc. in the server, then the option value of the configuration option of the basic input / output system is adjusted accordingly. This embodiment is applied when the BIOS code is compiled and ready to generate a binary file.

[0093] It can be seen that in the compilation stage of the basic input and output system code, this embodiment obtains the configuration options defined in the basic input and output system code, and records the configuration options and the corresponding option default values ​​to obtain a baseline file, and then obtains the binary file obtained after the basic input and output system code is compiled; after using the binary file to update the basic input and output system in the target device, the configuration options and the corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; the baseline file and the file to be tested are compared, and the comparison results are recorded. This solution determines the BIOS option baseline file in the compilation stage of the basic input and output system code, and there is no need to export the baseline in the subsequent testing and function verification stages, which simplifies the BIOS version update process; and the BIOS option baseline file is automatically determined based on the basic input and output system code, without the need for manual operation by relevant personnel, which can reduce the error rate and BIOS development cycle, and improve the efficiency of BIOS version update and launch.

[0094] For an example, see the process of BIOS from development to mass production and application. Figure 2 .exist Figure 2In the process, the edited BIOS code is first compiled, and then a BIOS update package is generated. The update package is used to update the BIOS on the corresponding machine; then the BIOS options are exported using the export tool to clarify whether the default values ​​of each option meet the corresponding baseline values; then the BIOS update package is repackaged and the corresponding BIOS code is uploaded for testing. The BIOS test process includes: using the uploaded BIOS release code to be tested to update the BIOS on the corresponding machine, comparing the default options in the release package with the exported options; using the tool to modify the options to verify the option functions; after the functional verification is completed, the BIOS version is sent to the production line for production line application and functional testing. In the production stage of the production line, the BIOS that has been tested above is imported and compared with the baseline; if the BIOS options are consistent with the baseline, the function-related option modification verification is performed; if the functional verification passes, the option default values ​​are restored, and the BIOS option values ​​are exported and compared with the baseline; if the BIOS options are consistent with the baseline, the online server is deployed, and different packages are set according to different server configurations; different options under different packages have different option values. In specific applications, tools can be used to change BIOS options to adapt to the package.

[0095] In another example, a module for collecting option strings is designed. The module is used to collect option strings during the BIOS code compilation phase and determine the baseline. For details, see Figure 3 The compilation of the collection module is completed when the BIOS code is compiled and ready to generate a binary file. Figure 3 In the example, the loop function of obtaining the option layout is used to obtain the setting options of various devices. Specifically, the device file is obtained under the specified path, and the options of the corresponding device are obtained from the device file; different devices correspond to different paths. The setting options of various devices obtained set default values ​​and form a variable table. Since specific options may be defined in the BIOS code, the relevant specific options and their default values ​​of specific items are collected according to the above steps, and a specific table is formed; the two tables obtained above are output as baseline files.

[0096] After that, continue to compile the BIOS code, package it to get the binary file, determine the different options between the current version of BIOS and the previous version of BIOS, and construct the relevant description file. Then package the compiled binary file, default value option file and other release package description files together. The packaged file package can be used to update the server's BIOS. After the update, restart the system and use the tool to export the relevant BIOS options.

[0097] This embodiment pre-positions the option export and baseline determination to the BIOS compilation stage, which can enhance the work efficiency of R&D personnel and also improve the efficiency of R&D debugging, system testing and system maintenance. Among them, the collection module realizes the efficient capture of option strings at the initial stage of system startup through clever code embedding. This design strategy ensures that the BIOS can quickly identify and record all necessary configuration information at the initial stage of loading, laying a solid foundation for subsequent automated processing. The loop function for obtaining the option layout is used to realize the flexible association of the options of each functional sub-module, which can automatically traverse all available configurations and dynamically adjust the option layout according to the actual situation of the hardware platform, greatly improving the adaptability and personalization of the BIOS configuration. The default value is generated in the compilation stage. The system actively extracts the hardware specification information such as CPU, memory, PCIe, etc., and uses these data to intelligently generate a set of default configuration variable tables, which effectively reduces the user's initial configuration burden and improves the efficiency and accuracy of system initialization.

[0098] By arranging the compilation of the collection module after the BIOS code is compiled and before the BIOS binary file is generated, it ensures a smooth compilation process and instant integration of the configuration information, avoiding possible conflicts and delays.

[0099] For the options of specific projects, a specific default value table is formed to improve the flexibility of BIOS configuration and adapt to various application scenarios. Finally, all variables associated with default values ​​are exported to the specified directory in a preset format to facilitate subsequent review and archiving. After the binary code is compiled and packaged, the default values ​​of the option strings are checked, the differences between versions are compared and the reasons for the changes are explained, and BIOS option verification is also performed.

[0100] This embodiment realizes the intelligent and automated management of the entire chain from BIOS configuration information collection to verification and release. Among them, the export of BIOS option default values ​​is placed in the BIOS compilation process, and the export process uses the functional function module of the UEFI framework to construct the association relationship between the information of the BIOS option string and the default value; and when the compilation is about to be completed, their association relationship is output to the specified directory through the constructor. For the specific BIOS options that need to be added to the project, the special options and the variables specified by the special options are reconstructed; then a function is constructed to associate the relevant options with the variables, and when the compilation is completed, the relevant options are output to the specified directory. By configuring the changes to the default value table, the relevant options can be changed by themselves when the compilation is completed, so as to achieve the effect of changing the options, and the BIOS can be updated to take effect.

[0101] The following is an introduction to an option detection device for a basic input / output system provided in an embodiment of the present application. The option detection device for a basic input / output system described below can be referenced to other embodiments described in this document.

[0102] See also Figure 4 As shown, the embodiment of the present application discloses an option detection device of a basic input and output system, including:

[0103] The baseline determination module 401 is used to obtain the configuration options defined in the basic input and output system code during the compilation phase of the basic input and output system code, and record the configuration options and the corresponding option default values ​​to obtain a baseline file;

[0104] An acquisition module 402 is used to acquire a binary file obtained by compiling the basic input and output system code;

[0105] The test module 403 is used to export the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device after updating the basic input and output system in the target device using the binary file, so as to obtain a file to be tested;

[0106] The comparison module 404 is used to compare the baseline file and the file to be tested, and record the comparison result.

[0107] In one embodiment, the baseline determination module is specifically used to:

[0108] Access the device files corresponding to each device defined in the basic input and output system code;

[0109] Read the corresponding device configuration options from the device file;

[0110] Access the project file corresponding to a specific project defined in the BIOS code;

[0111] Read the corresponding project configuration options from the project file;

[0112] Sum up the device configuration options and project configuration options to get the configuration options defined in the BIOS code.

[0113] In one embodiment, the baseline determination module is specifically used to:

[0114] Use global variables to determine the default value of the configuration options defined in the basic input and output system code;

[0115] A one-to-one correspondence between the configuration options defined in the basic input and output system code and the corresponding option default values ​​is constructed and recorded to obtain a baseline file.

[0116] In one embodiment, the comparison module is specifically used for:

[0117] If the baseline file and the file to be tested have different default values ​​for the same configuration option, the same configuration option and the corresponding different default values ​​will be recorded in the comparison results;

[0118] If the default values ​​of the options set for each configuration option in the baseline file and the file to be tested are the same, the file comparison consistency information is recorded in the comparison result.

[0119] In one embodiment, the comparison module is further used to:

[0120] Package the binary files, baseline files, and description files into a verification file package;

[0121] Perform baseline comparison on binary files in the verification file package;

[0122] After the baseline comparison is correct, perform functional verification on the binary files in the verification file package;

[0123] If the function verification passes, the binary file in the verification file package is installed on the server, and the option value of the configuration option of the basic input and output system in the server is adjusted according to the device configuration of the server;

[0124] If the functional verification fails, repeat the step of performing functional verification on the binary file in the verification file package;

[0125] If the baseline comparison is incorrect, the steps of obtaining a binary file obtained by compiling the basic input and output system code is executed; after updating the basic input and output system in the target device using the binary file, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison results are recorded.

[0126] In one embodiment, the comparison module is further used to:

[0127] Construct a description file; the description file records different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0128] In one embodiment, the comparison module is further used to:

[0129] Adjust the server's equipment configuration;

[0130] The option value of the configuration option of the basic input and output system in the server is adjusted and recorded according to the adjusted device configuration.

[0131] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0132] It can be seen that this embodiment provides an option detection device for a basic input / output system. This scheme determines the BIOS option baseline file during the compilation stage of the basic input / output system code, and there is no need to export the baseline during the subsequent testing and function verification stages, thereby simplifying the BIOS version update process. Moreover, the BIOS option baseline file is automatically determined based on the basic input / output system code, without the need for manual operation by relevant personnel, which can reduce the error rate and BIOS development cycle, and improve the efficiency of BIOS version updates and online launches.

[0133] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below can be referenced to other embodiments described in this document.

[0134] See also Figure 5 As shown, the embodiment of the present application discloses an electronic device, including:

[0135] Memory 501, used for storing computer programs;

[0136] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.

[0137] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: in the compilation stage of the basic input and output system code, the configuration options defined in the basic input and output system code are obtained, and the configuration options and the corresponding option default values ​​are recorded to obtain a baseline file; a binary file obtained after the basic input and output system code is compiled is obtained; after the basic input and output system in the target device is updated using the binary file, the configuration options and the corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison result is recorded.

[0138] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: accessing device files corresponding to each device defined in the basic input and output system code; reading corresponding device configuration options from the device files; accessing project files corresponding to specific projects defined in the basic input and output system code; reading corresponding project configuration options from the project files; and summarizing device configuration options and project configuration options to obtain configuration options defined in the basic input and output system code.

[0139] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: using global variables to determine option default values ​​corresponding to configuration options defined in the basic input and output system code; constructing and recording a one-to-one correspondence between configuration options defined in the basic input and output system code and corresponding option default values ​​to obtain a baseline file.

[0140] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: if the baseline file and the file to be tested have different option default values ​​set for the same configuration option, the same configuration option and the corresponding different option default values ​​are recorded in the comparison result; if the baseline file and the file to be tested have the same option default values ​​set for each configuration option, the file comparison consistency information is recorded in the comparison result.

[0141] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: packaging binary files, baseline files and description files into a verification file package; performing a baseline comparison on the binary files in the verification file package; after the baseline comparison is correct, performing functional verification on the binary files in the verification file package; if the functional verification passes, the binary files in the verification file package are installed on the server, and the option values ​​of the configuration options of the basic input and output system in the server are adjusted according to the device configuration of the server; if the functional verification fails, the step of performing functional verification on the binary files in the verification file package is repeated; if the baseline comparison is incorrect, the binary file obtained by compiling the basic input and output system code is obtained; after using the binary file to update the basic input and output system in the target device, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain the file to be tested; the baseline file and the file to be tested are compared, and the comparison result is recorded.

[0142] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: constructing a description file; recording in the description file different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0143] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: adjusting the device configuration of the server; and adjusting and recording the option values ​​of the configuration options of the basic input and output system in the server according to the adjusted device configuration.

[0144] Furthermore, the present application also provides an electronic device. The electronic device can be Figure 6 The server shown can also be Figure 7 Terminal shown. Figure 6 and Figure 7 All of them are structural diagrams of electronic devices according to an exemplary embodiment, and the contents in the diagrams cannot be regarded as any limitation on the scope of use of the present application.

[0145] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus. The memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relevant steps in the option detection of the basic input / output system disclosed in any of the aforementioned embodiments.

[0146] In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0147] In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.

[0148] The operating system is used to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the option detection method of the basic input and output system disclosed in any of the above embodiments, the computer program can further include computer programs that can be used to complete other specific tasks. In addition to data such as application update information, data can also include data such as application developer information.

[0149] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, the terminal may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer, etc.

[0150] Generally, the terminal in this embodiment includes: a processor and a memory.

[0151] Among them, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0152] The memory may include one or more computer non-volatile storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the option detection method of the basic input and output system executed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include but is not limited to update information of the application.

[0153] In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.

[0154] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than those shown in the figure.

[0155] A non-volatile storage medium provided in an embodiment of the present application is introduced below. The non-volatile storage medium described below can be cross-referenced with other embodiments described herein.

[0156] A non-volatile storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the basic input / output system option detection method disclosed in the above-mentioned embodiment. The non-volatile storage medium is a computer-readable non-volatile storage medium, which, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.

[0157] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: in the compilation stage of the basic input and output system code, the configuration options defined in the basic input and output system code are obtained, and the configuration options and the corresponding option default values ​​are recorded to obtain a baseline file; a binary file obtained after the basic input and output system code is compiled is obtained; after the basic input and output system in the target device is updated using the binary file, the configuration options and the corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison result is recorded.

[0158] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: accessing device files corresponding to each device defined in the basic input and output system code; reading corresponding device configuration options from the device files; accessing project files corresponding to specific projects defined in the basic input and output system code; reading corresponding project configuration options from the project files; and summarizing device configuration options and project configuration options to obtain configuration options defined in the basic input and output system code.

[0159] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: using global variables to determine option default values ​​corresponding to configuration options defined in the basic input and output system code; constructing and recording a one-to-one correspondence between the configuration options defined in the basic input and output system code and the corresponding option default values ​​to obtain a baseline file.

[0160] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: if the baseline file and the file to be tested have different option default values ​​set for the same configuration option, the same configuration option and the corresponding different option default values ​​are recorded in the comparison result; if the baseline file and the file to be tested have the same option default values ​​set for each configuration option, the file comparison consistency information is recorded in the comparison result.

[0161] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: packaging binary files, baseline files and description files into a verification file package; performing a baseline comparison on the binary files in the verification file package; after the baseline comparison is correct, performing functional verification on the binary files in the verification file package; if the functional verification passes, the binary files in the verification file package are installed on the server, and the option values ​​of the configuration options of the basic input and output system in the server are adjusted according to the device configuration of the server; if the functional verification fails, the step of performing functional verification on the binary files in the verification file package is repeated; if the baseline comparison is incorrect, the binary file obtained by compiling the basic input and output system code is obtained; after using the binary file to update the basic input and output system in the target device, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain the file to be tested; the baseline file and the file to be tested are compared, and the comparison result is recorded.

[0162] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: constructing a description file; recording in the description file different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

[0163] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: adjusting the device configuration of the server; adjusting and recording the option values ​​of the configuration options of the basic input and output system in the server according to the adjusted device configuration.

[0164] A computer program product provided in an embodiment of the present application is introduced below. The computer program product described below can be cross-referenced with other embodiments described in this document.

[0165] A computer program product comprises a computer program / instruction, which implements the steps of the above disclosed basic input and output system option detection method when executed by a processor.

[0166] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0167] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of non-volatile storage medium known in the art.

[0168] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for detecting options of a basic input / output system, characterized in that: include: In the compilation phase of the basic input and output system code, the configuration options defined in the basic input and output system code are obtained, and the configuration options and corresponding option default values ​​are recorded to obtain a baseline file; Obtain a binary file obtained by compiling the basic input and output system code; After updating the basic input and output system in the target device using the binary file, exporting the configuration options and corresponding option default values ​​recorded in the basic input and output system after the update in the target device to obtain a file to be tested; Compare the baseline file with the file to be tested, and record the comparison result.

2. The method according to claim 1, characterized in that Get the configuration options defined in the basic input and output system code, including: Accessing device files corresponding to each device defined in the basic input and output system code; Read corresponding device configuration options from the device file; Accessing a project file corresponding to a specific project defined in the basic input and output system code; Read corresponding project configuration options from the project file; The device configuration options and the project configuration options are aggregated to obtain configuration options defined in the basic input and output system code.

3. The method according to claim 1, characterized in that Record the configuration options and the corresponding default values ​​to obtain a baseline file, including: Determine the option default value corresponding to the configuration option defined in the basic input and output system code by using the global variable; A one-to-one correspondence between the configuration options defined in the basic input / output system code and the corresponding option default values ​​is constructed and recorded to obtain the baseline file.

4. The method according to claim 1, characterized in that: Record the comparison results, including: If the baseline file and the file to be tested have different option default values ​​for the same configuration option, then the same configuration option and the corresponding different option default values ​​are recorded in the comparison result; If the option default values ​​set for each configuration option in the baseline file and the file to be tested are the same, the file comparison consistency information is recorded in the comparison result.

5. The method according to claim 4, characterized in that After recording the file comparison consistency information in the comparison result, the method further includes: Packing the binary file, the baseline file and the description file into a verification file package; Performing a baseline comparison on the binary file in the verification file package; After the baseline comparison is correct, functional verification is performed on the binary file in the verification file package; If the function verification passes, the binary file in the verification file package is installed on the server, and the option value of the configuration option of the basic input and output system in the server is adjusted according to the device configuration of the server; If the functional verification fails, repeating the step of performing functional verification on the binary file in the verification file package; If the baseline comparison is incorrect, the steps of obtaining a binary file obtained by compiling the basic input and output system code is executed; after using the binary file to update the basic input and output system in the target device, the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device are exported to obtain a file to be tested; and the baseline file and the file to be tested are compared, and the comparison results are recorded.

6. The method according to claim 5, characterized in that Before packaging the binary file, the baseline file and the description file into a verification file package, the method further includes: The description file is constructed; the description file records different configuration options and corresponding option values ​​of the current version and the previous version of the basic input and output system.

7. The method according to claim 5, characterized in that Adjusting the option value of the configuration option of the basic input and output system in the server according to the device configuration of the server includes: Adjusting the device configuration of the server; The option value of the configuration option of the basic input and output system in the server is adjusted and recorded according to the adjusted device configuration.

8. An option detection device for a basic input / output system, characterized in that: include: A baseline determination module, used to obtain configuration options defined in the basic input and output system code during the compilation phase of the basic input and output system code, and record the configuration options and corresponding option default values ​​to obtain a baseline file; An acquisition module, used for acquiring a binary file obtained by compiling the basic input and output system code; A test module, for exporting the configuration options and corresponding option default values ​​recorded in the updated basic input and output system in the target device after updating the basic input and output system in the target device using the binary file, to obtain a file to be tested; The comparison module is used to compare the baseline file with the file to be tested and record the comparison result.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to any one of claims 1 to 7.

10. A non-volatile storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.