CN112732307B - Firmware upgrading method, system and device for SSDs with different capacities - Google Patents

Firmware upgrading method, system and device for SSDs with different capacities Download PDF

Info

Publication number
CN112732307B
CN112732307B CN202011600548.1A CN202011600548A CN112732307B CN 112732307 B CN112732307 B CN 112732307B CN 202011600548 A CN202011600548 A CN 202011600548A CN 112732307 B CN112732307 B CN 112732307B
Authority
CN
China
Prior art keywords
ssd
firmware
ssds
capacity
server
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.)
Active
Application number
CN202011600548.1A
Other languages
Chinese (zh)
Other versions
CN112732307A (en
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 Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011600548.1A priority Critical patent/CN112732307B/en
Publication of CN112732307A publication Critical patent/CN112732307A/en
Application granted granted Critical
Publication of CN112732307B publication Critical patent/CN112732307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention discloses a firmware upgrading method, a system and a device for SSDs with different capacities, wherein new firmware packages corresponding to SSDs with different capacities are stored in a preset storage path in advance; acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD; if not, the firmware of the destination SSD is updated based on the new firmware package corresponding to the capacity of the destination SSD. Therefore, the SSD of different slots in the server can be updated based on the capacity of the SSD of different slots in the server, and the SSD with different capacities of different slots is updated, so that the updating time is saved, the updating efficiency is improved, and the labor cost is saved.

Description

Firmware upgrading method, system and device for SSDs with different capacities
Technical Field
The invention relates to the field of server upgrading, in particular to a firmware upgrading method, a system and a device for SSDs with different capacities.
Background
Currently, in the process of developing and verifying an SSD (Solid State Disk), SSDs with different capacities are laid out on the same server for testing in order to save resources. In the prior art, the firmware upgrading method for SSDs with different capacities on the same server comprises the following steps: when the SSD firmware on the same server is updated, only SSDs with the same capacity are inserted into the server slot, SSDs with the other capacities are pulled out of the server slot, a user selects a new firmware package required for updating the firmware according to the capacity of the SSDs inserted into the server slot, and then the server uniformly updates the firmware of the SSDs in the server slot based on the new firmware package selected by the user. The firmware upgrading mode can only replace SSD with another batch of SSD with the same capacity for firmware upgrading after the firmware of SSD with the same capacity is upgraded, so that the upgrading time is longer, the upgrading efficiency is lower, and the labor cost is higher.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The invention aims to provide a firmware upgrading method, a system and a device for SSDs with different capacities, which are based on the capacities of SSDs with different slots in a server, and upgrade SSDs with different slots and different capacities, so that the upgrading time is saved, the upgrading efficiency is improved, and the labor cost is saved.
In order to solve the technical problems, the invention provides a firmware upgrading method for SSDs with different capacities, comprising the following steps:
storing new firmware packets corresponding to SSDs with different capacities into a preset storage path in advance;
acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware packet corresponding to the capacity of the destination SSD; wherein the destination SSD is an SSD for any slot in the server;
if not, carrying out firmware upgrading on the destination SSD based on the new firmware package corresponding to the capacity of the destination SSD.
Preferably, the firmware upgrading method of the SSD with different capacity further includes:
correspondingly writing initial firmware version information of the SSD in the server into feature identification information of the SSD in advance;
after the firmware of the destination SSD is upgraded, updating the characteristic identification information of the destination SSD based on the firmware version information of the destination SSD after being upgraded;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
Preferably, the firmware upgrading method of the SSD with different capacity further includes:
after firmware upgrading is carried out on the destination SSD, obtaining upgrading firmware version information of the destination SSD by inquiring feature identification information of the destination SSD;
judging whether the destination SSD is upgraded to a firmware version to be upgraded or not based on the upgrade firmware version information;
if yes, determining that the destination SSD is successfully upgraded;
if not, determining that the upgrade of the destination SSD fails.
Preferably, the firmware upgrading method of the SSD with different capacity further includes:
pre-establishing a one-to-one correspondence between the capacity of the SSD and the pci equipment information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to the server to acquire information of each pci device returned by the server;
and extracting the pci device information of the SSD with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSD with different slots according to the one-to-one correspondence between the capacity of the SSD and the pci device information of the SSD.
Preferably, the process from storing new firmware packets corresponding to SSDs with different capacities in a preset storage path in advance to carrying out firmware upgrading on the destination SSD includes:
storing new firmware packets corresponding to SSDs with different capacities into a preset local storage path in advance, and remotely transmitting the new firmware packets corresponding to SSDs with different capacities to the server;
remotely acquiring current firmware version information and capacity of SSDs with different slots in the server through the server, and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD;
if not, the slot information and the capacity information of the destination SSD are remotely transmitted to the server, so that the server carries out firmware upgrading on the SSD corresponding to the slot information based on the new firmware packet corresponding to the capacity information.
Preferably, the process of remotely transmitting the new firmware packets corresponding to the SSDs with different capacities to the server includes:
and remotely transmitting the new firmware packets corresponding to the SSDs with different capacities to the server through an SSH protocol by means of the sshpass interactive tool.
In order to solve the technical problem, the present invention further provides a firmware upgrade system for SSDs with different capacities, including:
the pre-storing module is used for storing the new firmware packets corresponding to the SSDs with different capacities into a preset storage path in advance;
the judging module is used for acquiring the current firmware version information and the capacity of SSDs with different slots in the server and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD or not; if not, executing the upgrading module; wherein the destination SSD is an SSD for any slot in the server;
and the upgrading module is used for upgrading the firmware of the destination SSD based on the new firmware packet corresponding to the capacity of the destination SSD.
Preferably, the firmware upgrade system of the SSD of different capacities further includes:
the writing module is used for correspondingly writing the initial firmware version information of the SSD in the server into the characteristic identification information of the SSD in advance;
an updating module, configured to update, after firmware upgrade is performed on the destination SSD, feature identification information of the destination SSD based on firmware version information of the destination SSD after upgrade;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
Preferably, the firmware upgrade system of the SSD of different capacities further includes:
the establishing module is used for pre-establishing a one-to-one correspondence between the capacity of the SSD and the pci equipment information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to SSDs with different slots in the server to acquire information of each pci device returned by the server;
and extracting the pci device information of the SSD with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSD with different slots according to the one-to-one correspondence between the capacity of the SSD and the pci device information of the SSD.
In order to solve the technical problem, the present invention further provides a firmware upgrading device for SSDs with different capacities, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any firmware upgrading method of SSD with different capacities when executing the computer program.
The invention provides a firmware upgrading method of SSDs with different capacities, which comprises the steps of storing new firmware packets corresponding to SSDs with different capacities into a preset storage path in advance; acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD; if not, the firmware of the destination SSD is updated based on the new firmware package corresponding to the capacity of the destination SSD. Therefore, the SSD of different slots in the server can be updated based on the capacity of the SSD of different slots in the server, and the SSD with different capacities of different slots is updated, so that the updating time is saved, the updating efficiency is improved, and the labor cost is saved.
The invention also provides a firmware upgrading system and device for SSDs with different capacities, and the firmware upgrading method has the same beneficial effects as the firmware upgrading method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the prior art and 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 flowchart of a firmware upgrade method for SSDs with different capacities according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a firmware upgrade system for SSDs with different capacities according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a firmware upgrading method, a system and a device for SSDs with different capacities, which are based on the capacities of SSDs with different slots in a server, and upgrade SSDs with different slots and different capacities, so that the upgrading time is saved, the upgrading efficiency is improved, and the labor cost is saved.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a firmware upgrading method for SSDs with different capacities according to an embodiment of the present invention.
The firmware upgrading method of the SSD with different capacities comprises the following steps:
step S1: and storing the new firmware packets corresponding to the SSDs with different capacities into a preset storage path in advance.
Specifically, before upgrading the SSD in the server, the application stores new firmware packets corresponding to the SSDs with different capacities in a preset storage path in advance for use by the SSD in the subsequent upgrade server.
Step S2: acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD; if not, step S3 is performed. Step S3: and carrying out firmware upgrading on the destination SSD based on the new firmware package corresponding to the capacity of the destination SSD.
The destination SSD is any slot SSD in the server.
Specifically, on one hand, the present firmware version information of SSDs with different slots in a server is obtained; on the other hand, the capacity of SSDs with different slots in the server is obtained, and based on the new firmware packages corresponding to the SSDs with different capacities in the preset storage path, version information of the new firmware packages corresponding to the capacities of the SSDs with different slots, namely new firmware version information to be updated of the SSDs with different slots, is determined. Based on the above, taking the destination SSD as an example, the present application judges whether the current firmware version information of the destination SSD is consistent with the new firmware version information to be upgraded of the destination SSD; if the information of the two information is consistent, the destination SSD is not required to be subjected to firmware upgrading operation, and the destination SSD is not subjected to firmware upgrading; if the two information are inconsistent, indicating that the firmware upgrading operation of the destination SSD is needed, carrying out firmware upgrading on the destination SSD based on a new firmware packet corresponding to the capacity of the destination SSD (the firmware upgrading is subjected to several processes of firmware downloading, firmware activating and firmware reset), thereby realizing automatic upgrading of SSDs with different slots and different capacities.
The invention provides a firmware upgrading method of SSDs with different capacities, which comprises the steps of storing new firmware packets corresponding to SSDs with different capacities into a preset storage path in advance; acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD; if not, the firmware of the destination SSD is updated based on the new firmware package corresponding to the capacity of the destination SSD. Therefore, the SSD of different slots in the server can be updated based on the capacity of the SSD of different slots in the server, and the SSD with different capacities of different slots is updated, so that the updating time is saved, the updating efficiency is improved, and the labor cost is saved.
Based on the above embodiments:
as an alternative embodiment, the firmware upgrade method of the SSD with different capacities further includes:
correspondingly writing initial firmware version information of SSD in a server into feature identification information of SSD in advance;
after firmware upgrading is carried out on the destination SSD, updating the characteristic identification information of the destination SSD based on the firmware version information after the firmware upgrading is carried out on the destination SSD;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
Specifically, the application writes the initial firmware version information of the SSD in the server into the feature identification information (identity control information) of the SSD in advance, that is, the feature identification information of the destination SSD contains the firmware version related information of the destination SSD. After the firmware upgrade is performed on the destination SSD, the firmware version related information of the destination SSD, which is included in the feature identification information of the destination SSD, is updated based on the firmware version information of the destination SSD, that is, the feature identification information of the destination SSD is used to write the firmware version information of the destination SSD after the upgrade. Based on the information, the method and the device can correspondingly acquire the current firmware version information of SSDs with different slots by inquiring the characteristic identification information of SSDs with different slots in the server.
As an alternative embodiment, the firmware upgrade method of the SSD with different capacities further includes:
after firmware upgrading is carried out on the destination SSD, obtaining upgrading firmware version information of the destination SSD by inquiring feature identification information of the destination SSD;
judging whether the destination SSD is upgraded to a firmware version to be upgraded or not based on the upgrade firmware version information;
if yes, determining that the destination SSD is successfully upgraded;
if not, determining that the upgrade of the destination SSD fails.
Further, based on the feature identification information of the destination SSD being used to write the firmware version information after the update of the destination SSD, it can be understood that if the update of the destination SSD is successful, the feature identification information of the destination SSD is written with the new firmware version information to be updated of the destination SSD; if the upgrade of the destination SSD fails, the feature identification information of the destination SSD is written with old firmware version information before the upgrade of the destination SSD.
Based on the method, after firmware upgrading is carried out on the destination SSD, upgrading firmware version information of the destination SSD is obtained by inquiring feature identification information of the destination SSD, and then whether the destination SSD is upgraded to a firmware version which needs to be upgraded is judged based on the upgrading firmware version information of the destination SSD; if the destination SSD is upgraded to the firmware version to be upgraded, determining that the destination SSD is successfully upgraded; if the destination SSD is not upgraded to the firmware version to be upgraded, determining that the destination SSD is failed to be upgraded.
As an alternative embodiment, the firmware upgrade method of the SSD with different capacities further includes:
pre-establishing a one-to-one correspondence between the capacity of the SSD and the pci equipment information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to a server to acquire information of each pci device returned by the server;
and extracting the pci device information of the SSD with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSD with different slots according to the one-to-one correspondence between the capacity of the SSD and the pci device information of the SSD.
Specifically, the present application establishes a one-to-one correspondence (abbreviated as an information capacity correspondence) between the capacity of the SSD and the pci (Peripheral Component Interconnect, peripheral component interconnect standard) device information of the SSD (hardware related information of the SSD, which contains a code number corresponding to the capacity of the SSD one by one) in advance. Taking the destination SSD as an example, the present application issues a lspcb command to the server, waits for the server to return information of each pcb device (including a display card, a network card, an SSD, etc.) after receiving the lspcb command, then extracts the pcb device information of the destination SSD from the information of each pcb device returned by the server, and determines a capacity value corresponding to the pcb device information of the destination SSD according to the pcb device information and the information capacity correspondence relationship of the destination SSD, that is, the capacity of the destination SSD.
As an optional embodiment, from storing new firmware packets corresponding to SSDs with different capacities in a preset storage path in advance, to performing firmware upgrade on a destination SSD, the method includes:
storing new firmware packets corresponding to SSDs with different capacities into a preset local storage path in advance, and remotely transmitting the new firmware packets corresponding to SSDs with different capacities to a server;
remotely acquiring current firmware version information and capacity of SSDs with different slots in a server through the server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD;
if not, the slot information and the capacity information of the destination SSD are remotely transmitted to the server, so that the server carries out firmware upgrading on the SSD corresponding to the slot information based on the new firmware packet corresponding to the capacity information.
Specifically, the application can remotely upgrade firmware of SSD of a server. More specifically, the application may store the new firmware packets corresponding to the SSDs with different capacities in a preset local storage path in advance, and remotely transmit the new firmware packets corresponding to the SSDs with different capacities to the server. Then, the method and the device remotely issue an information acquisition command for acquiring the characteristic identification information of SSDs of different slots in the server to the server, wait for the server to remotely return the characteristic identification information of SSDs of different slots after receiving the information acquisition command, and return the characteristic identification information of SSDs of different slots through inquiring the server, so as to correspondingly acquire the current firmware version information of SSDs of different slots. Meanwhile, the method and the device remotely issue the lspci request command to the server, so that the server issues the lspci command to SSDs with different slots after receiving the lspci request command, the SSDs with different slots wait for the long-distance return of the PCI device information through the server after receiving the lspci command, and according to the one-to-one correspondence between the capacity of the SSDs and the PCI device information of the SSDs, the capacity value corresponding to the PCI device information of the SSDs with different slots one by one is determined, and accordingly the current firmware version information and the capacity of the SSDs with different slots in the server are remotely acquired through the server. Then, taking the destination SSD as an example, the application judges whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware packet corresponding to the capacity of the destination SSD; if the two information are consistent, the destination SSD is not required to carry out firmware upgrading operation, and the slot position information and the capacity information of the destination SSD are not transmitted to the server in a remote mode; if the two information are inconsistent, which indicates that the destination SSD needs to carry out firmware upgrading operation, the slot position information and the capacity information of the destination SSD are remotely transmitted to a server. When the server receives the slot information and the capacity information of any SSD, based on the new firmware packet corresponding to the capacity information of the SSD, the firmware of the SSD inserted in the slot corresponding to the slot information of the SSD is upgraded, so that the firmware of the SSD with different capacities is upgraded remotely.
As an alternative embodiment, the process of remotely transmitting the new firmware packets corresponding to the SSDs with different capacities to the server includes:
and remotely transmitting the new firmware packets corresponding to the SSDs with different capacities to the server through an SSH protocol by means of the sshpass interactive tool.
Specifically, the application can remotely transmit new firmware packets corresponding to SSDs with different capacities to a server through an SSH (Secure Shell) protocol by means of an sshpass interactive tool (an interactive-free SSH login tool), and the method is simple and easy to implement.
Referring to fig. 2, fig. 2 is a schematic diagram of a firmware upgrade system for SSDs with different capacities according to an embodiment of the present invention.
The firmware upgrade system of the SSD with different capacities comprises:
the pre-storing module 1 is used for storing new firmware packets corresponding to SSDs with different capacities into a preset storage path in advance;
the judging module 2 is used for acquiring the current firmware version information and the capacity of SSDs with different slots in the server and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD; if not, executing the upgrade module 3; the destination SSD is an SSD of any slot in the server;
and the upgrading module 3 is used for upgrading the firmware of the destination SSD based on the new firmware packet corresponding to the capacity of the destination SSD.
As an alternative embodiment, the firmware upgrade system of the SSD of different capacities further includes:
the writing module is used for correspondingly writing the initial firmware version information of the SSD in the server into the characteristic identification information of the SSD in advance;
the updating module is used for updating the characteristic identification information of the destination SSD based on the firmware version information after the destination SSD is updated after the firmware is updated;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
As an alternative embodiment, the firmware upgrade system of the SSD of different capacities further includes:
the establishing module is used for pre-establishing a one-to-one correspondence between the capacity of the SSD and the ispci information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to a server to acquire information of each pci device returned by the server;
and extracting the pci device information of the SSD with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSD with different slots according to the one-to-one correspondence between the capacity of the SSD and the pci device information of the SSD.
The description of the firmware upgrade system provided in the present application refers to the embodiment of the firmware upgrade method, and is not repeated herein.
The application also provides a firmware upgrading device for SSDs with different capacities, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the firmware upgrade method of any one of the above-mentioned different capacity SSDs when executing the computer program.
The description of the firmware upgrading device provided in the present application refers to the embodiment of the firmware upgrading method, and is not repeated herein.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A firmware upgrade method for SSDs of different capacities, comprising:
storing new firmware packets corresponding to SSDs with different capacities into a preset storage path in advance;
acquiring current firmware version information and capacity of SSDs with different slots in a server, and judging whether the current firmware version information of a destination SSD is consistent with the version information of a new firmware packet corresponding to the capacity of the destination SSD; wherein the destination SSD is an SSD for any slot in the server;
if not, carrying out firmware upgrading on the destination SSD based on a new firmware packet corresponding to the capacity of the destination SSD;
the firmware upgrading method of the SSD with different capacities further comprises the following steps:
pre-establishing a one-to-one correspondence between the capacity of the SSD and the pci equipment information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to the server to acquire information of each pci device returned by the server;
extracting the pci device information of SSDs with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSDs with different slots according to the one-to-one correspondence between the capacity of the SSDs and the pci device information of the SSDs;
and, from storing new firmware packets corresponding to SSDs with different capacities in a preset storage path in advance, to the process of upgrading the firmware of the destination SSD, the process comprises the following steps:
storing new firmware packets corresponding to SSDs with different capacities into a preset local storage path in advance, and remotely transmitting the new firmware packets corresponding to SSDs with different capacities to the server;
remotely acquiring current firmware version information and capacity of SSDs with different slots in the server through the server, and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD;
if not, the slot information and the capacity information of the destination SSD are remotely transmitted to the server, so that the server carries out firmware upgrading on the SSD corresponding to the slot information based on the new firmware packet corresponding to the capacity information.
2. The firmware upgrade method of different capacity SSDs of claim 1, wherein the firmware upgrade method of different capacity SSDs further comprises:
correspondingly writing initial firmware version information of the SSD in the server into feature identification information of the SSD in advance;
after the firmware of the destination SSD is upgraded, updating the characteristic identification information of the destination SSD based on the firmware version information of the destination SSD after being upgraded;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
3. The firmware upgrade method of different capacity SSDs of claim 2, wherein the firmware upgrade method of different capacity SSDs further comprises:
after firmware upgrading is carried out on the destination SSD, obtaining upgrading firmware version information of the destination SSD by inquiring feature identification information of the destination SSD;
judging whether the destination SSD is upgraded to a firmware version to be upgraded or not based on the upgrade firmware version information;
if yes, determining that the destination SSD is successfully upgraded;
if not, determining that the upgrade of the destination SSD fails.
4. The firmware upgrade method of different capacity SSDs of claim 1, wherein the process of remotely transmitting new firmware packets corresponding to respective SSDs of different capacities to the server comprises:
and remotely transmitting the new firmware packets corresponding to the SSDs with different capacities to the server through an SSH protocol by means of the sshpass interactive tool.
5. A firmware upgrade system for SSDs of different capacities, comprising:
the pre-storing module is used for storing the new firmware packets corresponding to the SSDs with different capacities into a preset storage path in advance;
the judging module is used for acquiring the current firmware version information and the capacity of SSDs with different slots in the server and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD or not; if not, executing the upgrading module; wherein the destination SSD is an SSD for any slot in the server;
the upgrading module is used for upgrading the firmware of the destination SSD based on the new firmware packet corresponding to the capacity of the destination SSD;
the firmware upgrading system of the SSD with different capacities further comprises:
the establishing module is used for pre-establishing a one-to-one correspondence between the capacity of the SSD and the pci equipment information of the SSD;
the process of obtaining the capacity of the SSD of the different slots in the server includes:
issuing a lspci command to the server to acquire information of each pci device returned by the server;
extracting the pci device information of SSDs with different slots from the information of each pci device, and determining the capacity value corresponding to the pci device information of the SSDs with different slots according to the one-to-one correspondence between the capacity of the SSDs and the pci device information of the SSDs;
and, the firmware upgrade system of the SSD with different capacities is also used for:
storing new firmware packets corresponding to SSDs with different capacities into a preset local storage path in advance, and remotely transmitting the new firmware packets corresponding to SSDs with different capacities to the server;
remotely acquiring current firmware version information and capacity of SSDs with different slots in the server through the server, and judging whether the current firmware version information of the destination SSD is consistent with the version information of a new firmware package corresponding to the capacity of the destination SSD;
if not, the slot information and the capacity information of the destination SSD are remotely transmitted to the server, so that the server carries out firmware upgrading on the SSD corresponding to the slot information based on the new firmware packet corresponding to the capacity information.
6. The firmware upgrade system of different capacity SSDs of claim 5, wherein the firmware upgrade system of different capacity SSDs further comprises:
the writing module is used for correspondingly writing the initial firmware version information of the SSD in the server into the characteristic identification information of the SSD in advance;
an updating module, configured to update, after firmware upgrade is performed on the destination SSD, feature identification information of the destination SSD based on firmware version information of the destination SSD after upgrade;
the process of obtaining the current firmware version information of the SSD of the different slots in the server includes:
and correspondingly acquiring the current firmware version information of the SSDs with different slots by inquiring the characteristic identification information of the SSDs with different slots in the server.
7. A firmware upgrade apparatus for SSDs of different capacities, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the firmware upgrade method of a different capacity SSD as recited in any one of claims 1-4, when executing the computer program.
CN202011600548.1A 2020-12-29 2020-12-29 Firmware upgrading method, system and device for SSDs with different capacities Active CN112732307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011600548.1A CN112732307B (en) 2020-12-29 2020-12-29 Firmware upgrading method, system and device for SSDs with different capacities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011600548.1A CN112732307B (en) 2020-12-29 2020-12-29 Firmware upgrading method, system and device for SSDs with different capacities

Publications (2)

Publication Number Publication Date
CN112732307A CN112732307A (en) 2021-04-30
CN112732307B true CN112732307B (en) 2024-03-08

Family

ID=75611570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011600548.1A Active CN112732307B (en) 2020-12-29 2020-12-29 Firmware upgrading method, system and device for SSDs with different capacities

Country Status (1)

Country Link
CN (1) CN112732307B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011040754A2 (en) * 2009-09-29 2011-04-07 Lg Innotek Co., Ltd. Electronic book and system for firmware upgrade of electronic book
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system
CN110851162A (en) * 2019-11-11 2020-02-28 深圳忆联信息系统有限公司 SSD (solid State disk) firmware upgrading method and device compatible with RAID and non-RAID
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN111538516A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server power firmware upgrading method, device, equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011040754A2 (en) * 2009-09-29 2011-04-07 Lg Innotek Co., Ltd. Electronic book and system for firmware upgrade of electronic book
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system
CN110851162A (en) * 2019-11-11 2020-02-28 深圳忆联信息系统有限公司 SSD (solid State disk) firmware upgrading method and device compatible with RAID and non-RAID
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN111538516A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server power firmware upgrading method, device, equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于无线分包传输的气象站固件无感升级方法;黄飞龙;谭晗凌;陈冰怀;;计算机测量与控制(第01期);全文 *

Also Published As

Publication number Publication date
CN112732307A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN107783777A (en) A kind of upgrade method, equipment and the system of vehicle-mounted integral machine
WO2019076037A1 (en) Firmware updating method and device
KR101007739B1 (en) Method and system for providing fota service
US20120117557A1 (en) Method and system for upgrading wireless data card
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN111538515A (en) Method, device and equipment for upgrading electric energy meter program
CN105871568B (en) Software upgrading method and system
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
CN104519105A (en) Method and device for acquiring applications matched with terminals
CN113064685A (en) H5 page loading method and device
JP2023016871A (en) Management system for fusion connection device, and management method for fusion connection device
CN108810836B (en) Method and system for providing near field communication equipment information for user
CN112732307B (en) Firmware upgrading method, system and device for SSDs with different capacities
CN116405421B (en) Communication test method, system and storage medium of simulation chip test sorting machine
CN112035129A (en) Method and device for driver installation and upgrade and computer equipment
CN108989428B (en) Bluetooth terminal upgrading method, server, computer readable storage medium and system
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN101197959A (en) Terminal control method, system and equipment
CN109976788B (en) Intelligent terminal miniature vulnerability restoration method, intelligent terminal, equipment and server
JP2015072621A (en) Automatic vending machine setting system
CN114185576A (en) Embedded equipment upgrading method and device, computer equipment and storage medium
CN106412971B (en) A kind of abnormality eliminating method and device
CN112055351B (en) Data updating method and device for thin smart card
CN112771497A (en) Method and device for upgrading equipment and storage medium
CN110851161A (en) Firmware updating method for intelligent household equipment

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
GR01 Patent grant
GR01 Patent grant