Network card drive installation method and device, equipment, medium and program product

By traversing the network card, transmitting configuration information, and obtaining and installing target driver files, the automated installation of network card drivers is achieved, solving the problems of difficulty in operation and maintenance and lack of flexibility in the existing technology, and improving the efficiency and flexibility of driver installation.

CN119149119AActive Publication Date: 2024-12-17LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Patent Information

Application Number
CN202411658825.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2024-12-17
Estimated Expiration
2044-11-20

AI Technical Summary

Technical Problem

Before the operating system is packaged and released, network cards and drivers need to be integrated in advance, resulting in high difficulty in operation and maintenance, lack of flexibility, time-consuming and labor-intensive, and difficult to achieve automated installation, especially in enterprise-level multi-computer environments.

Method used

By traversing the network card, determining the driver loading status, transmitting computer configuration information to the network card, encapsulating and sending it to the server to obtain the target driver file, automatically installing it into the operating system, and using a virtualized environment to compile and store the driver file to achieve automatic online installation.

Benefits of technology

It reduces the difficulty of operation and maintenance, improves the flexibility of driver installation, reduces the installation of intranet machine compilation environment, is simple to operate, saves time and manpower, and solves the pain points of problems from scratch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149119A_ABST
    Figure CN119149119A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a network card drive installation method, device and equipment, a medium and a program product, and the method comprises the steps: traversing a network card, and determining a network card drive loading state; when the determined network card drive loading state is a non-loading success state, transmitting the current computer related configuration information to a network card, so that the network card packages the current computer related configuration information and sends the packaged information to a server, and the server obtains a corresponding target drive file; and installing the driver into the operating system by using the received target driver file. In this way, traditional offline scattered and repeated operation is concentrated to online automatic execution, operation and maintenance personnel do not depend on offline one-by-one implementation, operation and maintenance difficulty is lowered, drive installation flexibility is improved, installation of a machine compiling environment in an intranet is reduced, operation is simple, time and manpower are saved, and efficiency is improved. And the problem pain point from nothing to the existence when the system is deployed for the first time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network card driver installation method, device, equipment, medium and program product. Background Art

[0002] After the network card is installed on the server, a driver software running in the operating system kernel is usually required to identify the network card, configure it and drive it to provide corresponding functions. The operating system usually integrates some network card drivers one by one offline in advance to achieve the effect of out-of-the-box use. However, the premise for this solution to be applied is that the network card and driver have been manufactured before a specific operating system is packaged and released. The system manufacturer must obtain the driver software to integrate the driver. The operation is cumbersome, lacks flexibility, and is time-consuming and labor-intensive. Summary of the invention

[0003] The purpose of the present invention is to provide a network card driver installation method, device, equipment, medium and program product, which can reduce the difficulty of operation and maintenance, improve the flexibility of driver installation, reduce the installation of machine compilation environment in the intranet, simple operation, save time and manpower.

[0004] In order to solve the above technical problems, the present invention provides a network card driver installation method, the method comprising:

[0005] Traverse the network card and determine the network card driver loading status;

[0006] When the determined network card driver loading state is an unsuccessful loading state, the current computer related configuration information is transmitted to the network card, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file;

[0007] The driver is installed into the operating system using the received target driver file.

[0008] In a first aspect, in the above-mentioned network card driver installation method provided by the present invention, traversing the network card and determining the network card driver loading status includes:

[0009] Traverse the network card and check the setting value of the network card driver loading flag;

[0010] The network card driver loading status is determined according to the setting value of the network card driver loading flag.

[0011] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, the setting value of the network card driver loading flag is set by the proxy component inside the network card to identify whether the driver is loaded successfully after the network card is powered on; wherein, if the proxy component inside the network card identifies that the driver is loaded successfully, the network card driver loading flag is set to the first state; if the proxy component inside the network card identifies that the driver is not loaded successfully, the network card driver loading flag is set to the second state;

[0012] Determining the network card driver loading state according to the setting value of the network card driver loading flag bit includes:

[0013] When the setting value of the network card driver loading flag is in the first state, it is determined that the network card driver loading state is a loading success state;

[0014] When the setting value of the network card driver loading flag is in the second state, it is determined that the network card driver loading state is an unsuccessful loading state.

[0015] On the other hand, in the above network card driver installation method provided by the present invention, after determining that the network card driver loading state is a loading success state, the method includes:

[0016] Check whether the successfully loaded driver needs to be updated;

[0017] If the successfully loaded driver needs to be updated, the current computer-related configuration information is transmitted to the network card;

[0018] If the successfully loaded driver does not need to be updated, it is determined that the driver does not need to be reinstalled.

[0019] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, transmitting the current computer-related configuration information to the network card includes:

[0020] The current computer related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version is transmitted to the network card through the network card interface.

[0021] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, the current computer-related configuration information is packaged and sent to the server, including:

[0022] Encapsulating the current computer-related configuration information according to the Internet communication protocol to form a network packet;

[0023] The request carrying the network packet is sent to the gateway server.

[0024] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, the server obtains the corresponding target driver file, including:

[0025] After receiving the request carrying the network packet, the gateway server queries whether there is a target driver file corresponding to the network packet in the storage;

[0026] If the target driver file exists in the storage, directly fetch the target driver file from the storage;

[0027] The target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

[0028] On the other hand, in the above network card driver installation method provided by the present invention, if there are multiple computers in the current local area network, querying whether there is a target driver file corresponding to the network package in the storage includes:

[0029] If the configuration information of multiple computers is consistent, a unified query condition is determined based on the consistent configuration information;

[0030] The query condition is used to query whether there is a target driver file corresponding to the network packet in the storage.

[0031] On the other hand, in the above network card driver installation method provided by the present invention, after querying whether there is a target driver file corresponding to the network packet in the storage, it also includes:

[0032] If the target driver file does not exist in the storage, a simulation environment is built, and the target driver file corresponding to the network packet is compiled and stored in the simulation environment;

[0033] The target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

[0034] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, a simulation environment is built, and a target driver file corresponding to the network packet is compiled and stored in the simulation environment, including:

[0035] Using virtualization to build a kernel driver compilation environment based on the information in the network packet, and compile a target driver file corresponding to the network packet;

[0036] The target driver file is saved in the storage of the gateway server.

[0037] On the other hand, in the above-mentioned network card driver installation method provided by the present invention, installing the driver into the operating system using the received target driver file includes:

[0038] After receiving the instruction sent by the proxy component inside the network card, the target driver file is obtained from the network card and temporarily stored in the memory;

[0039] The target driver file temporarily stored in the running memory is installed into the operating system.

[0040] In order to solve the above technical problems, the present invention further provides a network card driver installation device, the device comprising:

[0041] The status confirmation module is used to traverse the network card and determine the network card driver loading status;

[0042] An information transmission module, used for transmitting the current computer related configuration information to the network card when the determined network card driver loading state is an unsuccessful loading state, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file;

[0043] The driver installation module is used to install the driver into the operating system using the received target driver file.

[0044] In order to solve the above technical problems, the present invention further provides a network card driver installation device, the device comprising:

[0045] Memory for storing computer programs;

[0046] The processor is used to implement the steps of the above-mentioned network card driver installation method when executing the computer program.

[0047] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above network card driver installation method are implemented.

[0048] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above network card driver installation method when executed by a processor.

[0049] It can be seen from the above technical scheme that the present invention provides a network card driver installation method, which includes: traversing the network card to determine the network card driver loading status; when the determined network card driver loading status is an unsuccessful loading status, transmitting the current computer-related configuration information to the network card, so that the network card encapsulates the current computer-related configuration information and sends it to the server, and the server obtains the corresponding target driver file; and using the received target driver file to install the driver into the operating system.

[0050] The beneficial effect of the present invention is that the above-mentioned network card driver installation method provided by the present invention first traverses the network card to determine the loading status of the network card driver. When the driver is not loaded successfully, the current computer-related configuration information is transmitted to the network card, and the network card can encapsulate it and send it to the server. The server can obtain the target driver file, and then run the target driver file to install the driver into the operating system. In this way, traditional offline scattered and repetitive operations are concentrated on online automatic execution, and do not rely on operation and maintenance personnel to implement them one by one offline, thereby reducing the difficulty of operation and maintenance, improving the flexibility of driver installation, reducing the installation of machine compilation environment in the intranet, simple operation, saving time and manpower, and solving the problem of deploying the system from scratch for the first time.

[0051] In addition, the present invention also provides a corresponding network card driver installation device, a network card driver installation equipment, a non-volatile storage medium and a computer program product for the network card driver installation method, which have the same or corresponding technical features as the above-mentioned network card driver installation method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A flowchart of a method for installing a network card driver provided by an embodiment of the present invention;

[0054] Figure 2 A schematic diagram of the network topology corresponding to the network card driver installation method provided in an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of the structure of a network card driver installation device provided by an embodiment of the present invention;

[0056] Figure 4 A schematic diagram of the structure of a network card driver installation device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In the relevant technical solutions, some operating systems generally integrate some network card drivers in advance in order to achieve the effect of out-of-the-box use; this allows some hardware on the computer to be used without the need for additional driver installation after the system is installed. However, the premise for the application of this solution is that the network card and driver have been manufactured before a specific operating system is packaged and released, and the system manufacturer can get the driver software to integrate the driver. The driver integrated in the above way is generally called Inbox (refers to the software version or driver version included in the initial installation of the operating system, which is regarded as part of the out-of-the-box operating system) driver. The Inbox driver will provide the most basic function set, allowing the system to have network functions, obtain the Internet Protocol (IP), and allow operation and maintenance managers to log in remotely for operation and maintenance. The corresponding is the OOT (Out Of Tree, which refers to the software version or driver version developed independently of the standard configuration of the operating system) driver. Generally, the OOT driver will be iteratively updated over time to solve program failures or add new functions and features.

[0058] If the operating system that the end user wants to use is released earlier than the time when the network card or network card driver appeared, the problem of being unable to use a certain hardware after the system is installed will arise. At this time, it is necessary to install the OOT driver, and this operation requires installing the kernel driver compilation environment of the corresponding target system, executing the compilation instructions and installation operations. If it is an enterprise user, with a large number of computers, this operation will be more cumbersome and the difficulty of implementation will increase. If the driver software under discussion is limited to hardware such as network cards, the problem becomes particularly difficult. Because if the network card does not work properly, the computer will have no network, it will become a stand-alone working mode and cannot be accessed remotely; if you want to operate it, you can only enter the computer room or the location of the computer, plug in the mouse, keyboard and monitor for local operation. If the number of computers reaches the level of tens of thousands, this will be very unacceptable. And if the enterprise not only uses a single architecture platform or an environment with different operating systems, the complexity of the problem rises to an even more unacceptable level.

[0059] In order to solve the above technical problems, the present invention provides a network card driver installation method, which centralizes the traditional offline scattered and repetitive operations into online automatic execution, improves the flexibility of driver installation, and avoids the problem of no inbox driver when the system is deployed for the first time.

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a method for installing a network card driver provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0062] S101, traverse the network card and determine the loading status of the network card driver.

[0063] It is understandable that a network card is a modular circuit composed of multiple electronic devices that can be used to send and receive network messages, allowing computers to connect to each other through cables or wirelessly. Since the network card has a local area network address (Media Access Control Address, MAC), it belongs between the first and second layers of the Open System Interconnect reference model (Open System Interconnect, OSI).

[0064] It should be noted that the present invention integrates a service component (Service) in the operating system (OS). When executing step S101, the present invention can use the service component integrated in the operating system to traverse the network card and check the network card driver loading status. The network card driver loading status can be a loading success status or an unloading success status.

[0065] S102: When the determined network card driver loading status is an unsuccessful loading status, the current computer related configuration information is transmitted to the network card, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file.

[0066] In implementation, when the service component integrated in the operating system detects that the network card driver loading status is not successfully loaded, it will automatically trigger a series of operations to obtain the network driver, specifically including sending the current computer-related configuration information to the network card. The current computer-related configuration information may include the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version, etc. The current computer-related configuration information can be understood as the configuration information used to compile the driver file. After receiving the current computer-related configuration information sent by the service component, the network card will encapsulate it and send it to the server. The server can be understood as a device used to obtain driver files and has a storage function.

[0067] Figure 2 The network topology diagram corresponding to the network card driver installation method provided in the embodiment of the present invention is shown in FIG. Figure 2 As shown, after receiving the current computer-related configuration information sent by the service component, the network card will encapsulate it, and then send the encapsulated package to the gateway server (Gateway Server).

[0068] A gateway is also called an internetwork connector or a protocol converter. A gateway realizes network interconnection above the network layer. It is a complex network interconnection device that is only used for interconnecting two networks with different high-level protocols. A gateway can be used for both wide area network interconnection and local area network interconnection. It is a computer system or device that performs the important task of conversion. A gateway is used as a translator between two systems with different communication protocols, data formats or languages, or even completely different architectures.

[0069] The present invention can build a gateway server at the gateway of the local area network, and the gateway server can process the configuration information of the network card after packaging, and obtain the corresponding target driver file according to the content of the packaged configuration information.

[0070] S103: Install the driver into the operating system using the received target driver file.

[0071] In implementation, the present invention can run the target driver file through the service component integrated in the operating system to achieve the installation of the driver into the operating system.

[0072] In the above-mentioned network card driver installation method provided by the embodiment of the present invention, the network card is first traversed to determine the loading status of the network card driver. When the driver is not loaded successfully, the current computer-related configuration information is transmitted to the network card, and the network card can encapsulate it and send it to the server. The server can obtain the target driver file, and then run the target driver file to install the driver into the operating system. In this way, the traditional offline scattered and repetitive operations are concentrated to online automatic execution, and do not rely on operation and maintenance personnel to implement them one by one offline, thereby reducing the difficulty of operation and maintenance, improving the flexibility of driver installation, reducing the installation of machine compilation environment in the intranet, simple operation, saving time and manpower, and solving the problem of deploying the system from scratch for the first time.

[0073] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, step S101 traverses the network card to determine the network card driver loading status, which may specifically include: traversing the network card and checking the setting value of the network card driver loading flag; determining the network card driver loading status according to the setting value of the network card driver loading flag.

[0074] In implementation, when the operating system running on the host (central processing unit) side is started, the service component integrated in the operating system starts to start and execute. The service component traverses the network card and checks the value of the network card driver loading indication Flag to determine whether the network card driver is successfully loaded.

[0075] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, the setting value of the network card driver loading flag is set by the agent component inside the network card after the network card is powered on to identify whether the driver is loaded successfully; wherein, if the agent component inside the network card identifies that the driver is loaded successfully, the network card driver loading flag is set to the first state; if the agent component inside the network card identifies that the driver is not loaded successfully, the network card driver loading flag is set to the second state.

[0076] Correspondingly, in the above steps, the network card driver loading status is determined according to the setting value of the network card driver loading flag, which may specifically include: when the setting value of the network card driver loading flag is a first state, the network card driver loading status is determined to be a successfully loaded state; when the setting value of the network card driver loading flag is a second state, the network card driver loading status is determined to be an unsuccessfully loaded state.

[0077] In practice, the present invention implements an agent component inside the network card, which can identify whether the network card driver is loaded successfully, and can parse network messages. It has the ability of the Transmission Control Protocol / Internet Protocol (TCP / IP) application layer and can serve as a window for users to interact with the network.

[0078] After the computer hardware and the network card are installed, the central processing unit and the network card start to power on and run, and the proxy component inside the network card can identify whether the driver is loaded successfully. If the loading is successful, the proxy component can set the network card driver loading flag to 1, that is, 1 represents the first state; if the loading is not successful, the proxy component can set the network card driver loading flag to 0, that is, 0 represents the second state. After that, the service component integrated in the operating system will traverse the network card, check the setting value of the network card driver loading flag, and then determine whether the network card has successfully loaded the driver.

[0079] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, after determining that the network card driver loading status is a successfully loaded status, it may include: checking whether the successfully loaded driver needs to be updated; if the successfully loaded driver needs to be updated, transmitting the current computer-related configuration information to the network card; if the successfully loaded driver does not need to be updated, determining that the driver does not need to be reinstalled.

[0080] In practice, when the service component integrated in the operating system determines that the driver is loaded successfully, it can further check whether it needs to be updated. If it needs to be updated, it will initiate the process of obtaining the new driver version, that is, the step of transmitting the current computer-related configuration information to the network card, and then the network card will encapsulate it and send it to the server, and the server will obtain the new driver file. If it does not need to be updated, there is no need to execute the next process.

[0081] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, the above-mentioned step of transmitting the current computer-related configuration information to the network card may specifically include: transmitting the current computer-related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version to the network card through the network card interface.

[0082] In implementation, the present invention can design a set of universal network card interfaces based on the high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe) protocol or other bus interconnection protocols. Taking the PCIe bus (a channel for transmitting data between various hardware devices) as an example, an interface for the operating system to trigger the acquisition of the network card driver is added through the base address register (Base Address Register, BAR) space mechanism. That is, before executing the current computer-related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version to be transmitted to the network card through the network card interface, such as Figure 2 As shown, it can also specifically include: between the service component integrated in the operating system and the network card, a network card interface is designed based on a bus interconnection protocol (such as a PCIe protocol) for the operating system to trigger the acquisition of the network card driver, and the service component integrated in the operating system uses the network card interface to transmit the current computer-related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version to the network card. This makes the information transmission efficient, ensures that the network card can effectively receive the required configuration information, and further reduces the difficulty of driver installation.

[0083] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, step S102, in which the network card encapsulates the current computer-related configuration information and sends it to the server, may specifically include: the network card encapsulates the current computer-related configuration information according to the Internet communication protocol to form a network packet; and sends the request carrying the network packet to the gateway server.

[0084] In implementation, the network card can encapsulate the current computer-related configuration information according to the Internet communication protocol to form a network packet. The Internet communication protocol can be the TCP / IP protocol, or a serial bus, or directly use the Ethernet original frame. After forming the network packet, the network card can send a request carrying the network packet to the gateway server, so that the gateway server receives the request, and in response to the request, obtains the corresponding target driver file according to the request content.

[0085] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, step S102 in which the server obtains the corresponding target driver file may specifically include: after receiving a request carrying a network packet, the gateway server queries whether there is a target driver file corresponding to the network packet in the storage; if there is a target driver file in the storage, the target driver file is directly retrieved from the storage; and the target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

[0086] In implementation, Figure 2 As shown, the gateway server has a storage function, and can store the driver files that have been generated according to the requests that have been processed. Therefore, after receiving the request carrying the network packet, the gateway server can query whether the target driver file corresponding to the network packet already exists in the storage according to the request content. That is, query whether there is a driver file that meets the requirements in the storage. If so, directly take it out and send it to the proxy component inside the network card. After receiving the target driver file, the proxy component inside the network card can send an instruction that the target driver file has been received to the service component integrated in the operating system through the network card interface.

[0087] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, if there are multiple computers in the current local area network, querying whether there is a target driver file corresponding to the network package in the storage may specifically include: if the configuration information of the multiple computers is consistent, determining a unified query condition based on the consistent configuration information; and using the query condition to query whether there is a target driver file corresponding to the network package in the storage.

[0088] In practice, if there are multiple computers with the same configuration in the local area network, it is only necessary to set up the actual simulation environment and compile and produce the driver files once. The present invention can query according to the conditions, retrieve the corresponding driver files and return them to the requester. As time goes by, the driver files corresponding to the operating system can form a library, which is convenient for management and access. This saves the highly professional operation of remaking the operating system image and the repetitive work of offline implementation one by one; and solves the compatibility problem of a single prefabricated file when deploying a multi-platform architecture.

[0089] In addition, if Figure 2 As shown, computer 1, computer 2, computer 3, ..., computer n represent independent computers respectively, and the configuration information of these computers may be consistent or inconsistent, such as x86 (an instruction set architecture of a computer processor), aarch64 (an instruction set architecture of a central processing unit), KYLIN (an operating system), etc. The present invention can obtain the corresponding driver file according to the configuration information of the computer, without the need to disperse repeated operations offline in advance, and the production location is concentrated at the gateway, which greatly reduces the difficulty of driver installation and update.

[0090] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, after querying whether there is a target driver file corresponding to the network package in the storage, it can also include: if there is no target driver file in the storage, building a simulation environment, compiling and storing the target driver file corresponding to the network package in the simulation environment; sending the target driver file to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

[0091] In implementation, when the server finds that there is no target driver file corresponding to the network packet in the storage, it can build a simulation environment, create the corresponding target driver file, and store it for later use. At the same time, the target driver file is sent to the proxy component inside the network card. After receiving the target driver file, the proxy component inside the network card can send an instruction that the target driver file has been received to the service component integrated in the operating system through the network card interface.

[0092] Furthermore, in the specific implementation, in the above-mentioned network card driver installation method provided in the embodiment of the present invention, a simulation environment is built in the above steps, and the target driver file corresponding to the network packet is compiled and stored in the simulation environment. Specifically, it can include: using a virtualization method to build a kernel driver compilation environment according to the information in the network packet, and compile a target driver file corresponding to the network packet; saving the target driver file to the storage of the gateway server.

[0093] In implementation, Figure 2 As shown, the gateway server can use virtualization (VM) technology to prepare different virtual machines, such as virtual machine 01, virtual machine 02, virtual machine 03, etc. According to the network packet sent by the network card containing information such as platform architecture and operating system version, a set of the same kernel compilation environment is automatically built using the corresponding virtual machine to automatically compile the corresponding target driver file.

[0094] Furthermore, in a specific implementation, in the above-mentioned network card driver installation method provided in an embodiment of the present invention, step S103 uses the received target driver file to install the driver into the operating system, which may specifically include: after receiving the instruction sent by the agent component inside the network card, obtaining the target driver file from the network card and temporarily storing it in the memory; running the target driver file temporarily stored in the memory to install the driver into the operating system.

[0095] In implementation, after receiving the instruction sent by the proxy component inside the network card that the target driver file has been received, the service component integrated in the operating system first obtains the target driver file from the network card to receive the target driver file, and then temporarily stores the target driver file in the memory, thereby completing the acquisition of the target driver file. Then, the target driver file temporarily stored in the memory is run to install the driver into the operating system. After the driver is automatically loaded, the network function is restored, and the remote access operation can be performed.

[0096] In the above embodiments, the network card driver installation method is described in detail, and the present invention also provides embodiments corresponding to the network card driver installation device and the network card driver installation equipment. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0097] Figure 3 This is a schematic diagram of the structure of the network card driver installation device provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules, such as Figure 3 As shown, the device comprises:

[0098] The status confirmation module 10 is used to traverse the network card and determine the network card driver loading status;

[0099] The information transmission module 11 is used for transmitting the current computer related configuration information to the network card when the determined network card driver loading state is the unsuccessful loading state, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file;

[0100] The driver installation module 12 is used to install the driver into the operating system using the received target driver file.

[0101] In the above-mentioned network card driver installation device provided in the embodiment of the present invention, the interaction of the above-mentioned three modules can concentrate the traditional offline scattered and repetitive operations to online automatic execution, without relying on operation and maintenance personnel to implement them one by one offline, thereby reducing the difficulty of operation and maintenance, improving the flexibility of driver installation, reducing the installation of machine compilation environment in the intranet, simplifying the operation, saving time and manpower, and solving the problem of deploying the system from scratch for the first time.

[0102] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the above-mentioned network card driver installation method.

[0103] Furthermore, in a specific implementation, in the above-mentioned network card driver installation device provided in an embodiment of the present invention, the status confirmation module 10 can be specifically used to traverse the network card and check the setting value of the network card driver loading flag; and determine the network card driver loading status according to the setting value of the network card driver loading flag.

[0104] In implementation, the setting value of the network card driver loading flag can be set by the agent component inside the network card to identify whether the driver is loaded successfully after the network card is powered on; if the agent component inside the network card identifies that the driver is loaded successfully, the setting value of the network card driver loading flag is in the first state; if the agent component inside the network card identifies that the driver is not loaded successfully, the setting value of the network card driver loading flag is in the second state.

[0105] Further, in a specific implementation, in the above-mentioned network card driver installation device provided in an embodiment of the present invention, the information transmission module 11 can be specifically used to determine that the network card driver loading status is a successfully loaded status when the setting value of the network card driver loading flag is a first status; and to determine that the network card driver loading status is an unsuccessfully loaded status when the setting value of the network card driver loading flag is a second status.

[0106] Furthermore, in a specific implementation, the network card driver installation device provided in the embodiment of the present invention may further include:

[0107] The update check module is used to check whether the successfully loaded driver needs to be updated; if the successfully loaded driver needs to be updated, the current computer-related configuration information is transmitted to the network card; if the successfully loaded driver does not need to be updated, it is determined that the driver does not need to be reinstalled.

[0108] Furthermore, in a specific implementation, in the above-mentioned network card driver installation device provided in an embodiment of the present invention, the driver installation module 12 can be specifically used to obtain the target driver file from the network card after receiving the instruction sent by the agent component inside the network card, and temporarily store it in the memory; run the target driver file temporarily stored in the memory, and install the driver into the operating system.

[0109] Figure 4 This is a schematic diagram of the structure of the network card driver installation device provided by the embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 4 As shown, the network card driver installation equipment includes:

[0110] A memory 20, used for storing computer programs;

[0111] The processor 21 is used to implement the steps of the network card driver installation method mentioned in the above embodiment when executing the computer program.

[0112] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0113] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the network card driver installation method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the above-mentioned network card driver installation method, etc.

[0114] In some embodiments, the network card driver installation device may further include a display screen 22, an input and output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art will appreciate that Figure 4 The structure shown in the figure does not constitute a limitation on the network card driver installation device, and may include more or fewer components than shown in the figure. The network card driver installation device provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the network card driver installation method mentioned above, and the effect is the same as above.

[0115] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps described in the embodiment of the network card driver installation method are implemented.

[0116] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes. The computer-readable storage medium provided by the present invention can implement the above-mentioned network card driver installation method, and the effect is the same as above.

[0117] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps recorded in the above-mentioned network card driver installation method embodiment are implemented. The computer program product provided by the present invention can implement the above-mentioned network card driver installation method, and the effect is the same as above.

[0118] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0119] The network card driver installation method, device, equipment, medium and program product provided by the present invention are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A network card driver installation method, characterized in that: The method comprises: Traverse the network card and determine the network card driver loading status; When the determined network card driver loading state is an unsuccessful loading state, the current computer related configuration information is transmitted to the network card, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file; The driver is installed into the operating system using the received target driver file.

2. The network card driver installation method according to claim 1, characterized in that: Traverse the network card and determine the network card driver loading status, including: Traverse the network card and check the setting value of the network card driver loading flag; The network card driver loading status is determined according to the setting value of the network card driver loading flag.

3. The network card driver installation method according to claim 2, characterized in that: The setting value of the network card driver loading flag is set by the proxy component inside the network card to identify whether the driver is loaded successfully after the network card is powered on; if the proxy component inside the network card identifies that the driver is loaded successfully, the network card driver loading flag is set to a first state; if the proxy component inside the network card identifies that the driver is not loaded successfully, the network card driver loading flag is set to a second state; Determining the network card driver loading state according to the setting value of the network card driver loading flag bit includes: When the setting value of the network card driver loading flag is in the first state, it is determined that the network card driver loading state is a loading success state; When the setting value of the network card driver loading flag is in the second state, it is determined that the network card driver loading state is an unsuccessful loading state.

4. The network card driver installation method according to claim 3, characterized in that: After determining that the network card driver loading status is a loading success status, including: Check whether the successfully loaded driver needs to be updated; If the successfully loaded driver needs to be updated, the current computer-related configuration information is transmitted to the network card; If the successfully loaded driver does not need to be updated, it is determined that the driver does not need to be reinstalled.

5. The network card driver installation method according to claim 1 or 4, characterized in that: Transfer the current computer configuration information to the network card, including: The current computer related configuration information including the current platform architecture, the release version of the operating system kernel, the network card type and the network card driver version is transmitted to the network card through the network card interface.

6. The method for installing a network card driver according to claim 1, characterized in that: Encapsulating the current computer-related configuration information and sending it to the server, including: Encapsulating the current computer-related configuration information according to the Internet communication protocol to form a network packet; The request carrying the network packet is sent to the gateway server.

7. The method for installing a network card driver according to claim 6, characterized in that: The server obtains the corresponding target driver file, including: After receiving the request carrying the network packet, the gateway server queries whether there is a target driver file corresponding to the network packet in the storage; If the target driver file exists in the storage, directly fetch the target driver file from the storage; The target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

8. The method for installing a network card driver according to claim 7, characterized in that: If there are multiple computers in the current LAN, query whether there is a target driver file corresponding to the network packet in the storage, including: If the configuration information of multiple computers is consistent, a unified query condition is determined based on the consistent configuration information; The query condition is used to query whether there is a target driver file corresponding to the network packet in the storage.

9. The method for installing a network card driver according to claim 7, characterized in that: After querying whether there is a target driver file corresponding to the network packet in the storage, the method further includes: If the target driver file does not exist in the storage, a simulation environment is built, and the target driver file corresponding to the network packet is compiled and stored in the simulation environment; The target driver file is sent to the proxy component inside the network card, so that the proxy component inside the network card sends instructions to the service component integrated in the operating system.

10. The network card driver installation method according to claim 9, characterized in that: Building a simulation environment, compiling and storing a target driver file corresponding to the network packet in the simulation environment, including: Using virtualization to build a kernel driver compilation environment based on the information in the network packet, and compile a target driver file corresponding to the network packet; The target driver file is saved in the storage of the gateway server.

11. The network card driver installation method according to claim 7, characterized in that: Using the received target driver file to install the driver into the operating system includes: After receiving the instruction sent by the proxy component inside the network card, the target driver file is obtained from the network card and temporarily stored in the memory; The target driver file temporarily stored in the running memory is installed into the operating system.

12. A network card driver installation device, characterized in that: The device comprises: The status confirmation module is used to traverse the network card and determine the network card driver loading status; An information transmission module, used for transmitting the current computer related configuration information to the network card when the determined network card driver loading state is an unsuccessful loading state, so that the network card encapsulates the current computer related configuration information and sends it to the server, and the server obtains the corresponding target driver file; The driver installation module is used to install the driver into the operating system using the received target driver file.

13. A network card driver installation device, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the network card driver installation method as described in any one of claims 1 to 11 when executing the computer program.

14. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the network card driver installation method according to any one of claims 1 to 11 are implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the network card driver installation method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • High-pass platform-based system compiling method

    CN106250120A

  • Windows network card drive loading method under VOI virtualization

    CN108566297A

  • Network block equipment management method and device, equipment and storage medium

    CN110336693A

  • Method for pre-installing network card driver in diskless workstation starting stage

    CN110618822A

  • Network card firmware batch refreshing method and system, terminal and storage medium

    CN111371610A

Cited By

  • Multi-mode network module equipment verification method and system under embedded Linux platform

    CN121486249A