CN114327572A - Slot number updating method, system, equipment and computer readable storage medium - Google Patents

Slot number updating method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114327572A
CN114327572A CN202111445123.2A CN202111445123A CN114327572A CN 114327572 A CN114327572 A CN 114327572A CN 202111445123 A CN202111445123 A CN 202111445123A CN 114327572 A CN114327572 A CN 114327572A
Authority
CN
China
Prior art keywords
number information
slot number
real
updating
target
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
Application number
CN202111445123.2A
Other languages
Chinese (zh)
Inventor
田卓
周春芬
徐胜军
鞠荣荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202111445123.2A priority Critical patent/CN114327572A/en
Publication of CN114327572A publication Critical patent/CN114327572A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a slot number updating method, a system, equipment and a computer readable storage medium, wherein the real-time slot number information of each target equipment is determined at a PEI stage in the starting process of a unified extensible firmware interface; and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface. In the method, the real-time slot number information of each target device can be determined at the PEI stage in the starting process of the unified extensible firmware interface, namely, the accurate slot number information of each target device can be obtained, and in the DXE stage in the starting process of the unified extensible firmware interface, the existing slot number information is updated based on the real-time slot number information to obtain the accurate target slot number information, so that the slot number of each device can be accurately identified according to the target slot number information.

Description

Slot number updating method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a slot number updating method, system, device, and computer-readable storage medium.
Background
In recent years, the computer industry is greatly pursued, and the servers are updated day by day to meet the increasingly expanding demands of people. A server capable of integrating all high-end configurations at present and being arbitrarily modified according to the requirements of customers would be welcomed.
In order to complete the adaptation of more different external devices in the limited space of the mainboard, and to obtain the slot number (slot number) of the current device in real time to support the realization of the function after switching the devices at will, the burden of an engineer needing to continuously update codes is reduced, and the adaptation is more flexible. For example, different slot numbers may be fixedly set according to different PCIE devices. However, the slot number of the set device may change, and at this time, the slot number of the device cannot be accurately identified, so that the device is in a running error, and the use of the device is affected.
In summary, how to accurately identify the slot number of the device is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a slot number updating method which can solve the technical problem of accurately identifying the slot number of equipment to a certain extent. The application also provides a slot number updating system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a slot number updating method comprises the following steps:
determining real-time slot number information of each target device at a PEI stage in the starting process of the unified extensible firmware interface;
and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface.
Preferably, the determining the real-time slot number information of each target device includes:
sending adjustment information to the target equipment to change the state of the slot corresponding to the target equipment;
determining the change information of each slot position;
and determining the real-time slot number information of each target device based on the adjustment information and the change information.
Preferably, the sending the adjustment information to the target device includes:
sending the adjustment information to the target device based on a GPIO interface.
Preferably, after determining the real-time slot number information of each target device and before updating the existing slot number information based on the real-time slot number information, the method further includes:
transmitting the real-time slot position number information to a switching block;
updating the existing slot number information based on the real-time slot number information comprises:
and reading the real-time slot number information from the switching block, and updating the existing slot number information based on the real-time slot number information.
Preferably, the updating of the existing slot number information based on the real-time slot number information includes:
updating the existing slot number information in a database based on the real-time slot number information.
Preferably, after the updating of the existing slot number information based on the target slot number information and obtaining the target slot number information, the method further includes:
and sending the target slot number information to an operating system.
Preferably, the sending the target slot number information to an operating system includes:
and sending the target slot number information to the operating system based on the advanced configuration and power management interface.
A slot number update system, comprising:
the first determining module is used for determining the real-time slot number information of each target device at the PEI stage in the starting process of the unified extensible firmware interface;
and the first updating module is used for updating the existing slot position number information based on the real-time slot position number information in the DXE stage in the starting process of the unified extensible firmware interface to obtain the target slot position number information.
A slot number updating apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the slot number updating method as described above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the slot number updating method as described in any one of the above.
The slot number updating method provided by the application determines real-time slot number information of each target device at a PEI stage in a unified extensible firmware interface starting process; and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface. In the method, the real-time slot number information of each target device can be determined at the PEI stage in the starting process of the unified extensible firmware interface, namely, the accurate slot number information of each target device can be obtained, and in the DXE stage in the starting process of the unified extensible firmware interface, the existing slot number information is updated based on the real-time slot number information to obtain the accurate target slot number information, so that the slot number of each device can be accurately identified according to the target slot number information. The application provides a slot position number updating system, a device and a computer readable storage medium, which also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a slot number updating method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a slot number updating system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a slot number updating apparatus according to an embodiment of the present disclosure;
fig. 4 is another schematic structural diagram of a slot number updating apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a slot number updating method according to an embodiment of the present disclosure.
The slot number updating method provided by the embodiment of the application can comprise the following steps:
step S101: and determining the real-time slot number information of each target device at the PEI stage in the starting process of the unified extensible firmware interface.
In practical application, in order to accurately determine the slot number of each device, in a PEI (Pre-EFI Initialization) stage during the start-up of a Unified Extensible Firmware Interface (UEFI), real-time slot number information of each target device needs to be determined, and the number, type, and the like of the target devices can be determined according to actual needs, which is not specifically limited herein.
In a specific application scenario, in the process of determining the real-time slot position number information of each target device, in order to facilitate the determination of the real-time slot position number information, adjustment information can be sent to the target device so as to change the state of a slot position corresponding to the target device; determining the change information of each slot position; and finally, determining the real-time slot number information of each target device based on the adjustment information and the change information. For example, after the adjustment information is sent to the target device, if the state of slot a changes, for example, from high to low, it can be determined that the target device is inserted into slot a. It should be noted that the types of the adjustment information and the change information may be determined according to actual needs, and the present application is not specifically limited herein.
In a specific application scenario, in order to facilitate sending the adjustment information to the target device, the adjustment information may also be sent to the target device based on a GPIO (General-purpose input/output) interface.
Step S102: and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface.
In practical application, after determining the real-time slot number information of each target device at the PEI stage in the unified extensible firmware interface starting process, the existing slot number information needs to be updated based on the real-time slot number information at the DXE (Driver Execution Environment) stage in the unified extensible firmware interface starting process, so as to finally obtain accurate target slot number information.
In a specific application scenario, after the real-time slot position number information of each target device is determined, the real-time slot position number information can be transmitted to a handover Block (HOB) before the existing slot position number information is updated based on the real-time slot position number information; accordingly, in the process of updating the existing slot number information based on the real-time slot number information, the real-time slot number information may be read from the switch block, and the existing slot number information may be updated based on the real-time slot number information. That is, the real-time slot number information may be transferred from the PEI phase to the DXE phase via the switch block.
In a specific application scenario, in the process of updating the existing slot number information based on the real-time slot number information, in order to facilitate the disk-drop slot number information, the existing slot number information in the database can be updated based on the real-time slot number information.
In a specific application scenario, after the existing slot number information is updated based on the target slot number information to obtain the target slot number information, the target slot number information can be sent to the operating system, so that the operating system can display the target slot number information and the like. In the process of sending the target slot number information to the operating system, the target slot number information may be sent to the operating system based on an Advanced Configuration and Power Management Interface (ACPI), for example, the target slot number information is sent to the operating system by an ACPI _ SUN method.
It should be noted that, in a specific application scenario, after the target slot number information is obtained, other operations may also be performed, for example, resource allocation, hot plug, and the like are performed on the target device according to the target slot number information, and this application is not limited specifically herein.
The slot number updating method provided by the application determines real-time slot number information of each target device at a PEI stage in a unified extensible firmware interface starting process; and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface. In the method, the real-time slot number information of each target device can be determined at the PEI stage in the starting process of the unified extensible firmware interface, namely, the accurate slot number information of each target device can be obtained, and in the DXE stage in the starting process of the unified extensible firmware interface, the existing slot number information is updated based on the real-time slot number information to obtain the accurate target slot number information, so that the slot number of each device can be accurately identified according to the target slot number information.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a slot number updating system according to an embodiment of the present disclosure.
The slot number updating system provided by the embodiment of the application can include:
the first determining module 101 is configured to determine real-time slot number information of each target device at a PEI stage in a unified extensible firmware interface starting process;
the first updating module 102 is configured to update existing slot number information based on the real-time slot number information in a DXE phase in a unified extensible firmware interface start process, so as to obtain target slot number information.
In an embodiment of the present application, a slot number updating system, a first determining module may include:
the first sending unit is used for sending the adjusting information to the target equipment so as to change the state of the slot position corresponding to the target equipment;
a first determining unit, configured to determine change information of each slot;
and the second determining unit is used for determining the real-time slot number information of each target device based on the adjusting information and the change information.
In the slot number updating system provided in the embodiment of the present application, the first sending unit may be specifically configured to: and sending the adjusting information to the target device based on the GPIO interface.
The slot number updating system provided in the embodiment of the present application may further include:
the first transmission module is used for transmitting the real-time slot position number information to the switching block after the first determination module determines the real-time slot position number information of each target device and before the first updating module updates the existing slot position number information based on the real-time slot position number information;
accordingly, the first update module may include:
and the first updating unit is used for reading the real-time slot number information from the switching block and updating the existing slot number information based on the real-time slot number information.
In an embodiment of the present application, a slot number updating system, a first updating module may include:
and the second updating unit is used for updating the existing slot position number information in the database based on the real-time slot position number information.
The slot number updating system provided in the embodiment of the present application may further include:
and the first sending module is used for updating the existing slot position number information by the first updating module based on the target slot position number information, and sending the target slot position number information to the operating system after the target slot position number information is obtained.
In an embodiment of the present application, a slot number updating system, a first sending module may include:
and the second sending unit is used for sending the target slot number information to the operating system based on the advanced configuration and power management interface.
The application also provides a slot number updating device and a computer readable storage medium, which have corresponding effects of the slot number updating method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a slot number updating apparatus according to an embodiment of the present disclosure.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program:
determining real-time slot number information of each target device at a PEI stage in the starting process of the unified extensible firmware interface;
and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: sending adjustment information to the target equipment to change the state of the slot position corresponding to the target equipment; determining the change information of each slot position; and determining the real-time slot number information of each target device based on the adjustment information and the change information.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: and sending the adjusting information to the target device based on the GPIO interface.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: after the real-time slot position number information of each target device is determined, the real-time slot position number information is transmitted to a switching block before the existing slot position number information is updated based on the real-time slot position number information; and reading the real-time slot number information from the switching block, and updating the existing slot number information based on the real-time slot number information.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: existing slot number information in the database is updated based on the real-time slot number information.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: and updating the existing slot position number information based on the target slot position number information, and sending the target slot position number information to the operating system after the target slot position number information is obtained.
The slot number updating device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: and sending the target slot number information to the operating system based on the advanced configuration and power management interface.
Referring to fig. 4, another slot number updating apparatus provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the slot number updating device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
determining real-time slot number information of each target device at a PEI stage in the starting process of the unified extensible firmware interface;
and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: sending adjustment information to the target equipment to change the state of the slot position corresponding to the target equipment; determining the change information of each slot position; and determining the real-time slot number information of each target device based on the adjustment information and the change information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and sending the adjusting information to the target device based on the GPIO interface.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after the real-time slot position number information of each target device is determined, the real-time slot position number information is transmitted to a switching block before the existing slot position number information is updated based on the real-time slot position number information; and reading the real-time slot number information from the switching block, and updating the existing slot number information based on the real-time slot number information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: existing slot number information in the database is updated based on the real-time slot number information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and updating the existing slot position number information based on the target slot position number information, and sending the target slot position number information to the operating system after the target slot position number information is obtained.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and sending the target slot number information to the operating system based on the advanced configuration and power management interface.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of relevant parts in the slot updating system, the slot updating device, and the computer-readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of corresponding parts in the slot updating method provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A slot number updating method is characterized by comprising the following steps:
determining real-time slot number information of each target device at a PEI stage in the starting process of the unified extensible firmware interface;
and updating the existing slot position number information based on the real-time slot position number information to obtain target slot position number information in a DXE stage in the starting process of the unified extensible firmware interface.
2. The method of claim 1, wherein determining real-time slot number information for each target device comprises:
sending adjustment information to the target equipment to change the state of the slot corresponding to the target equipment;
determining the change information of each slot position;
and determining the real-time slot number information of each target device based on the adjustment information and the change information.
3. The method of claim 2, wherein sending adjustment information to the target device comprises:
sending the adjustment information to the target device based on a GPIO interface.
4. The method of claim 1, wherein after determining real-time slot number information for each target device and before updating existing slot number information based on the real-time slot number information, further comprising:
transmitting the real-time slot position number information to a switching block;
updating the existing slot number information based on the real-time slot number information comprises:
and reading the real-time slot number information from the switching block, and updating the existing slot number information based on the real-time slot number information.
5. The method of any of claims 1 to 4, wherein updating existing slot number information based on the real-time slot number information comprises:
updating the existing slot number information in a database based on the real-time slot number information.
6. The method of claim 5, wherein after updating the existing slot number information based on the target slot number information and obtaining the target slot number information, further comprising:
and sending the target slot number information to an operating system.
7. The method of claim 6, wherein sending the target slot number information to an operating system comprises:
and sending the target slot number information to the operating system based on the advanced configuration and power management interface.
8. A slot number update system, comprising:
the first determining module is used for determining the real-time slot number information of each target device at the PEI stage in the starting process of the unified extensible firmware interface;
and the first updating module is used for updating the existing slot position number information based on the real-time slot position number information in the DXE stage in the starting process of the unified extensible firmware interface to obtain the target slot position number information.
9. A slot number updating apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the slot number updating method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, realizes the steps of the slot number updating method according to any one of claims 1 to 7.
CN202111445123.2A 2021-11-30 2021-11-30 Slot number updating method, system, equipment and computer readable storage medium Pending CN114327572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111445123.2A CN114327572A (en) 2021-11-30 2021-11-30 Slot number updating method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111445123.2A CN114327572A (en) 2021-11-30 2021-11-30 Slot number updating method, system, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114327572A true CN114327572A (en) 2022-04-12

Family

ID=81048693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111445123.2A Pending CN114327572A (en) 2021-11-30 2021-11-30 Slot number updating method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114327572A (en)

Similar Documents

Publication Publication Date Title
CN109062512B (en) Distributed storage cluster, data read-write method, system and related device
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
CN110136209B (en) Camera calibration method and device and computer readable storage medium
CN110955494B (en) Virtual machine disk image construction method, device, equipment and medium
CN111338662A (en) Firmware upgrading method and device for slave station and terminal
US10430181B1 (en) Retrieving updated firmware code
CN113672270A (en) Upgrading method, computer system and remote upgrading device
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN114327572A (en) Slot number updating method, system, equipment and computer readable storage medium
CN106484442B (en) Server system and method for updating startup mapping file
CN111274192A (en) Multi-BMC management system and blade server
CN111045741A (en) Firmware loading method for flash-memory-free touch screen of intelligent terminal
CN110995462B (en) Cloud host function expansion method, system, equipment and computer storage medium
EP3719634A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
CN112433741B (en) Page processing method, device and system, electronic equipment and storage medium
CN114610366A (en) Difference package upgrading method and system, intelligent electronic equipment and storage medium
CN114385537A (en) Page slot number dynamic allocation method, device, equipment and medium
CN113704177A (en) Storage method, system and related components of server firmware upgrade file
US10977026B2 (en) Data updating system, embedded electronic device and data updating method
CN106445571B (en) Mainboard and starting method
CN110427336B (en) CPU link rate configuration method, system, equipment and computer medium
JP6209854B2 (en) Information processing system
CN113328822B (en) Time calibration method, device, electronic equipment, storage medium and program product

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