A method and system for quantitative BIOS development and debugging

By acquiring and comparing the version information and compilation feature values ​​of BIOS, calculate the number of compilation times and generate reports, solve the problem of lack of quantitative methods in BIOS development and commissioning, improve development efficiency and achieve timely notifications.

CN114721937BActive Publication Date: 2025-01-28SHENZHEN WEIBU INFORMATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210207072.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2025-01-28
Estimated Expiration
2042-03-04

AI Technical Summary

Technical Problem

In the BIOS development and debugging process, there is a lack of effective methods to quantify the development efficiency of BIOS.

Method used

By obtaining the preset BIOS version information, recording the date and compilation feature value, the comparative feature value table, calculate the number of effective compilation times and the number of unsuccessful compilation, and generate the report to the designated position of the server.

Benefits of technology

The quantization of BIOS development and commissioning has been achieved, the development efficiency is improved, and the BIOS version information can be notified in time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721937B_ABST
    Figure CN114721937B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for quantitative BIOS development and debugging, the method comprising: obtaining the version information of BIOS in a specific directory; obtaining and recording the date and the compiling characteristic value; pre-setting the characteristic value table, comparing the obtained date with the version characteristic value of BIOS within the specified date; calculating the number of valid compilations and the number of unsuccessful compilations within the range of the maximum value of the BIOS version characteristic value; associating a specific time period with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generating a report, and uploading it to a specified location on a server. The present invention can record the number of successful and failed compilations of the BIOS source code in each time period, and automatically generate a report, which is an effective quantitative method, and can also notify the corresponding personnel at any time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method and system for quantitative BIOS development and debugging. Background Art

[0002] With the development of technology, computers are constantly being updated in terms of software and hardware. As a special computer, the server is the core of the entire network system and computing platform. Many important data are stored in it, and BIOS (Basic InputOutput System) also involves hardware power-on detection, CPU and memory initialization and other functions. In the process of BIOS development and debugging, how to quantify the development efficiency of BIOS? At present, there is no effective method in the industry. Summary of the invention

[0003] In view of the above technical problems, the present invention provides a method and system for quantitative BIOS development and debugging.

[0004] An embodiment of the present invention provides a method for quantitative BIOS development and debugging, the method comprising: obtaining version information of a preset BIOS; obtaining and recording a date and a compilation characteristic value; a pre-set characteristic value table, comparing the obtained date with the version characteristic value of the BIOS within a specified date; calculating the number of valid compilations and the number of unsuccessful compilations within the range of the maximum value of the BIOS version characteristic value; associating the specified date with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generating a report, and uploading it to a specified location on a server.

[0005] Optionally, before obtaining the version information of the preset BIOS, the method also includes: defining time-related constants and characteristic values ​​of the model related to the version; changing the time-related constants and characteristic values ​​of the model related to the version into variables, and regenerating new constants before compiling; defining the time-related constants and characteristic values ​​as part of the BIOS version information, and automatically generating the BIOS version information when the compilation is completed.

[0006] Optionally, the number of matching characteristic values ​​is calculated, and the result of the calculation is the effective compilation number of the BIOS.

[0007] Optionally, the maximum characteristic value minus the number of valid compilations is the number of unsuccessful compilations.

[0008] Optionally, the method further includes: automatically delivering the BIOS version information to corresponding personnel via email.

[0009] Optionally, the step of changing the time-related constants and the characteristic values ​​of the version-related model into variables and regenerating new constants before compilation includes: during pre-compilation, obtaining the current date and assigning it to the newly defined variable in the first file; reading the corresponding time constant in the second file, assigning the newly defined variable in the first file to the time constant, and writing it back to the second file; reading the characteristic value of the version-related model in the second file, increasing the characteristic value by one and writing it back to the second file.

[0010] The present invention also provides a system for quantitative BIOS development and debugging, the system comprising: an acquisition module, used to obtain version information of a preset BIOS, obtain and record a date, and compile characteristic values; a comparison module, a pre-set characteristic value table, comparing the acquired date with the version characteristic value of the BIOS within a specified date; a calculation module, within the range of a maximum value of the BIOS version characteristic value, calculating the number of valid compilations and the number of unsuccessful compilations, associating the specified date with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generating a report, and uploading it to a specified location on a server.

