Basic input and output system layout information generation method, update method and product

By obtaining the layout variables in the BIOS compiler and generating a BIOS image of the layout information, the problem of traditional BIOS updates relying on third-party tools is solved, and the efficiency, convenience and security of modular BIOS updates are realized.

CN118394368BActive Publication Date: 2024-10-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846340.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

The traditional BIOS update method relies on third-party tools, which is complex, costly and inefficient.

Method used

By obtaining the layout variables of the firmware volume in the BIOS compiler, a BIOS image containing layout information is generated, and external devices are used to parse the layout information in the image for modular updates, avoiding reliance on third-party tools.

Benefits of technology

It realizes the flexibility, convenience and efficiency of BIOS update, reduces the update cost, improves the accuracy of update and the security and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394368B_ABST
    Figure CN118394368B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a basic input / output system layout information generation method, an update method and a product, which belongs to the technical field of BIOS. The basic input / output system layout information generation method includes obtaining layout variables of each firmware volume in the basic input / output system during the compilation process of the compiler of the basic input / output system, wherein the layout variables include offset, size and attributes; storing the layout variables of each firmware volume in the basic input / output system in a preset layout firmware volume; after the compiler of the basic input / output system is compiled, generating a basic input / output system image containing the layout information of the basic input / output system. The embodiment of the present application aims to add the layout information of the basic input / output system to the basic input / output system image to reduce the update cost of the basic input / output system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of BIOS, and in particular, to a basic input / output system layout information generation method, an update method and a product. Background Art

[0002] With the rapid development of computer technology, BIOS (Basic Input / Output System) is a set of programs solidified on a ROM (Read-Only Memory) chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from CMOS. Its main function is to provide the most basic and direct hardware settings and control for the computer.

[0003] BIOS is an important part of the computer startup process, so its update and maintenance are particularly important. Traditional BIOS update methods often rely on specific third-party tools for parsing and updating. The operation is complicated and restricted by third parties, resulting in high BIOS update costs. Summary of the invention

[0004] The embodiments of the present application provide a basic input / output system layout information generation method, an update method and a product, aiming to reduce the update cost of BIOS.

[0005] In a first aspect, an embodiment of the present application provides a method for generating basic input and output system layout information, which is applied to a compiler of a basic input and output system, and the method comprises:

[0006] During the compiling process of the compiler of the basic input and output system, obtaining layout variables of each firmware volume in the basic input and output system, wherein the layout variables include offset, size and attribute;

[0007] storing the layout variables of each firmware volume in the basic input / output system in a preset layout firmware volume;

[0008] After the compiler of the basic input / output system is completed, a basic input / output system image including the layout information of the basic input / output system is generated.

[0009] Optionally, before obtaining the layout variables of each firmware volume in the basic input / output system, the method further includes:

[0010] In response to the first creation operation, a layout firmware volume is created, wherein the layout firmware volume is used to store layout variables of each firmware volume of the basic input / output system and is integrated into the basic input / output system image after the basic input / output system compiler is compiled.

[0011] Optionally, in response to the first creation operation, after creating the layout firmware volume, the method further includes:

[0012] In response to the location adjustment operation, the location of the layout firmware volume is set to a target location.

[0013] Optionally, in response to the position adjustment operation, setting the position of the layout firmware volume to a target position includes:

[0014] In response to a first position adjustment operation, a target position of the layout firmware volume is set at a start position of the basic input and output system image.

[0015] Optionally, in response to the position adjustment operation, setting the position of the layout firmware volume to a target position includes:

[0016] In response to the second position adjustment operation, the target position of the layout firmware volume is set at the end position of the basic input and output system image.

[0017] Optionally, in response to the first creation operation, after creating the layout firmware volume, the method further includes:

[0018] In response to the identifier adding operation, an identification identifier is added to the header file of the layout firmware volume, and the identification identifier is used to locate the layout firmware volume.

[0019] Optionally, the layout variables of each firmware volume in the basic input and output system are obtained, including:

[0020] Running a layout variable extraction script to capture a layout variable process file of the basic input and output system generated by the compiler of the basic input and output system during the compilation process;

[0021] The layout variable extraction script generates layout variables of each firmware volume in the basic input and output system according to the layout variable process file of the basic input and output system.

[0022] Optionally, after obtaining the layout variables of each firmware volume in the basic input / output system, the method further includes:

[0023] In response to the second creation operation, creating an executable file creation tool;

[0024] During the compilation process, the compiler of the basic input / output system executes the executable file creation tool, calls the layout variable extraction script, and generates text-based layout variables for each firmware volume based on the layout variables of each firmware volume in the basic input / output system acquired by the layout variable extraction script.

[0025] Optionally, storing the layout variables of each firmware volume in the basic input / output system in a preset layout firmware volume includes:

[0026] The layout variables in text form of each firmware volume in the basic input / output system are stored in the layout firmware volume.

[0027] Optionally, after the compiler of the basic input and output system is compiled, the method further includes:

[0028] Obtaining a compilation return result after the compiler of the basic input and output system has completed compilation;

[0029] Monitoring whether the compile return result includes the layout firmware volume, and whether the layout firmware volume includes the layout information of the basic input and output system;

[0030] When the compile return result includes the layout firmware volume, and the layout firmware volume includes the layout information of the basic input / output system, using the compile return result as the basic input / output system image;

[0031] When the compilation return result does not include the layout firmware volume, or the layout firmware volume does not include the layout information of the basic input and output system, the compilation process is re-executed.

[0032] Optionally, the layout firmware volume is configured with an identification mark, and monitoring whether the compilation return result contains the layout firmware volume includes:

[0033] Traversing the compilation return results, querying the identification identifier of the layout firmware volume;

[0034] When the identification mark of the layout firmware volume is queried, the compilation return result includes the layout firmware volume.

[0035] In a second aspect, an embodiment of the present application provides a basic input / output system modular update method, which is applied to an external device, and the method includes:

[0036] Acquire a basic input / output system image, wherein the basic input / output system image is obtained according to the basic input / output system layout information generation method described in the first aspect of the embodiment;

[0037] Parsing the basic input / output system image to obtain basic input / output system layout information contained in the basic input / output system image;

[0038] According to the layout information of the basic input / output system, the module to be updated in the basic input / output system image is updated, and the module to be updated is any firmware volume in the basic input / output system.

[0039] Optionally, parsing the basic input / output system image to obtain basic input / output system layout information contained in the basic input / output system image includes:

[0040] Traversing and searching for the identification mark of the layout firmware volume in the basic input and output system image, and locating the layout firmware volume;

[0041] The basic input / output system layout information included in the basic input / output system image is obtained in the layout firmware volume.

[0042] Optionally, updating the module to be updated in the basic input / output system image according to the layout information of the basic input / output system includes:

[0043] In response to a module update operation, obtaining a target update module corresponding to the module to be updated;

[0044] The module to be updated is located according to the layout information of the basic input / output system, and the module to be updated is overwritten with the target update module.

[0045] Optionally, the external device includes a baseboard management controller, a complex programmable logic device and a burning tool.

[0046] In a third aspect, an embodiment of the present application provides a basic input / output system layout information generation device, which is applied to a compiler of a basic input / output system. The basic input / output system layout information generation device includes:

[0047] A layout variable acquisition module, used to acquire layout variables of each firmware volume in the basic input and output system during the compilation process of the compiler of the basic input and output system, wherein the layout variables include offset, size and attribute;

[0048] A storage module, used for storing the layout variables of each firmware volume in the basic input and output system in a preset layout firmware volume;

[0049] The basic input / output system image generation module is used to generate a basic input / output system image including layout information of the basic input / output system after the compiler of the basic input / output system has completed compilation.

[0050] In a fourth aspect, an embodiment of the present application provides a basic input / output system modular update device, which is applied to an external device, and the basic input / output system modular update device includes:

[0051] An acquisition module, used for acquiring a basic input / output system image, wherein the basic input / output system image is obtained according to the basic input / output system layout information generation method described in the first aspect of the embodiment;

[0052] A parsing module, used for parsing the basic input / output system image to obtain the basic input / output system layout information contained in the basic input / output system image;

[0053] The update module is used to update the module to be updated in the basic input output system image according to the layout information of the basic input output system, and the module to be updated is any firmware volume in the basic input output system.

[0054] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: at least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the computer program, the basic input / output system layout information generation method described in the first aspect of the embodiment is executed, or the basic input / output system modular update method described in the second aspect of the embodiment is executed.

[0055] In a sixth aspect, an embodiment of the present application provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the basic input / output system layout information generating method described in the first aspect of the embodiment is executed, or the basic input / output system modular updating method described in the second aspect of the embodiment is executed.

[0056] In the seventh aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the basic input / output system layout information generation method described in the first aspect of the embodiment, or implements the basic input / output system modular update method described in the second aspect of the embodiment.

[0057] Beneficial effects:

[0058] In the basic input / output system layout information generation method provided by this embodiment, during the compilation process of the basic input / output system compiler, the layout variables of each firmware volume in the basic input / output system are obtained through a layout variable extraction script, and the layout variables of a firmware volume include the offset, size and attributes of the firmware volume; then the layout variables of each firmware volume in the basic input / output system are stored in a preset layout firmware volume; after the basic input / output system compiler is compiled, a basic input / output system image containing the layout information of the basic input / output system is generated.

[0059] That is, during the BIOS image compilation process, a layout firmware volume is set for storing layout variables of each firmware volume in the BIOS, so that the layout information of the BIOS can be quickly obtained from the layout firmware volume in the BIOS image.

[0060] According to the BIOS image containing BIOS layout information generated by this method, the external device can obtain the BIOS layout information by parsing the BIOS image, and then accurately locate any firmware volume and perform modular updates. It is no longer necessary to rely on any third-party tools to update the BIOS, thereby reducing the update cost of the BIOS. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.

[0062] Figure 1 A flowchart showing the steps of a method for generating basic input / output system layout information provided by an embodiment of the present application is shown;

[0063] Figure 2 The following is a flowchart showing the execution of the basic input / output system layout information generation method provided by the embodiment of the present application;

[0064] Figure 3 A flowchart showing the steps of a basic input / output system modular update method provided by an embodiment of the present application is shown;

[0065] Figure 4 A flowchart showing the steps of a basic input / output system modular update method provided by an embodiment of the present application is shown;

[0066] Figure 5 A functional module diagram of a basic input / output system layout information generating device provided by an embodiment of the present application is shown;

[0067] Figure 6 A functional module diagram of a basic input / output system modular update device provided by an embodiment of the present application is shown;

[0068] Figure 7 A schematic diagram of a computer device provided in an embodiment of the present application is shown;

[0069] Figure 8 A schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application is shown;

[0070] Fig. 9 A schematic diagram of a computer program product provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0071] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0072] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.

[0073] BIOS: Basic Input / Output System, basic input / output system;

[0074] ROM: Read-Only Memory, read-only memory;

[0075] BMC: Baseboard Management Controller, baseboard management controller;

[0076] CPLD: Complex Programmable Logic Device, complex programmable logic device.

[0077] With the rapid development of computer technology, BIOS, as an important part of the computer startup process, is particularly important to update and maintain. Currently, the update method of BIOS often relies on specific third-party tools for parsing and updating. The operation is complicated and restricted by the third party, resulting in high cost and low efficiency of BIOS update.

[0078] Therefore, in order to reduce the update cost of BIOS, the embodiments of the present application provide a basic input / output system layout information generation method and a basic input / output system modular update method.

[0079] Reference Figure 1 , shows a flowchart of a method for generating basic input and output system layout information provided by an embodiment of the present application, the method is applied to a compiler of a basic input and output system, and the method may include the following steps:

[0080] S101: During the compiling process of the compiler of the basic input / output system, the layout variables of each firmware volume in the basic input / output system are obtained, where the layout variables include offset, size and attribute.

[0081] In this embodiment, during the compilation process of the BIOS compiler compiling a BIOS image, layout variables corresponding to each firmware volume (FV, Firmware Volume) generated during the compilation process are obtained. The layout variables corresponding to each firmware volume can describe the layout information of each firmware volume in the BIOS image, that is, the layout variables corresponding to each firmware volume constitute the layout information of the BIOS.

[0082] When obtaining the layout variables of each firmware volume in the BIOS, it can be obtained by running the layout variable extraction script. The layout variable extraction script can be a created Python script. The function of the layout variable extraction script is to capture the scattered BIOS layout variable process files generated by the compilation process. The BIOS layout variable process file includes the layout variable process file of any firmware volume. The layout variable process file includes the description information corresponding to the firmware volume. For example, it includes the name identifier, offset, size, attributes and other specific information of the firmware volume. By running the layout variable extraction script, the layout variables corresponding to each firmware volume can be obtained in the BIOS layout variable process file. The layout variables include offset, size and attributes.

[0083] The specific code design of the layout variable extraction script can be customized according to the needs of actual applications. As long as the layout variable extraction script can obtain the layout variables of each firmware volume in the BIOS, this embodiment does not impose any limitation.

[0084] S102: storing the layout variables of each firmware volume in the basic input / output system in a preset layout firmware volume.

[0085] The layout firmware volume is a pre-created OEM FV (Original Equipment Manufacturer Firmware Volume). During the compilation process of the BIOS compiler to generate the BIOS image, when the compilation passes, the layout firmware volume will be integrated into the compiled BIOS image.

[0086] After the layout variable extraction script obtains the layout variables of each firmware volume in the BIOS, the layout variables of each firmware volume in the BIOS are stored in a preset layout firmware volume, that is, the layout variables of each firmware volume in the BIOS are specifically stored in a separate layout firmware volume. After compilation, the BIOS image will generate a BIOS image containing the layout information of the BIOS.

[0087] S103: After the compiler of the basic input and output system is completed, a basic input and output system image including the layout information of the basic input and output system is generated.

[0088] After the BIOS compiler is compiled, the layout firmware volume in the BIOS image will store the BIOS layout information. When the external device updates the BIOS, the complete BIOS layout information can be parsed in the BIOS image. There is no need to rely on third-party tools to parse the BIOS. The current BIOS internal layout information can be directly obtained through the existing interaction protocol between the external device and the BIOS, which makes it easy for external devices directly connected to the BIOS to directly update the BIOS, and the BIOS can be accurately updated in modular form, reducing the update cost of the BIOS.

[0089] In a feasible implementation manner, before obtaining the layout variables of each firmware volume in the BIOS, the method further includes: creating a layout firmware volume in response to a first creation operation.

[0090] Specifically, in the ROM where the BIOS program is located, an OEM FV is created as a layout firmware volume, and the layout firmware volume is used to store layout variables of each firmware volume of the BIOS, and is integrated into the BIOS image after the BIOS compiler completes compilation.

[0091] After creating the layout firmware volume, the address of the layout firmware volume may be adjusted, that is, the target position of the layout firmware volume may be set; specifically, in response to the position adjustment operation, the position of the layout firmware volume may be set to the target position.

[0092] In the actual implementation process, the location of the layout firmware volume can be customized according to the needs of the actual application.

[0093] In a feasible implementation, in response to a position adjustment operation, setting the position of the layout firmware volume to a target position includes: in response to a first position adjustment operation, setting the target position of the layout firmware volume to a starting position of the BIOS image.

[0094] That is, the target position of the layout firmware volume can be set at the starting position of the BIOS image, thereby facilitating rapid positioning of the layout firmware volume in the BIOS image.

[0095] In another feasible implementation, in response to a position adjustment operation, setting the position of the layout firmware volume to a target position includes: in response to a second position adjustment operation, setting the target position of the layout firmware volume to an end position of the BIOS image.

[0096] In addition to setting the target location of the layout firmware volume at the start position of the BIOS image, the target location of the layout firmware volume can also be set at the end position of the BIOS image; in addition, the target location of the layout firmware volume can be set at other locations according to actual application requirements.

[0097] In order to quickly locate the layout firmware volume in the BIOS image, in a feasible implementation manner, in response to a first creation operation, after creating the layout firmware volume, the method further includes: in response to an identifier adding operation, adding an identification identifier in a header file of the layout firmware volume, wherein the identification identifier is used to locate the layout firmware volume.

[0098] For example, a unique GUID (Globally Unique Identifier) ​​may be set for the layout firmware volume OEM FV as an identification mark.

[0099] When parsing the BIOS image, the layout firmware volume can be quickly and accurately located by traversing the BIOS image to query the unique GUID of the layout firmware volume.

[0100] In a feasible implementation, in the process of obtaining the layout variables of each firmware volume in the BIOS, a layout variable extraction script can be run to capture the BIOS layout variable process file generated by the BIOS compiler during the compilation process; the layout variable extraction script generates the layout variables of each firmware volume in the BIOS based on the BIOS layout variable process file.

[0101] Specifically, a layout variable extraction script is pre-compiled, which may be a Python script. The layout variable extraction script is used to capture the scattered BIOS layout variable process files generated by the compilation process, and then obtain the layout variables of each firmware volume in the BIOS layout variable process file according to the preset layout variable format, i.e., offset, size and attribute. The layout variables corresponding to each firmware volume constitute the layout information of the BIOS.

[0102] For example, the layout variable extraction script can obtain the layout variables of each firmware volume in the BIOS layout variable process file, and then generate a text file with the layout variables of each firmware volume according to the variable format of offset, size and attribute.

[0103] After running the layout variable extraction script to obtain the layout variables of each firmware volume in the BIOS, the method further includes:

[0104] In response to the second creation operation, an executable file creation tool is created; then, during the compilation process, the BIOS compiler executes the executable file creation tool, calls the layout variable extraction script, and generates text-based layout variables for each firmware volume in the BIOS based on the layout variables of each firmware volume obtained by the layout variable extraction script.

[0105] For example, during the execution process, the executable file creation tool is used to extract the layout variables of each firmware volume in the BIOS obtained by the layout variable extraction script, and generate layout variables that can be parsed. For example, the executable file creation tool is a make file.

[0106] Specifically, when the make file is executed, the layout variables of each firmware volume in the BIOS obtained by calling the layout variable extraction script can generate textual layout variables of each firmware volume, and the textual layout variables can be parsed by external devices.

[0107] Then, when the layout variables of each firmware volume in the BIOS are stored in a preset layout firmware volume, the layout variables in text form of each firmware volume in the BIOS can be stored in the layout firmware volume.

[0108] In a feasible implementation, the layout variables corresponding to each firmware volume can also be encrypted. For example, after executing the make file to generate the text-based layout variables of a firmware volume, the make file calls a preset encryption thread to encrypt the plaintext layout variables and then store them in the layout firmware volume. The encryption algorithm can use RSA (an asymmetric encryption algorithm) encryption algorithm or hash algorithm for encryption. In the actual implementation process, the encryption algorithm can be adaptively selected. In addition to the encryption algorithm, the layout variables can also be compressed using a lossless compression algorithm. The lossless compression algorithms include Huffman Coding, Dictionary Compression, LZW (Lempel-Ziv-Welch) compression algorithm, etc.

[0109] By encrypting or compressing the layout variables in plain text and then storing them in the layout firmware volume as non-plain text data, the encrypted or compressed BIOS layout information can be restored according to the corresponding decryption / decompression method, thereby avoiding direct exposure of the BIOS layout information.

[0110] In the actual implementation process, in addition to generating the layout variables of each firmware volume in text form through the created make file, the layout variables of each firmware volume in other formats that can be successfully parsed can also be generated.

[0111] The arrangement of the layout variables of each firmware volume stored in the layout firmware volume can also be customized according to the needs of the actual application. For example, the layout variables of each firmware volume can be arranged in sequence according to the sequence of the layout variables of the firmware volume obtained by the layout variable extraction script; or the layout variables of each firmware volume can be arranged in sequence according to the sequence of the offset addresses of the firmware volumes, which is not limited in this embodiment.

[0112] In a feasible implementation manner, after the BIOS compiler completes compilation, the method further includes:

[0113] Obtaining a compilation return result after the compiler of the basic input and output system has completed compilation;

[0114] Monitoring whether the compilation return result includes the layout firmware volume, and whether the layout firmware volume includes the layout information of the BIOS;

[0115] When the compile return result includes the layout firmware volume, and the layout firmware volume includes the layout information of the BIOS, using the compile return result as the BIOS image;

[0116] When the compilation return result does not include the layout firmware volume, or the layout firmware volume does not include the layout information of the BIOS, the compilation process is re-executed.

[0117] By checking the compilation return result after the compilation is completed, it is ensured that the compiled BIOS image includes the layout firmware volume and the layout firmware volume contains the layout information of the BIOS. If the compilation return result does not contain the layout firmware volume or the layout firmware volume does not contain the layout information of the BIOS, the compilation process can be executed again.

[0118] Specifically, because the layout firmware volume is configured with an identification identifier, when monitoring whether the compilation return result includes the layout firmware volume, the compilation return result can be traversed to query the identification identifier of the layout firmware volume; when the identification identifier of the layout firmware volume is queried, the layout firmware volume is included in the compilation return result.

[0119] Reference Figure 2 , shows an execution flow chart of a basic input / output system layout information generation method provided in an embodiment of the present application, wherein the basic input / output system layout information generation method comprises the following steps:

[0120] S11: In response to the first creation operation, a layout firmware volume is created.

[0121] Specifically, in the ROM where the BIOS program is located, an OEM FV is created as a layout firmware volume for storing layout variables of each firmware volume of the BIOS, and is integrated into the BIOS image after the BIOS compiler completes compilation.

[0122] S12: In response to the position adjustment operation, the position of the layout firmware volume is set to a target position.

[0123] In the actual implementation process, the position of the layout firmware volume can be customized and adjusted according to the actual application requirements. The target position of the layout firmware volume can be the starting position of the BIOS image or the end position of the BIOS image.

[0124] S13: In response to the identifier adding operation, an identification identifier is added to the header file of the layout firmware volume.

[0125] For example, a unique GUID is set in the header file of the layout firmware volume OEM FV as an identification mark. When parsing the BIOS image, the layout firmware volume can be quickly and accurately located by traversing the BIOS image to query the unique GUID of the layout firmware volume.

[0126] S14: Run the layout variable extraction script to obtain the layout variables of each firmware volume in the basic input and output system.

[0127] Execute the pre-compiled layout variable extraction script to grab the BIOS layout variable process file generated by the compilation process, and then obtain the layout variables of each firmware volume in the BIOS layout variable process file according to the preset layout variable format, namely offset, size and attributes.

[0128] S15: In response to the second creation operation, an executable file creation tool is created and executed, and a layout variable extraction script is called. According to the layout variables of each firmware volume in the basic input and output system obtained by the layout variable extraction script, layout variables in text form of each firmware volume are generated and stored in the layout firmware volume.

[0129] For example, a make file may be created to automatically execute a layout variable extraction script. Commands and parameters for calling the layout variable extraction script may be set in the make file, and layout variables in text form for each firmware volume may be generated and stored in the layout firmware volume.

[0130] S16: After the compiler of the basic input and output system has completed compilation, monitoring whether the compilation return result includes a layout firmware volume;

[0131] When the compilation return result includes the layout firmware volume, execute step S17;

[0132] When the compiled result does not include the layout firmware volume, executing step S18;

[0133] S17: monitoring whether the layout firmware volume contains the layout information of the basic input and output system;

[0134] When the layout firmware volume contains the layout information of the BIOS, executing step S19;

[0135] When the layout firmware volume does not include the layout information of the BIOS, step S18 is executed.

[0136] S18: Re-execute the compilation process.

[0137] S19: Outputting the compilation return result as a basic input / output system image.

[0138] Reference Figure 3 , shows a flowchart of a basic input-output system modular update method provided by an embodiment of the present application, the basic input-output system modular update method is applied to an external device, and the basic input-output system modular update method includes the following steps:

[0139] S201: Obtain a basic input and output system image.

[0140] The BIOS image is obtained according to the BIOS layout information generating method described in this embodiment, so the BIOS image includes a layout firmware volume, and the layout firmware volume stores the layout information of the BIOS, that is, the layout variables of each firmware volume in the BIOS.

[0141] The external device includes a BMC, a CPLD and a burning tool, such as a burner. The external device may also be other devices that support parsing of the BIOS flash. The external device, such as a BMC or a CPLD, may interact with the BIOS to obtain and load a BIOS image.

[0142] S202: Parse the BIOS image to obtain BIOS layout information contained in the BIOS image.

[0143] Specifically, external devices such as BMC or CPLD can parse the BIOS image based on the agreed rules between each device and the BIOS. In the process of obtaining the layout information of the BIOS contained in the BIOS image, the identification identifier of the layout firmware volume can be traversed in the BIOS image to locate the layout firmware volume; then, the layout information of the BIOS contained in the BIOS image can be obtained in the layout firmware volume, that is, the offset, size and attributes of each firmware volume can be obtained.

[0144] S203: updating a module to be updated in the basic input / output system image according to the layout information of the basic input / output system, wherein the module to be updated is any firmware volume in the basic input / output system.

[0145] Specifically, according to the layout information of the BIOS, the process of updating the module to be updated in the BIOS image includes: in response to the module update operation, obtaining the target update module corresponding to the module to be updated; according to the layout information of the BIOS, locating the module to be updated, and overwriting the module to be updated with the target update module.

[0146] In order to facilitate the detection of whether the BIOS update is completed, in a feasible implementation, an update completion flag can also be set at the end of the target update module. When the update is completed, the external device can detect the high-bit update completion flag, and then determine that the BIOS module to be updated has been successfully updated.

[0147] In the actual implementation process, other methods for verifying whether the module to be updated of the BIOS is updated successfully may also be set, and this embodiment does not limit this.

[0148] Reference Figure 4 , shows a flowchart of the steps of the basic input and output system modular update method provided by an embodiment of the present application, the basic input and output system modular update method comprising the following steps:

[0149] S21: Obtain a basic input and output system image.

[0150] S22: Parse the BIOS image to obtain BIOS layout information contained in the BIOS image.

[0151] The external device loads the BIOS image and parses the BIOS image according to the agreed rules between the external device and the BIOS. For example, the layout variables in text form of each firmware volume in the BIOS image are parsed to construct the layout information of the completed BIOS.

[0152] S23: Updating the module to be updated in the basic input and output system image.

[0153] According to the layout information of the BIOS obtained through analysis, the external device can locate the module of the BIOS that needs to be updated and perform a modular upgrade; during the upgrade process, the external device can replace or modify the corresponding module as needed to implement the BIOS update.

[0154] S24: Determine whether the module to be updated has been successfully updated;

[0155] The update ends when the module to be updated is successfully updated;

[0156] When the module to be updated is not successfully updated, error information is collected.

[0157] The BIOS layout information generation method and BIOS modular update method provided in this embodiment have the following beneficial effects:

[0158] 1. Operational flexibility and convenience: By pre-setting the layout firmware volume OEM FV to store the BIOS layout information, the BIOS layout information can be obtained by parsing the BIOS image, which does not rely on any third-party tools, making the operation more flexible and without the need to install or configure other software; through the automatic call of Python scripts and make files, the operation process is simplified and the convenience of operation is improved.

[0159] 2. Efficiency and accuracy: Since the present embodiment can directly obtain the layout information of the BIOS by parsing the BIOS image, the problem of parsing errors or information loss that may occur in the traditional method is avoided; at the same time, by presetting the OEM FV and storing the layout information, the accuracy and completeness of the information can be ensured, providing reliable data support for subsequent modular updates; and since the BIOS layout information is directly obtained, the module that needs to be updated can be accurately located in real time, realizing efficient modular updates.

[0160] 3. Wide applicability and low cost: The method provided in this embodiment does not depend on a specific hardware platform or software environment, and can be applied to various types of BIOS firmware images; the application scope is wider and is not limited to specific systems or devices; and because there is no need to use third-party tools, the cost is also reduced, making the update and maintenance of BIOS more economical and efficient.

[0161] 4. Advantages of modular update: The traditional BIOS update method is often a complete replacement, while the method provided in this embodiment can realize modular update of BIOS, that is, a separate firmware volume can be updated or upgraded without replacing the entire BIOS firmware, which not only improves the update efficiency but also reduces the risks that may occur during the update process; in addition, modular updates can also be flexibly customized as needed to meet the needs of different users.

