CN110096314B - Interface initialization method, device, equipment and computer readable storage medium - Google Patents

Interface initialization method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110096314B
CN110096314B CN201910375713.9A CN201910375713A CN110096314B CN 110096314 B CN110096314 B CN 110096314B CN 201910375713 A CN201910375713 A CN 201910375713A CN 110096314 B CN110096314 B CN 110096314B
Authority
CN
China
Prior art keywords
interface
interface type
target
trusted platform
gpio value
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
CN201910375713.9A
Other languages
Chinese (zh)
Other versions
CN110096314A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910375713.9A priority Critical patent/CN110096314B/en
Publication of CN110096314A publication Critical patent/CN110096314A/en
Application granted granted Critical
Publication of CN110096314B publication Critical patent/CN110096314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses an interface initialization method, which comprises the following steps: reading the current GPIO value in the starting process; searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table; target configuration information corresponding to the type of the target interface is called from a configuration information base; and initializing a trusted platform module interface in the management engine to be an interface of a target interface type by using the target configuration information. By applying the technical scheme provided by the embodiment of the invention, manual operations such as BIOS file modification and the like are not needed, dynamic initialization can be carried out on the trusted platform module interface according to the current requirements of users on the trusted platform module interface type, the time and labor input of software personnel for modifying, developing and releasing BIOS versions are reduced, and the cost is reduced. The invention also discloses an interface initialization device, equipment and a storage medium, which have corresponding technical effects.

Description

Interface initialization method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for interface initialization.
Background
With the development of scientific technology, technologies such as internet and big data are more and more widely applied, and a server is an infrastructure of the important technologies, and no matter whether computation or storage is carried out, the server system cannot be relied on, and most of data used for exchange and processing is also stored in the server. In recent years, the awareness of countries and enterprises to protect national confidentiality and intellectual property rights of enterprises has been increasing, and security has become a well-recognized first element. In server systems, security is the first consideration, and various server manufacturers and users have incorporated security measures into the development and manufacturing of servers. The TPM (Trusted Platform Module) is a security chip that is widely used and meets certain standards and specifications, and is widely used in the field of servers, and can effectively protect a server system by being matched with some software, thereby preventing tampering and illegal access of system data.
At present, most server systems already support the trusted platform module. The Interface mode of the trusted platform module mainly includes two Interface types of LPC (Low Pin Count ) and SPI (Serial Peripheral Interface), and the selected trusted platform module Interface types are different according to different requirements and tendencies of users. In order to meet different user requirements, server manufacturers strive for a larger market, improve the multiplexing degree of a server mainboard, reduce the hardware development cost, and often integrate an LPC interface and an SPI interface on the mainboard at the same time. And according to different types of interfaces of the trusted platform module used by the user, corresponding configuration is carried out on the software.
The normal use of the trusted platform module firstly requires the correct configuration of an ME (Management Engine) in a BIOS (Basic Input Output System), and the BIOS needs to configure the type of the trusted platform module in the ME to the trusted platform module interface type of the user to ensure that the System can normally identify the trusted platform module. By using the trusted platform modules with different interface types, the ME configuration file needs to be modified again, and then a new BIOS file is generated, so that the version control cost is increased, the labor and time investment of software research personnel is increased, the software research cost is increased, and the test cost is increased.
In summary, how to effectively solve the problems that when a user uses different types of trusted platform module interfaces, the ME configuration file needs to be modified again to generate a new BIOS file, the version management and control cost is high, and the labor and time costs are high is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an interface initialization method, which reduces the time and labor input of software personnel for modifying, developing and releasing a BIOS version and reduces the cost; another object of the present invention is to provide an interface initialization apparatus, a device and a computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
an interface initialization method, comprising:
reading the current GPIO value in the starting process;
searching a target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table;
target configuration information corresponding to the target interface type is called from a configuration information base;
and initializing a trusted platform module interface in a management engine to be an interface of the target interface type by using the target configuration information.
In a specific embodiment of the present invention, after initializing, by using the target configuration information, a trusted platform module interface in a management engine as an interface of the target interface type, the method further includes:
judging whether an interface type change instruction is received or not;
if yes, the step of reading the current GPIO value in the starting process is repeatedly executed.
In a specific embodiment of the present invention, after reading the current GPIO value during the start-up process, before looking up the target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table, the method further includes:
detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module;
if not, searching a GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table, and replacing the original GPIO value in the mainboard with the searched GPIO value.
In a specific embodiment of the present invention, after initializing a trusted platform module interface in a management engine to an interface of the target interface type using the target configuration information, the method further includes:
and checking the interface type of the trusted platform module interface in the management engine obtained by initialization.
An interface initialization apparatus comprising:
the reading module is used for reading the current GPIO value in the starting process;
the interface type searching module is used for searching a target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table;
the information calling module is used for calling target configuration information corresponding to the target interface type from a configuration information base;
and the initialization module is used for initializing a trusted platform module interface in the management engine into an interface of the target interface type by utilizing the target configuration information.
In one embodiment of the present invention, the method further comprises:
the judging module is used for judging whether an interface type changing instruction is received or not after a trusted platform module interface in the management engine is initialized to be the interface of the target interface type by using the target configuration information;
the reading module is further configured to repeatedly execute the step of reading the current GPIO value during the starting process when the interface type change instruction is received.
In one embodiment of the present invention, the method further comprises:
the detection module is used for detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module or not before searching the target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table after reading the current GPIO value in the starting process;
and the setting module is used for searching the GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table and replacing the original GPIO value in the mainboard with the searched GPIO value when detecting that the current GPIO value does not correspond to the interface type of the currently selected external trusted platform module.
In one embodiment of the present invention, the method further comprises:
and the verification module is used for verifying the interface type of the trusted platform module interface in the management engine obtained through initialization after the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the target configuration information.
An interface initialization apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the interface initialization method as described above when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the interface initialization method as set forth above.
By the method provided by the embodiment of the invention, the GPIO value and the interface type comparison table are preset, the configuration information base corresponding to the interface type and the configuration information is set, the current GPIO value is read in the BIOS starting process, the target interface type is determined according to the current GPIO value, the corresponding target configuration information is called from the configuration information base, and the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the called configuration information. Therefore, manual operations such as BIOS file modification are not needed, dynamic initialization can be performed on the trusted platform module interface according to the current requirements of the user on the type of the trusted platform module interface, time and labor input of software personnel for modifying, developing and releasing BIOS versions are reduced, and cost is reduced.
Accordingly, embodiments of the present invention further provide an interface initialization apparatus, a device, and a computer-readable storage medium corresponding to the interface initialization method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an implementation of an interface initialization method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another implementation of an interface initialization method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an interface initialization apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an interface initialization apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of an interface initialization method according to an embodiment of the present invention, where the method may include the following steps:
s101: the current GPIO value is read during startup.
The corresponding relation between the GPIO value in the mainboard and the interface type of the external trusted platform module can be preset, and after the user selects the interface type of the external trusted platform module, the system can automatically and correspondingly set the GPIO value in the mainboard according to the selected interface type. The BIOS may read the current GPIO value during start-up. The GPIO value may be set to 0 or 1, for example, 0 indicates that the trusted platform module interface type is the LPC interface type, and 1 indicates that the trusted platform module interface type is the SPI interface type.
LPC (Low Pin Count, few Pin type interface) is a decoding mode of separating and decoding the address/data of the conventional ISA BUS, which is similar to the sharing of PCI address/data signal lines, the number of the signal lines is greatly reduced, the working speed is synchronously driven by the PCI BUS speed, the number of required signal pins is greatly reduced while a larger transmission speed is maintained, for example, a SuperI/O chip and a Flash chip which are designed by the LPC interface can share the advantages of reduced Pin number and miniature volume, and the design of a main board can be simplified.
SPI (Serial Peripheral Interface) is a synchronous Serial Peripheral Interface that allows the MCU to communicate with various peripherals in a Serial manner to exchange information. The SPI bus can be directly connected with various standard peripheral devices produced by various manufacturers, including FLASHRAM, network controller, LCD display driver, A/D converter and MCU. The interface typically uses 4 wires: serial Clock Line (SCLK), master input/slave output data line MISO, master output/slave input data line MOSI, and active low slave select line NSS.
S102: and searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table.
A GPIO value and interface type comparison table may be preset, and when the current GPIO value in the motherboard is read during the BIOS startup process, a target interface type corresponding to the GPIO value may be searched from the GPIO value and interface type comparison table. Therefore, what interface type the trusted platform module interface in the management engine needs to be initialized currently can be obtained, and preparation is made for subsequently calling configuration information for initializing the trusted platform module interface in the management engine from the configuration information base.
S103: and calling target configuration information corresponding to the target interface type from the configuration information base.
A configuration information base can be preset, and the configuration information in the configuration information base and the interface type of the trusted platform module are stored correspondingly, for example, the LPC interface type is correspondingly provided with corresponding configuration information, and the SPI interface type is correspondingly provided with corresponding configuration information. After the target interface type corresponding to the read GPIO value is obtained by searching the GPIO value and the interface type comparison table, target configuration information corresponding to the target interface type can be called from the configuration information base. If the target interface type is determined to be the LPC interface type, the configuration information corresponding to the LPC interface type can be directly called from the configuration information base, and if the target interface type is determined to be the SPI interface type, the configuration information corresponding to the SPI interface type can be directly called from the configuration information base, the BIOS file is not required to be manually modified by software personnel, and time and labor are saved.
S104: and initializing a trusted platform module interface in the management engine to be an interface of a target interface type by using the target configuration information.
After target configuration information corresponding to the type of the target interface is obtained from the configuration information base, the trusted platform module interface in the management engine can be initialized to be the interface of the type of the target interface by using the obtained target configuration information, so that the trusted platform module interface in the management engine can be set to be the same as the interface type of an external trusted platform module interface, the trusted platform module can be normally used, the server system of a user is effectively protected by using the trusted platform module, and the tampering and illegal access of the system data of the user are prevented. When the interface types of the trusted platform modules selected by the user are different, the system can automatically set the GPIO value in the mainboard, so that the trusted platform modules with different interface types can be supported by one BIOS file for the same machine, automatic switching can be performed according to the interface types of the external trusted platform modules selected by the user, additional change is not needed, the time and labor investment for software personnel to modify, develop and release the BISO version are greatly reduced, the convenience of testing is improved, the cost for managing and controlling the BIOS version and software research and development is reduced, the multiplexing of software is improved, and the management and switching of the user are facilitated.
By the method provided by the embodiment of the invention, the GPIO value and the interface type comparison table are preset, the configuration information base corresponding to the interface type and the configuration information is set, the current GPIO value is read in the BIOS starting process, the target interface type is determined according to the current GPIO value, the corresponding target configuration information is called from the configuration information base, and the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the called configuration information. Therefore, manual operations such as BIOS file modification are not needed, dynamic initialization can be performed on the trusted platform module interface according to the current requirements of the user on the type of the trusted platform module interface, time and labor input of software personnel for modifying, developing and releasing BIOS versions are reduced, and cost is reduced.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, the same steps or corresponding steps as those in the first embodiment may be referred to each other, and the corresponding beneficial effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of the interface initialization method according to the embodiment of the present invention, where the method may include the following steps:
s201: the current GPIO value is read during startup.
S202: and detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module, if not, continuing to execute the step S203, and if so, skipping the step S203 and executing the step S204.
The BIOS reads a current GPIO value in the starting process, can acquire the interface type of the external trusted platform module selected by a current user, can detect whether the read GPIO value corresponds to the interface type of the selected external trusted platform module or not by acquiring the interface type of the external trusted platform module selected by the current user, and if the read GPIO value corresponds to the acquired interface type of the external trusted platform module, the system automatically sets the GPIO value in the mainboard normally according to the interface type of the external trusted platform module selected by the user, and can continue to execute the step S204 according to the read GPIO value. If the read GPIO value does not correspond to the acquired interface type of the external trusted platform module, it indicates that the system has an abnormal function of automatically setting the GPIO value in the motherboard according to the interface type of the external trusted platform module selected by the user, and if the automatic setting of the GPIO value in the previous stage fails due to a network failure, the step in step S203 may be continuously performed.
S203: and searching a GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table, and replacing the original GPIO value in the mainboard with the searched GPIO value.
When the read GPIO value is detected not to correspond to the interface type of the selected external trusted platform module, the GPIO value corresponding to the interface type of the selected external trusted platform module can be searched from the GPIO value and interface type comparison table, and the original GPIO value in the main board is replaced by the searched GPIO value, so that the GPIO value in the main board is reset until the GPIO value is set to be the value corresponding to the interface type of the external trusted platform module, and the effectiveness of initializing the interface of the trusted platform module in the management engine in the later period is ensured.
S204: and searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table.
S205: and calling target configuration information corresponding to the target interface type from the configuration information base.
S206: and initializing the trusted platform module interface in the management engine to be an interface of a target interface type by using the target configuration information.
S207: and judging whether an interface type change instruction is received, if so, repeatedly executing the step S201, and if not, executing the step S208.
After initializing the trusted platform module interface in the management engine to the interface of the target interface type by using the target configuration information, determining whether an interface type change instruction is received, if so, repeatedly executing the step of reading the current GPIO value in the starting process in step S201, thereby ensuring that the trusted platform module interface in the management engine is the same as the interface type of the external trusted platform module interface, and dynamically switching the trusted platform module interface in the management engine according to the interface type of the external trusted platform module interface currently required by the user.
S208: and checking the interface type of the trusted platform module interface in the management engine obtained by initialization.
After the trusted platform module interface in the management engine is initialized to the interface of the target interface type, the interface type of the trusted platform module interface in the management engine obtained through initialization may be checked. If the interface type of the external trusted platform module interface and the interface type of the trusted platform module interface in the management engine can be obtained again, if the two interfaces are the same in type, the trusted platform module interface in the management engine is successfully initialized, otherwise, the trusted platform module interface in the management engine needs to be re-initialized. The trusted platform module interface in the management engine is further ensured to be the same as the interface type of the external trusted platform module interface, and the trusted platform module is ensured to effectively and safely protect the user server system.
Corresponding to the above method embodiments, the embodiments of the present invention further provide an interface initialization apparatus, and the interface initialization apparatus described below and the interface initialization method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of an interface initialization apparatus according to an embodiment of the present invention, where the apparatus may include:
the reading module 31 is configured to read a current GPIO value in a starting process;
the interface type searching module 32 is used for searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table;
an information retrieving module 33, configured to retrieve target configuration information corresponding to the target interface type from the configuration information base;
and the initialization module 34 is used for initializing the trusted platform module interface in the management engine into an interface of a target interface type by using the target configuration information.
By using the device provided by the embodiment of the invention, the GPIO value and the interface type comparison table are preset, the configuration information base corresponding to the interface type and the configuration information is set, the current GPIO value is read in the BIOS starting process, the target interface type is determined according to the current GPIO value, the corresponding target configuration information in the configuration information base is used, and the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the called configuration information. Therefore, manual operations such as BIOS file modification are not needed, dynamic initialization can be performed on the trusted platform module interface according to the current requirements of the user on the type of the trusted platform module interface, time and labor input of software personnel for modifying, developing and releasing BIOS versions are reduced, and cost is reduced.
In one embodiment of the present invention, the apparatus may further include:
the judging module is used for judging whether an interface type changing instruction is received or not after a trusted platform module interface in the management engine is initialized to an interface of a target interface type by using the target configuration information;
the reading module 31 is further configured to repeatedly execute the step of reading the current GPIO value in the starting process when the interface type change instruction is received.
In one embodiment of the present invention, the apparatus may further include:
the detection module is used for detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module or not before searching the target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table after reading the current GPIO value in the starting process;
and the setting module is used for searching the GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table and replacing the original GPIO value in the mainboard with the searched GPIO value when detecting that the current GPIO value does not correspond to the currently selected interface type of the external trusted platform module.
In one embodiment of the present invention, the apparatus may further include:
and the verification module is used for verifying the interface type of the trusted platform module interface in the management engine obtained through initialization after the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the target configuration information.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of an interface initialization apparatus provided in the present invention, where the apparatus may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
reading the current GPIO value in the starting process; searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table; target configuration information corresponding to the type of the target interface is called from a configuration information base; and initializing a trusted platform module interface in the management engine to be an interface of a target interface type by using the target configuration information.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
reading the current GPIO value in the starting process; searching a target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table; target configuration information corresponding to the type of the target interface is called from a configuration information base; and initializing a trusted platform module interface in the management engine to be an interface of a target interface type by using the target configuration information.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An interface initialization method, comprising:
reading the current GPIO value in the starting process;
searching a target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table;
target configuration information corresponding to the target interface type is called from a configuration information base;
and initializing a trusted platform module interface in a management engine to be an interface of the target interface type by using the target configuration information.
2. The interface initialization method according to claim 1, further comprising, after initializing a trusted platform module interface in a manageability engine to an interface of the target interface type using the target configuration information, the method comprising:
judging whether an interface type change instruction is received or not;
if yes, the step of reading the current GPIO value in the starting process is repeatedly executed.
3. The interface initialization method according to claim 1 or 2, wherein after reading the current GPIO value during the start-up process, before looking up the target interface type corresponding to the GPIO value from the GPIO value and interface type comparison table, further comprising:
detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module;
if not, searching a GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table, and replacing the original GPIO value in the mainboard with the searched GPIO value.
4. The interface initialization method according to claim 3, further comprising, after initializing a trusted platform module interface in a manageability engine to an interface of the target interface type using the target configuration information:
and checking the interface type of the trusted platform module interface in the management engine obtained through initialization.
5. An interface initialization apparatus, comprising:
the reading module is used for reading the current GPIO value in the starting process;
the interface type searching module is used for searching a target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table;
the information calling module is used for calling target configuration information corresponding to the target interface type from a configuration information base;
and the initialization module is used for initializing a trusted platform module interface in the management engine into an interface of the target interface type by using the target configuration information.
6. The interface initialization apparatus according to claim 5, further comprising:
the judging module is used for judging whether an interface type changing instruction is received or not after a trusted platform module interface in the management engine is initialized to be the interface of the target interface type by using the target configuration information;
the reading module is further configured to repeatedly execute the step of reading the current GPIO value during the starting process when an interface type change instruction is received.
7. The interface initialization apparatus according to claim 5 or 6, further comprising:
the detection module is used for detecting whether the GPIO value corresponds to the interface type of the selected external trusted platform module or not before searching the target interface type corresponding to the GPIO value from a GPIO value and interface type comparison table after reading the current GPIO value in the starting process;
and the setting module is used for searching the GPIO value corresponding to the interface type of the selected external trusted platform module from the GPIO value and interface type comparison table and replacing the original GPIO value in the mainboard with the searched GPIO value when detecting that the current GPIO value does not correspond to the interface type of the currently selected external trusted platform module.
8. The interface initialization apparatus of claim 7, further comprising:
and the verification module is used for verifying the interface type of the trusted platform module interface in the management engine obtained through initialization after the trusted platform module interface in the management engine is initialized to the interface of the target interface type by using the target configuration information.
9. An interface initialization device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the interface initialization method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the interface initialization method according to any one of claims 1 to 4.
CN201910375713.9A 2019-05-07 2019-05-07 Interface initialization method, device, equipment and computer readable storage medium Active CN110096314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910375713.9A CN110096314B (en) 2019-05-07 2019-05-07 Interface initialization method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910375713.9A CN110096314B (en) 2019-05-07 2019-05-07 Interface initialization method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110096314A CN110096314A (en) 2019-08-06
CN110096314B true CN110096314B (en) 2022-05-24

Family

ID=67447188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910375713.9A Active CN110096314B (en) 2019-05-07 2019-05-07 Interface initialization method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110096314B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069102B (en) * 2020-09-04 2022-08-26 龙芯中科技术股份有限公司 GPIO controller configuration method and system
CN112165592A (en) * 2020-09-17 2021-01-01 山东云海国创云计算装备产业创新中心有限公司 Display interface protocol switching method, device, equipment and storage medium
CN112131171B (en) 2020-10-29 2022-08-02 苏州浪潮智能科技有限公司 Method for dynamically modifying PCH PCIE root port where onboard VGA is located
CN113760809B (en) * 2021-07-26 2023-07-18 苏州浪潮智能科技有限公司 Configuration method, system and device of GPIO interface and readable storage medium
CN114253890A (en) * 2021-11-16 2022-03-29 深圳市广和通无线通信软件有限公司 Communication module, external interface configuration method and device thereof, and storage medium
CN114900563A (en) * 2022-05-16 2022-08-12 深圳市宇航智能信息技术有限公司 Communication method and device, data transmission method and device, gateway equipment and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944869A (en) * 2013-01-21 2014-07-23 联想(新加坡)私人有限公司 Wake on cloud
CN104160403A (en) * 2012-09-04 2014-11-19 英特尔公司 Measuring platform components with a single trusted platform module
CN108920212A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of product starting method, system and associated component based on linux kernel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104160403A (en) * 2012-09-04 2014-11-19 英特尔公司 Measuring platform components with a single trusted platform module
CN103944869A (en) * 2013-01-21 2014-07-23 联想(新加坡)私人有限公司 Wake on cloud
CN108920212A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of product starting method, system and associated component based on linux kernel

Also Published As

Publication number Publication date
CN110096314A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
US9563439B2 (en) Caching unified extensible firmware interface (UEFI) and/or other firmware instructions in a non-volatile memory of an information handling system (IHS)
EP1832977A2 (en) Platform boot with bridge support
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
CN102073514A (en) Method for updating basic input/output system
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
CN110737558A (en) Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium
CN109032678B (en) Method, apparatus, medium, and method for controlling amount of BIOS print information
US6996648B2 (en) Generating notification that a new memory module has been added to a second memory slot in response to replacement of a memory module in a first memory slot
CN111367745B (en) Memory pressure testing method and system without support of operating system and related components
US10592644B2 (en) Information protection method and device based on a plurality of sub-areas for MCU chip
CN117056904A (en) Application privacy compliance judging method, device, computer equipment and medium
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN116112412A (en) Virtual network card binding redundancy function test method, system, device and medium
US20090144536A1 (en) Monitoring method and monitor apparatus
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN110119625A (en) A kind of trusted computing method
TWI411921B (en) Electronic systems, computer-readable storage medium and methods for interconnecting peripheral devices and electronic systems
CN110908725B (en) Application program starting method and device, electronic equipment and readable medium
CN106528031A (en) Extended display identification data reading method and apparatus
CN115129384A (en) Electronic equipment and running method of starting program of electronic equipment
US10372661B1 (en) Firmware debug trace capture using serial peripheral interface
CN115664953B (en) Resource allocation method and related device of external equipment
CN112020703A (en) BIOS personality

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