CN117407065A - Network card pre-start control method, device, equipment, system and storage medium - Google Patents
Network card pre-start control method, device, equipment, system and storage medium Download PDFInfo
- Publication number
- CN117407065A CN117407065A CN202311278318.1A CN202311278318A CN117407065A CN 117407065 A CN117407065 A CN 117407065A CN 202311278318 A CN202311278318 A CN 202311278318A CN 117407065 A CN117407065 A CN 117407065A
- Authority
- CN
- China
- Prior art keywords
- target network
- network card
- starting
- target
- execution environment
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000004519 manufacturing process Methods 0.000 claims abstract description 59
- 238000003745 diagnosis Methods 0.000 claims abstract description 48
- 230000006870 function Effects 0.000 claims description 212
- 238000004590 computer program Methods 0.000 claims description 17
- 239000000758 substrate Substances 0.000 claims description 10
- 230000004048 modification Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 5
- 238000011161 development Methods 0.000 abstract description 10
- 238000012423 maintenance Methods 0.000 abstract description 8
- 238000013515 script Methods 0.000 abstract description 8
- 239000000047 product Substances 0.000 description 130
- 238000007726 management method Methods 0.000 description 71
- 238000010586 diagram Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 14
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a network card pre-starting control method, device, equipment, system and storage medium, and relates to the technical field of servers, wherein the method comprises the following steps: the baseboard management controller obtains a product configuration file stored in the production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; determining a target network port of a target network card based on the product configuration file; sending a control instruction to a target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card. The method and the device can meet the customization requirements of clients, and simultaneously reduce the work of additional development and maintenance scripts or codes of BIOS engineers.
Description
Technical Field
The present disclosure relates to the field of server technologies, and in particular, to a method, an apparatus, a device, a system, and a storage medium for controlling network card pre-start.
Background
Along with rapid development of server technology, in order to meet the interaction function between the server and the outside, external plug-in high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE) devices, such as a common network card, which can be externally connected to the server are more and more. The network card also has a plurality of functions, such as common pre-start execution environment functions, for downloading an operating system image from a remote server through a network protocol, installing the operating system image to a client machine or guiding the operating system image to a remote server diagnosis system to perform various detection and diagnosis works before server production and delivery.
The basic input output system (Basic Input Output System, BIOS), which is the lowest and most direct hardware setting and controlling manager of the server motherboard, can provide more simple usability functions for the server. The BIOS is a set of programs solidified on a ROM chip on the main board, and it stores the most important basic input and output programs, system setting information, self-checking programs after starting up and system self-starting programs of the computer, and its main function is to provide the bottommost and most direct hardware setting and control for the computer.
In general, the pre-boot execution environment functions of the network card are all that the BIOS scans PCIE devices during the boot process, and if the network card is found to exist, a pre-boot execution environment function control option is created for each network port of the network card, so that a client can manually modify the BIOS option to control the opening or closing of the pre-boot execution environment functions of each network port, and then create a pre-boot execution environment option for the network port that has opened the pre-boot execution environment functions when creating a boot item, so as to perform pre-boot execution guidance through the network port.
In view of actual shipment, a plurality of network cards are usually configured on a machine, but a customer does not need to open the pre-boot execution environment function options of all the interfaces of all the network cards according to service needs, but only wants to open the pre-boot execution environment function of a certain interface of a certain network card, so that the BIOS needs to meet the customer demands by customizing codes or customizing BIOS control options, which additionally increases the cost of code development or script development and maintenance of BIOS engineers. In order to reduce development and maintenance work of BIOS engineers, it is necessary to develop a solution for pre-starting control of a network card to meet the requirement of customization of clients.
Disclosure of Invention
The purpose of the application is to provide a network card pre-start control method, a device, equipment, a system and a storage medium, which are used for meeting the customization requirement of clients and reducing the work of additional development and maintenance scripts or codes of BIOS engineers.
In a first aspect, the present application provides a method for controlling pre-start of a network card, which is applied to a baseboard management controller, where the method includes:
acquiring a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function;
Determining the target network port of the target network card based on the product configuration file;
sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
Optionally, the acquiring the product configuration file stored in the production line diagnosis system includes:
sending a product configuration file request to the production line diagnosis system;
and receiving the product configuration file sent by the production line diagnosis system through a network interface.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, where the target network card is a network card corresponding to the configured target PCIE slot information;
the sending a control instruction to the target network card includes:
and sending the control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information.
Optionally, each network card includes a plurality of network ports, the target network port includes a first register and a second register, the first register stores original data for implementing a pre-start execution environment function of the target network port, and the second register is used for storing target data for opening or closing the pre-start execution environment function of the target network port;
The target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot; the control instruction carries the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
the sending the control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information includes:
determining an I2C address corresponding to the target PCIE slot based on the target PCIE slot information;
determining the address of the target network card based on the I2C address corresponding to the target PCIE slot;
generating the control instruction based on the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
based on the address of the target network card, sending the control instruction to the target network card; the control instruction is used for indicating the target network card to store target data of opening or closing of the pre-starting execution environment function of the target network port into the second register, modifying the original data of the first register based on the second register so that the basic input and output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at the target network port of opening the pre-starting execution environment function, thereby realizing network card pre-starting control.
In a second aspect, the present application further provides a network card pre-start control method, applied to a target network card, where the method includes:
receiving a control instruction sent by a substrate management controller; the target network port of the target network card is determined by the baseboard management controller based on a product configuration file acquired from a production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card, which needs to be started or closed for pre-starting an execution environment function;
and responding to the control instruction, and modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information so that the basic input/output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, where the target network card is a network card corresponding to the configured target PCIE slot information; the target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot;
The target network port comprises a first register and a second register, wherein the first register is used for storing original data for realizing the pre-starting execution environment function of the target network port, and the second register is used for storing target data for starting or closing the pre-starting execution environment function of the target network port; the control instruction carries the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
the receiving the control instruction sent by the baseboard management controller includes:
receiving the control instruction sent by the baseboard management controller based on the address of the target network card;
and responding to the control instruction, modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information, and comprising the following steps:
responding to the control instruction, and storing target data of opening or closing of the pre-starting execution environment function of the target network port into the second register;
and modifying the original data of the first register based on the second register so that the basic input/output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
In a third aspect, the present application further provides a network card pre-start control method, applied to a production line diagnostic system, where the method includes:
receiving a product configuration file request sent by a baseboard management controller;
responding to the product configuration file request, and sending a product configuration file to the baseboard management controller through a network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function; the baseboard management controller is used for determining the target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information.
In a fourth aspect, the present application further provides a network card pre-start control device, applied to a baseboard management controller, where the device includes:
the file acquisition module is used for acquiring a product configuration file stored in the production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function;
the network port determining module is used for determining the target network port of the target network card based on the product configuration file;
the instruction sending module is used for sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
In a fifth aspect, the present application further provides a network card pre-start control device, applied to a target network card, where the device includes:
the instruction receiving module is used for receiving a control instruction sent by the substrate management controller; the target network port of the target network card is determined by the baseboard management controller based on a product configuration file acquired from a production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card, which needs to be started or closed for pre-starting an execution environment function;
And the information modification module is used for responding to the control instruction and modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information so that the basic input/output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In a sixth aspect, the present application further provides a network card pre-start control device, applied to a production line diagnostic system, where the device includes:
the request receiving module is used for receiving a product configuration file request sent by the baseboard management controller;
the file sending module is used for responding to the product configuration file request and sending a product configuration file to the baseboard management controller through a network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function; the baseboard management controller is used for determining the target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
In a seventh aspect, the present application further provides a baseboard management controller, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement the steps of the network card pre-start control method according to any one of the first aspect.
In an eighth aspect, the present application further provides a target network card, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the network card pre-start control method according to any one of the second aspects when executing the program.
In a ninth aspect, the present application further provides a production line diagnosis system, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the network card pre-start control method according to any one of the third aspects when executing the program.
In a tenth aspect, the present application further provides a network card pre-start control system, including the baseboard management controller according to the seventh aspect, the target network card according to the eighth aspect, the production line diagnostic system according to the ninth aspect, and the basic input/output system.
In an eleventh aspect, the present application further provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the network card pre-start-up control method according to any one of the first, second or third aspects above.
In a twelfth aspect, the present application further provides a computer readable storage medium, on which a computer program is stored, the computer program implementing the steps of the network card pre-start-up control method according to any one of the first, second or third aspects, when executed by a processor.
The network card pre-starting control method, the device, the equipment, the system and the storage medium provided by the application comprise the steps that firstly, a baseboard management controller obtains a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; then, the product configuration file comprises customized information, and a target network port of a target network card for starting or closing the pre-starting execution environment function can be determined based on the product configuration file; then, sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-start execution environment function of the target network port in the register information, so that the basic input/output system can establish a start item of the pre-start execution environment function aiming at the target network port for opening the pre-start execution environment function, thereby realizing the pre-start control of the network card; that is, the BIOS of the present application does not need to meet the customization needs of the customer by customizing the code or customizing the BIOS control options. Thus, the present application may meet customer customization needs while reducing the effort of BIOS engineers to additionally develop, maintain scripts or code.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
In order to more clearly illustrate the technical solutions of the present application or the prior art, the following description will briefly introduce the drawings used in the embodiments or the description of the prior art, and it is obvious that, in the following description, the drawings are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is one of flow diagrams of a network card pre-start control method provided in an embodiment of the present application;
fig. 2 is a second flowchart of a network card pre-start control method according to an embodiment of the present disclosure;
fig. 3 is a third flowchart of a network card pre-start control method according to an embodiment of the present disclosure;
fig. 4 is an interactive flow diagram of a network card pre-start control method provided in an embodiment of the present application;
Fig. 5 is one of schematic structural diagrams of a network card pre-start control device provided in the embodiment of the present application;
fig. 6 is a second schematic structural diagram of a network card pre-starting control device according to an embodiment of the present disclosure;
fig. 7 is a third schematic structural diagram of a network card pre-start control device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a baseboard management controller according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a target network card according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a line diagnosis system according to an embodiment of the present application;
fig. 11 is a schematic diagram of a composition of a network card pre-start control system provided in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms "first," "second," and the like in the description of the present application, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more.
The network card pre-starting control method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flow chart of a network card pre-start control method according to an embodiment of the present application. The method is applied to a baseboard management controller, as shown in fig. 1, and can include the following steps:
step 101, acquiring a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function;
step 102, determining a target network port of a target network card based on a product configuration file;
step 103, sending a control instruction to a target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In step 101, before the factory produces the server, if receiving the customized requirement of the target network interface of the target network card that needs to turn on or off the pre-start execution environment function that is set forth by the customer, the engineering department configures in the existing product information according to the customized requirement, generates the product configuration file, and maintains the product configuration file in the production line diagnosis system.
Because the product configuration file which is maintained in advance is stored in the production line diagnosis system, the baseboard management controller obtains the product configuration file, the product configuration file comprises customized information of target network interfaces of target network cards which need to be started or closed for executing the environment function in advance, the number of the target network cards can be one or more, and the number of the target network interfaces can be one or more.
In step 102, since the product configuration file includes the customized information, a target network port of the target network card that needs to be turned on or off for the pre-boot execution environment function may be determined based on the product configuration file.
In step 103, the baseboard management controller sends a control command to the target network card. And the target network card responds to the control instruction and modifies the starting or closing of the function of the pre-starting execution environment of the target network port in the register information. The basic input output system scans PCIE equipment in the starting process, and judges whether the PCIE equipment is a target network card or not and whether a pre-starting execution environment function is started in a register of a target network port of the target network card or not. Therefore, the basic input/output system can establish a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, so that the network card pre-starting control is realized. That is, the BIOS does not need to meet the customer's customization needs by customizing the code or customizing the BIOS control options.
According to the network card pre-starting control method provided by the embodiment of the application, firstly, a baseboard management controller obtains a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; then, the product configuration file comprises customized information, and a target network port of a target network card for starting or closing the pre-starting execution environment function can be determined based on the product configuration file; then, sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-start execution environment function of the target network port in the register information, so that the basic input/output system can establish a start item of the pre-start execution environment function aiming at the target network port for opening the pre-start execution environment function, thereby realizing the pre-start control of the network card; that is, the BIOS in the embodiments of the present application does not need to meet the customization needs of the client by customizing the code or customizing the BIOS control options. Therefore, the embodiment of the application can meet the customized requirement of a customer, and simultaneously reduce the work of additional development and maintenance scripts or codes of a BIOS engineer.
In an example embodiment, step 101 includes: sending a product configuration file request to a production line diagnosis system; and receiving a product configuration file sent by the production line diagnosis system through a network interface.
Specifically, the baseboard management controller sends a product profile request to the production line diagnostic system. The production line diagnostic system responds to the product configuration file request and sends the product configuration file to the baseboard management controller through the network interface. The baseboard management controller receives a product configuration file sent by the production line diagnostic system through the network interface.
In this embodiment, since the production line diagnostic system may not only store the product configuration file, but also provide a network interface for transmitting the product configuration file to the baseboard management controller, the baseboard management controller may obtain the product configuration file sent by the production line diagnostic system through the network interface by sending a product configuration file request to the production line diagnostic system.
In an example embodiment, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information; step 103 comprises: and sending a control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information.
Specifically, before the factory produces the server, product information such as product names, the number of network cards, PCIE slot information of a plurality of network cards and the like is input into a product configuration file. If a customized requirement of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function and is proposed by a client is received, an engineering department configures product information in a product configuration file according to the customized requirement, for example: marking a target network port of a target network card corresponding to the target PCIE slot information from the PCIE slot information of the plurality of network cards, obtaining a final product configuration file, and maintaining the product configuration file in the production line diagnosis system.
The target network card inserted into the target PCIE slot can be found out through the target PCIE slot information, and then a control instruction is sent to the target network card through an I2C bus (a simple, bidirectional two-wire synchronous serial bus).
In this embodiment, the target network card inserted into the target PCIE slot may be located through the target PCIE slot information, so that a control instruction may be sent to the target network card.
In an example embodiment, each network card includes a plurality of network ports, and the target network port includes a first register and a second register, where the first register stores raw data for implementing a pre-boot execution environment function of the target network port, and the second register stores target data for opening or closing the pre-boot execution environment function of the target network port;
The target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot; the control instruction carries the address of the target network card and the information of opening or closing the function of the pre-starting execution environment of the target network port;
sending a control instruction to a target network card inserted into the target PCIE slot based on the target PCIE slot information includes:
determining an I2C address corresponding to the target PCIE slot based on the target PCIE slot information;
determining the address of the target network card based on the I2C address corresponding to the target PCIE slot;
generating a control instruction based on the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
based on the address of the target network card, sending a control instruction to the target network card; the control instruction is used for indicating the target network card to store target data of opening or closing the pre-starting execution environment function of the target network port into the second register, and modifying the original data of the first register based on the second register, so that the basic input and output system reads the modified first register, and creates a starting item of the pre-starting execution environment function aiming at the target network port of opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Specifically, each network card comprises a plurality of network ports, the target network ports are network ports customized by a user and required to be opened or closed for pre-starting the execution environment function, and the number of the target network ports is one or more.
The target portal includes two registers. The first register stores original data for realizing the function of the pre-boot execution environment of the target network port, and the baseboard management controller cannot directly access the first register or can access but cannot operate the first register, and the software specification (Software Requirement Specification, SPEC) document of each network card is specifically referred to. However, the baseboard management controller may make a contract with the target network card, for example, the second register of the XX offset may be directly operated and used, and the target data of a few bits of the second register is used to indicate whether the pre-boot execution environment function of the target network port is on or off, where writing 1 indicates start and writing 0 indicates off.
Each PCIE slot has a fixed I2C address, and the target PCIE slot information includes an I2C address corresponding to the target PCIE slot. The I2C address corresponding to the target PCIE slot may be used as an address of the target network card into which the target PCIE slot is inserted.
Because the target PCIE slot information includes the I2C address corresponding to the target PCIE slot, the I2C address corresponding to the target PCIE slot may be determined based on the target PCIE slot information. Because the I2C address corresponding to the target PCIE slot may be used as the address of the target network card into which the target PCIE slot is inserted, the address of the target network card may be determined based on the I2C address corresponding to the target PCIE slot. And generating a control instruction carrying the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port. And sending a control instruction to the target network card based on the address of the target network card. And the target network card responds to the control instruction, stores the target data of the opening or closing of the pre-starting execution environment function of the target network port into a second register, and modifies the original data of the first register based on the second register. The basic input and output system reads the modified first register, and creates a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In this embodiment, the I2C address corresponding to the target PCIE slot included in the target PCIE slot information is used as the address of the target network card. And generating a control instruction carrying the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port. Based on the address of the target network card, a control instruction is sent to the target network card to instruct the target network card to store target data of opening or closing of the pre-start execution environment function of the target network port into a second register, original data of the first register is modified based on the second register, so that the basic input output system reads the modified first register, and a start item of the pre-start execution environment function is created for the target network port of opening the pre-start execution environment function, thereby realizing the pre-start control of the network card.
Referring to fig. 2, fig. 2 is a second flowchart of a network card pre-start control method according to an embodiment of the present disclosure. The method is applied to the target network card, as shown in fig. 2, and can include the following steps:
step 201, receiving a control instruction sent by a baseboard management controller; the target network port of the target network card is determined by the substrate management controller based on a product configuration file acquired from the production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card needing to be started or closed to start the execution environment function;
step 202, responding to the control instruction, and modifying the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In step 201, since a product configuration file maintained in advance is stored in the production line diagnosis system, the baseboard management controller obtains the product configuration file, and the product configuration file includes customized information of a target network port of a target network card that needs to be turned on or turned off to start an execution environment function. Because the product configuration file comprises customized information, the baseboard management controller can determine the target network port of the target network card needing to be started or closed for pre-starting the execution environment function based on the product configuration file. The baseboard management controller sends a control instruction to the target network card, and the target network card receives the control instruction sent by the baseboard management controller.
In step 202, the target network card responds to the control instruction to modify the on or off of the pre-boot execution environment function of the target network port in the register information from the firmware level. The basic input output system scans PCIE equipment in the starting process, and judges whether the PCIE equipment is a target network card or not and whether a pre-starting execution environment function is started in a register of a target network port of the target network card or not. Therefore, the basic input/output system can establish a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, so that the network card pre-starting control is realized. That is, the BIOS does not need to meet the customer's customization needs by customizing the code or customizing the BIOS control options. The register information is information stored in a register.
According to the network card pre-starting control method provided by the embodiment of the application, firstly, a target network card receives a control instruction sent by a baseboard management controller; the target network port of the target network card is determined by the substrate management controller based on a product configuration file acquired from the production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card needing to be started or closed to start the execution environment function; then, responding to the control instruction, modifying the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input/output system can establish a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card; that is, the BIOS in the embodiments of the present application does not need to meet the customization needs of the client by customizing the code or customizing the BIOS control options. Therefore, the embodiment of the application can meet the customized requirement of a customer, and simultaneously reduce the work of additional development and maintenance scripts or codes of a BIOS engineer.
In an example embodiment, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information; the target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot;
the target network port comprises a first register and a second register, wherein the first register is used for storing original data for realizing the pre-starting execution environment function of the target network port, and the second register is used for storing target data for starting or closing the pre-starting execution environment function of the target network port; the control instruction carries the address of the target network card and the information of opening or closing the function of the pre-starting execution environment of the target network port;
step 201 includes receiving a control instruction sent by a baseboard management controller based on an address of a target network card; step 202 comprises: responding to the control instruction, and storing target data of opening or closing the pre-starting execution environment function of the target network port into a second register; and modifying the original data of the first register based on the second register so that the basic input/output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Specifically, each network card comprises a plurality of network ports, the target network ports are network ports customized by a user and required to be opened or closed for pre-starting the execution environment function, and the number of the target network ports is one or more.
The target portal includes two registers. The first register stores original data for realizing the function of the pre-boot execution environment of the target network port, and the baseboard management controller cannot directly access the first register or can access but cannot operate the first register, and specifically needs to refer to a SPEC document of each network card. However, the baseboard management controller may make a contract with the target network card, for example, the second register of the XX offset may be directly operated and used, and the target data of a few bits of the second register is used to indicate whether the pre-boot execution environment function of the target network port is on or off, where writing 1 indicates start and writing 0 indicates off.
Each PCIE slot has a fixed I2C address, and the target PCIE slot information includes an I2C address corresponding to the target PCIE slot. The I2C address corresponding to the target PCIE slot may be used as an address of the target network card into which the target PCIE slot is inserted.
Because the target PCIE slot information includes the I2C address corresponding to the target PCIE slot, the I2C address corresponding to the target PCIE slot may be determined based on the target PCIE slot information. Because the I2C address corresponding to the target PCIE slot may be used as the address of the target network card into which the target PCIE slot is inserted, the address of the target network card may be determined based on the I2C address corresponding to the target PCIE slot. And generating a control instruction carrying the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port. And sending a control instruction to the target network card based on the address of the target network card. And the target network card receives and responds to the control instruction, stores target data of opening or closing of the pre-starting execution environment function of the target network port into a second register, and modifies the original data of the first register based on the second register. The basic input and output system reads the modified first register, and creates a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In this embodiment, the target network card receives and responds to the control instruction, stores the target data of opening or closing the pre-start execution environment function of the target network port into the second register, modifies the original data of the first register based on the second register, so that the basic input/output system reads the modified first register, and creates a start item of the pre-start execution environment function for the target network port opening the pre-start execution environment function, thereby implementing the pre-start control of the network card.
Referring to fig. 3, fig. 3 is a third flowchart of a network card pre-start control method according to an embodiment of the present disclosure. The method is applied to a production line diagnosis system, as shown in fig. 3, and the method can comprise the following steps:
step 301, receiving a product configuration file request sent by a baseboard management controller;
step 302, responding to a product configuration file request, and sending a product configuration file to a baseboard management controller through a network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; the baseboard management controller is used for determining a target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
In step 301, before the factory produces the server, if a customized requirement of a target network interface of a target network card that needs to be turned on or off for pre-starting the execution environment function, which is set by a client, is received, the engineering department configures in the existing product information according to the customized requirement, generates a product configuration file, and maintains the product configuration file in the production line diagnosis system.
The baseboard management controller sends a product profile request to the production line diagnostic system. The production line diagnostic system receives a request for a product configuration file sent by the baseboard management controller.
In step 302, the production line diagnostic system sends a product profile to the baseboard management controller via the network interface in response to the product profile request. The baseboard management controller receives a product configuration file sent by the production line diagnostic system through the network interface. Because the product configuration file comprises customized information, the baseboard management controller can determine the target network port of the target network card needing to be started or closed for pre-starting the execution environment function based on the product configuration file. And the baseboard management controller sends a control instruction to the target network card. And the target network card responds to the control instruction and modifies the starting or closing of the function of the pre-starting execution environment of the target network port in the register information. The basic input output system scans PCIE equipment in the starting process, and judges whether the PCIE equipment is a target network card or not and whether a pre-starting execution environment function is started in a register of a target network port of the target network card or not. Therefore, the basic input/output system can establish a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, so that the network card pre-starting control is realized. That is, the BIOS does not need to meet the customer's customization needs by customizing the code or customizing the BIOS control options.
The network card pre-starting control method provided by the embodiment of the application comprises the steps that firstly, a production line diagnosis system receives a product configuration file request sent by a substrate management controller; then, the production line diagnosis system responds to the request of the product configuration file and sends the product configuration file to the baseboard management controller through the network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; the baseboard management controller is used for determining a target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-start execution environment function of the target network port in the register information, so that the basic input/output system can establish a start item of the pre-start execution environment function aiming at the target network port for opening the pre-start execution environment function, thereby realizing the pre-start control of the network card; that is, the BIOS in the embodiments of the present application does not need to meet the customization needs of the client by customizing the code or customizing the BIOS control options. Therefore, the embodiment of the application can meet the customized requirement of a customer, and simultaneously reduce the work of additional development and maintenance scripts or codes of a BIOS engineer.
In an example embodiment, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information.
Specifically, before the factory produces the server, product information such as product names, the number of network cards, PCIE slot information of a plurality of network cards and the like is input into a product configuration file. If a customized requirement of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function and is proposed by a client is received, an engineering department configures product information in a product configuration file according to the customized requirement, for example: marking a target network port of a target network card corresponding to the target PCIE slot information from the PCIE slot information of the plurality of network cards, obtaining a final product configuration file, and maintaining the product configuration file in the production line diagnosis system.
In this embodiment, the target network ports of the target network cards corresponding to the target PCIE slot information may be configured in PCIE slot information of the multiple network cards.
It should be noted that, in the network card pre-starting control method provided in the embodiment of the present application, the execution body may be a network card pre-starting control device, or a control module in the network card pre-starting control device for executing the network card pre-starting control method. In the embodiment of the application, the network card pre-start control device executes the network card pre-start control method as an example, and the network card pre-start control device provided in the embodiment of the application is described.
In the embodiment of the present application, the network card pre-start control method shown in the above-mentioned method drawings is described by way of example with reference to one drawing in the embodiment of the present application. In specific implementation, the network card pre-starting control method shown in the above method drawings may be further implemented in combination with any other drawing that may be combined and is illustrated in the above embodiment, which is not described herein again.
Referring to fig. 4, fig. 4 is an interactive flow chart of a network card pre-start control method provided in an embodiment of the present application. As shown in fig. 4, the method may include the steps of:
step 401, a baseboard management controller sends a product configuration file request to a production line diagnosis system;
step 402, the production line diagnosis system sends a product configuration file to the baseboard management controller through a network interface;
step 403, the baseboard management controller determines a target network port of the target network card based on the product configuration file;
step 404, the baseboard management controller sends a control instruction to the target network card;
step 405, the target network card responds to the control instruction, and modifies the opening or closing of the pre-start execution environment function of the target network port in the register information;
step 406, the basic input output system acquires the modified register information;
Step 407, the basic input/output system creates a start item of the pre-start execution environment function aiming at a target network port for starting the pre-start execution environment function, thereby realizing the network card pre-start control.
According to the network card pre-starting control method, the basic input/output system does not need to meet the customization demands of clients in a mode of customizing codes or customizing BIOS control options. Therefore, the embodiment of the application can meet the customized requirement of a customer, and simultaneously reduce the work of additional development and maintenance scripts or codes of a BIOS engineer.
The network card pre-starting control device provided by the application is described below, and the network card pre-starting control method described below and the network card pre-starting control method described above can be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a network card pre-start control device according to an embodiment of the present disclosure. The apparatus is applied to a baseboard management controller, as shown in fig. 5, and includes:
a file obtaining module 501, configured to obtain a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function;
The network port determining module 502 is configured to determine a target network port of the target network card based on the product configuration file;
an instruction sending module 503, configured to send a control instruction to a target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Optionally, the file obtaining module 501 is specifically configured to:
sending a product configuration file request to a production line diagnosis system;
and receiving a product configuration file sent by the production line diagnosis system through a network interface.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information;
the instruction sending module 503 is specifically configured to: and sending a control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information.
Optionally, each network card includes a plurality of network ports, the target network port includes a first register and a second register, the first register stores original data for implementing a pre-starting execution environment function of the target network port, and the second register stores target data for opening or closing the pre-starting execution environment function of the target network port;
The target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot; the control instruction carries the address of the target network card and the information of opening or closing the function of the pre-starting execution environment of the target network port;
the instruction sending module 503 is specifically configured to:
determining an I2C address corresponding to the target PCIE slot based on the target PCIE slot information;
determining the address of the target network card based on the I2C address corresponding to the target PCIE slot;
generating a control instruction based on the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
based on the address of the target network card, sending a control instruction to the target network card; the control instruction is used for indicating the target network card to store target data of opening or closing the pre-starting execution environment function of the target network port into the second register, and modifying the original data of the first register based on the second register, so that the basic input and output system reads the modified first register, and creates a starting item of the pre-starting execution environment function aiming at the target network port of opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Referring to fig. 6, fig. 6 is a second schematic structural diagram of a network card pre-start control device according to an embodiment of the present disclosure. The device is applied to the target network card, as shown in fig. 6, and the device comprises:
an instruction receiving module 601, configured to receive a control instruction sent by a baseboard management controller; the target network port of the target network card is determined by the substrate management controller based on a product configuration file acquired from the production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card needing to be started or closed to start the execution environment function;
the information modification module 602 is configured to modify, in response to the control instruction, opening or closing of the pre-boot execution environment function of the target portal in the register information, so that the bios creates a boot item of the pre-boot execution environment function for the target portal that opens the pre-boot execution environment function, thereby implementing network card pre-boot control.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information; the target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot;
The target network port comprises a first register and a second register, wherein the first register is used for storing original data for realizing the pre-starting execution environment function of the target network port, and the second register is used for storing target data for starting or closing the pre-starting execution environment function of the target network port; the control instruction carries the address of the target network card and the information of opening or closing the function of the pre-starting execution environment of the target network port;
the instruction receiving module 601 is specifically configured to: receiving a control instruction sent by a baseboard management controller based on the address of a target network card;
the information modification module 602 is specifically configured to:
responding to the control instruction, and storing target data of opening or closing the pre-starting execution environment function of the target network port into a second register;
and modifying the original data of the first register based on the second register so that the basic input/output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at a target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Referring to fig. 7, fig. 7 is a third schematic structural diagram of a network card pre-start control device according to an embodiment of the present disclosure. The apparatus is applied to a production line diagnosis system, as shown in fig. 7, and comprises:
A request receiving module 701, configured to receive a product configuration file request sent by a baseboard management controller;
a file sending module 702, configured to send a product configuration file to the baseboard management controller through the network interface in response to the product configuration file request; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; the baseboard management controller is used for determining a target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Optionally, the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information.
Fig. 8 illustrates a physical schematic diagram of a baseboard management controller, and as shown in fig. 8, the baseboard management controller may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a network card pre-boot control method comprising: acquiring a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; determining a target network port of a target network card based on the product configuration file; sending a control instruction to a target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Fig. 9 illustrates an entity structure diagram of a target network card, as shown in fig. 9, where the target network card may include: processor 910, communication interface 920, memory 930, and communication bus 940, where processor 910, communication interface 920, and memory 930 communicate with each other via communication bus 940. Processor 910 may invoke logic instructions in memory 930 to perform a network card pre-boot control method comprising: receiving a control instruction sent by a substrate management controller; the target network port of the target network card is determined by the substrate management controller based on a product configuration file acquired from the production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card needing to be started or closed to start the execution environment function; and responding to the control instruction, and modifying the opening or closing of the pre-starting execution environment function of the target network port in the register information so that the basic input/output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Further, the logic instructions in the memory 930 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
FIG. 10 illustrates a physical schematic diagram of a line diagnostic system, as shown in FIG. 10, which may include: processor 1010, communication interface 1020, memory 1030, and communication bus 1040, wherein processor 1010, communication interface 1020, and memory 1030 communicate with each other via communication bus 1040. Processor 1010 may invoke logic instructions in memory 1030 to perform a network card pre-boot control method comprising: receiving a product configuration file request sent by a baseboard management controller; responding to the product configuration file request, and sending a product configuration file to the baseboard management controller through the network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting the execution environment function; the baseboard management controller is used for determining a target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the opening or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for opening the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
Further, the logic instructions in the memory 1030 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
Fig. 11 illustrates a schematic diagram of a network card pre-start-up control system, which includes a baseboard management controller 1101 shown in fig. 8, a target network card 1102 shown in fig. 9, a line diagnosis system 1103 shown in fig. 10, and a basic input output system 1104.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program stored on a computer readable storage medium, where the computer program includes program instructions, when the program instructions are executed by a computer, for executing the network card pre-start control method provided by the foregoing methods, which is not described herein.
In still another aspect, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program is implemented when executed by a processor to perform the above-provided network card pre-start control method, which is not described herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.
Claims (16)
1. A network card pre-start control method, which is applied to a baseboard management controller, the method comprising:
acquiring a product configuration file stored in a production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function;
determining the target network port of the target network card based on the product configuration file;
sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
2. The network card pre-start control method according to claim 1, wherein the obtaining the product configuration file stored in the production line diagnosis system includes:
sending a product configuration file request to the production line diagnosis system;
and receiving the product configuration file sent by the production line diagnosis system through a network interface.
3. The network card pre-start control method according to claim 1 or 2, wherein the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information;
the sending a control instruction to the target network card includes:
and sending the control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information.
4. The network card pre-start control method according to claim 3, wherein each network card comprises a plurality of network ports, the target network port comprises a first register and a second register, the first register stores original data for realizing a pre-start execution environment function of the target network port, and the second register is used for storing target data for opening or closing the pre-start execution environment function of the target network port;
The target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot; the control instruction carries the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
the sending the control instruction to the target network card inserted into the target PCIE slot based on the target PCIE slot information includes:
determining an I2C address corresponding to the target PCIE slot based on the target PCIE slot information;
determining the address of the target network card based on the I2C address corresponding to the target PCIE slot;
generating the control instruction based on the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
based on the address of the target network card, sending the control instruction to the target network card; the control instruction is used for indicating the target network card to store target data of opening or closing of the pre-starting execution environment function of the target network port into the second register, modifying the original data of the first register based on the second register so that the basic input and output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at the target network port of opening the pre-starting execution environment function, thereby realizing network card pre-starting control.
5. The network card pre-starting control method is characterized by being applied to a target network card, and comprises the following steps:
receiving a control instruction sent by a substrate management controller; the target network port of the target network card is determined by the baseboard management controller based on a product configuration file acquired from a production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card, which needs to be started or closed for pre-starting an execution environment function;
and responding to the control instruction, and modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information so that the basic input/output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
6. The network card pre-start control method of claim 5, wherein the product configuration file further comprises PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information; the target PCIE slot information comprises an I2C address corresponding to the target PCIE slot, and the address of the target network card is the I2C address corresponding to the target PCIE slot;
The target network port comprises a first register and a second register, wherein the first register is used for storing original data for realizing the pre-starting execution environment function of the target network port, and the second register is used for storing target data for starting or closing the pre-starting execution environment function of the target network port; the control instruction carries the address of the target network card and the information of starting or closing the pre-starting execution environment function of the target network port;
the receiving the control instruction sent by the baseboard management controller includes:
receiving the control instruction sent by the baseboard management controller based on the address of the target network card;
and responding to the control instruction, modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information, and comprising the following steps:
responding to the control instruction, and storing target data of opening or closing of the pre-starting execution environment function of the target network port into the second register;
and modifying the original data of the first register based on the second register so that the basic input/output system reads the modified first register, and creating a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
7. A network card pre-start control method, which is characterized by being applied to a production line diagnosis system, the method comprising:
receiving a product configuration file request sent by a baseboard management controller;
responding to the product configuration file request, and sending a product configuration file to the baseboard management controller through a network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function; the baseboard management controller is used for determining the target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
8. The network card pre-start control method of claim 7, wherein the product configuration file further includes PCIE slot information of a plurality of network cards, and the target network card is a network card corresponding to the configured target PCIE slot information.
9. A network card pre-start-up control device, applied to a baseboard management controller, the device comprising:
the file acquisition module is used for acquiring a product configuration file stored in the production line diagnosis system; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function;
the network port determining module is used for determining the target network port of the target network card based on the product configuration file;
the instruction sending module is used for sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
10. A network card pre-start control device, applied to a target network card, the device comprising:
the instruction receiving module is used for receiving a control instruction sent by the substrate management controller; the target network port of the target network card is determined by the baseboard management controller based on a product configuration file acquired from a production line diagnosis system, and the product configuration file comprises customized information of the target network port of the target network card, which needs to be started or closed for pre-starting an execution environment function;
And the information modification module is used for responding to the control instruction and modifying the starting or closing of the pre-starting execution environment function of the target network port in the register information so that the basic input/output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the pre-starting control of the network card.
11. A network card pre-start control device, characterized by being applied to a production line diagnosis system, the device comprising:
the request receiving module is used for receiving a product configuration file request sent by the baseboard management controller;
the file sending module is used for responding to the product configuration file request and sending a product configuration file to the baseboard management controller through a network interface; the product configuration file comprises customized information of a target network interface of a target network card which needs to be started or closed for pre-starting an execution environment function; the baseboard management controller is used for determining the target network port of the target network card based on the product configuration file and sending a control instruction to the target network card; the control instruction is used for indicating the target network card to modify the starting or closing of the pre-starting execution environment function of the target network port in the register information, so that the basic input output system creates a starting item of the pre-starting execution environment function aiming at the target network port for starting the pre-starting execution environment function, thereby realizing the network card pre-starting control.
12. A baseboard management controller comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the network card pre-start control method according to any one of claims 1 to 4 when executing the program.
13. A target network card, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network card pre-start control method according to claim 5 or 6 when executing the program.
14. A production line diagnostic system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the network card pre-start control method of claim 7 or 8 when the program is executed.
15. A network card pre-start control system, comprising the baseboard management controller according to claim 12, the target network card according to claim 13, the production line diagnosis system according to claim 14, and a basic input output system.
16. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the network card pre-start control method according to any one of claims 1 to 4, or implements the steps of the network card pre-start control method according to claim 5 or 6, or implements the steps of the network card pre-start control method according to claim 7 or 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311278318.1A CN117407065A (en) | 2023-09-28 | 2023-09-28 | Network card pre-start control method, device, equipment, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311278318.1A CN117407065A (en) | 2023-09-28 | 2023-09-28 | Network card pre-start control method, device, equipment, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117407065A true CN117407065A (en) | 2024-01-16 |
Family
ID=89497123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311278318.1A Pending CN117407065A (en) | 2023-09-28 | 2023-09-28 | Network card pre-start control method, device, equipment, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117407065A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117785311A (en) * | 2024-02-27 | 2024-03-29 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
-
2023
- 2023-09-28 CN CN202311278318.1A patent/CN117407065A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117785311A (en) * | 2024-02-27 | 2024-03-29 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
CN117785311B (en) * | 2024-02-27 | 2024-05-07 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180034914A1 (en) | System and method for controlling heterogeneous internet of things (iot) devices using single application | |
US7554931B2 (en) | System and method for remote dynamic network configuration | |
US8332490B2 (en) | Method, apparatus and program product for provisioning a computer system | |
US20180074828A1 (en) | Setting a startup parameter and controlling startup of a mainboard | |
TWI601068B (en) | Apparatus and method to access a network, and computer readable medium | |
CN105653306B (en) | The method and apparatus of display starting set interface | |
CN107463388B (en) | UEFI diskless starting method | |
CN113434202B (en) | Device starting method and device, electronic device and computer storage medium | |
US6785807B1 (en) | Method and system for providing bootcode support in a data processing system that uses a communications port that utilizes a first communications protocol, an external device that utilizes a second communications protocol, and a device driver that is loaded in response to booting to communicate with the external device through the communications port | |
CN100583038C (en) | Method, system and apparatus for launching an interface with an electronic device | |
CN109936716B (en) | Display driving realization method and system | |
EP3208723A1 (en) | Usb wireless network card configuration method, host, usb wireless network card and communication system | |
EP2354956B1 (en) | Method for controlling network controller, program, and information processing apparatus | |
CN117407065A (en) | Network card pre-start control method, device, equipment, system and storage medium | |
CN114020340B (en) | Server system and data processing method thereof | |
US20210311747A1 (en) | Server with system setting data synchronization function | |
CN108234174B (en) | Management method and device of virtual network function | |
CN108108314B (en) | Exchanger system | |
US20150134944A1 (en) | Data terminal running mode switching method, device, and data terminal | |
CN105589710A (en) | Remote upgrading method and system | |
US20040221151A1 (en) | Information processing system including communication-enabled information processing device equipped with no user interface and a method of control thereof | |
US20060080636A1 (en) | Method of building intelligent platform management interface firmware architecture | |
KR102414206B1 (en) | AUTOSAR standard application software component | |
CN106445571B (en) | Mainboard and starting method | |
CN113849267A (en) | Virtual display method, system, terminal and storage medium for display card |
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 |