[0162] 5. Improve system security and stability. The method provided in this embodiment can ensure the integrity and security of the BIOS image. Since the layout information of the BIOS is stored in the OEM FV preset, it is not easy to be tampered with or destroyed, thereby improving the security of the system. At the same time, since the update process is more accurate and controllable, it also reduces the errors or unstable factors that may be introduced in the update process, thereby improving the stability of the system.

[0163] 6. Because in the existing BIOS upgrade solution, the external device does not support the parsing of the BIOS flash, and the out-of-band modular upgrade of the BIOS cannot be performed, the method provided by the present application provides the layout information of the BIOS through the BIOS image itself, that is, the layout information, which can be provided to any third-party tool or device to parse the BIOS image, thereby realizing some modular upgrades, modular modifications and personalized encryption schemes. For example, in the current Intel PFR solution, the BIOS is modularly split when compiling, and a file header is added to each module. The file header contains the physical address corresponding to the current BIOS module in the SPI flash; and the PFR (CPLD) is used to parse this header to implement the PFR update of the SPI flash. Compared with Intel's BIOS update solution, the update method provided in this embodiment does not need to modularly split the BIOS, and can maintain fewer BIOS files, while increasing the possibility of PFR updating more modules at the same time.

[0164] In summary, this embodiment parses the BIOS image without relying on third-party tools to obtain BIOS layout information, thereby providing an efficient, accurate, flexible and secure solution for modular updates of BIOS, which not only simplifies the operation process and reduces costs, but also improves the security and stability of the system.

[0165] Reference Figure 5 , shows a functional module diagram of a basic input / output system layout information generating device provided in an embodiment of the present application, the basic input / output system layout information generating device is applied to a compiler of a basic input / output system, and the basic input / output system layout information generating device includes:

[0166] The layout variable acquisition module 101 is used to acquire the layout variables of each firmware volume in the basic input and output system during the compilation process of the compiler of the basic input and output system, wherein the layout variables include offset, size and attribute;

[0167] The storage module 102 is used to store the layout variables of each firmware volume in the basic input and output system in a preset layout firmware volume;

[0168] The BIOS image generation module 103 is used to generate a BIOS image including layout information of the BIOS after the BIOS compiler has completed compiling.

[0169] Optionally, the basic input and output system layout information generating device further includes:

[0170] A layout firmware volume creation module is used to create a layout firmware volume in response to a first creation operation, wherein the layout firmware volume is used to store layout variables of each firmware volume of the basic input / output system and is integrated into the basic input / output system image after the compiler of the basic input / output system is compiled.

[0171] Optionally, the basic input and output system layout information generating device further includes:

[0172] The position adjustment module is used to set the position of the layout firmware volume to a target position in response to a position adjustment operation.

[0173] Optionally, the position adjustment module includes:

[0174] The first position adjustment unit is used to set the target position of the layout firmware volume at the starting position of the basic input and output system image in response to a first position adjustment operation.

[0175] Optionally, the position adjustment module includes:

[0176] The first position adjustment unit is used to set the target position of the layout firmware volume at the end position of the basic input and output system image in response to the second position adjustment operation.

[0177] Optionally, the basic input and output system layout information generating device further includes:

[0178] The identification adding module is used to add an identification mark in the header file of the layout firmware volume in response to the identification adding operation, and the identification mark is used to locate the layout firmware volume.

[0179] Optionally, the layout variable acquisition module includes:

[0180] A process file acquisition unit, used for running the layout variable extraction script to capture the layout variable process file of the basic input and output system generated by the compiler of the basic input and output system during the compilation process;

[0181] The layout variable acquisition unit is used to generate layout variables of each firmware volume in the basic input and output system according to the layout variable process file of the basic input and output system.

[0182] Optionally, the basic input and output system layout information generating device further includes:

[0183] An executable file creation tool creation module, used to create an executable file creation tool in response to a second creation operation;

[0184] During the compilation process, the compiler of the basic input / output system executes the executable file creation tool, calls the layout variable extraction script, and generates text-based layout variables for each firmware volume based on the layout variables of each firmware volume in the basic input / output system acquired by the layout variable extraction script.

[0185] Optionally, the storage module includes:

[0186] The storage unit is used to store the layout variables in text form of each firmware volume in the basic input and output system in the layout firmware volume.

[0187] Optionally, the basic input and output system layout information generating device further includes:

[0188] A monitoring module, used for obtaining a compilation return result after the compiler of the basic input and output system is compiled; monitoring whether the compilation return result contains the layout firmware volume, and whether the layout firmware volume contains the layout information of the basic input and output system;

[0189] an output module, configured to use the compile return result as the basic input / output system image when the compile return result includes the layout firmware volume and the layout firmware volume includes the layout information of the basic input / output system;

[0190] The recompiling module is used to re-execute the compiling process when the compiling return result does not include the layout firmware volume, or the layout firmware volume does not include the layout information of the basic input and output system.

[0191] Optionally, the monitoring module includes:

[0192] The monitoring unit is used to traverse the compilation return result and query the identification identifier of the layout firmware volume; when the identification identifier of the layout firmware volume is queried, the compilation return result includes the layout firmware volume.

[0193] Reference Figure 6 , shows a functional module diagram of a basic input-output system modular update device provided in an embodiment of the present application, the basic input-output system modular update device is applied to an external device, and the basic input-output system modular update device includes:

[0194] An acquisition module 201 is used to acquire a basic input / output system image, wherein the basic input / output system image is obtained according to the basic input / output system layout information generation method described in the embodiment;

[0195] A parsing module 202, configured to parse the BIOS image to obtain layout information of the BIOS contained in the BIOS image;

[0196] The updating module 203 is used to update the module to be updated in the basic input output system image according to the layout information of the basic input output system, and the module to be updated is any firmware volume in the basic input output system.

[0197] Optionally, the parsing module includes:

[0198] The parsing unit is used to traverse and search for the identification mark of the layout firmware volume in the basic input / output system image, locate the layout firmware volume; and obtain the layout information of the basic input / output system contained in the basic input / output system image in the layout firmware volume.

[0199] Optionally, the update module includes:

[0200] The updating unit is used to obtain a target updating module corresponding to the module to be updated in response to a module updating operation; locate the module to be updated according to the layout information of the basic input and output system, and overwrite the module to be updated with the target updating module.

[0201] Reference Figure 7 , shows a schematic diagram of a computer device provided in an embodiment of the present application, including: at least one processor 701, and a memory 702, wherein the memory 702 stores a computer program that can be run on the processor, wherein when the processor 701 executes the computer program, the basic input-output system layout information generating method described in the embodiment is executed, or the basic input-output system modular updating method described in the embodiment is executed.

[0202] Specifically, when executing the BIOS layout information generation method described in the embodiment, it includes executing the following processes: during the compilation process of the BIOS compiler, obtaining the layout variables of each firmware volume in the BIOS, the layout variables including offset, size and attributes; storing the layout variables of each firmware volume in the BIOS in a preset layout firmware volume; after the BIOS compiler completes compilation, generating a BIOS image containing the layout information of the BIOS.

[0203] When executing the modular BIOS update method described in the embodiment, the following processes are included: obtaining a BIOS image, wherein the BIOS image is obtained according to the BIOS layout information generation method described in the embodiment; parsing the BIOS image to obtain the BIOS layout information contained in the BIOS image; and updating a module to be updated in the BIOS image according to the BIOS layout information, wherein the module to be updated is any firmware volume in the BIOS.

[0204] Reference Figure 8 , shows a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application, wherein the non-volatile readable storage medium 800 stores a computer program 801, wherein when the computer program 801 is executed by a processor, the basic input / output system layout information generating method described in the embodiment is executed, or the basic input / output system modular updating method described in the embodiment is executed.

[0205] Specifically, when executing the basic input and output system layout information generation method described in the embodiment, it includes executing the following processes: during the compilation process of the BIOS compiler, obtaining the layout variables of each firmware volume in the BIOS, the layout variables including offset, size and attributes; storing the layout variables of each firmware volume in the BIOS in a preset layout firmware volume; after the BIOS compiler completes compilation, generating a BIOS image containing the layout information of the BIOS.

[0206] When executing the modular BIOS update method described in the embodiment, the following processes are included: obtaining a BIOS image, wherein the BIOS image is obtained according to the BIOS layout information generation method described in the embodiment; parsing the BIOS image to obtain the BIOS layout information contained in the BIOS image; and updating a module to be updated in the BIOS image according to the BIOS layout information, wherein the module to be updated is any firmware volume in the BIOS.

[0207] Reference Fig. 9, showing a schematic diagram of a computer program product provided in an embodiment of the present application, the computer program product 900 includes a computer program / instruction 901, and when the computer program / instruction 901 is executed by a processor, it implements the basic input / output system layout information generation method described in the embodiment, or implements the basic input / output system modular update method described in the embodiment.

[0208] Specifically, when executing the BIOS layout information generation method described in the embodiment, it includes executing the following processes: during the compilation process of the BIOS compiler, obtaining the layout variables of each firmware volume in the BIOS, the layout variables including offset, size and attributes; storing the layout variables of each firmware volume in the BIOS in a preset layout firmware volume; after the BIOS compiler completes compilation, generating a BIOS image containing the layout information of the BIOS.

[0209] When executing the modular BIOS update method described in the embodiment, the following processes are included: obtaining a BIOS image, wherein the BIOS image is obtained according to the BIOS layout information generation method described in the embodiment; parsing the BIOS image to obtain the BIOS layout information contained in the BIOS image; and updating a module to be updated in the BIOS image according to the BIOS layout information, wherein the module to be updated is any firmware volume in the BIOS.

[0210] 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.

[0211] It should be understood by those skilled in the art that the embodiments of the present application can be provided as methods, devices or computer program products. Therefore, the embodiments of the present application can be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0212] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0213] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0215] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0216] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0217] 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 generating basic input and output system layout information, characterized in that: A compiler applied to a basic input and output system, the method comprising: During the compilation process of the compiler of the basic input and output system, the layout variables of each firmware volume in the basic input and output system are obtained, and the layout variables include offset, size and attribute. The obtaining of the layout variables of each firmware volume in the basic input and output system includes: running a layout variable extraction script to capture the layout variable process file of the basic input and output system generated by the compiler of the basic input and output system during the compilation process; the layout variable extraction script generates the layout variables of each firmware volume in the basic input and output system according to the layout variable process file of the basic input and output system; The layout variables of each firmware volume in the basic input / output system are stored in a preset layout firmware volume, wherein an identification mark is added to a header file of the layout firmware volume, and the identification mark is used to locate the layout firmware volume; After the compiler of the basic input / output system is completed, a basic input / output system image including the layout information of the basic input / output system is generated.

2. The basic input and output system layout information generation method according to claim 1, characterized in that: Before obtaining the layout variables of each firmware volume in the basic input / output system, the method further includes: In response to the first creation operation, a layout firmware volume is created, wherein the layout firmware volume is used to store layout variables of each firmware volume of the basic input / output system and is integrated into the basic input / output system image after the basic input / output system compiler is compiled.

3. The basic input and output system layout information generation method according to claim 2, characterized in that: In response to the first creation operation, after creating the layout firmware volume, the method further includes: In response to the location adjustment operation, the location of the layout firmware volume is set to a target location.

4. The method for generating basic input / output system layout information according to claim 3, characterized in that: In response to the position adjustment operation, setting the position of the layout firmware volume to a target position includes: In response to a first position adjustment operation, a target position of the layout firmware volume is set at a start position of the basic input and output system image.

5. The basic input and output system layout information generation method according to claim 3, characterized in that: In response to the position adjustment operation, setting the position of the layout firmware volume to a target position includes: In response to the second position adjustment operation, the target position of the layout firmware volume is set at the end position of the basic input and output system image.

6. The basic input and output system layout information generation method according to any one of claims 2 to 5, characterized in that: In response to the first creation operation, after creating the layout firmware volume, the method further includes: In response to the identifier adding operation, an identification identifier is added to the header file of the layout firmware volume, and the identification identifier is used to locate the layout firmware volume.

7. The method according to claim 1, characterized in that After obtaining the layout variables of each firmware volume in the basic input and output system, the method further includes: In response to the second creation operation, creating an executable file creation tool; During the compilation process, the compiler of the basic input / output system executes the executable file creation tool, calls the layout variable extraction script, and generates text-based layout variables for each firmware volume based on the layout variables of each firmware volume in the basic input / output system acquired by the layout variable extraction script.

8. The method according to claim 7, characterized in that Storing the layout variables of each firmware volume in the basic input / output system in a preset layout firmware volume includes: The layout variables in text form of each firmware volume in the basic input / output system are stored in the layout firmware volume.

9. The method according to claim 1, characterized in that: After the compiler of the basic input and output system is completed, the method further includes: Obtaining a compilation return result after the compiler of the basic input and output system has completed compilation; Monitoring whether the compile return result includes the layout firmware volume, and whether the layout firmware volume includes the layout information of the basic input and output system; When the compile return result includes the layout firmware volume, and the layout firmware volume includes the layout information of the basic input / output system, using the compile return result as the basic input / output system image; When the compilation return result does not include the layout firmware volume, or the layout firmware volume does not include the layout information of the basic input and output system, the compilation process is re-executed.

10. The method according to claim 9, characterized in that The layout firmware volume is configured with an identification mark, and monitoring whether the compilation return result contains the layout firmware volume includes: Traversing the compilation return results, querying the identification identifier of the layout firmware volume; When the identification mark of the layout firmware volume is queried, the compilation return result includes the layout firmware volume.

11. A basic input and output system modular update method, characterized in that: Applied to an external device, the method comprises: Acquire a basic input / output system image, wherein the basic input / output system image is obtained by the basic input / output system layout information generation method according to any one of claims 1 to 10; Parsing the basic input / output system image to obtain basic input / output system layout information contained in the basic input / output system image; According to the layout information of the basic input / output system, the module to be updated in the basic input / output system image is updated, and the module to be updated is any firmware volume in the basic input / output system.

12. The basic input / output system modular update method according to claim 11, characterized in that: Parsing the basic input / output system image to obtain basic input / output system layout information contained in the basic input / output system image includes: Traversing and searching for the identification mark of the layout firmware volume in the basic input and output system image, and locating the layout firmware volume; The basic input / output system layout information included in the basic input / output system image is obtained in the layout firmware volume.

13. The basic input / output system modular update method according to claim 12, characterized in that: Updating the module to be updated in the basic input / output system image according to the layout information of the basic input / output system includes: In response to a module update operation, obtaining a target update module corresponding to the module to be updated; The module to be updated is located according to the layout information of the basic input / output system, and the module to be updated is overwritten with the target update module.

14. The basic input / output system modular update method according to claim 11, characterized in that: The external devices include a baseboard management controller, a complex programmable logic device and a burning tool.

15. A basic input and output system layout information generating device, characterized in that: A compiler applied to a basic input / output system, wherein the basic input / output system layout information generating device comprises: a layout variable acquisition module, used for acquiring layout variables of each firmware volume in the basic input and output system during the compilation process of the compiler of the basic input and output system, wherein the layout variables include offset, size and attribute, and acquiring the layout variables of each firmware volume in the basic input and output system includes: running a layout variable extraction script to capture the layout variable process file of the basic input and output system generated by the compiler of the basic input and output system during the compilation process; the layout variable extraction script generates the layout variables of each firmware volume in the basic input and output system according to the layout variable process file of the basic input and output system; A storage module, used for storing the layout variables of each firmware volume in the basic input and output system in a preset layout firmware volume, wherein an identification mark is added to the header file of the layout firmware volume, and the identification mark is used for locating the layout firmware volume; The basic input / output system image generation module is used to generate a basic input / output system image including layout information of the basic input / output system after the compiler of the basic input / output system has completed compilation.

16. A basic input and output system modular update device, characterized in that: Applied to external devices, the basic input and output system modular update device comprises: an acquisition module, used for acquiring a basic input / output system image, wherein the basic input / output system image is obtained by the basic input / output system layout information generation method according to any one of claims 1 to 10; A parsing module, used for parsing the basic input / output system image to obtain the basic input / output system layout information contained in the basic input / output system image; The update module is used to update the module to be updated in the basic input output system image according to the layout information of the basic input output system, and the module to be updated is any firmware volume in the basic input output system.

17. A computer device, characterized in that: include: At least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the computer program, the basic input and output system layout information generating method described in any one of claims 1-10 is executed, or the basic input and output system modular updating method described in any one of claims 11-14 is executed.

18. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the basic input / output system layout information generating method described in any one of claims 1-10 is executed, or the basic input / output system modular updating method described in any one of claims 11-14 is executed.

19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the basic input-output system layout information generating method described in any one of claims 1-10 is implemented, or the basic input-output system modular updating method described in any one of claims 11-14 is implemented.