Construction method and device of basic input and output system and electronic equipment

By calling pre-trained programming models, the basic input and output system (BIOS) is automatically built, which solves the problems of low BIOS construction efficiency and high labor costs in the existing technology, and realizes efficient and automated BIOS construction.

CN119690404AActive Publication Date: 2025-03-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411505405.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-03-25
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

In the prior art, the construction efficiency of the basic input and output system (BIOS) is low, resulting in high labor costs and lack of automated construction methods.

Method used

By obtaining the construction information of the target BIOS and calling the pre-trained programming model, the construction information is input into the programming model to generate a BIOS that matches the construction information. The programming model is used to determine the compile environment and compile functions required to build and compile based on these environments and functions.

Benefits of technology

The automatic construction of BIOS is realized, which improves the construction efficiency and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690404A_ABST
    Figure CN119690404A_ABST
Patent Text Reader

Abstract

The invention provides a construction method and device of a basic input and output system and electronic equipment. The method comprises the steps of obtaining construction information of a target basic input and output system; calling a pre-trained programming model, and inputting the construction information into the programming model to obtain a target basic input / output system which is output by the programming model and matched with the construction information, the programming model is used for determining a compiling environment and a compiling function required for constructing the target basic input / output system according to the construction information, and compiling based on the compiling environment and the compiling function to obtain the target basic input / output system. The basic input and output system can be automatically constructed, the construction efficiency of the basic input and output system is improved, and the manual labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for constructing a basic input and output system and electronic equipment. Background Art

[0002] The Basic Input Output System (BIOS) is a set of programs embedded in the motherboard chip of the computer.

[0003] It is known from the related art that, in order to realize the function of an independent basic input and output system, engineers are often required to manually develop and implement it according to the architecture corresponding to the development toolkit. This cannot improve work efficiency well and leads to high labor costs.

[0004] Therefore, finding a basic input and output system construction method that can improve the basic input and output system construction efficiency has become a current research hotspot. Summary of the invention

[0005] The present invention provides a basic input-output system construction method, device and electronic equipment, which can automatically construct the basic input-output system, improve the construction efficiency of the basic input-output system, and reduce the manual labor cost.

[0006] The present invention provides a method for constructing a basic input-output system, the method comprising: obtaining construction information of a target basic input-output system; calling a pre-trained programming model, and inputting the construction information into the programming model to obtain a target basic input-output system output by the programming model that matches the construction information, wherein the programming model is used to determine a compilation environment and a compilation function required to construct the target basic input-output system according to the construction information, and compile the target basic input-output system based on the compilation environment and the compilation function.

[0007] According to a method for constructing a basic input / output system provided by the present invention, the construction information at least includes a tool development kit architecture required for constructing the target basic input / output system and functional requirements of the target basic input / output system; the compilation function includes a target main function and a target library function; the programming model outputs a target basic input / output system that matches the construction information in the following manner: based on the tool development kit architecture required for constructing the target basic input / output system, determining a compilation environment required for constructing the target basic input / output system; based on the compilation environment, determining a configuration file required for constructing the target basic input / output system under the tool development kit architecture; based on the functional requirements of the target basic input / output system, determining a target main function and a target library function for constructing the target basic input / output system; and compiling the configuration file, the target main function and the target library function to compile and obtain a target basic input / output system that matches the construction information.

[0008] According to a method for constructing a basic input-output system provided by the present invention, the configuration file includes function name information configured for the target main function; after determining the target main function for constructing the target basic input-output system based on the functional requirements of the target basic input-output system, the method further includes: setting the function name of the target main function according to the function name information configured for the target main function included in the configuration file.

[0009] According to a method for constructing a basic input-output system provided by the present invention, before determining the target library function for constructing the target basic input-output system based on the functional requirements of the target basic input-output system, the method further includes: deploying multiple library functions in the configuration file under the tool development kit architecture, wherein different library functions match different functional requirements; determining the target library function for constructing the target basic input-output system based on the functional requirements of the target basic input-output system specifically includes: determining and calling the target library function that matches the functional requirements of the target basic input-output system in the configuration file based on the functional requirements of the target basic input-output system.

[0010] According to a basic input output system construction method provided by the present invention, after the target basic input output system is compiled based on the compilation environment and the compilation function, the method further includes: obtaining a compilation log of the target basic input output system; determining whether the compiled target basic input output system is compiled accurately according to the compilation log; if the compiled target basic input output system is compiled inaccurately, compiling and modifying the inaccurately compiled content of the target basic input output system based on the compilation log to obtain the compiled and modified target basic input output system.

[0011] According to a method for constructing a basic input-output system provided by the present invention, the method further includes: when the compiled target basic input-output system is compiled accurately, simulating operation processing on the target basic input-output system to obtain a simulation operation processing result; when the simulation operation processing result does not meet the functional requirements of the target basic input-output system, recompiling the target basic input-output system.

[0012] According to a basic input-output system construction method provided by the present invention, a target basic input-output system is recompiled, which is implemented in the following manner: calling the programming model; inputting the construction information of the target basic input-output system into the programming model, and inputting the target basic input-output system that does not meet the functional requirements into the programming model in parallel as a negative reference, so as to obtain the recompiled target basic input-output system output by the programming model.

[0013] According to a method for constructing a basic input-output system provided by the present invention, the method further includes: when the result of the simulation operation processing is that the functional requirements of the target basic input-output system are not met, obtaining the target basic input-output system that does not meet the functional requirements, and the construction information corresponding to the target basic input-output system that does not meet the functional requirements; determining a training negative sample based on the target basic input-output system that does not meet the functional requirements and the construction information; iteratively training the programming model based on the training negative sample to obtain an iteratively trained programming model; using the iteratively trained programming model as the programming model, or when the result of the simulation operation processing is that the functional requirements of the target basic input-output system are met, obtaining the target basic input-output system that meets the functional requirements, and the construction information corresponding to the target basic input-output system that meets the functional requirements; determining a training positive sample based on the target basic input-output system that meets the functional requirements, and the construction information; iteratively training the programming model based on the training positive sample to obtain an iteratively trained programming model; using the iteratively trained programming model as the programming model.

[0014] The present invention also provides a basic input-output system construction device, the device comprising: an acquisition module, used to obtain construction information of a target basic input-output system; a processing module, used to call a pre-trained programming model, and input the construction information into the programming model to obtain a target basic input-output system output by the programming model that matches the construction information, wherein the programming model is used to determine the compilation environment and compilation function required to construct the target basic input-output system according to the construction information, and compile the target basic input-output system based on the compilation environment and compilation function.

[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for constructing a basic input / output system as described above is implemented.

[0016] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for constructing a basic input and output system as described above is implemented.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for constructing a basic input and output system as described above is implemented.

[0018] The basic input-output system construction method, device and electronic device provided by the present invention obtain the construction information of the target basic input-output system; call a pre-trained programming model, and input the construction information into the programming model, so as to automatically obtain the target basic input-output system output by the programming model that matches the construction information, thereby realizing the automatic construction of the basic input-output system, improving the construction efficiency of the basic input-output system, and reducing the labor cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 This is one of the flow charts of the method for constructing the basic input and output system provided by the present invention.

[0021] Figure 2 It is a flow chart of a target basic input-output system in which the programming model output provided by the present invention matches the construction information.

[0022] Figure 3 This is the second flow chart of the method for constructing the basic input and output system provided by the present invention.

[0023] Figure 4 It is a schematic diagram of an application scenario of the method for constructing a basic input and output system provided by the present invention.

[0024] Figure 5 It is a structural schematic diagram of a device for constructing a basic input and output system provided by the present invention.

[0025] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] The basic input-output system construction method provided by the present invention can automatically obtain the target basic input-output system output by the programming model and matching the construction information by calling a pre-trained programming model and inputting construction information into the programming model, thereby realizing the automatic construction of the basic input-output system, improving the construction efficiency of the basic input-output system, and reducing manual labor costs.

[0028] Figure 1 This is one of the flow charts of the method for constructing the basic input and output system provided by the present invention.

[0029] The following will be combined Figure 1 The process of the method for constructing the basic input and output system provided by the present invention is described.

[0030] In an exemplary embodiment of the present invention, Figure 1 It can be known that the method for constructing a basic input and output system may include step 110 and step 120, and each step will be introduced below.

[0031] In step 110, the construction information of the target BIOS is obtained.

[0032] In one embodiment, the construction information of the target basic input and output system can be obtained. The construction information may include at least a tool development kit architecture required to build the target basic input and output system, such as an EDKII architecture, and functional requirements of the target basic input and output system, wherein the functional requirements of the target basic input and output system may include specific module types of the target basic input and output system, dependency conditions of the target basic input and output system, application environment of the target basic input and output system, and functional details of the implementation of the target basic input and output system.

[0033] It can be understood that the functional module architecture of the corresponding target basic input and output system can be determined based on the construction information of the target basic input and output system.

[0034] In step 120, a pre-trained programming model is called, and the build information is input into the programming model to obtain a target basic input-output system output by the programming model that matches the build information, wherein the programming model is used to determine the compilation environment and compilation function required to build the target basic input-output system according to the build information, and compile the target basic input-output system based on the compilation environment and compilation function.

[0035] In another embodiment, a pre-trained programming model can be called, and the construction information can be input into the programming model, so that the target basic input and output system matching the construction information output by the programming model can be automatically obtained. Among them, the programming model can determine the compilation environment and compilation function required to build the target basic input and output system according to the construction information, and compile the target basic input and output system based on the compilation environment and the compilation function. Since the target basic input and output system matching the construction information is automatically compiled based on the trained programming model in this embodiment, the construction efficiency of the basic input and output system can be improved and the labor cost can be reduced.

[0036] Figure 2 It is a flow chart of a target basic input-output system in which the programming model output provided by the present invention matches the construction information.

[0037] The following will be combined Figure 2 The process of outputting a target basic input-output system that matches the building information from the programming model provided by the present invention is described.

[0038] In an exemplary embodiment of the present invention, the compile function includes a target main function and a target library function; Figure 2 It can be known that the target basic input and output system that matches the programming model and the building information may include steps 210 to 240, and each step will be introduced below.

[0039] In step 210, based on the tool development kit architecture required for building the target BIOS, a compiling environment required for building the target BIOS is determined.

[0040] In one embodiment, the tool development kit architecture required for building the target basic input and output system can be EDKII architecture or EDK architecture. For the sake of convenience, in this embodiment, EDKII architecture is used as an example of the tool development kit architecture required for building the target basic input and output system. In the application process, the compilation environment required for building the target basic input and output system can be determined according to the tool development kit architecture required for building the target basic input and output system, that is, EDKII architecture.

[0041] In another embodiment, the compilation environment required for building the target basic input and output system can be implemented in the following manner: Based on the tool development kit architecture required to build the target basic input and output system, such as the EDKII architecture, download and install the corresponding virtual machine workstation, download and install Python, and download and install the ASL file, so that the compilation environment required by the target basic input and output system under the EDKII architecture can be built.

[0042] In step 220, based on the compilation environment, a configuration file required to build a target basic input and output system under the tool development kit architecture is determined.

[0043] In step 230, based on the functional requirements of the target basic input and output system, a target main function and a target library function for constructing the target basic input and output system are determined.

[0044] In another embodiment, the configuration file required to build the target basic input and output system under the tool development kit architecture can also be determined based on the compilation environment. In other words, the basic files (corresponding configuration files) under the EDKII architecture, such as dec files, dsc files, fdf files, c files, h files, and inf files, can be set based on the compilation environment. Among them, ENTRY_POINT, MODULE_TYPE, and LibraryClasses can be set in the configuration file inf file, so as to facilitate the subsequent automatic compilation processing of the target basic input and output system.

[0045] In another embodiment, the target main function and target library function for constructing the target basic input and output system can be determined based on the functional requirements of the target basic input and output system, thereby laying a foundation for compiling a target basic input and output system that matches the construction information.

[0046] In step 240, the configuration file, the target main function and the target library function are compiled to obtain a target basic input and output system that matches the building information.

[0047] In yet another embodiment, compilation processing may be performed based on the configuration file, the target main function, and the target library function, so that a target basic input and output system matching the building information may be automatically compiled.

[0048] In another exemplary embodiment of the present invention, the configuration file may further include function name information configured for the target main function; Figure 2 The above embodiment is used as an example for explanation. After determining the target main function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system, the method for constructing the basic input and output system may further include the following steps: According to the function name information configured for the target main function included in the configuration file, the function name of the target main function is set.

[0049] In one embodiment, the function name of the target main function can be set according to the function name information ENTRY_POINT set in the configuration file inf file. By setting the function name for the target main function according to the ENTRY_POINT set in the configuration file, the target main function can be matched with the configuration file, so that the compilation process based on the configuration file, the target main function and the target library function can be better implemented, and the target basic input and output system matching the build information can be compiled.

[0050] In yet another exemplary embodiment of the present invention, Figure 2 The above embodiment is used as an example for explanation. Before determining the target library function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system, the basic input and output system construction method may further include the following steps: Deploy multiple library functions in a configuration file under the tool development kit architecture, where different library functions match different functional requirements; Among them, based on the functional requirements of the target basic input and output system, the target library function for constructing the target basic input and output system is determined, which can be implemented in the following ways: Based on the functional requirements of the target basic input and output system, a target library function matching the functional requirements of the target basic input and output system is determined and called in the configuration file.

[0051] In one embodiment, since multiple library functions have been deployed in the configuration file under the tool development kit architecture, further, based on the functional requirements of the target basic input and output system, it is possible to determine and call the target library function that matches the functional requirements of the target basic input and output system from the multiple library functions in the configuration file, effectively realizing the reference to the target library function, thereby laying the foundation for automatically compiling the target basic input and output system.

[0052] Figure 3 This is the second flow chart of the method for constructing the basic input and output system provided by the present invention.

[0053] The following will be combined Figure 3 The process of another basic input and output system construction method is described.

[0054] In an exemplary embodiment of the present invention, Figure 3 It can be seen that after the target basic input and output system is compiled based on the compilation environment and the compilation function, the basic input and output system construction method can also include steps 310 to 330, and each step will be introduced below.

[0055] In step 310, a compilation log of the target BIOS is obtained.

[0056] In step 320, it is determined whether the compiled target basic input and output system is compiled accurately according to the compilation log.

[0057] In step 330, when the compiled target BIOS is inaccurately compiled, the inaccurately compiled content of the target BIOS is modified based on the compilation log to obtain a modified target BIOS.

[0058] In one embodiment, after the target basic input and output system is automatically compiled, a compilation log of the target basic input and output system can also be obtained, wherein the compilation log records the compilation process parameters of the target basic input and output system. Further, it can be determined whether the compiled target basic input and output system is compiled accurately based on the compilation log. If it is monitored that the compiled target basic input and output system is compiled inaccurately, a compilation error processing can be performed.

[0059] In another example, since the compilation log records the compilation process parameters of the target basic input and output system, the inaccurate compilation content of the target basic input and output system can also be compiled and modified based on the compilation log, thereby obtaining the target basic input and output system after compilation and modification. It can be understood that the target basic input and output system after compilation and modification has overcome the defect of inaccurate compilation content relative to the target basic input and output system.

[0060] In yet another exemplary embodiment of the present invention, Figure 3 The above embodiment is used as an example to illustrate that the method for constructing a basic input and output system may further include the following steps: When the compiled target basic input and output system is compiled accurately, a simulation operation process is performed on the target basic input and output system to obtain a simulation operation process result; When the simulation operation processing result shows that the functional requirements of the target basic input and output system are not met, the target basic input and output system is recompiled.

[0061] In one embodiment, when it is detected that the compiled target basic input and output system is compiled accurately, a simulation operation process can be performed on the target basic input and output system to obtain a simulation operation process result. In other words, when the compiled target basic input and output system is compiled accurately, the simulation operation software can be called to perform a simulation operation on it, so as to determine whether the target basic input and output system can effectively realize the required functional requirements.

[0062] In another embodiment, when the simulation operation processing result does not meet the functional requirements of the target basic input and output system, it means that although the software compilation process is accurate, the functions of the compiled target basic input and output system do not meet the requirements. Then, the target basic input and output system can be recompiled based on the compilation model.

[0063] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued as an example to illustrate that the target basic input and output system is recompiled, which can be implemented in the following manner: Calling programming model; The construction information of the target basic input and output system is input into the programming model, and the target basic input and output system that does not meet the functional requirements is input into the programming model in parallel as a negative reference, so as to obtain the recompiled target basic input and output system output by the programming model.

[0064] In one embodiment, in order to ensure that the target basic input-output system compiled based on the compilation model can better match the functional requirements, in addition to inputting the construction information of the target basic input-output system into the programming model, the target basic input-output system that does not meet the functional requirements can also be input into the programming model as a negative reference in parallel to obtain the recompiled target basic input-output system output by the programming model. In this embodiment, since the negative reference is set, it can be effectively guaranteed that the recompiled target basic input-output system output this time can meet the functional requirements.

[0065] In another example, the programming model can also be a generative pre-trained model, in which, during the application process, it can also determine to obtain a negative correction prompt text based on the target basic input-output system that does not meet the functional requirements, and the corresponding target basic input-output system construction information is used as a positive prompt text. Further, the negative correction prompt text and the positive prompt text can be input into the generative pre-trained model together to obtain a recompiled target basic input-output system. Since a negative reference is set, it can effectively ensure that the recompiled target basic input-output system output this time can meet the functional requirements.

[0066] In another exemplary embodiment of the present invention, the method for constructing a basic input and output system may further include the following steps: When the simulation operation processing result is that the functional requirements of the target basic input and output system are not met, obtaining the target basic input and output system that does not meet the functional requirements, and the construction information corresponding to the target basic input and output system that does not meet the functional requirements; Determine training negative samples based on the target basic input and output systems that do not meet the functional requirements and the construction information; Based on the training negative samples, the programming model is iteratively trained to obtain the programming model after iterative training; Use the iteratively trained programming model as the programming model, or

[0067] When the simulation operation processing result is that the functional requirements of the target basic input and output system are met, obtaining the target basic input and output system that meets the functional requirements, and the construction information corresponding to the target basic input and output system that meets the functional requirements; Determine training positive samples based on the target basic input and output system that meets the functional requirements and the construction information; Iteratively train the programming model based on the training positive samples to obtain an iteratively trained programming model; The programming model after iterative training is used as the programming model.

[0068] In one embodiment, when the result of the simulation operation processing is that the functional requirements of the target basic input-output system are not met, the target basic input-output system that does not meet the functional requirements and the construction information corresponding to the target basic input-output system can be obtained. Further, the target basic input-output system that does not meet the functional requirements and the corresponding construction information can be determined as training negative samples, and the programming model can be iteratively trained based on the training negative samples, so that the iteratively trained programming model can be obtained; and the iteratively trained programming model can be used as a subsequent programming model. In this embodiment, the obtained programming model is a model calibrated based on the training negative samples, so that the accuracy of the model can be effectively improved, laying a foundation for the accuracy of the target basic input-output system obtained subsequently.

[0069] In another embodiment, when the simulation operation processing result satisfies the functional requirements of the target basic input-output system, the target basic input-output system that meets the functional requirements and the construction information corresponding to the target basic input-output system can be obtained. Further, the target basic input-output system that meets the functional requirements and the corresponding construction information can be determined as training positive samples, and the programming model can be iteratively trained based on the training positive samples, so that the programming model after iterative training can be obtained; and the programming model after iterative training can be used as a subsequent programming model. In this embodiment, the training sample size of the model is further increased by training positive samples, so that the accuracy of the trained model can be further improved, laying a foundation for the accuracy of the target basic input-output system obtained subsequently.

[0070] Figure 4 It is a schematic diagram of an application scenario of the method for constructing a basic input and output system provided by the present invention.

[0071] The following will be combined Figure 4 The application scenario of the basic input and output system construction method provided by the present invention is described.

[0072] In an exemplary embodiment of the present invention, Figure 4 It can be seen that the AI ​​model can be pre-trained, that is, the programming model mentioned above. Furthermore, a development environment and an editing environment that match the construction information of the target basic input and output system can be obtained based on the programming model, and the corresponding development environment and editing environment can be configured. In the application process, the collected basic input and output system BIOS functional requirements can also be parsed through the programming model, so that the functional modules required to build the target basic input and output system can be obtained based on the programming model, for example, it can include the basic files set based on the EDK II architecture (which can correspond to the configuration files in the previous text), the target main function (corresponding to the main function in the figure) and the target library function (corresponding to the library function in the figure) of the target basic input and output system. In another embodiment, the entire module can be automatically compiled based on the developed target main function, the called target library function and the basic files, that is, the target basic input and output system is automatically compiled.

[0073] In another embodiment, it is also possible to determine whether the automatically compiled target basic input and output system has been compiled successfully. If it has been compiled successfully, a simulation test can be automatically performed to obtain a simulation operation processing result. If the simulation operation processing result does not meet the functional requirements of the target basic input and output system, that is, if it has not been passed, the solution is adjusted and recompiled to obtain the target basic input and output system. If the simulation operation processing result meets the functional requirements of the target basic input and output system, that is, if it has been passed, the solution is terminated.

[0074] The basic input and output system construction method provided by the present invention can realize the functional modules corresponding to the basic input and output system BIOS development under the EDKII architecture, and realize the artificial intelligence of the basic input and output system BIOS development code, thereby saving the workload of basic input and output system BIOS developers in developing codes and improving the efficiency of code development.

[0075] According to the foregoing description, the basic input-output system construction method provided by the present invention obtains the construction information of the target basic input-output system; calls a pre-trained programming model, and inputs the construction information into the programming model, so as to automatically obtain the target basic input-output system output by the programming model that matches the construction information, thereby realizing the automatic construction of the basic input-output system, improving the construction efficiency of the basic input-output system, and reducing the labor cost.

[0076] The basic input-output system construction device provided by the present invention is described below. The basic input-output system construction device described below and the basic input-output system construction method described above can be referred to each other.

[0077] Figure 5 It is a structural schematic diagram of a device for constructing a basic input and output system provided by the present invention.

[0078] The following will be combined Figure 5 The structure of a basic input / output system construction device is described.

[0079] In an exemplary embodiment of the present invention, Figure 5 It can be known that the basic input and output system construction device may include an acquisition module 510 and a processing module 520, and each module will be introduced below.

[0080] The acquisition module 510 may be configured to acquire the construction information of the target basic input and output system; The processing module 520 may be configured to call a pre-trained programming model, and input the construction information into the programming model to obtain a target basic input / output system output by the programming model that matches the construction information, wherein:

[0081] The programming model is used to determine the compilation environment and compilation function required to build the target basic input and output system according to the construction information, and compile the target basic input and output system based on the compilation environment and compilation function.

[0082] In an exemplary embodiment of the present invention, the construction information at least includes a tool development kit architecture required to construct the target basic input and output system, and functional requirements of the target basic input and output system; the compilation function includes a target main function and a target library function; The processing module 520 may output a target basic input / output system matching the construction information based on the programming model in the following manner: Determining a compilation environment required for building the target basic input and output system based on a tool development kit architecture required for building the target basic input and output system; Based on the compilation environment, determining a configuration file required to build the target basic input and output system under the tool development kit architecture; Based on the functional requirements of the target basic input and output system, determining a target main function and a target library function for constructing the target basic input and output system; The configuration file, the target main function and the target library function are compiled to obtain a target basic input and output system matching the construction information.

[0083] In an exemplary embodiment of the present invention, the configuration file includes function name information configured for the target main function; The processing module 520 may also be configured to: According to the function name information configured for the target main function included in the configuration file, the function name of the target main function is set.

[0084] In an exemplary embodiment of the present invention, the processing module 520 may also be configured to: Deploy multiple library functions in the configuration file under the tool development kit architecture, wherein different library functions match different functional requirements; The processing module 520 may also determine the target library function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system in the following manner: Based on the functional requirements of the target basic input and output system, the target library function matching the functional requirements of the target basic input and output system is determined and called in the configuration file.