[0011] Optionally, before obtaining the version information of the preset BIOS, the method also includes: defining time-related constants and characteristic values ​​of the model related to the version; changing the time-related constants and characteristic values ​​of the model related to the version into variables, and regenerating new constants before compiling; defining the time-related constants and characteristic values ​​as part of the BIOS version information; and automatically generating the BIOS version information when the compilation is completed.

[0012] Optionally, the number of matching characteristic values ​​is calculated, and the result of the calculation is the effective compilation number of the BIOS.

[0013] Optionally, the maximum characteristic value minus the number of valid compilations is the number of unsuccessful compilations.

[0014] In the technical solution provided by the embodiment of the present invention, a pre-compilation intermediate means is used to change the constants defined before compilation into variable variables during compilation through interleaving means, and compile, and define the time and feature constants as part of the BIOS version information; when the compilation is completed, the BIOS version information is automatically generated; the number of successful and failed BIOS source code compilations in each time period is recorded, and a report is automatically generated, which is an effective quantification method, and the corresponding personnel can be notified at any time. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of an embodiment of a method for quantitative BIOS development and debugging of the present invention;

[0016] Figure 2The present invention is a flowchart of another embodiment of a method for quantitative BIOS development and debugging. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0018] The present invention provides a method for quantitative BIOS development and debugging, please refer to Figure 1 As shown, the method comprises the following steps:

[0019] Step S20, obtaining the version information of the preset BIOS.

[0020] Step S30, obtaining and recording the date, and compiling the characteristic value.

[0021] Step S40: The pre-set characteristic value table compares the acquired date with the version characteristic value of the BIOS within the specified date.

[0022] Step S50, calculating the number of valid compilations and the number of unsuccessful compilations within the range of the maximum value of the BIOS version characteristic value.

[0023] In the present invention, the number of BIOS that meet the characteristic value is calculated, and the result of the calculation is the number of valid compilations of the BIOS. The maximum characteristic value minus the number of valid compilations is the number of unsuccessful compilations.

[0024] Step S60, associating the designated date with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generating a report, and uploading it to a designated location on the server.

[0025] In one embodiment of the present invention, in order to facilitate the corresponding personnel to timely understand the version information of the BIOS, the present invention further includes:

[0026] Automatically send BIOS version information to corresponding personnel via email.

[0027] In one embodiment of the present invention, please refer to Figure 2 As shown, before step S20, the following steps are also included:

[0028] Step S11, defining time-related constants and version-related model characteristic values; defining time-related constants and version-related model characteristic values ​​in the system description language.

[0029] Step S12, changing the time-related constants and the model-related characteristic values ​​into variables, and regenerating new constants before compiling.

[0030] During pre-compilation, use the make command to obtain the current date and assign it to the newly defined variable in the make file;

[0031] Use the gawk tool to read the corresponding time constant in the system description language file, assign the newly defined variable in make to the constant, and write it back to the system description language;

[0032] Use the gawk tool to read the feature value of a specific version model in the system description language, increment the feature value by one, and write it back to the system description language file.

[0033] Specifically, the present invention uses 8-digit PCB naming + 4-digit date + 3-digit compilation feature value according to the BIOS command rule; the file name is traversed by the program, and when the BIOS name is traversed and its naming rule is detected to be consistent with the design, the date and feature value are obtained from the BIOS name; the feature value is calculated into the compilation environment according to each pre-compilation, and it can generate a .h file from the system description language file through the middleware tool, and participate in the compilation of the code; the maximum range of the feature value: refers to the defined 3-digit number, which is less than 1000;

[0034] For example: X133KR200_0125_356; the first 8 digits are the name of the BIOS; 0125 refers to the compilation date, and 356 refers to the 356th compilation.

[0035] Step S13, defining the time-related constants and characteristic values ​​as part of the BIOS version information, and automatically generating the BIOS version information when the compilation is completed.

[0036] Define the time constant and characteristic value as BIOS version information. When the compilation is completed, the BIOS version related to the time and characteristic value is generated. If the compilation reports an error, the corresponding BIOS version cannot be generated.

[0037] The present invention also provides a system for quantitative BIOS development and debugging, the system comprising an acquisition module, a comparison module and a calculation module, the acquisition module is used to obtain version information of a preset BIOS, obtain and record a date, and a compilation characteristic value; the comparison module, a pre-set characteristic value table, compares the acquired date with the version characteristic value of the BIOS within a specified date; the calculation module, within the range of the maximum value of the BIOS version characteristic value, calculates the number of valid compilations and the number of unsuccessful compilations, associates the specified date with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generates a report, and uploads it to a specified location on a server.

[0038] Before obtaining the version information of the preset BIOS, the method also includes: defining time-related constants and characteristic values ​​of the model related to the version; changing the time-related constants and characteristic values ​​of the model related to the version into variables, and regenerating new constants before compiling; defining the time-related constants and characteristic values ​​as part of the BIOS version information, and automatically generating the BIOS version information when the compilation is completed.

[0039] In several embodiments provided by the present invention, it should be understood that the disclosed methods and systems can also be implemented in other ways. The system embodiments described above are merely schematic. For example, the flowcharts in the accompanying drawings show the possible architecture, functions and operations of the methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart can represent a module, a program segment or a part of a code, and the above-mentioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart, and the combination of boxes in the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0040] For another example, the above module division is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple modules can be combined or integrated into another module, or some features can be ignored or not executed.

[0041] In addition, each functional module in the embodiment provided by the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.

[0042] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0043] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for quantitative BIOS development and debugging, characterized in that: The method comprises: Get the version information of BIOS in a specific directory; Get and record the date and compile the feature values; A pre-set characteristic value table compares the acquired date with the version characteristic value of the BIOS within a specified date; Within the range of the maximum value of the BIOS version characteristic value, calculate the number of valid compilations and the number of unsuccessful compilations; Associate a specific time period with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generate a report, and upload it to a specified location on the server; Wherein, before obtaining the version information of the BIOS in the specific directory, the method further includes: Define time-related constants and model-specific characteristic values; Change time-related constants and version-specific model feature values ​​into variables and regenerate new constants before compiling; The time-related constants and characteristic values ​​are defined as part of the BIOS version information, and the BIOS version information is automatically generated when the compilation is completed.

2. The method for quantitative BIOS development and debugging according to claim 1, characterized in that: The number of matching characteristic values ​​is calculated, and the result is the effective compilation times of BIOS.

3. The method for quantitative BIOS development and debugging according to claim 2, characterized in that: The maximum characteristic value minus the number of valid compilations is the number of unsuccessful compilations.

4. The method for quantitative BIOS development and debugging according to claim 1, characterized in that: The method further comprises: Automatically send BIOS version information to corresponding personnel via email.

5. The method for quantitative BIOS development and debugging according to claim 1, characterized in that: The step of changing the time-related constants and the characteristic values ​​of the model related to the specific version into variables and regenerating new constants before compiling includes: During precompilation, get the current date and assign it to the newly defined variable in the first file; Read the corresponding time constant in the second file, assign the newly defined variable in the first file to the time constant, and write it back to the second file; The characteristic value of the model related to the specific version in the second file is read, and the characteristic value is increased by one and then written back to the second file.

6. A system for quantitative BIOS development and debugging, characterized in that: The system comprises: The acquisition module is used to acquire the version information of the BIOS in a specific directory, acquire and record the date, and compile the characteristic value; wherein, before acquiring the version information of the BIOS in the specific directory, the module further includes: defining constants related to time and characteristic values ​​of models related to the specific version; changing the constants related to time and characteristic values ​​of models related to the specific version into variables, and regenerating new constants before compiling; defining the constants related to time and characteristic values ​​as part of the BIOS version information; and automatically generating the BIOS version information when the compilation is completed; The comparison module, with a pre-set characteristic value table, compares the acquired date with the version characteristic value of the BIOS within the specified date; The calculation module calculates the number of valid compilations and the number of unsuccessful compilations within the range of the maximum value of the BIOS version characteristic value, associates a specific time period with the number of compilations, the number of valid compilations, and the number of unsuccessful compilations, generates a report, and uploads it to a designated location on the server.

7. The system for quantitative BIOS development and debugging according to claim 6, characterized in that: The number of matching characteristic values ​​is calculated, and the result is the effective compilation times of BIOS.

8. The system for quantitative BIOS development and debugging according to claim 7, characterized in that: The maximum characteristic value minus the number of valid compilations is the number of unsuccessful compilations.

Citation Information

Patent Citations

  • Method and system of recording server BIOS version information

    CN108170476A

  • BIOS option modification method, apparatus, equipment and readable storage medium

    CN110399169A