CN114116027A - Method, system, terminal and storage medium for automatically installing drive for PCIE equipment - Google Patents

Method, system, terminal and storage medium for automatically installing drive for PCIE equipment Download PDF

Info

Publication number
CN114116027A
CN114116027A CN202111340274.1A CN202111340274A CN114116027A CN 114116027 A CN114116027 A CN 114116027A CN 202111340274 A CN202111340274 A CN 202111340274A CN 114116027 A CN114116027 A CN 114116027A
Authority
CN
China
Prior art keywords
equipment
pcie
information
reading
file
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.)
Withdrawn
Application number
CN202111340274.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111340274.1A priority Critical patent/CN114116027A/en
Publication of CN114116027A publication Critical patent/CN114116027A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Abstract

The invention provides a method, a system, a terminal and a storage medium for automatically installing a drive for PCIE equipment, which are suitable for the field of servers and comprise the following steps: establishing communication connection with a server, wherein the server stores PCIE equipment driver installation files of various versions; performing standard verification on the kernel version number of the operating system; acquiring bus IDs of all PCIE equipment by using a hardware information acquisition command; reading the equipment information of all PCIE equipment according to the bus ID, and screening target PCIE equipment to be updated and driven according to the equipment information of each PCIE equipment; and reading the manufacturer equipment ID and the identification ID from the equipment information of the target PCIE equipment, and downloading a corresponding drive installation file from the server according to the manufacturer equipment ID and the identification ID so as to update the drive of the target PCIE equipment. The method comprises the following steps: the invention is used for automatic configuration, does not need manual intervention, realizes automatic upgrade of the drive, is suitable for various PCIE servers, does not need to manually find and download the drive, and saves time.

Description

Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
Technical Field
The invention relates to the technical field of servers, in particular to a method, a system, a terminal and a storage medium for automatically installing a drive for PCIE equipment.
Background
PCI-express (peripheral component interconnect express) is a high-speed serial computer expansion bus standard, originally named "3 GIO", which was proposed by Intel in 2001, to replace the old PCI, PCI-X and AGP bus standards. PCIe belongs to high-speed serial point-to-point double-channel high-bandwidth transmission, connected devices distribute independent channel bandwidth and do not share bus bandwidth, and the PCIe mainly supports functions of active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS) and the like. PCIe is renamed to PCI-Express, which is called PCI-e for short, after being authenticated and issued by PCI-SIG (PCI Special interest group). Its main advantages are high data transmission rate and high development potential. PCI Express also has a variety of specifications, from PCI Express x1 to PCI Express x32, that meet the demands of low-speed devices and high-speed devices that will emerge in the future for a certain time. The PCI-Express interface is a PCIe 3.0 interface, has a bit rate of 8Gbps, which is about twice the bandwidth of the previous generation products, and includes a series of important new functions, such as transmitter and receiver equalization, PLL improvement, and clock data recovery, to improve data transmission and data protection performance. Vendors of PCIe flash memory cards include: INTEL, IBM, LSI, OCZ, samsung (in plan), SanDisk, STEC, superstalent, toshiba (in plan), and the like, and aiming at the mass data growth, users apply to systems with larger scale and stronger expandability, and PCIe 3.0 technology adds the excellent performance of the latest LSI MegaRAID controller and HBA products, and thus, greater system design flexibility can be realized.
In order to meet the increasingly powerful functions of the server, the frequency of updating FW and drivers by PCIE manufacturers is also increasing, the types of PCIE devices collocated with the server are increasing, and how to obtain corresponding drivers according to the different types is also becoming more and more complicated. The release of the PCIE vendor driver is closely related to the OS, and the drivers used by the OS of different versions are different, so an accurate method is more required to match the corresponding drivers. The driver website provided by the corresponding pcie manufacturer or the server manufacturer is manually downloaded and installed manually according to the pcie information table, so that accurate matching cannot be realized, the drivers can be manually searched one by one according to own requirements, and the labor consumption is increased.
Disclosure of Invention
In view of the above disadvantages in the prior art, the present invention provides a method, a system, a terminal, and a storage medium for automatically installing a driver in a PCIE device, so as to solve the above technical problems.
In a first aspect, the present invention provides a method for automatically installing a driver in a PCIE device, including:
establishing communication connection with a server, wherein the server stores PCIE equipment driver installation files of various versions;
performing standard verification on the kernel version number of the operating system;
acquiring bus IDs of all PCIE equipment by using a hardware information acquisition command;
reading the equipment information of all PCIE equipment according to the bus ID, and screening target PCIE equipment to be updated and driven according to the equipment information of each PCIE equipment;
and reading the manufacturer equipment ID and the identification ID from the equipment information of the target PCIE equipment, and downloading a corresponding drive installation file from the server according to the manufacturer equipment ID and the identification ID so as to update the drive of the target PCIE equipment.
Further, the standard check of the kernel version number of the operating system includes:
acquiring an operating system manufacturer command by using a system information acquisition instruction;
executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number;
judging whether the system version is matched with the kernel version number:
if yes, judging that the verification is passed;
if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
Further, acquiring the bus IDs of all PCIE devices by using the hardware information acquisition command includes:
and acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
Further, reading the device information of all the PCIE devices according to the bus ID, and screening out a target PCIE device to be driven to be updated according to the device information of each PCIE device, including:
reading the bus ID of each PCIE device from the first file, and reading the device information of the corresponding PCIE device based on the read bus ID by using a file checking instruction;
storing the device information of all PCIE devices to a second file;
and reading the equipment information in the second file, deleting the equipment information containing the memory keywords from the second file, and taking the remaining equipment information in the second file as the equipment information of the target PCIE equipment.
Further, reading the vendor device ID and the identification ID from the device information of the target PCIE device, and downloading the corresponding drive installation file from the server according to the vendor device ID and the identification ID to update the drive of the target PCIE device, including:
reading a manufacturer equipment ID and an identification ID from equipment information of a target PCIE equipment by using a file reading instruction;
sending the manufacturer equipment ID and the identification ID of the target PCIE equipment to a server, and receiving a matched drive installation file returned by the server;
and executing the matched driver installation file to update the driver of the target PCIE equipment.
In a second aspect, the present invention provides a system for automatically installing a driver in a PCIE device, including:
the system comprises a service connection unit, a service side and a service side, wherein the service connection unit is used for establishing communication connection with the service side, and the service side stores PCIE equipment driver installation files of various versions;
the system checking unit is used for carrying out standard checking on the kernel version number of the operating system;
the system comprises an ID acquisition unit, a bus identification unit and a control unit, wherein the ID acquisition unit is used for acquiring the bus IDs of all PCIE equipment by utilizing a hardware information acquisition command;
the information reading unit is used for reading the equipment information of all the PCIE equipment according to the bus ID and screening out target PCIE equipment to be updated and driven according to the equipment information of each PCIE equipment;
and the drive downloading unit is used for reading the manufacturer equipment ID and the identification ID from the equipment information of the target PCIE equipment, and downloading the corresponding drive installation file from the server according to the manufacturer equipment ID and the identification ID so as to update the drive of the target PCIE equipment.
Further, the system verification unit is configured to:
acquiring an operating system manufacturer command by using a system information acquisition instruction;
executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number;
judging whether the system version is matched with the kernel version number:
if yes, judging that the verification is passed;
if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
Further, the ID obtaining unit is configured to:
and acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
Further, the information reading unit is configured to:
reading the bus ID of each PCIE device from the first file, and reading the device information of the corresponding PCIE device based on the read bus ID by using a file checking instruction;
storing the device information of all PCIE devices to a second file;
and reading the equipment information in the second file, deleting the equipment information containing the memory keywords from the second file, and taking the remaining equipment information in the second file as the equipment information of the target PCIE equipment.
Further, the drive download unit is configured to:
reading a manufacturer equipment ID and an identification ID from equipment information of a target PCIE equipment by using a file reading instruction;
sending the manufacturer equipment ID and the identification ID of the target PCIE equipment to a server, and receiving a matched drive installation file returned by the server;
and executing the matched driver installation file to update the driver of the target PCIE equipment.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The method, the system, the terminal and the storage medium for automatically installing the driver of the PCIE equipment have the advantages that the communication connection is established with the server side, the server side stores the PCIE equipment driver installation files of various versions, firstly, standard verification is carried out on the kernel version number of an operating system, after the standard verification is carried out, bus IDs of all PCIE equipment are obtained through a hardware information obtaining command, then, equipment information of all the PCIE equipment is read according to the bus IDs, target PCIE equipment to be driven to be updated is screened out according to the equipment information of all the PCIE equipment, manufacturer equipment IDs and identification IDs are read from the equipment information of the target PCIE equipment, and corresponding driver installation files are downloaded from the server side according to the manufacturer equipment IDs and the identification IDs so as to update the driver of the target PCIE equipment. The invention is used for automatic configuration, does not need manual intervention, realizes automatic upgrade of the drive, is suitable for various PCIE servers, does not need to manually find and download the drive, saves time, is suitable for various servers, does not need to be installed and configured one by one, and only needs to send an upgrade request to a Server end.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution main body in fig. 1 may be a system for automatically installing a driver in a PCIE device.
As shown in fig. 1, the method includes:
step 110, establishing communication connection with a server, wherein the server stores PCIE equipment driver installation files of various versions;
step 120, performing standard verification on the kernel version number of the operating system;
step 130, acquiring bus IDs of all PCIE devices by using a hardware information acquisition command;
step 140, reading the device information of all PCIE devices according to the bus ID, and screening out a target PCIE device to be driven to be updated according to the device information of each PCIE device;
step 150, reading the manufacturer device ID and the identification ID from the device information of the target PCIE device, and downloading the corresponding drive installation file from the server according to the manufacturer device ID and the identification ID to update the drive of the target PCIE device.
In order to facilitate understanding of the present invention, the method for automatically installing a driver for a PCIE device provided in the present invention is further described below with reference to the principle of the method for automatically installing a driver for a PCIE device of the present invention and in combination with the process of automatically installing a driver for a PCIE device in the embodiment.
Specifically, the method for automatically installing the driver in the PCIE device includes:
and S1, establishing communication connection with a server, wherein the server stores PCIE device driver installation files of various versions.
And maintaining a Server end, wherein the Server end provides a drive packet and an upgrade script required by the PCIE equipment drive upgrade through httpd service. After a network is configured on a tested machine, a script # wgetttp:// [ server _ ip ]/autoinstall. And (4) executing the autoinstall. Sh performs steps S2-S4.
And S2, performing standard check on the kernel version number of the operating system.
Acquiring an operating system manufacturer command by using a system information acquisition instruction; executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number; judging whether the system version is matched with the kernel version number: if yes, judging that the verification is passed; if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
Obtaining an installed operating system manufacturer command through a dmesg | grep gcc command;
acquiring a corresponding system version and a kernel version number according to commands provided by different manufacturers;
for example: RedHat system
OS_name:cat/etc/redhat-release
OS_version:uname-r
And confirming whether the system is a standard system or a system with an upgraded kernel according to the system name and the kernel version number, wherein a driver is issued according to the standard system after a pcie manufacturer, and if the system with the upgraded kernel cannot use the driver of the standard system, the driver can only be compiled and installed through a source code packet.
And S3, acquiring the bus IDs of all PCIE devices by using the hardware information acquisition command.
And acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
Using dmidcode-t 9| grep "Bus Address" | awk '{ print $3}' | awk-F:'{ printf ("% s: \ n", $2, $3) }' command, the busid of all the pci devices is obtained and saved in the busid.
And S4, reading the device information of all PCIE devices according to the bus ID, and screening out target PCIE devices to be updated and driven according to the device information of each PCIE device.
Reading the bus ID of each PCIE device from the first file, and reading the device information of the corresponding PCIE device based on the read bus ID by using a file checking instruction; storing the device information of all PCIE devices to a second file; and reading the equipment information in the second file, deleting the equipment information containing the memory keywords from the second file, and taking the remaining equipment information in the second file as the equipment information of the target PCIE equipment.
And reading the build.txt, checking the information of all the devices by the following method, excluding nvme devices, and storing the obtained result into an lspci.txt file
Figure BDA0003352149700000091
S5, reading the vendor device ID and the identification ID from the device information of the target PCIE device, and downloading the corresponding drive installation file from the server according to the vendor device ID and the identification ID to update the drive of the target PCIE device.
Reading a manufacturer equipment ID and an identification ID from equipment information of a target PCIE equipment by using a file reading instruction; sending the manufacturer equipment ID and the identification ID of the target PCIE equipment to a server, and receiving a matched drive installation file returned by the server; and executing the matched driver installation file to update the driver of the target PCIE equipment.
Specifically, the lspci.txt file generated as above is passed through cat lspci.txt | awk' { match ($0,/[ (\\ w: \\\/a) } and the table "; the print a [1] } 'command confirms vendor's deviceID and subID information.
And downloading the corresponding drive version through the network according to the acquired information. And if the driver can not be matched, downloading the driver source code packet to carry out driver compiling and installing. Judging an upgrading result, if the upgrading is successful, printing the Pass identification, and if the upgrading is failed, besides printing the Fail identification, storing all logs of the upgrading failure.
As shown in fig. 2, the system 200 includes:
a service connection unit 210, configured to establish a communication connection with a server, where the server stores PCIE device driver installation files of multiple versions;
a system checking unit 220, configured to perform standard checking on an os kernel version number;
an ID obtaining unit 230, configured to obtain bus IDs of all PCIE devices by using a hardware information obtaining command;
an information reading unit 240, configured to read device information of all PCIE devices according to the bus ID, and screen out a target PCIE device to be driven to be updated according to the device information of each PCIE device;
the drive downloading unit 250 is configured to read the vendor device ID and the identification ID from the device information of the target PCIE device, and download the corresponding drive installation file from the server according to the vendor device ID and the identification ID to update the drive of the target PCIE device.
Optionally, as an embodiment of the present invention, the system verification unit is configured to:
acquiring an operating system manufacturer command by using a system information acquisition instruction;
executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number;
judging whether the system version is matched with the kernel version number:
if yes, judging that the verification is passed;
if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
Optionally, as an embodiment of the present invention, the ID obtaining unit is configured to:
and acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
Optionally, as an embodiment of the present invention, the information reading unit is configured to:
reading the bus ID of each PCIE device from the first file, and reading the device information of the corresponding PCIE device based on the read bus ID by using a file checking instruction;
storing the device information of all PCIE devices to a second file;
and reading the equipment information in the second file, deleting the equipment information containing the memory keywords from the second file, and taking the remaining equipment information in the second file as the equipment information of the target PCIE equipment.
Optionally, as an embodiment of the present invention, the drive downloading unit is configured to:
reading a manufacturer equipment ID and an identification ID from equipment information of a target PCIE equipment by using a file reading instruction;
sending the manufacturer equipment ID and the identification ID of the target PCIE equipment to a server, and receiving a matched drive installation file returned by the server;
and executing the matched driver installation file to update the driver of the target PCIE equipment.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a method for automatically installing a driver in a PCIE device according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the communication connection is established with the server side, the server side stores PCIE equipment drive installation files of various versions, standard verification is firstly carried out on the version number of an operating system kernel, after the verification is passed, bus IDs of all PCIE equipment are obtained through a hardware information obtaining command, then equipment information of all PCIE equipment is read according to the bus IDs, target PCIE equipment to be driven to be updated is screened out according to the equipment information of all PCIE equipment, manufacturer equipment IDs and identification IDs are read from the equipment information of the target PCIE equipment, and corresponding drive installation files are downloaded from the server side according to the manufacturer equipment IDs and the identification IDs so as to update the drive of the target PCIE equipment. The method and the device are used for automatic configuration, manual intervention is not needed, automatic upgrade of the driver is achieved, the method and the device are suitable for various PCIE servers, manual searching and downloading of the driver are not needed, time is saved, the method and the device are suitable for various servers, individual installation and configuration are not needed, only an upgrade request needs to be sent to a Server end, the technical effect which can be achieved by the embodiment can be seen in the description above, and details are not repeated here.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for automatically installing a driver in a PCIE device is characterized by comprising the following steps:
establishing communication connection with a server, wherein the server stores PCIE equipment driver installation files of various versions;
performing standard verification on the kernel version number of the operating system;
acquiring bus IDs of all PCIE equipment by using a hardware information acquisition command;
reading the equipment information of all PCIE equipment according to the bus ID, and screening target PCIE equipment to be updated and driven according to the equipment information of each PCIE equipment;
and reading the manufacturer equipment ID and the identification ID from the equipment information of the target PCIE equipment, and downloading a corresponding drive installation file from the server according to the manufacturer equipment ID and the identification ID so as to update the drive of the target PCIE equipment.
2. The method of claim 1, wherein standard checking of an operating system kernel version number comprises:
acquiring an operating system manufacturer command by using a system information acquisition instruction;
executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number;
judging whether the system version is matched with the kernel version number:
if yes, judging that the verification is passed;
if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
3. The method of claim 1, wherein obtaining the bus IDs of all PCIE devices by using a hardware information obtaining command comprises:
and acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
4. The method of claim 3, wherein reading device information of all PCIE devices according to a bus ID, and screening a target PCIE device to be updated and driven according to the device information of each PCIE device, comprises:
reading the bus ID of each PCIE device from the first file, and reading the device information of the corresponding PCIE device based on the read bus ID by using a file checking instruction;
storing the device information of all PCIE devices to a second file;
and reading the equipment information in the second file, deleting the equipment information containing the memory keywords from the second file, and taking the remaining equipment information in the second file as the equipment information of the target PCIE equipment.
5. The method of claim 4, wherein reading the vendor device ID and the identification ID from the device information of the target PCIE device, and downloading a corresponding driver installation file from the server according to the vendor device ID and the identification ID to update the driver of the target PCIE device, comprises:
reading a manufacturer equipment ID and an identification ID from equipment information of a target PCIE equipment by using a file reading instruction;
sending the manufacturer equipment ID and the identification ID of the target PCIE equipment to a server, and receiving a matched drive installation file returned by the server;
and executing the matched driver installation file to update the driver of the target PCIE equipment.
6. A system for automatically installing a driver in a PCIE device, comprising:
the system comprises a service connection unit, a service side and a service side, wherein the service connection unit is used for establishing communication connection with the service side, and the service side stores PCIE equipment driver installation files of various versions;
the system checking unit is used for carrying out standard checking on the kernel version number of the operating system;
the system comprises an ID acquisition unit, a bus identification unit and a control unit, wherein the ID acquisition unit is used for acquiring the bus IDs of all PCIE equipment by utilizing a hardware information acquisition command;
the information reading unit is used for reading the equipment information of all the PCIE equipment according to the bus ID and screening out target PCIE equipment to be updated and driven according to the equipment information of each PCIE equipment;
and the drive downloading unit is used for reading the manufacturer equipment ID and the identification ID from the equipment information of the target PCIE equipment, and downloading the corresponding drive installation file from the server according to the manufacturer equipment ID and the identification ID so as to update the drive of the target PCIE equipment.
7. The system of claim 6, wherein the system verification unit is configured to:
acquiring an operating system manufacturer command by using a system information acquisition instruction;
executing the operating system manufacturer command to obtain a corresponding system version and a corresponding kernel version number;
judging whether the system version is matched with the kernel version number:
if yes, judging that the verification is passed;
if not, the kernel is judged to be upgraded, the program is quitted, and an error prompt is output.
8. The system of claim 6, wherein the ID acquisition unit is configured to:
and acquiring the bus IDs of all the PCIE equipment by using the hardware information acquisition command, and storing the bus IDs of all the PCIE equipment to a first file.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202111340274.1A 2021-11-12 2021-11-12 Method, system, terminal and storage medium for automatically installing drive for PCIE equipment Withdrawn CN114116027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111340274.1A CN114116027A (en) 2021-11-12 2021-11-12 Method, system, terminal and storage medium for automatically installing drive for PCIE equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111340274.1A CN114116027A (en) 2021-11-12 2021-11-12 Method, system, terminal and storage medium for automatically installing drive for PCIE equipment

Publications (1)

Publication Number Publication Date
CN114116027A true CN114116027A (en) 2022-03-01

Family

ID=80378968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111340274.1A Withdrawn CN114116027A (en) 2021-11-12 2021-11-12 Method, system, terminal and storage medium for automatically installing drive for PCIE equipment

Country Status (1)

Country Link
CN (1) CN114116027A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541334A (en) * 2023-06-27 2023-08-04 苏州浪潮智能科技有限公司 PCIE equipment operation time file processing method, device and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541334A (en) * 2023-06-27 2023-08-04 苏州浪潮智能科技有限公司 PCIE equipment operation time file processing method, device and equipment
CN116541334B (en) * 2023-06-27 2023-09-26 苏州浪潮智能科技有限公司 PCIE equipment operation time file processing method, device and equipment

Similar Documents

Publication Publication Date Title
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
US8578360B1 (en) Dynamically updating a computer system and firmware image utilizing an option read only memory (OPROM) data structure
CN105955781B (en) EMMC upgrading method, upgrading device and terminal
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN107145455B (en) Method for updating SMBIOS static information of whole system
CN114116027A (en) Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
CN113835729B (en) Upgrading method, upgrading device, terminal equipment and computer readable storage medium
CN106528226A (en) Operation system installation method and apparatus
CN113064610A (en) Method, device and medium for updating BIOS
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN116009893A (en) Method, device, equipment and storage medium for upgrading software
CN114116337A (en) Hard disk test method, system, terminal and storage medium based on PCIE link configuration
CN109783031B (en) Method, device, terminal and storage medium for checking drive letter and slot number of RAID card
CN113900693A (en) Firmware upgrading method, device and system, electronic equipment and storage medium
CN112860283B (en) SP upgrade package self-identification upgrade method and device and computer equipment
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN111930402A (en) Firmware upgrading method of cluster server and cluster server
CN117348905A (en) BMC firmware updating method, system, terminal and storage medium
CN106548311B (en) Inventory management setting system
CN111338677A (en) Component and drive association validity verification method, system, terminal and storage medium
CN111949278B (en) Method, system, terminal and storage medium for automatically installing MCS system
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
CN114115977B (en) BMC mirror image construction method, system, terminal and storage medium
CN114443150B (en) Method, system, terminal and storage medium for synchronizing factory information of switch

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220301

WW01 Invention patent application withdrawn after publication