[0085] In an exemplary embodiment of the present invention, the processing module 520 may also be configured to: Obtaining a compilation log of the target basic input and output system; Determining whether the target basic input and output system compiled is compiled accurately according to the compilation log; In the case that the target basic input and output system obtained by compilation is inaccurately compiled, the inaccurately compiled content of the target basic input and output system is compiled and modified based on the compilation log to obtain the target basic input and output system after compilation and modification.

[0086] In an exemplary embodiment of the present invention, the processing module 520 may also be configured to: When the compiled target basic input and output system is compiled accurately, performing simulation operation processing on the target basic input and output system to obtain a simulation operation processing result; When the simulation operation processing result shows that the functional requirements of the target basic input and output system are not met, the target basic input and output system is recompiled.

[0087] In an exemplary embodiment of the present invention, the processing module 520 may implement the recompiling process of the target basic input and output system in the following manner: Invoking the programming model; The construction information of the target basic input-output system is input into the programming model, and the target basic input-output system that does not meet the functional requirements is input into the programming model in parallel as a negative reference, so as to obtain the recompiled target basic input-output system output by the programming model.

[0088] In an exemplary embodiment of the present invention, the processing module 520 may also be configured to: When the simulation operation processing result is that the functional requirements of the target basic input and output system are not met, obtaining the target basic input and output system that does not meet the functional requirements, and the construction information corresponding to the target basic input and output system that does not meet the functional requirements; Determining training negative samples based on the target basic input and output system that does not meet the functional requirements and the construction information; Based on the training negative samples, iteratively train the programming model to obtain an iteratively trained programming model; The iteratively trained programming model is used as the programming model, or

[0089] When the simulation operation processing result is that the functional requirements of the target basic input and output system are met, obtaining the target basic input and output system that meets the functional requirements, and the construction information corresponding to the target basic input and output system that meets the functional requirements; Determining training positive samples based on the target basic input and output system that meets the functional requirements and the construction information; Iteratively training the programming model based on the training positive samples to obtain an iteratively trained programming model; The programming model after the iterative training is used as the programming model.

[0090] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute a method for constructing a basic input-output system, the method comprising: obtaining construction information of a target basic input-output system; calling a pre-trained programming model, and inputting the construction information into the programming model, to obtain a target basic input-output system output by the programming model that matches the construction information, wherein the programming model is used to determine the compilation environment and compilation function required to construct the target basic input-output system according to the construction information, and compile the target basic input-output system based on the compilation environment and compilation function.

[0091] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0092] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the basic input and output system construction method provided by the above methods, the method including: obtaining construction information of the target basic input and output system; calling a pre-trained programming model, and inputting the construction information into the programming model to obtain a target basic input and output system output by the programming model that matches the construction information, wherein the programming model is used to determine the compilation environment and compilation function required to construct the target basic input and output system according to the construction information, and compile the target basic input and output system based on the compilation environment and compilation function.

[0093] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the basic input-output system construction method provided by the above-mentioned methods, the method comprising: obtaining construction information of the target basic input-output system; calling a pre-trained programming model, and inputting the construction information into the programming model to obtain a target basic input-output system output by the programming model that matches the construction information, wherein the programming model is used to determine the compilation environment and compilation function required to construct the target basic input-output system according to the construction information, and compile the target basic input-output system based on the compilation environment and compilation function.

[0094] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 constructing a basic input and output system, characterized in that: The method comprises: Get the target basic input and output system build information; Calling a pre-trained programming model, and inputting the construction information into the programming model, obtaining a target basic input and output system output by the programming model that matches the construction information, wherein: The programming model is used to determine the compilation environment and compilation function required to build the target basic input and output system according to the construction information, and compile the target basic input and output system based on the compilation environment and compilation function.

2. The method for constructing a basic input / output system according to claim 1, characterized in that: The construction information at least includes a tool development kit architecture required to construct the target basic input and output system, and functional requirements of the target basic input and output system; the compilation function includes a target main function and a target library function; The programming model uses the following method to output the target basic input and output system matching the construction information: Determining a compilation environment required for building the target basic input and output system based on a tool development kit architecture required for building the target basic input and output system; Based on the compilation environment, determining a configuration file required to build the target basic input and output system under the tool development kit architecture; Based on the functional requirements of the target basic input and output system, determining a target main function and a target library function for constructing the target basic input and output system; The configuration file, the target main function and the target library function are compiled to obtain a target basic input and output system matching the construction information.

3. The method for constructing a basic input / output system according to claim 2, characterized in that: The configuration file includes function name information configured for the target main function; After determining a target main function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system, the method further includes: According to the function name information configured for the target main function included in the configuration file, the function name of the target main function is set.

4. The method for constructing a basic input / output system according to claim 2, characterized in that: Before determining the target library function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system, the method further includes: Deploy multiple library functions in the configuration file under the tool development kit architecture, wherein different library functions match different functional requirements; The step of determining the target library function for constructing the target basic input and output system based on the functional requirements of the target basic input and output system specifically includes: Based on the functional requirements of the target basic input and output system, the target library function matching the functional requirements of the target basic input and output system is determined and called in the configuration file.

5. The method for constructing a basic input / output system according to any one of claims 1 to 4, characterized in that: After the target basic input and output system is obtained by compiling based on the compilation environment and the compilation function, the method further includes: Obtaining a compilation log of the target basic input and output system; Determining whether the target basic input and output system compiled is compiled accurately according to the compilation log; In the case that the target basic input and output system obtained by compilation is inaccurately compiled, the inaccurately compiled content of the target basic input and output system is compiled and modified based on the compilation log to obtain the target basic input and output system after compilation and modification.

6. The method for constructing a basic input / output system according to claim 5, characterized in that: The method further comprises: When the compiled target basic input and output system is compiled accurately, performing simulation operation processing on the target basic input and output system to obtain a simulation operation processing result; When the simulation operation processing result shows that the functional requirements of the target basic input and output system are not met, the target basic input and output system is recompiled.

7. The method for constructing a basic input / output system according to claim 6, characterized in that: Recompile the target basic input and output system in the following way: Invoking the programming model; The construction information of the target basic input-output system is input into the programming model, and the target basic input-output system that does not meet the functional requirements is input into the programming model in parallel as a negative reference, so as to obtain the recompiled target basic input-output system output by the programming model.

8. The method for constructing a basic input / output system according to claim 6, characterized in that: The method further comprises: When the simulation operation processing result is that the functional requirements of the target basic input and output system are not met, obtaining the target basic input and output system that does not meet the functional requirements, and the construction information corresponding to the target basic input and output system that does not meet the functional requirements; Determining training negative samples based on the target basic input and output system that does not meet the functional requirements and the construction information; Based on the training negative samples, iteratively train the programming model to obtain an iteratively trained programming model; The iteratively trained programming model is used as the programming model, or When the simulation operation processing result is that the functional requirements of the target basic input and output system are met, obtaining the target basic input and output system that meets the functional requirements, and the construction information corresponding to the target basic input and output system that meets the functional requirements; Determining training positive samples based on the target basic input and output system that meets the functional requirements and the construction information; Iteratively training the programming model based on the training positive samples to obtain an iteratively trained programming model; The programming model after the iterative training is used as the programming model.

9. A basic input and output system construction device, characterized in that: The device comprises: An acquisition module, used to acquire the construction information of the target basic input and output system; A processing module is used to call a pre-trained programming model and input the construction information into the programming model to obtain a target basic input and output system output by the programming model that matches the construction information, wherein: The programming model is used to determine the compilation environment and compilation function required to build the target basic input and output system according to the construction information, and compile the target basic input and output system based on the compilation environment and compilation function.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for constructing the basic input and output system according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method and device for deploying edge AI and constructing visual AI programming platform, and electronic equipment

    CN114675830A

  • Compilation construction method and device, electronic equipment and storage medium

    CN115390846A

  • Component compiling method and device, computer equipment and storage medium

    CN116578303A

  • Method and device for generating basic input / output system file

    CN116795375A

  • Application cross compiling method and device, computing equipment and storage medium

    CN116991381A