CN113065314B - BIOS hardware adaptation method and device based on XML file format - Google Patents

BIOS hardware adaptation method and device based on XML file format Download PDF

Info

Publication number
CN113065314B
CN113065314B CN202110322719.7A CN202110322719A CN113065314B CN 113065314 B CN113065314 B CN 113065314B CN 202110322719 A CN202110322719 A CN 202110322719A CN 113065314 B CN113065314 B CN 113065314B
Authority
CN
China
Prior art keywords
hardware
xml
configuration
bios
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110322719.7A
Other languages
Chinese (zh)
Other versions
CN113065314A (en
Inventor
陈思彤
罗鹏芳
李道童
王兵
张炳会
杨少俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110322719.7A priority Critical patent/CN113065314B/en
Publication of CN113065314A publication Critical patent/CN113065314A/en
Application granted granted Critical
Publication of CN113065314B publication Critical patent/CN113065314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention provides a BIOS hardware adaptation method and a device based on an XML file format, wherein the method comprises the following steps: counting hardware parameters needing to be adapted in the BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options; creating an XML analysis module, and setting a configuration interface, an XML input interface and an XML output interface; the XML analysis module imports a hardware XML configuration file template through an XML input interface, acquires hardware configuration parameters through a configuration interface, generates a hardware XML configuration file instance and outputs the hardware configuration file instance to an XML hardware adaptation folder through an XML output interface; and executing BIOS firmware code compiling, calling and retrieving the hardware configuration interface variables in the hardware XML configuration file instance, analyzing the hardware configuration information, and integrating the hardware configuration information into the BIOS image file.

Description

BIOS hardware adaptation method and device based on XML file format
Technical Field
The invention belongs to the technical field of BIOS hardware adaptation, and particularly relates to a BIOS hardware adaptation method and device based on an XML file format.
Background
Due to the innovative development of the internet industry and the big data industry, the number demand and the application scenes of each enterprise unit on a server are increased day by day, server manufacturers face a challenge, hardware designers design hardware mainboards and machine types with different specifications based on an intel processor, in the research and development of firmware BIOS, in order to realize code normalization and improve development efficiency and code quality, at present, BIOS codes tend to be developed in a platform mode, BIOS engineers maintain a code base code on the same platform, but at the initial stage of project development, each BIOS engineer still needs to perform different hardware adaptations in the code base code according to a hardware adaptation instruction manual document provided by the hardware engineers, and the hardware adaptation instruction manual document comprises hardware parameters related to the processor and a south bridge, such as mainboard ID, GPIO, IIO link allocation and the like. If the hardware adaptation in the BIOS has a problem, the normal startup of the server is affected. At present, the adapting work is manual change of BIOS engineers, parameters and files are modified more, careless mistakes are easy to occur, and the hardware configuration of collocation and shipment of each machine type is various at present, so that the adapting of the hardware parameters and the maintenance of subsequent change in BIOS codes are complex and redundant workload for the BIOS engineers under many conditions.
In the work of hardware adaptation of the existing BIOS, a hardware designer writes a hardware adaptation instruction manual which comprises hardware parameters such as a processor, a south bridge and the like, the hardware parameters are usually provided for engineers of various types of the BIOS in a form of a table document, and the BIOS engineers respectively carry out hardware adaptation on codes of different types according to the hardware adaptation instruction manual, and the method has the following defects:
the file format of the hardware adaptation instruction manual provided by the hardware engineer of each item is inconsistent at present, and does not form an industry unified standard, the BIOS engineer usually needs to communicate with the hardware engineer for many times for confirmation in the process of checking the file, and once a machine fault caused by hardware adaptation fault is caused, the machine fault is difficult to troubleshoot due to more related changes; hardware configurations of various machine types are diversified, the same main board can correspond to a plurality of configurations, and a BIOS engineer needs to create a plurality of adaptation modules in codes again on the premise that only part of configuration items have differences, so that code redundancy is caused, code workload of the BIOS engineer is improved, and more files are changed, and omission is prone to occurring.
Therefore, it is very necessary to provide a BIOS hardware adaptation method and apparatus based on XML file format to overcome the above-mentioned drawbacks in the prior art.
Disclosure of Invention
Aiming at the defects of complicated hardware configuration mode, large workload and easy error of the existing BIOS in the prior art, the invention provides a BIOS hardware adaptation method and device based on an XML file format, so as to solve the technical problems.
In a first aspect, the present invention provides a BIOS hardware adaptation method based on an XML file format, including the following steps:
s1, counting hardware parameters needing to be adapted in BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options;
s2, creating an XML analysis module, and setting a configuration interface, an XML input interface and an XML output interface;
s3, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, acquiring hardware configuration parameters through a configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to an XML hardware adaptation folder through an XML output interface;
and S4, executing BIOS firmware code compiling, calling and retrieving the hardware configuration interface variables in the hardware XML configuration file example, analyzing the hardware configuration information, and integrating the hardware configuration information into the BIOS image file.
Further, the step S1 includes the following steps:
s11, counting hardware parameters needing to be adapted in the BIOS firmware codes, and creating BIOS end hardware configuration interface variables in the BIOS firmware codes based on the hardware parameters needing to be adapted;
and S12, creating a hardware XML configuration file template, adding an XML end hardware configuration interface variable and configurable parameter options based on the BIOS end hardware configuration interface variable, and establishing the connection between the BIOS end hardware configuration interface variable and the XML end hardware configuration interface variable. And establishing a hardware configuration interface in the BIOS and the hardware XML configuration file to prepare for separating the hardware configuration codes.
Further, the step S11 specifically includes the following steps:
s111, counting hardware parameters needing to be adapted in the BIOS firmware codes;
s112, acquiring codes called by the hardware parameters needing adapting in the BIOS firmware codes;
and S113, redefining the hardware configuration interface variable of the BIOS end in the BIOS fixed code through macro definition. And establishing a hardware configuration interface in the BIOS source code in a macro definition mode to prepare for using a hardware XML configuration file.
Further, the hardware parameters to be adapted include processor model topology, memory number and topology, USB configuration table, SATA, south bridge GPIO list, processor IIO configuration table, motherboard slot silk-screen information, VGA port number, motherboard ID, and SuperIO. The hardware configuration parameters include, but are not limited to, the above categories, and the increase or decrease of the hardware configuration parameters corresponds to the increase or decrease of the number of corresponding hardware configuration interfaces in the XML hardware configuration file and the macro definition of the BIOS source code.
Further, the step S2 specifically includes the following steps:
s21, creating an XML analysis module;
and S22, setting a graphical configuration interface, an XML input interface and an XML output interface for the XML analysis module. The XML analysis module supports the import and export of a hardware XML configuration file, acquires the hardware configuration of a hardware engineer aiming at a certain type, and realizes the instantiation of a hardware XML configuration file template.
Further, the step S3 specifically includes the following steps:
s31, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, and providing a graphical configuration interface;
s32, acquiring filled or selected hardware configuration parameters through a graphical configuration interface to generate a hardware XML configuration file instance;
s33, outputting the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
and S34, creating an XML hardware adaptation folder under the BIOS firmware code root directory, and integrating hardware XML configuration file examples of various types. The XML file format is provided for BIOS engineers, the CSV file format supports text editing, and both can be used as a source file for compiling BIOS firmware codes.
Further, the step S4 specifically includes the following steps:
s41, executing BIOS firmware code compiling, and automatically connecting hardware XML configuration file examples of corresponding machine types;
s42, retrieving according to the hardware configuration interface variable, acquiring and analyzing the hardware configuration parameters of the corresponding machine type, and generating hardware configuration information;
s43, integrating the hardware configuration information into the BIOS image file. And compiling the BIOS firmware code to automatically acquire the hardware configuration information configured in the hardware XML configuration file instance by the hardware engineer, so as to prepare for generating the BIOS firmware.
In a second aspect, the present invention provides a BIOS hardware adaptation apparatus based on XML file format, including:
the hardware configuration interface setting unit is used for counting hardware parameters needing to be adapted in the BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options;
the XML analysis module creating unit is used for creating an XML analysis module and setting a configuration interface, an XML input interface and an XML output interface;
the hardware configuration parameter acquisition unit is used for leading the XML analysis module into a hardware XML configuration file template through an XML input interface, acquiring hardware configuration parameters through a configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to an XML hardware adaptation folder through an XML output interface;
the hardware configuration information integration unit executes BIOS firmware code compiling, calls and retrieves the hardware configuration interface variables in the hardware XML configuration file instance, analyzes the hardware configuration information and integrates the hardware configuration information into the BIOS image file.
Further, the hardware configuration interface setting unit includes:
the hardware parameter statistics subunit is used for counting the hardware parameters needing to be adapted in the BIOS firmware code and creating a BIOS end hardware configuration interface variable in the BIOS firmware code based on the hardware parameters needing to be adapted;
the XML configuration file template creating subunit is used for creating a hardware XML configuration file template, adding an XML end hardware configuration interface variable and configurable parameter options based on the BIOS end hardware configuration interface variable, and establishing the connection between the BIOS end hardware configuration interface variable and the XML end hardware configuration interface variable;
the XML parsing module creating unit includes:
the XML analysis module creating subunit is used for creating the XML analysis module;
and the interface setting subunit is used for setting a graphical configuration interface, an XML input interface and an XML output interface for the XML parsing module.
Further, the hardware configuration parameter obtaining unit includes:
the XML template importing subunit is used for setting an XML analysis module to import a hardware XML configuration file template through an XML input interface and providing a graphical configuration interface;
the hardware configuration parameter acquisition subunit is used for acquiring the filled or selected hardware configuration parameters through the graphical configuration interface and generating a hardware XML configuration file instance;
the configuration file output subunit is used for outputting the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
the configuration file placing subunit is used for creating an XML hardware adaptation folder under the BIOS firmware code root directory and integrating hardware XML configuration file examples of various types;
the hardware configuration information integration unit comprises:
the compiling and connecting subunit is used for executing the compiling of the BIOS firmware code and automatically connecting the hardware XML configuration file examples of the corresponding machine types;
the hardware configuration information generating subunit is used for retrieving according to the hardware configuration interface variable, acquiring and analyzing the hardware configuration parameters of the corresponding machine type, and generating hardware configuration information;
and the configuration information integration subunit is used for integrating the hardware configuration information into the BIOS image file.
The beneficial effect of the invention is that,
according to the BIOS hardware adaptation method and device based on the XML file format, a hardware engineer writes hardware configuration parameters into a hardware XML configuration file through an XML analysis module, the original 'hardware adaptation instruction manual' document is replaced, the hardware XML configuration file is integrated into a BIOS firmware code source file in a supporting mode, the BIOS engineer does not need manual adaptation verification in the face of various types of configuration, the hardware engineer only needs to update the hardware XML configuration file, adaptation workload and communication cost of the BIOS engineer and the hardware engineer are reduced, fault scenes caused by hardware adaptation errors are greatly reduced, and the scheme is beneficial to firmware code normalization management and implementation.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a first schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention;
in the figure, 1-hardware configuration interface setting unit; 1.1-need to configure hardware parameter statistics subunit; 1.2-XML configuration file template creating sub-unit; 2-XML analysis module establishing unit; 2.1-XML parsing module creating sub-units; 2.2-interface setup subunit; 3-a hardware configuration parameter acquisition unit; 3.1-XML template import subunit; 3.2-hardware configuration parameter obtaining subunit; 3.3-configuration file output subunit; 3.4-configuration file placement subunit; 4-a hardware configuration information integration unit; 4.1-compile linker subunit; 4.2-hardware configuration information generation subunit; 4.3 configuration information integration subunit.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
XML, a subset of eXtensible Markup Language, standard universal Markup Language, is a Markup Language for marking electronic documents to be structured.
Example 1:
as shown in fig. 1, the present invention provides a BIOS hardware adaptation method based on XML file format, including the following steps:
s1, counting hardware parameters needing to be adapted in BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options;
s2, creating an XML analysis module, and setting a configuration interface, an XML input interface and an XML output interface;
s3, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, acquiring hardware configuration parameters through a configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to an XML hardware adaptation folder through an XML output interface;
and S4, executing BIOS firmware code compiling, calling and retrieving the hardware configuration interface variables in the hardware XML configuration file instance, analyzing the hardware configuration information, and integrating the hardware configuration information into the BIOS image file.
Example 2:
as shown in fig. 2, the present invention provides a BIOS hardware adaptation method based on XML file format, including the following steps:
s1, counting hardware parameters needing to be adapted in BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options; the method comprises the following specific steps:
s11, counting hardware parameters needing to be adapted in the BIOS firmware codes, and creating BIOS end hardware configuration interface variables in the BIOS firmware codes based on the hardware parameters needing to be adapted;
s12, creating a hardware XML configuration file template, adding an XML end hardware configuration interface variable and configurable parameter options based on the BIOS end hardware configuration interface variable, and establishing connection between the BIOS end hardware configuration interface variable and the XML end hardware configuration interface variable; the hardware parameters needing to be adapted comprise processor model topology, the number and topology of internal memories, a USB configuration table, SATA, a south bridge GPIO list, a processor IIO configuration table, mainboard slot silk-screen information, VGA port number, mainboard ID and SuperIO;
s2, creating an XML analysis module, and setting a configuration interface, an XML input interface and an XML output interface; the method comprises the following specific steps:
s21, creating an XML analysis module;
s22, setting a graphical configuration interface, an XML input interface and an XML output interface for the XML analysis module;
s3, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, acquiring hardware configuration parameters through a configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to an XML hardware adaptation folder through an XML output interface; the method comprises the following specific steps:
s31, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, and providing a graphical configuration interface;
s32, acquiring filled or selected hardware configuration parameters through a graphical configuration interface to generate a hardware XML configuration file instance;
s33, outputting the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
s34, creating an XML hardware adaptation folder under the BIOS firmware code root directory, and integrating hardware XML configuration file examples of various machine types;
s4, executing BIOS firmware code compiling, calling and retrieving a hardware configuration interface variable in the hardware XML configuration file instance, analyzing hardware configuration information, and integrating the hardware configuration information into a BIOS image file; the method comprises the following specific steps:
s41, executing BIOS firmware code compiling, and automatically connecting hardware XML configuration file examples of corresponding machine types;
s42, retrieving according to the hardware configuration interface variable, acquiring and analyzing the hardware configuration parameters of the corresponding machine type, and generating hardware configuration information;
s43, integrating the hardware configuration information into the BIOS image file.
In some embodiments, step S11 includes the following steps:
s111, counting hardware parameters needing to be adapted in the BIOS firmware codes;
s112, acquiring codes called by the hardware parameters needing adapting in the BIOS firmware codes;
and S113, redefining the hardware configuration interface variable of the BIOS end in the BIOS fixed code through macro definition.
Example 3:
as shown in fig. 3, the present invention provides a BIOS hardware adaptation device based on XML file format, including:
the hardware configuration interface setting unit 1 is used for counting hardware parameters needing to be adapted in the BIOS firmware code, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and optional configuration parameter options; the hardware configuration interface setting unit 1 includes:
a hardware parameter statistics subunit 1.1 to be configured, configured to count a hardware parameter to be adapted in the BIOS firmware code, and create a BIOS-side hardware configuration interface variable in the BIOS firmware code based on the hardware parameter to be adapted;
an XML configuration file template creating subunit 1.2, configured to create a hardware XML configuration file template, add an XML-side hardware configuration interface variable and configurable parameter options based on a BIOS-side hardware configuration interface variable, and establish connection between the BIOS-side hardware configuration interface variable and the XML-side hardware configuration interface variable;
an XML parsing module creating unit 2, configured to create an XML parsing module, and set a configuration interface, an XML input interface, and an XML output interface; the XML parsing module creating unit 2 includes:
an XML parsing module creating subunit 2.1 for creating an XML parsing module;
the interface setting subunit 2.2 is used for setting a graphical configuration interface, an XML input interface and an XML output interface for the XML parsing module;
a hardware configuration parameter obtaining unit 3, configured to introduce the hardware XML configuration file template into the XML parsing module through the XML input interface, obtain the hardware configuration parameter through the configuration interface, generate a hardware XML configuration file instance, and output the hardware XML configuration file instance to the XML hardware adaptation folder through the XML output interface; the hardware configuration parameter acquisition unit 3 includes:
an XML template importing subunit 3.1, configured to set an XML parsing module to import a hardware XML configuration file template through an XML input interface, and provide a graphical configuration interface;
a hardware configuration parameter obtaining subunit 3.2, configured to obtain the filled or selected hardware configuration parameters through the graphical configuration interface, and generate a hardware XML configuration file instance;
a configuration file output subunit 3.3, configured to output the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
a configuration file placing subunit 3.4, configured to create an XML hardware adaptation folder under the BIOS firmware code root directory, and integrate hardware XML configuration file instances of each machine type;
the hardware configuration information integration unit 4 executes the compiling of BIOS firmware codes, calls and retrieves the hardware configuration interface variables in the hardware XML configuration file example, analyzes the hardware configuration information and integrates the hardware configuration information into a BIOS image file; the hardware configuration information integrating unit 4 includes:
a compiling and connecting subunit 4.1, which is used for executing the compiling of the BIOS firmware code and automatically connecting the hardware XML configuration file examples of the corresponding machine types;
a hardware configuration information generating subunit 4.2, configured to perform retrieval according to the hardware configuration interface variable, obtain and analyze hardware configuration parameters of the corresponding machine type, and generate hardware configuration information;
and the configuration information integration subunit 4.3 is used for integrating the hardware configuration information into the BIOS image file.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions should be within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure and the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A BIOS hardware adaptation method based on XML file format is characterized by comprising the following steps:
s1, counting hardware parameters needing to be adapted in a BIOS firmware code, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and configurable parameter options;
s2, creating an XML analysis module, and setting a configuration interface, an XML input interface and an XML output interface;
s3, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, acquiring hardware configuration parameters through a configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to an XML hardware adaptation folder through an XML output interface;
and S4, executing BIOS firmware code compiling, calling and retrieving the hardware configuration interface variables in the hardware XML configuration file example, analyzing the hardware configuration information, and integrating the hardware configuration information into the BIOS image file.
2. The BIOS hardware adaptation method based on XML file format according to claim 1, wherein the step S1 comprises the following steps:
s11, counting hardware parameters needing to be adapted in the BIOS firmware code, and creating a BIOS end hardware configuration interface variable in the BIOS firmware code based on the hardware parameters needing to be adapted;
and S12, creating a hardware XML configuration file template, adding an XML end hardware configuration interface variable and configurable parameter options based on the BIOS end hardware configuration interface variable, and establishing the connection between the BIOS end hardware configuration interface variable and the XML end hardware configuration interface variable.
3. The BIOS hardware adaptation method based on XML file format according to claim 2, wherein the step S11 specifically includes the following steps:
s111, counting hardware parameters needing to be adapted in the BIOS firmware codes;
s112, acquiring codes called by the hardware parameters needing to be adapted in the BIOS firmware codes;
and S113, redefining and creating the BIOS hardware configuration interface variable in the BIOS fixed code through macro definition.
4. The method according to claim 1 or 2, wherein the hardware parameters to be adapted include processor model topology, memory number and topology, USB configuration table, SATA, south bridge GPIO list, processor IIO configuration table, motherboard slot screen printing information, VGA port number, motherboard ID, and SuperIO.
5. The BIOS hardware adaptation method based on XML file format according to claim 1, wherein the step S2 comprises the following steps:
s21, creating an XML analysis module;
and S22, setting a graphical configuration interface, an XML input interface and an XML output interface for the XML analysis module.
6. The BIOS hardware adaptation method based on XML file format according to claim 5, wherein the step S3 comprises the following steps:
s31, importing a hardware XML configuration file template by an XML analysis module through an XML input interface, and providing a graphical configuration interface;
s32, filling or selecting hardware configuration parameters through a graphical configuration interface to generate a hardware XML configuration file example;
s33, outputting the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
and S34, creating an XML hardware adaptation folder under the BIOS firmware code root directory, and integrating hardware XML configuration file examples of various types.
7. The BIOS hardware adaptation method based on XML file format according to claim 6, wherein the step S4 comprises the following steps:
s41, executing BIOS firmware code compiling, and automatically connecting hardware XML configuration file examples of corresponding machine types;
s42, retrieving according to the hardware configuration interface variable, acquiring and analyzing the hardware configuration parameters of the corresponding machine type, and generating hardware configuration information;
s43, integrating the hardware configuration information into the BIOS image file.
8. A BIOS hardware adaptation device based on XML file format, comprising:
the hardware configuration interface setting unit (1) is used for counting hardware parameters needing to be adapted in the BIOS firmware codes, creating a hardware XML configuration file template based on the hardware parameters needing to be adapted, and setting hardware configuration interface variables and configurable parameter options;
the XML analysis module creating unit (2) is used for creating an XML analysis module and setting a configuration interface, an XML input interface and an XML output interface;
a hardware configuration parameter obtaining unit (3) for leading the XML analysis module into the hardware XML configuration file template through the XML input interface, obtaining the hardware configuration parameters through the configuration interface, generating a hardware XML configuration file instance, and outputting the hardware XML configuration file instance to the XML hardware adaptation folder through the XML output interface;
and the hardware configuration information integration unit (4) executes the compiling of the BIOS firmware codes, calls and retrieves the hardware configuration interface variables in the hardware XML configuration file example, analyzes the hardware configuration information and integrates the hardware configuration information into the BIOS image file.
9. The BIOS hardware adaptation device based on XML file format according to claim 8, wherein the hardware configuration interface setting unit (1) comprises:
a hardware parameter statistics subunit (1.1) to be configured, which is used for counting the hardware parameters to be adapted in the BIOS firmware code, and creating a BIOS end hardware configuration interface variable in the BIOS firmware code based on the hardware parameters to be adapted;
the XML configuration file template creating subunit (1.2) is used for creating a hardware XML configuration file template, adding an XML end hardware configuration interface variable and configurable parameter options based on the BIOS end hardware configuration interface variable, and establishing the connection between the BIOS end hardware configuration interface variable and the XML end hardware configuration interface variable;
the XML parsing module creation unit (2) includes:
an XML parsing module creating subunit (2.1) for creating an XML parsing module;
and the interface setting subunit (2.2) is used for setting a graphical configuration interface, an XML input interface and an XML output interface for the XML parsing module.
10. The BIOS hardware adaptation device based on the XML file format according to claim 9, wherein the hardware configuration parameter obtaining unit (3) comprises:
the XML template importing subunit (3.1) is used for setting an XML analysis module to import a hardware XML configuration file template through an XML input interface and providing a graphical configuration interface;
a hardware configuration parameter obtaining subunit (3.2) for obtaining the filled or selected hardware configuration parameters through a graphical configuration interface to generate a hardware XML configuration file instance;
a configuration file output subunit (3.3) for outputting the hardware XML configuration file instance in an XML file format or a CSV file format through an XML output interface;
a configuration file placing subunit (3.4) for creating an XML hardware adaptation folder under the BIOS firmware code root directory and integrating hardware XML configuration file instances of various types;
the hardware configuration information integration unit (4) includes:
a compiling and connecting subunit (4.1) for executing the compiling of the BIOS firmware code and automatically connecting the hardware XML configuration file instance of the corresponding machine type;
a hardware configuration information generating subunit (4.2) for retrieving according to the hardware configuration interface variable, acquiring and analyzing the hardware configuration parameters of the corresponding machine type, and generating hardware configuration information;
and the configuration information integration subunit (4.3) is used for integrating the hardware configuration information into the BIOS image file.
CN202110322719.7A 2021-03-26 2021-03-26 BIOS hardware adaptation method and device based on XML file format Active CN113065314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110322719.7A CN113065314B (en) 2021-03-26 2021-03-26 BIOS hardware adaptation method and device based on XML file format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110322719.7A CN113065314B (en) 2021-03-26 2021-03-26 BIOS hardware adaptation method and device based on XML file format

Publications (2)

Publication Number Publication Date
CN113065314A CN113065314A (en) 2021-07-02
CN113065314B true CN113065314B (en) 2023-02-28

Family

ID=76563832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110322719.7A Active CN113065314B (en) 2021-03-26 2021-03-26 BIOS hardware adaptation method and device based on XML file format

Country Status (1)

Country Link
CN (1) CN113065314B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805960B (en) * 2021-08-20 2023-12-22 济南浪潮数据技术有限公司 YAML-based server configuration method, device, terminal and storage medium
CN114138278A (en) * 2021-11-26 2022-03-04 浪潮电子信息产业股份有限公司 Parameter configuration method, device, equipment and medium for basic input and output system
CN114610313B (en) * 2022-02-28 2023-12-26 浪潮(山东)计算机科技有限公司 Method, system, device and medium for generating SPEC document

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007158B1 (en) * 2002-02-14 2006-02-28 Adaptec, Inc. Method for providing a configuration extensible markup language (XML) page to a user for configuring an XML based storage handling controller
CN102792270A (en) * 2010-03-15 2012-11-21 思科技术公司 BIOS parameter virtualization via BIOS configuration profiles
CN103257861A (en) * 2013-04-15 2013-08-21 合肥联宝信息技术有限公司 Method and device for automatically generating BIOS (basic input /output system) codes
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework
CN110187872A (en) * 2019-05-30 2019-08-30 浪潮商用机器有限公司 A kind of BIOS development approach, system and electronic equipment and storage medium
CN111989681A (en) * 2017-12-08 2020-11-24 雷网有限责任公司 Automatically deployed Information Technology (IT) system and method
CN112416377A (en) * 2020-11-23 2021-02-26 苏州浪潮智能科技有限公司 Boot image manufacturing method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7971050B2 (en) * 2007-12-13 2011-06-28 Dell Products, Lp Methods of using bios information when booting information handling systems and machine-executable code for carrying out the methods
CN104035754A (en) * 2013-03-05 2014-09-10 北大方正集团有限公司 XML (Extensible Markup Language)-based custom code generation method and generator
US10838707B2 (en) * 2018-07-20 2020-11-17 Dell Products L.P. Runtime update of intel server platform services' node manager settings in bios EEPROM

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007158B1 (en) * 2002-02-14 2006-02-28 Adaptec, Inc. Method for providing a configuration extensible markup language (XML) page to a user for configuring an XML based storage handling controller
CN102792270A (en) * 2010-03-15 2012-11-21 思科技术公司 BIOS parameter virtualization via BIOS configuration profiles
CN103257861A (en) * 2013-04-15 2013-08-21 合肥联宝信息技术有限公司 Method and device for automatically generating BIOS (basic input /output system) codes
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework
CN111989681A (en) * 2017-12-08 2020-11-24 雷网有限责任公司 Automatically deployed Information Technology (IT) system and method
CN110187872A (en) * 2019-05-30 2019-08-30 浪潮商用机器有限公司 A kind of BIOS development approach, system and electronic equipment and storage medium
CN112416377A (en) * 2020-11-23 2021-02-26 苏州浪潮智能科技有限公司 Boot image manufacturing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于高性能集群BIOS自动配置研究;朱启伟等;《信息系统工程》;20200120;全文 *

Also Published As

Publication number Publication date
CN113065314A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN113065314B (en) BIOS hardware adaptation method and device based on XML file format
CN102968306B (en) A kind of code automatic generation method based on data model driving and system
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
CN112052242A (en) Data query method and device, electronic equipment and storage medium
CN108536435B (en) Method for automatically generating CAN communication code
CN104376043B (en) Log recording and display methods and device
CN106354492A (en) Automatic code generation method and system capable of rapidly adjusting transaction process connection
CN103019874A (en) Method and device for realizing exception handling based on data synchronization
CN109299074A (en) A kind of data verification method and system based on templating data base view
CN101963911B (en) Patch generates method and apparatus
CN104156198A (en) Method and device for automatically generating software integration version updating description
CN109189388A (en) Page configuration method, server and computer-readable medium
CN109614143B (en) Development method for automatically generating fault flow chart in IETM browser
CN105279032A (en) Method and apparatus for synchronizing interface message and javaBean
CN115037587A (en) Method, device, equipment and storage medium for automatically issuing network equipment configuration
CN113239016A (en) Database design assistance apparatus and method
CN114691782A (en) Database table increment synchronization method and device and storage medium
KR20090003040A (en) Method and system of managing data quality through provisioning of metadata in the execution of business process
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN114721952A (en) Method, device, equipment and storage medium for synchronously deploying multiple sets of test environments
CN113641383A (en) Customized development framework and development method for BMC system client
CN113051171A (en) Interface test method, device, equipment and storage medium
CN109687984B (en) Configuration system and configuration method of wind power SCADA system
CN112947964A (en) Chip firmware updating method, device, equipment and storage medium
CN112905450A (en) Automatic development system of chip register based on template variable replacement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant