CN117112002A - Drive upgrading method and device, electronic equipment and storage medium - Google Patents

Drive upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117112002A
CN117112002A CN202310943442.9A CN202310943442A CN117112002A CN 117112002 A CN117112002 A CN 117112002A CN 202310943442 A CN202310943442 A CN 202310943442A CN 117112002 A CN117112002 A CN 117112002A
Authority
CN
China
Prior art keywords
driver
drive
driving
upgraded
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310943442.9A
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.)
Beijing Qingyun Science And Technology Co ltd
Original Assignee
Beijing Qingyun Science And 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 Beijing Qingyun Science And Technology Co ltd filed Critical Beijing Qingyun Science And Technology Co ltd
Priority to CN202310943442.9A priority Critical patent/CN117112002A/en
Publication of CN117112002A publication Critical patent/CN117112002A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a drive upgrading method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: loading a driver to be upgraded to an operating system according to the identification information of the driver installation package; setting the new version driver of the operating system as the driver to be upgraded; and binding the new version driver to the target device in response to the device online information of the target device. According to the embodiment of the invention, the upgrade of the driver is realized by setting the new version driver, the equipment to be upgraded does not need to be actively suspended, the interruption of the driver upgrade to the service operation in the cloud platform can be reduced, the service continuity of the service system can be enhanced, and the service operation stability can be improved.

Description

Drive upgrading method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a drive upgrading method, a device, electronic equipment and a storage medium.
Background
With the continuous development of modern computer science, the informatization degree of the computer is continuously improved, the types and the number of physical equipment layers of the computer are continuously increased, and correspondingly, the software driving is also increased. Currently, software-defined networks, devices, and the like adopted in the cloud computing industry are often virtual devices in the form of software combined with hardware or pure software, and the work of these virtual devices often requires support of a driver. The device driver of the cloud host in the cloud computing industry has the following characteristics that an operating system loads a device driver, all devices in the cloud host are bound with the driver at one time, and the operating system calls an application program to use the devices through a universal interface. However, when the driver upgrades the driver due to a functional defect, a potential safety hazard, a new function, etc., it is necessary to stop the access of all devices to the driver, then uninstall the driver, and finally upgrade the driver. The driving upgrading mode needs to stop the service system accessed by all devices in the cloud host, so that the service system is interrupted, service continuity faces a great challenge, and the reliability of the service system is reduced.
Disclosure of Invention
The invention provides a drive upgrading method, a device, electronic equipment and a storage medium, which are used for realizing the non-perception upgrading of a drive program in a cloud platform, reducing the influence of the drive upgrading on a service system, reducing the interruption of the service system and improving the service continuity, thereby improving the reliability of the service system in the cloud platform.
According to an aspect of the present invention, there is provided a drive upgrade method, wherein the method includes:
loading a driver to be upgraded to an operating system according to the identification information of the driver installation package;
setting the new version driver of the operating system as the driver to be upgraded;
and binding the new version driver to the target device in response to the device online information of the target device.
According to another aspect of the present invention, there is provided a drive upgrade apparatus, wherein the apparatus includes:
the drive loading module is used for loading the drive to be upgraded to the operating system according to the identification information of the drive installation package;
the version updating module is used for setting the new version driver of the operating system as the driver to be updated;
and the relation binding module is used for binding the new version driver to the target equipment in response to equipment online information of the target equipment.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the drive upgrade method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a drive upgrade method according to any one of the embodiments of the present invention.
According to the technical scheme, the identification information is extracted from the drive installation package, the drive to be upgraded corresponding to the drive installation package is loaded to the operating system according to the identification information, the new version drive is set to be the drive to be upgraded by the operating system, and the new version drive is bound to the target equipment when equipment on-line information of the target equipment is received, so that drive upgrading of equipment in the cloud platform is realized, interruption of drive upgrading to service operation in the cloud platform can be reduced, service continuity of the service system can be enhanced, and service operation stability can be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for driving upgrade according to a first embodiment of the present invention;
FIG. 2 is a flow chart of another method for driving upgrade according to a second embodiment of the present invention;
fig. 3 is an exemplary diagram of a drive upgrade method provided according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a driving upgrade apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a drive upgrade method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for driving upgrade provided according to an embodiment of the present invention, where the method may be applicable to a case of device driving upgrade in a cloud platform, and the method may be performed by a driving upgrade apparatus, where the apparatus may be implemented in a hardware and/or software manner, and the apparatus may be configured in a server, and referring to fig. 1, the method provided by the embodiment of the present invention may include the following steps:
step 110, loading the drive to be upgraded to the operating system according to the identification information of the drive installation package.
The driver installation package may be an installation package of a group of drivers, the driver installation package may be used for installing the drivers according to the drivers, the driver installation package may be unique identification information may identify a version of the drivers, the identification information may be unique identification information of the driver installation package, the identification information may include a driver version number, a driver name, etc., the identification information may be attribute information of the driver installation package, and the identification information may be located inside the driver installation package. The driver to be upgraded can be a driver program generated by installing the driver installation package, and the driver to be upgraded can be a driver of the current latest version in the operating system.
In the embodiment of the invention, when the driver installation package is acquired, the identification information can be acquired in the attribute information of the driver installation package, and the driver installation package can be installed according to the identification information, so that the driver to be upgraded corresponding to the driver installation package is loaded to the operating system, and it can be understood that the version of the driver to be upgraded can be identified in the operating system according to the identification information, and multiple different versions of drivers to be upgraded can exist in the operating system at the same time.
And 120, setting the new version driver of the operating system as a driver to be upgraded.
The new version driver can be a driver currently used by the operating system, the new version driver can be a configuration set, and each configuration item in the configuration set can correspond to a driver of a device.
In the embodiment of the invention, when a new driver to be upgraded is loaded to the operating system, the driver to be upgraded can be set as a new version driver of the operating system, so that the operating system can use the new version driver to be upgraded to cooperate with the device.
Step 130, binding the new version driver to the target device in response to the device online information of the target device.
The target device may be a device corresponding to the drive to be upgraded, and the target device may be a physical device or a virtual device, where the type of the target device is not limited.
In the embodiment of the invention, the device on-line information can be uploaded to the server after the target device is restarted or powered on, the device on-line information can comprise the device identifier of the target device, the server can monitor the target device, and when the device on-line information is received, the new version driver corresponding to the target device can be bound to the target device, so that the target device can work by determining the corresponding driver to be upgraded through the new version.
According to the embodiment of the invention, the identification information is extracted from the drive installation package, the drive to be upgraded corresponding to the drive installation package is loaded to the operating system according to the identification information, the new version drive is set as the drive to be upgraded in the operating system, and the new version drive is bound to the target equipment when the equipment on-line information of the target equipment is received, so that the drive upgrading of the equipment in the cloud platform is realized, the normal operation of the service system in the platform is not interrupted, the interruption of the drive upgrading to the service operation in the cloud platform is reduced, the service continuity of the service system can be enhanced, and the service operation stability can be improved.
Example two
Fig. 2 is a flowchart of another driving upgrade method according to a second embodiment of the present invention, where the embodiment of the present invention is embodied on the basis of the above embodiment of the present invention, and referring to fig. 2, the method provided by the embodiment of the present invention specifically includes the following steps:
step 210, receiving the uploaded drive installation package, and compiling the drive installation package into a drive to be upgraded.
In the embodiment of the invention, when the driver installation package is received, the driver installation package can be compiled, and the driver parameters of the driver to be upgraded are registered to the operating system, so that the operating system obtains the driver to be upgraded generated by compiling.
And 220, marking the driving parameters of the driving to be upgraded according to the identification information of the driving installation package in the compiling process of the driving installation package.
The driving parameters may be configuration parameters used by the execution function of the driving to be upgraded, and driving parameters of different driving to be upgraded may be different.
In the embodiment of the invention, the identification information of the drive installation package can be extracted in the process of compiling the drive installation package, and the drive parameters of the drive to be upgraded are marked according to the identification information, so that an operating system can distinguish different drive parameters of the drive to be upgraded based on the identification information.
Further, on the basis of the above embodiment of the invention, the driving parameters include at least one of: driving version information, driving global variables and driving global functions.
Specifically, the driving parameters of the to-be-upgraded driving may include driving version information, driving global variables, driving global functions, and the like, where the driving version information may identify a driving version of the to-be-upgraded driving, the driving version information may be composed of information such as a driving name and a driving version number, the driving global variables may be variable parameters necessary for the to-be-upgraded driving to implement functions, and the driving global functions may be processing functions necessary for the to-be-upgraded driving to implement functions.
Step 230, loading the driver to be upgraded to the operating system.
In the embodiment of the invention, after compiling of the drive to be upgraded is completed, the drive to be upgraded can be loaded to the operating system, and the operating system can control the equipment through the drive to be upgraded. It is understood that the loading of the driver to be upgraded may include registering registration information of the driver to be upgraded with the operating system.
And 240, extracting the identification information of the driver to be upgraded, and configuring the new version driver as the identification information in the operating system.
In the embodiment of the invention, after the driver to be upgraded is loaded to the operating system, the identification information of the driver to be upgraded can be extracted, and the new version driver used by the operating system is configured as the identification information of the driver to be upgraded, so that the operating system uses the information version driver to bind the corresponding driver to be upgraded when the device is on line.
Step 250, extracting the identification information of the new version driver after receiving the device online information of at least one target device.
The target device may be a device corresponding to a to-be-upgraded drive, the to-be-upgraded drive may drive the target device to execute a corresponding function, and the target device may be a hardware device or a virtual device. The device presence information may be information informing that the target device is online, and the device presence information may be specifically a bus message, and the device presence information may be transmitted to the operating system through the bus.
In the embodiment of the invention, when the target device is restarted or started for the first time, the target device can transmit the device online information to the operating system, after the device online information is acquired, a new version driver configured in the operating system can be extracted, and an information identifier in the new version driver can be used as a version identifier of a driver for driving the target device.
Step 260, establishing a driving device binding relationship between the device identifier of the target device and the identifier information in the operating system.
The device identifier may be information for identifying different target devices, the device identifier may be unique identification information of the target devices, and the device identifier may be composed of information such as numbers, letters or special symbols. The driving device binding relationship may be a correspondence relationship between a driving device and a target device, and the operating system may select a corresponding driving program to operate the target device based on the driving device binding relationship.
Specifically, after the identification information of the new version driver is extracted, the device identification of the target device may be extracted, and a binding relationship is established between the device identification and the identification information, where the binding relationship may be a logical relationship or a physical relationship, for example, the device identification and the identification information may be stored in an adjacent storage area, or the same identification may be set for the device identification and the identification information. The binding relationship established between the device identifier and the identifier information may be used as a driving device binding relationship.
Step 270, the binding relation of the driving device is stored in a preset relation maintenance table in a lasting mode.
The preset relationship maintenance table may be an information table of an operating system for maintaining a binding relationship between a driver and a device, and one or more preset relationship maintenance tables may be used, for example, different types of devices may all have their own preset relationship maintenance table, or all types of devices are stored in one preset relationship maintenance table.
In the embodiment of the invention, a pre-established preset relation maintenance table can be determined, the driving device binding relation currently in use can be maintained in the preset relation maintenance table, and the newly established driving device binding relation can be stored in the preset relation maintenance table, so that the lasting storage of the driving device binding relation is realized. It may be understood that the driving device binding relationship maintained in the preset relationship maintenance table may be a binding relationship currently used by the operating system, and the corresponding driving programs in the driving device binding relationship in the preset relationship maintenance table may coexist in multiple versions, for example, the same type of device may have multiple versions of driving programs in the preset relationship table, and if only the driving device binding relationship exists in the preset relationship maintenance table, the driving program corresponding to the driving device binding relationship is valid.
Step 280, in response to the device offline information of the target device, the existing driving device binding relationship of the target device is released.
The device offline information may be a notification message of the downlink of the target device, and it may be understood that the device offline message may be triggered by the active offline of the target device, or may be triggered by an abnormal offline error of the target device, and the device offline information may be triggered and generated as long as the target device is offline.
In the embodiment of the invention, the device downlink information of the target device can be monitored, and when the device downlink information is determined to be monitored, the driving device binding relationship corresponding to the target device can be released, and it can be understood that the releasing can comprise deleting the driving device binding relationship corresponding to the target device in a preset relationship maintenance table. For example, the device identifier of the target device may be extracted, the driving device binding relationship corresponding to the device identifier may be searched in the preset relationship maintenance table, and the searched driving device binding relationship may be deleted from the preset relationship maintenance table.
According to the embodiment of the invention, the drive installation package is received and compiled to be the drive to be upgraded, the identification information of the drive installation package is used for marking the drive parameters in the compiling process of the drive to be upgraded, the drive to be upgraded generated by compiling is loaded to the operating system, the identification information of the drive to be upgraded is identified as the new version drive by the operating system, when the equipment on-line information of the target equipment is received, the identification information of the new version drive and the equipment identification of the target equipment are bound to be in a drive equipment binding relationship, the drive equipment binding relationship is stored to a preset relationship maintenance table, and the drive equipment binding relationship of the target equipment is released when the target equipment is off line, so that the dynamic updating of the equipment drive is realized, the interruption of the drive upgrading to the service operation in the cloud platform is reduced, the service continuity of the service system is improved, and the service operation stability is improved.
Further, on the basis of the above embodiment of the present invention, the removing the existing driving device binding relationship of the target device includes:
searching a target driving device binding relation matched with the device identifier of the target device in a preset relation maintenance table; and deleting the binding relation of the target driving device from the preset relation maintenance table.
In the implementation of the invention, the device identifier of the target device can be extracted, the driving device binding relationship containing the device identifier is searched in the preset relationship maintenance table, the searched driving device binding relationship is recorded as the target driving device binding relationship, and the target driving device binding relationship can be deleted from the preset relationship maintenance table. It will be appreciated that when the target device is re-online, the operating system may create a new driver binding, and the target device may invoke a corresponding driver execution function from the new driver binding.
Example III
Fig. 3 is an exemplary diagram of a driving upgrade method provided according to a third embodiment of the present invention, referring to fig. 3, the embodiment of the present invention provides a driving upgrade method for an operating system, which can implement simultaneous loading and running of different versions of drivers, where the versions of drivers directly do not affect each other, and it is understood that the drivers in the embodiment of the present invention may include a driver of a physical hardware device, a driver of a virtual device implemented in a software manner, and a driver of a device combining software and hardware, referring to fig. 3, and the method provided in the embodiment of the present invention is implemented by the following modules, specifically including: the drive marking module M101 is responsible for carrying out version marking on a drive version, a drive global variable, a drive global function and the like so as to distinguish different drives; a device and driver binding module M102 responsible for binding a single device to a specified version of a driver; a device and driver unbinding module M103 which is responsible for unbinding a single device to a driver of the current version; the device and drive binding relation display module M104 is responsible for outputting and displaying binding relations between all devices and drive versions; the device-to-drive binding relation maintenance module M105 is responsible for maintaining the version relation maintenance of all devices and drives.
According to the above module relation, the invention is implemented by adopting the following technical solutions and steps: pretreatment: the module M101 will make version flags for the driver version, the driver global variable, the driver global function, etc. at the driver compilation stage, thereby compiling a driver that can be loaded simultaneously by the operating system. And loading the new version driver into an operating system.
Step S101: the detailed binding relation between all the devices and the driver can be checked through the module M104;
step S102: on the premise of releasing the access of the equipment, the binding relation between the equipment and the drive can be unbinding through a module M103, and the binding relation is deleted in an M105 module;
step S103: binding a single device to the new version driver through the module M102, and updating the binding relation to the module M105;
by the method, the replacement of the drive used by the single device from the old version to the new version is realized, and the whole business system is not affected. As steps are performed, all devices that use the old version driver will gradually update to use the new version.
Example IV
Fig. 4 is a schematic structural diagram of a driving upgrade apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes:
the driver loading module 401 is configured to load a driver to be upgraded to an operating system according to the identification information of the driver installation package.
And the version updating module 402 is configured to set the new version driver of the operating system as the driver to be upgraded.
A relationship binding module 403, configured to bind the new version driver to the target device in response to device online information of the target device.
According to the embodiment of the invention, the drive loading module extracts the identification information from the drive installation package, loads the drive to be upgraded corresponding to the drive installation package to the operating system according to the identification information, and the version updating module sets the new version drive as the drive to be upgraded when the operating system receives the equipment online information of the target equipment, so that the new version drive is bound to the target equipment, the drive upgrading of the equipment in the cloud platform is realized, the interruption of the drive upgrading to the service operation in the cloud platform can be reduced, the service continuity of the service system can be enhanced, and the service operation stability can be improved.
Further, in some inventive embodiments, the apparatus further comprises: and the unbinding module is used for unbinding the existing driving device binding relation of the target device in response to the device offline information of the target device.
Further, in some embodiments of the invention, the driver loading module 401 in the apparatus includes:
and the driver compiling unit is used for receiving the uploaded driver installation package and compiling the driver installation package into the driver to be upgraded.
And the version marking unit is used for marking the driving parameters of the driving to be upgraded according to the identification information of the driving installation package in the compiling process of the driving installation package.
And the drive loading unit is used for loading the drive to be upgraded to the operating system.
Further, in some inventive embodiments, the driving parameters in the device include at least one of: driving version information, driving global variables and driving global functions.
Further, in some embodiments of the invention, the version update module 402 is specifically configured to: and extracting the identification information of the driver to be upgraded, and configuring the new version driver as the identification information in the operating system.
Further, in some inventive embodiments, the relationship binding module 403 includes:
and the identification extraction unit is used for extracting the identification information of the new version drive on the condition that equipment online information of at least one target equipment is received.
And the relation establishing unit is used for establishing a driving equipment binding relation between the equipment identifier of the target equipment and the identifier information in the operating system.
And the relation storage unit is used for storing the binding relation of the driving equipment to a preset relation maintenance table in a lasting mode.
Further, on the basis of the above embodiment of the present invention, the unbinding module is specifically configured to: searching a target driving device binding relation matched with the device identifier of the target device in a preset relation maintenance table; and deleting the binding relation of the target driving device from the preset relation maintenance table.
The drive upgrading device provided by the embodiment of the invention can execute the drive upgrading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the drive upgrade method.
In some embodiments, the drive upgrade method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the drive upgrade method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the drive upgrade method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of drive upgrade, the method comprising:
loading a driver to be upgraded to an operating system according to the identification information of the driver installation package;
setting the new version driver of the operating system as the driver to be upgraded;
and binding the new version driver to the target device in response to the device online information of the target device.
2. The method as recited in claim 1, further comprising:
and responding to the equipment offline information of the target equipment, and releasing the existing driving equipment binding relation of the target equipment.
3. The method of claim 1, wherein loading the driver to be upgraded to the operating system according to the identification information of the driver installation package comprises:
receiving the uploaded drive installation package, and compiling the drive installation package into the drive to be upgraded;
marking the driving parameters of the driving to be upgraded according to the identification information of the driving installation package in the compiling process of the driving installation package;
and loading the drive to be upgraded to the operating system.
4. A method according to claim 3, wherein the driving parameters comprise at least one of: driving version information, driving global variables and driving global functions.
5. The method of claim 3, wherein setting the new version driver of the operating system as the driver to be upgraded comprises:
and extracting the identification information of the driver to be upgraded, and configuring the new version driver as the identification information in the operating system.
6. The method of claim 1, wherein the binding the new version driver to the target device in response to device presence information of the target device comprises:
extracting the identification information of the new version driver after receiving equipment online information of at least one target equipment;
establishing a driving device binding relation between a device identifier of the target device and the identifier information in the operating system;
and storing the binding relation of the driving equipment to a preset relation maintenance table in a lasting mode.
7. The method of claim 2, wherein the unbinding the existing drive device binding of the target device comprises:
searching a target driving device binding relation matched with the device identifier of the target device in a preset relation maintenance table;
and deleting the binding relation of the target driving device from the preset relation maintenance table.
8. A drive upgrade apparatus, the apparatus comprising:
the drive loading module is used for loading the drive to be upgraded to the operating system according to the identification information of the drive installation package;
the version updating module is used for setting the new version driver of the operating system as the driver to be updated;
and the relation binding module is used for binding the new version driver to the target equipment in response to equipment online information of the target equipment.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the drive upgrade method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the drive upgrade method of any one of claims 1-7 when executed.
CN202310943442.9A 2023-07-28 2023-07-28 Drive upgrading method and device, electronic equipment and storage medium Pending CN117112002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310943442.9A CN117112002A (en) 2023-07-28 2023-07-28 Drive upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310943442.9A CN117112002A (en) 2023-07-28 2023-07-28 Drive upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117112002A true CN117112002A (en) 2023-11-24

Family

ID=88811877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310943442.9A Pending CN117112002A (en) 2023-07-28 2023-07-28 Drive upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117112002A (en)

Similar Documents

Publication Publication Date Title
CN112527281A (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN110442059B (en) Controlled equipment expanding method and device and control equipment
CN116301997A (en) Upgrading method, device, equipment and medium of controller
CN112204527A (en) Method and system for processing engineering data in a multi-engineering system environment
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN117112002A (en) Drive upgrading method and device, electronic equipment and storage medium
CN111694608B (en) System upgrading method and device of terminal equipment, electronic equipment and terminal equipment
CN114721686A (en) Configuration data updating method and device, electronic equipment and storage medium
CN114185641A (en) Virtual machine cold migration method and device, electronic equipment and storage medium
CN114116288A (en) Fault processing method, device and computer program product
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN113515291A (en) Equipment online upgrading method and device
CN113051122A (en) Performance data acquisition method, performance data acquisition device, electronic equipment and medium
CN117111991A (en) System upgrading method and device, electronic equipment and storage medium
CN113190439B (en) Execution method and device of test case and electronic equipment
CN114546478A (en) Method, device, equipment and medium for updating code and database version
CN117609150A (en) Data migration method, device, equipment and medium
CN118113288A (en) Plug-in compiling method, device, electronic equipment and storage medium
CN117453255A (en) Method, device, equipment and storage medium for upgrading embedded equipment
CN114281655A (en) Application display method, device, equipment and storage medium
CN115509688A (en) Method and device for deploying non-containerized application
CN117270862A (en) Software pluggable method, device, equipment and medium based on dynamic compiling
CN115617616A (en) Operation monitoring method, device and equipment of server FRU and storage medium
CN112988265A (en) Applet processing method, applet processing apparatus, device, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination