CN107066300B - Firmware upgrading method of storage device and storage device - Google Patents

Firmware upgrading method of storage device and storage device Download PDF

Info

Publication number
CN107066300B
CN107066300B CN201710267535.9A CN201710267535A CN107066300B CN 107066300 B CN107066300 B CN 107066300B CN 201710267535 A CN201710267535 A CN 201710267535A CN 107066300 B CN107066300 B CN 107066300B
Authority
CN
China
Prior art keywords
firmware
file
upgrading
target
upgrade
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
CN201710267535.9A
Other languages
Chinese (zh)
Other versions
CN107066300A (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.)
Macrosan Technologies Co Ltd
Original Assignee
Macrosan Technologies 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 Macrosan Technologies Co Ltd filed Critical Macrosan Technologies Co Ltd
Priority to CN201710267535.9A priority Critical patent/CN107066300B/en
Publication of CN107066300A publication Critical patent/CN107066300A/en
Application granted granted Critical
Publication of CN107066300B publication Critical patent/CN107066300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44536Selecting among different versions

Landscapes

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

Abstract

The application provides a firmware upgrading method of a storage device and the storage device. The firmware upgrading method of the storage device comprises the following steps: the SP receives a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file; and the SP acquires the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file, transmits the acquired target upgrading file to a first EP corresponding to the hardware module to be subjected to firmware upgrading, and after receiving the target upgrading file, the first EP carries out firmware upgrading on the hardware module to be subjected to firmware upgrading according to the target upgrading file. According to the firmware upgrading method of the storage device and the storage device, when firmware of a hardware module arranged in the DSU is upgraded, signal transmission is stable, and the probability of upgrading errors is low.

Description

Firmware upgrading method of storage device and storage device
Technical Field
The present application relates to computer technologies, and in particular, to a firmware upgrading method for a storage device and a storage device.
Background
In the development stage of the storage device, in order to ensure that the hardware module of the storage device and the storage system software work together, a dedicated firmware is usually designed for each hardware module on the storage device. Accordingly, when the dedicated firmware of a certain hardware module on the storage device has a bug in the process of using the storage device or needs to add a new function, the firmware of the hardware module needs to be upgraded.
Currently, for a hardware module disposed in a Storage controller Unit (SPU) of a Storage device, since the SPU may be connected to a management Computer (PC) through a management network port disposed on the SPU, the management PC may directly log in the Storage controller module (SP) disposed on the SPU to upgrade firmware of the hardware module disposed in the SPU. However, for the hardware module disposed in the Disk cabinet Unit (DSU) of the storage device, since the management PC and the DSU cannot be connected through the network, when the firmware of the hardware module disposed in the DSU needs to be upgraded, the management PC needs to be connected to a Disk cabinet control module (EP) disposed in the DSP through a serial port cable (serial port is disposed on the EP, and the management PC can be connected to the serial port on the EP through the serial port cable) to upgrade the firmware of the hardware module disposed in the DSU.
However, when the firmware of the hardware module arranged in the DSU is upgraded by the above method, since the management PC needs to transmit the firmware upgrade file to the EP through the serial port cable, and the serial port cable is easily interfered by other hardware modules in the process of transmitting data, when the firmware of the hardware module arranged in the DSU is upgraded by the above method, there are problems that the transmission signal is unstable due to the interference and the error probability is large in the upgrading process.
Disclosure of Invention
The application provides a firmware upgrading method of a storage device and the storage device, which are used for solving the problems that when the firmware upgrading method in the prior art is used for upgrading the firmware of a hardware module arranged in a DSU, transmission signals are unstable due to interference, and the error probability in the upgrading process is high.
A first aspect of the present application provides a firmware upgrade method for a storage device, where the storage device includes a storage control unit SPU and at least one disk cabinet unit DSU, a storage controller module SP is disposed in the SPU, a disk cabinet control module EP is disposed in each DSU, and the SP is connected to the EP, where the method includes:
the SP receives a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in a DSU;
the SP acquires the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file;
the SP transmits the target upgrading file to a first EP corresponding to the hardware module to be subjected to firmware upgrading, wherein the first EP is an EP arranged in the same DSU with the hardware module to be subjected to firmware upgrading;
and after receiving the target upgrading file, the first EP carries out firmware upgrading on the hardware module to be subjected to firmware upgrading according to the target upgrading file.
Further, the header file information carried by the target upgrade file includes a preset check method and a check value, and before the first EP performs firmware upgrade on the hardware module to be firmware upgraded according to the target upgrade file, the method further includes:
the first EP checks whether the target upgrade file is correct or not according to the preset checking method and the checking value;
and if the verification is correct, the first EP returns response information of successful transmission to the SP, and carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
Further, after the first EP performs firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file, the method further includes:
the first EP judges whether the firmware upgrading process is finished or not;
if yes, the first EP records an upgrade result and sends a broadcast message, where the broadcast message is used to inform the SP that the firmware upgrade process is completed.
Further, after the SP receives the broadcast message, the method further includes:
and the SP sends a query command to the first EP so as to query an upgrading result.
Further, the storage medium of the hardware module to be firmware upgraded includes at least two storage areas, at least one of the at least two storage areas stores a firmware file of the hardware module to be firmware upgraded, one of the at least two storage areas stores activation information, where the activation information carries area identification information, the area identification information is used to characterize the currently activated storage area, and the first EP performs firmware upgrade on the hardware module to be firmware upgraded according to the target upgrade file, specifically including:
the first EP determines a currently activated first storage area according to the area identification information carried in the activation information;
the first EP sets a target address of a firmware upgrading program as area identification information corresponding to a second storage area, wherein the second storage area is different from the first storage area;
and the first EP starts the firmware upgrading program to upgrade the firmware of the hardware module to be upgraded through the firmware upgrading program and the target upgrading file, and updates the area identification information carried by the activation information into the area identification information corresponding to the second storage area after the firmware upgrading process is completed and the upgrading result shows that the upgrading is successful.
Further, after the hardware module to be subjected to firmware upgrade successfully performs firmware upgrade, the method further includes:
the SP receives a version switching command input by a user and transmits the version switching command to the first EP; the version switching command is used for indicating the first EP to update the area identification information carried by the activation information, so that the area identification information carried by the updated activation information is different from the area identification information carried by the activation information before updating, and a firmware file is stored in a storage area corresponding to the area identification information carried by the updated activation information;
and the first EP updates the activation information according to the version switching command, and restarts the hardware module to be subjected to firmware upgrading after updating the activation information, so that the hardware module to be subjected to firmware upgrading acquires a firmware file from a storage area corresponding to the area identification information carried by the updated activation information and starts to operate after being restarted.
In a second aspect, the present application provides a storage device comprising a storage control unit SPU and at least one disk enclosure unit DSU, wherein a storage controller module SP is disposed in the SPU, and a disk enclosure control module EP is disposed in each of the DSUs, and the SP is connected to the EP,
the SP is used for receiving a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in the DSU;
the SP is also used for acquiring the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file;
the SP is further configured to transmit the target upgrade file to a first EP corresponding to the hardware module to be subjected to firmware upgrade, where the first EP is an EP arranged in the same DSU as the hardware module to be subjected to firmware upgrade;
and the first EP is used for upgrading the firmware of the hardware module to be upgraded according to the target upgrading file after receiving the target upgrading file.
Further, the header file information carried by the target upgrade file includes a preset check method and a check value, and the first EP is further specifically configured to check whether the target upgrade file is correct according to the preset check method and the check value, return response information of successful transmission to the SP when the target upgrade file is correct, and perform firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
Further, the first EP is further configured to determine whether the firmware upgrade process is completed, record an upgrade result when it is determined that the firmware upgrade process is completed, and send a broadcast message, where the broadcast message is used to notify the SP that the firmware upgrade process is completed.
Further, the SP is further configured to send a query command to the first EP to query an upgrade result after receiving the broadcast message.
Further, the storage medium of the hardware module to be firmware upgraded comprises at least two storage areas, at least one of the at least two storage areas stores a firmware file of the hardware module to be firmware upgraded, and one of the at least two storage areas stores activation information, wherein the activation information carries area identification information, the area identification information is used for representing a currently activated storage area, and the first EP is further used for determining a currently activated first storage area according to the area identification information carried in the activation information;
the first EP is further configured to set a target address of a firmware upgrade program as area identification information corresponding to a second storage area, where the second storage area is different from the first storage area;
the first EP is further configured to start the firmware upgrade program, so as to upgrade the firmware of the hardware module to be subjected to firmware upgrade through the firmware upgrade program and the target upgrade file, and update the area identification information carried by the activation information to the area identification information corresponding to the second storage area after the firmware upgrade process is completed and the upgrade result shows that the upgrade is successful.
Further, the SP is further configured to receive a version switching command input by a user, and transmit the version switching command to the first EP; the version switching command is used for indicating the first EP to update the area identification information carried by the activation information, so that the area identification information carried by the updated activation information is different from the area identification information carried by the activation information before updating, and a firmware file is stored in a storage area corresponding to the area identification information carried by the updated activation information;
the first EP is further configured to update the activation information according to the version switching command, and restart the hardware module to be subjected to firmware upgrade after the activation information is updated, so that after the hardware module to be subjected to firmware upgrade is restarted, the firmware file is acquired from the storage area corresponding to the area identification information carried by the updated activation information and starts to run.
According to the firmware upgrading method and the storage device of the storage device, when firmware of hardware equipment arranged in a DSU is upgraded, an SP receives a firmware upgrading command input by a user, and then acquires a target upgrading file according to identification information of the target upgrading file and identification information of the target file, wherein the identification information of the target upgrading file is carried by the firmware upgrading command, so that after the target upgrading file is acquired, the target upgrading file is sent to a first EP corresponding to a hardware module to be upgraded through an SAS cable, and after the first EP receives the target upgrading file, the hardware file to be upgraded is upgraded according to the target file. Therefore, the stability of the transmission signal can be improved, and the error probability in the upgrading process is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a storage device provided in the present application;
FIG. 2 is a flowchart of a first embodiment of a firmware upgrading method for a storage device according to the present application;
FIG. 3 is a flowchart of a second embodiment of a firmware upgrading method for a storage device according to the present application;
FIG. 4 is a flowchart of a third embodiment of a firmware upgrading method for a storage device according to the present application;
FIG. 5 is a flowchart of a fourth embodiment of a firmware upgrading method for a storage device according to the present application;
FIG. 6 is a flowchart of a fifth embodiment of a method for upgrading firmware of a storage device according to the present application;
fig. 7 is a flowchart of a sixth embodiment of a firmware upgrading method for a storage device according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application provides a firmware upgrading method of a storage device and the storage device, which are used for solving the problems that when the firmware upgrading method in the prior art is used for upgrading the firmware of a hardware module arranged in a DSU, transmission signals are unstable due to interference, and the error probability in the upgrading process is high.
The firmware upgrading method of the storage device and the storage device can be applied to the field of computers, for example, can be applied to the cloud computing technology.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that such uses are interchangeable where appropriate.
Before describing the firmware upgrading method of the storage device provided by the present application, the storage device provided by the present application will be described. Fig. 1 is a schematic structural diagram of a storage device provided in the present application, please refer to fig. 1, where the storage device provided in the present application includes a storage control unit SPU and at least one disk cabinet unit DSU (in this embodiment, it is described by taking 4 disk cabinet units (DSU1, DSU2, DSU3, DSU4) as an example), a storage controller module SP is disposed in the SPU, a disk cabinet control module EP is disposed in each DSU, and the SP is connected to the EP. Specifically, one SP may be set in the SPU, or a plurality of SPs may be set; similarly, one EP may be provided in the DSU, or a plurality of EPs may be provided. In this embodiment, the number of SPs in the SPU and the number of EPs in the DSU are not limited. The SP and the EP are connected by a Serial Attached SCSI (SAS) cable. It should be noted that when the storage device includes a plurality of DSUs, the SP may be directly connected to the EP in each DSU through the SAS cable, or the SP may be directly connected to the EP of the first DSU through the SAS cable, then the EP of the second DSU is connected to the EP of the first DSU through the SAS cable, then the EP of the third DSU is connected to the EP of the second DSU through the SAS cable, and so on, and finally the connection of the SP to each EP is realized (see the connection manner of EP1 in DSU1 and EP2 of DSU2 in fig. 1).
In addition, in the storage device, hardware modules such as a power supply module, a fan module, and a battery module are further provided in the SPU, and hardware modules such as a power supply module, a fan module, and a battery module are further provided in the DSU. It should be noted that each hardware module has firmware, and the firmware of the hardware module is stored in a storage medium of the hardware module. For example, a battery module within a DSU has battery module firmware that is stored in a storage medium of the battery module.
After the storage device provided by the present application is introduced, a firmware upgrade method of the storage device provided by the present application is described below.
Fig. 2 is a flowchart of a first embodiment of a firmware upgrading method for a storage device according to the present application. The execution subject of this embodiment may be a separate storage device, or may be another device integrated with a storage device, for example, a computer integrated with a storage device. The embodiment of the present application is described by taking an execution subject as a separate storage device as an example. As shown in fig. 2, the method for upgrading firmware of a storage device according to this embodiment may include the following steps:
s101, an SP receives a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in a DSU.
Specifically, the SP may receive a firmware upgrade command input by a user through a management PC connected to the SP. In a specific implementation, a user may log in to the SP through a management PC, and then input a firmware upgrade command to the SP. It should be noted that the firmware upgrade command carries identification information of a hardware module to be subjected to firmware upgrade, where the identification information includes name information of the hardware module to be subjected to firmware upgrade and DSU information of the hardware module to be subjected to firmware upgrade, and the DSU information is used to represent on which DSU the hardware module to be subjected to firmware upgrade is set. The following illustrates a specific form of the firmware upgrade command, for example, the firmware upgrade command input by the user may be: and upgrading the firmware of the battery module arranged in the DSU1 by using the target upgrade file B in the server A. At this time, the identification information of the hardware module to be subjected to firmware upgrade carried by the firmware upgrade command is a battery module in the DSU1, correspondingly, the identification information of the target upgrade file is B, and the address information of the target upgrade file is server a. It should be noted that the above example is only for illustrating the specific implementation process of this step, and is not limited to this step, and the user may also input other forms of firmware upgrade commands.
And S102, the SP acquires the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file.
After receiving a firmware upgrading command input by a user, the SP may obtain the target upgrading file according to the identification information of the target upgrading file and the address of the target upgrading file carried in the firmware upgrading command. It should be noted that the target upgrade file may be stored on the management PC, or may be stored in the server.
In combination with the above example, in this step, the SP may obtain the target upgrade file B from the server a. It should be noted that, after the SP acquires the target upgrade file, the SP may temporarily store the target upgrade file in the SP. In addition, the target upgrade file carries header file information, where the header file information may include identification information of a hardware module to be subjected to firmware upgrade, length information of the firmware file, a version number, a storage start address in the target storage medium (a designated storage location in the EP when the target upgrade file is transmitted to the EP), and the like. It should be noted that the firmware file stored in the address indicated by the address information of the target upgrade file may be a target upgrade file carrying header file information, or may be an original firmware file not carrying header file information. When the firmware file stored in the address indicated by the address information of the target upgrade file is the target upgrade file carrying the header file information, the SP can directly acquire the target upgrade file; when the firmware file stored in the address indicated by the address information of the target upgrade file is an original firmware file without header file information, at this time, the SP needs to obtain the header file information of the original firmware file according to the original firmware file, and then encapsulate the header file information of the original firmware file to obtain the target upgrade file.
And S103, the SP transmits the target upgrade file to a first EP corresponding to the hardware module to be upgraded, wherein the first EP is an EP which is arranged in the same DSU as the hardware module to be upgraded.
Specifically, after the target upgrade file is acquired in step S102, in this step, the SP transmits the target upgrade file to a first EP, where the first EP is an EP disposed in the same DSU as the hardware module to be firmware upgraded, and in this step, in combination with the above example, the first EP is EP1 disposed in DSU1, and at this time, the SP transmits the target upgrade file to EP1 in DSU 1. Referring to fig. 1, if the identification information of the hardware module to be firmware upgraded, which is carried in the firmware upgrade command, is a fan module in the DSU2, at this time, since the EP2 and the SP in the DSU2 are not directly connected through the SAS cable, when the SP needs to transmit the target upgrade file to the EP2, the SP needs to transmit the target upgrade file to the EP1 through the SAS cable connected between the SP and the EP1, and then transmit the target upgrade file to the EP2 through the SAS cable connected between the EP1 and the EP2 by the EP 1.
When transmitting the target upgrade file to the first EP, the SP transmits the target upgrade file by using an SES (SCSI Enclosure Service, SES for short) command through an SAS protocol. Further, since the SES standard has a limit on the size of the load of a single SES command. Thus, when the SP transmits the target upgrade file to the first EP, the SP may transmit the target upgrade file to the first EP entirely together if the size of the target upgrade file is not greater than the single command maximum load size specified in the SES standard. If the size of the target upgrade file exceeds the maximum load size of a single command specified in the SES standard, at this time, when the SP transmits the target upgrade file to the first EP, the SP may first divide the target upgrade file into a plurality of data packets, and then sequentially transmit the plurality of data packets to the first EP according to the sequence of the data packets in the target upgrade file (it should be noted that, at this time, the size of each data packet cannot exceed the maximum load size of a single command specified in the SES standard).
And S104, after receiving the target upgrade file, the first EP carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
It should be noted that, after receiving the target upgrade file, the first EP stores the target upgrade file in a storage medium of the first EP. Specifically, the above-mentioned target upgrade file is stored at a position specified in header file information of the target upgrade file (the header file information includes "storage start address in target storage medium"). When the firmware file is included in a designated location in the storage medium of the first EP (the target upgrade file stored at the time of the last firmware upgrade), the first EP overwrites the originally stored firmware file when storing the target upgrade file in the designated location. Thus, after the first EP stores the target upgrade file at the specified location, the firmware upgrade program is started (In this embodiment, an In System Programmable (ISP) thread is started), and the target upgrade file is loaded In the firmware upgrade program, so as to perform firmware upgrade using the target upgrade file by the firmware upgrade program (at this time, the ISP thread starts executing the target upgrade file from the location specified In the header file information, and writes the target upgrade file into the storage medium of the hardware module to be subjected to firmware upgrade according to the ISP protocol).
Specifically, for how to perform the firmware upgrade on the hardware module to be subjected to the firmware upgrade according to the target upgrade file, the specific implementation process and implementation principle of how to perform the firmware upgrade on the hardware module to be subjected to the firmware upgrade may be referred to as descriptions in a method for performing the firmware upgrade on the hardware to be subjected to the upgrade by using the upgrade file in the prior art, which is not described herein again. It should be noted that this step is different from the prior art in that this step is implemented by EP.
In this embodiment, after receiving a firmware upgrade command input by a user and acquiring the target upgrade file according to identification information of the target upgrade file and identification information of the target file carried by the firmware upgrade command, the SP transmits the acquired target upgrade file to a first EP corresponding to the hardware module to be firmware upgraded through an SAS cable, so that the first EP upgrades the hardware file to be firmware upgraded according to the target upgrade file after receiving the target upgrade file. Therefore, as the target upgrade file is transmitted to the EP through the SAS cable by the SP, compared with the prior art (the target upgrade file is transmitted to the EP through the serial port cable by the management PC), the problems of unstable transmission signals and high error probability in the upgrade process due to interference can be avoided.
In the firmware upgrading method for the storage device provided in this embodiment, when firmware of a hardware device disposed in a DSU is upgraded, an SP receives a firmware upgrading command input by a user, and further acquires a target upgrading file according to identification information of the target upgrading file and identification information of the target file, which are carried by the firmware upgrading command, so that after the target upgrading file is acquired, the target upgrading file is sent to a first EP corresponding to a hardware module to be subjected to firmware upgrading through an SAS cable, and after the first EP receives the target upgrading file, the hardware file to be subjected to firmware upgrading is upgraded according to the target file. Therefore, the stability of the transmission signal can be improved, and the error probability in the upgrading process is reduced.
Fig. 3 is a flowchart of a second embodiment of a firmware upgrading method for a storage device according to the present application. The embodiment relates to a specific process for verifying whether a target upgrade file is correct. On the basis of the foregoing embodiment, if header file information carried by a target upgrade file includes a preset verification method and a preset verification value, in the firmware upgrade method of the storage device according to this embodiment, before a first EP performs firmware upgrade on the hardware module to be firmware upgraded according to the target upgrade file, the method may further include:
s201, the first EP checks whether the target upgrade file is correct according to the preset checking method and the checking value.
Specifically, if the header file information carried by the target upgrade file includes a preset check method and a check value, in this step, after the first EP receives the target upgrade file, a first check value may be calculated according to the preset check method included in the header file information carried by the target upgrade file, and it is determined whether the calculated first check value is the same as the check value included in the header file information carried by the target upgrade file, if so, it is determined that the target upgrade file is correct, and if not, it is determined that the target upgrade file is incorrect.
And S202, if the verification is correct, the first EP returns response information of successful transmission to the SP, and carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
Specifically, after step S101, if the target upgrade file is determined to be correct, in this step, the first EP returns a response message indicating that the transmission of the target upgrade file is successful to the SP, so as to inform the SP that the target upgrade file has been successfully transmitted to the first EP.
It should be noted that, in the firmware upgrading method of the storage device provided in the present application, if the first EP determines in step S201 that the received target upgrade file is incorrect, a response message indicating that the transmission is failed is returned to the SP, so as to notify the SP that the target upgrade file is not successfully transmitted to the first EP.
In this embodiment, before performing firmware upgrade on a hardware module to be subjected to firmware upgrade according to a target upgrade file, a first EP first checks whether the target upgrade file is correct according to header file information carried by the target upgrade file, and performs firmware upgrade according to the target upgrade file after checking that the target upgrade file is correct. Therefore, before firmware upgrading, whether the target upgrading file is correct is checked in advance, and then firmware upgrading is carried out after the target upgrading file is correct, so that the problem of low upgrading efficiency caused by direct firmware upgrading due to the fact that the target upgrading file is incorrect can be solved, and the upgrading efficiency of the firmware can be improved.
Fig. 4 is a flowchart of a third embodiment of a firmware upgrading method for a storage device according to the present application. On the basis of the first embodiment, after step S104, the method for upgrading firmware of a storage device according to this embodiment may further include:
s301, the first EP judges whether the firmware upgrading process is completed.
Specifically, referring to the description in step S104, when the first EP starts the firmware upgrade program to perform firmware upgrade, if the execution of the firmware upgrade program is completed and the execution result is output, it is determined that the firmware upgrade process is completed. In this step, the first EP determines whether the firmware upgrade process is completed by determining whether the execution result is received, and determines that the firmware upgrade process is completed if the execution result is received.
And S302, if so, recording an upgrading result by the first EP and sending a broadcast message, wherein the broadcast message is used for informing the SP that the firmware upgrading process is completed.
Specifically, the execution result not only indicates that the firmware upgrade process is completed, but also carries an upgrade result (upgrade success or upgrade failure), and when the first EP receives the execution result and determines that the firmware upgrade process is completed, the first EP correspondingly records the upgrade result and sends a broadcast message to actively inform the SP that the firmware upgrade has been completed through the broadcast message. It should be noted that the broadcast message is a broadcast message transmitted based on the SAS protocol.
In addition, in this embodiment, when the first EP determines that the firmware upgrade process is completed, the target upgrade file stored in the storage medium of the first EP is also deleted.
S303, after receiving the broadcast message, the SP sends an inquiry command to the first EP to inquire an upgrade result.
In this step, after determining that the firmware upgrading process is completed, the first EP sends a broadcast message to notify the SP that the firmware upgrading process is completed through the broadcast message. Thus, when the SP receives the broadcast message, it knows that the firmware upgrade process is complete. Thus, the first EP can make the SP know the state of the first EP in time by transmitting the broadcast message. Further, after receiving the broadcast message, the SP may send a query command to the first EP to query the upgrade result. In this way, the SP can take further control of the EP based on the query results.
In the firmware upgrading method of the storage device provided by this embodiment, after the first EP performs firmware upgrading on a hardware module to be subjected to firmware upgrading according to the target upgrade file, the first EP determines whether the firmware upgrading process is completed, and records the upgrading result and sends the broadcast message after determining that the firmware upgrading process is completed, so that the SP can inform the state of the firmware upgrading process through the broadcast message, so that the SP can timely know the state of the first EP, and further, based on the known state of the first EP, the first EP is effectively controlled. Further, in the method provided in this embodiment, after receiving the broadcast message sent by the first EP, the SP further sends a query command to the first EP to query the upgrade result, so that the SP can actively acquire the upgrade result of the hardware device to be firmware upgraded, and effectively control the hardware device to be firmware upgraded based on the upgrade result.
Fig. 5 is a flowchart of a fourth embodiment of a firmware upgrading method for a storage device according to the present invention. The embodiment relates to a specific process of upgrading firmware of a hardware module to be upgraded according to a target upgrade file. Before describing the method for upgrading the firmware of the storage device provided by this embodiment, the storage device provided by this embodiment is described, specifically, a storage medium of a hardware module to be subjected to firmware upgrading includes at least two storage areas, at least one of the at least two storage areas stores a firmware file of the hardware module to be subjected to firmware upgrading, and one of the at least two storage areas stores activation information, where the activation information carries area identification information, and the area identification information is used to represent a currently activated storage area.
Specifically, for example, in the storage device provided in one embodiment, the hardware module to be upgraded is battery module 1 in DSU1, the storage medium of the battery module 1 includes two storage areas (a storage area a and a storage area B, wherein A, B is area identification information of the storage area), the storage area a stores a firmware file of the battery module 1, the storage area B stores activation information (for example, the activation information may be represented as an activation area: a, at which time, the activation information indicates that the currently activated storage area is the storage area a), it should be noted that, when the storage area is activated, the storage area refers to that the hardware module is in operation, the firmware file is obtained from the storage area to start running, and in connection with the above example, the storage area a is activated, which indicates that the battery module 1 will obtain the firmware file from the storage area a to start running.
As another example, the hardware module to be upgraded is fan module 3 in DSU3, and the storage medium of fan module 3 includes three storage areas: the storage area D, the storage area E, and the storage area F store firmware files of the fan module (it should be noted that, the versions of the firmware files stored in the storage area D and the storage area E are different), respectively, and the storage area F stores activation information, for example, the activation information at this time is: activation region: and E, at this time, the activation information indicates that the currently activated storage area is the storage area E, namely when the fan module is started, the firmware file is acquired from the storage area E and the fan module is started.
After introducing the storage device provided in this embodiment, a firmware upgrading method of the storage device provided in this embodiment is described in detail below, with reference to fig. 5, in which step S104 specifically includes:
s401, the first EP determines a currently activated first storage area according to the area identification information carried in the activation information;
with reference to the above example, for example, in the first example, the area identification information carried in the activation information is a, and at this time, it is determined that the currently activated first storage area is the storage area a. Correspondingly, in the second example, the area identification information carried in the activation information is E, and at this time, it is determined that the currently activated first storage area is the storage area E.
S402, the first EP sets the target address of the firmware upgrading program as the area identification information corresponding to the second storage area; wherein the second storage area is different from the first storage area;
specifically, after the first storage area which is currently activated is determined, at this time, the first EP sets the target address of the firmware upgrade program as the area identification information corresponding to the second storage area, so that the target upgrade file is saved in the second storage area when the firmware upgrade program is successfully executed. It should be noted that the second storage area is different from the first storage area, and in combination with the above example, in the first example, the second storage area is the storage area B, and in the second example, the second storage area may be the storage area D or the storage area F. In this way, by setting the target address of the firmware upgrade program to the area identification information corresponding to the second storage area different from the first storage area, the target upgrade file can be saved separately from the firmware file being used.
It should be further noted that, if the firmware file is originally stored in the second storage area, after the firmware upgrade program is successfully executed, the target upgrade file replaces the originally stored firmware file and is stored in the second storage area.
And S403, the first EP starts the firmware upgrading program to upgrade the firmware of the hardware module to be upgraded through the firmware upgrading program and the target upgrading file, and updates the area identification information carried by the activation information into the area identification information corresponding to the second storage area after the firmware upgrading process is completed and the upgrading result shows that the upgrading is successful.
Specifically, for starting the firmware upgrade program, the specific implementation process and implementation principle of performing firmware upgrade on the hardware module to be subjected to firmware upgrade through the firmware upgrade program and the target upgrade file may be referred to the description in the prior art, which is not described herein again.
Specifically, in this step, after the firmware upgrade process is completed and the upgrade result shows that the upgrade is successful, the first EP updates the area identification information carried by the activation information to the area identification information corresponding to the second storage area. With reference to the above example, for example, in the first example, the area identification information carried by the activation information is updated to B, that is, the updated activation information is: activation region: B. in this way, the hardware device (battery module 1 in DSU 1) to be upgraded will acquire the firmware file from storage area B after the restart to start the startup. For another example, in the second example, when it is determined in step S402 that the second storage area is the storage area D, in this step, the area identification information carried by the activation information is updated to D, that is, the updated activation information is: activation region: d, so that the hardware device (fan module 3 in DSU 3) to be upgraded will, after being restarted, obtain the firmware file from storage area D to start the boot.
In this embodiment, if the storage medium of the hardware module to be subjected to firmware upgrade includes at least two storage areas, and at least one of the at least two storage areas stores a firmware file of the hardware module to be subjected to firmware upgrade, and when one of the at least two storage areas stores activation information (where the activation information carries area identification information used to characterize the currently activated storage area), when the first EP performs firmware upgrade on the hardware module to be subjected to firmware upgrade according to a target upgrade file, by determining the currently activated first storage area, and after determining the currently activated first storage area, setting a target address of a firmware upgrade program as area identification information corresponding to the second storage area, so that after the firmware upgrade program is successfully executed, the target upgrade file may be stored in the second storage area, that is, after the hardware module to be firmware upgraded is successfully upgraded, the storage medium of the hardware module to be firmware upgraded stores two different versions of firmware files (the two firmware files store different storage areas). Therefore, when two firmware files with different versions are stored in the storage medium of the hardware module to be subjected to firmware upgrading, a user can switch between the two firmware files with different versions to select one of the two firmware files for use, so that the online firmware upgrading is realized.
Fig. 6 is a flowchart of a fifth embodiment of a firmware upgrading method for a storage device according to the present application. The embodiment relates to the whole process of firmware upgrading. On the basis of the foregoing embodiment, referring to fig. 5, the method provided in this embodiment may include:
s501, an SP receives a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in a DSU.
And S502, the SP acquires the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file.
And S503, the SP transmits the target upgrade file to a first EP corresponding to the hardware module to be upgraded, wherein the first EP is an EP which is arranged in the same DSU as the hardware module to be upgraded.
Specifically, the specific implementation method and implementation principle of the above steps may refer to the descriptions of steps S101 to S103 in the first embodiment, and are not described herein again.
And S504, after receiving the target upgrade file, the first EP verifies whether the target upgrade file is correct according to header file information carried by the target upgrade file, if the verification is incorrect, the step S505 is executed, and if the verification is correct, the steps S506 to S509 are executed.
S505, the first EP returns response information of transmission failure to the SP.
And S506, the first EP returns response information of successful transmission to the SP, and carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
Specifically, the specific implementation method and implementation principle of the above steps may refer to the descriptions of steps S201 to S202 in the second embodiment, which are not described herein again.
S507, the first EP judges whether the firmware upgrading process is finished.
S508, if yes, the first EP records the upgrading result and sends a broadcast message, and the broadcast message is used for informing the SP that the firmware upgrading process is completed
S519, after receiving the broadcast message, the SP sends an inquiry command to the first EP to inquire about an upgrade result.
Specifically, the specific implementation method and implementation principle of the above steps may refer to the descriptions of steps S301 to S303 in the third embodiment, which are not described herein again.
Fig. 7 is a flowchart of a sixth embodiment of a firmware upgrading method for a storage device according to the present application. The embodiment relates to a specific process of version switching after the firmware upgrade is successful. On the basis of the foregoing embodiment, after the hardware module to be subjected to firmware upgrade successfully performs firmware upgrade, the method may further include:
s601, the SP receives a version switching command input by a user and transmits the version switching command to the first EP; the version switching command is used for instructing the first EP to update the area identification information carried by the activation information, so that the area identification information carried by the updated activation information is different from the area identification information carried by the activation information before updating, and a firmware file is stored in a storage area corresponding to the area identification information carried by the updated activation information.
Specifically, after the hardware module to be subjected to firmware upgrade successfully performs firmware upgrade, two versions of firmware files are stored in the storage medium of the hardware module to be subjected to firmware upgrade, and the two versions of firmware files are stored in different storage areas. Therefore, when the storage medium of the hardware module to be subjected to firmware upgrade stores two versions of firmware files, switching can be performed between the two versions of firmware files.
Specifically, the user may input a version switching command to the SP through the PC. When the SP receives the version switch command, it transmits the version switch command to the first EP. Thus, when the first EP receives the version switching command, the corresponding switching operation is performed.
And S602, the first EP updates the activation information according to the version switching command, and restarts the hardware module to be subjected to firmware upgrade after updating the activation information, so that the hardware module to be subjected to firmware upgrade acquires a firmware file from a storage area corresponding to the area identification information carried by the updated activation information after being restarted, and starts to operate.
Specifically, when the first EP updates the activation information according to the version switching command, the first EP may first acquire current activation information and area identification information of a storage area where the firmware file is currently stored, and then update the activation information according to the area identification information carried by the current activation information and the acquired area identification information of the storage area where the firmware file is currently stored. With reference to the above example, for example, in the first example, the current activation information acquired by the first EP is: activation region: and B, the obtained area identification information of the storage area where the firmware file is currently stored is a and B (that is, the firmware files are stored in both the storage areas a and B), so that the activation information is updated, and the updated activation information is: activation region: in this way, after the hardware device (e.g., the battery module 1 in the first example) to be upgraded with firmware is restarted, the firmware file will be acquired from the storage area a. For another example, in the second example, the current activation information acquired by the first EP is: activation region: and E, the obtained area identification information of the current storage area storing the firmware file is D and E, so that the activation information is updated, and the updated activation information is as follows: activation region: and D, acquiring the firmware file from the storage area D after the hardware module (the fan module 3 in the example II) to be subjected to firmware upgrade is restarted.
The method for upgrading firmware of a storage device according to this embodiment further provides a method for switching versions after a hardware module to be upgraded successfully upgrades firmware, and specifically, after the hardware module to be upgraded successfully upgrades firmware, if a first EP receives a version switching command input by a user, the first EP updates activation information according to the version switching command, so that region identification information carried by updated activation information is different from region identification information carried by activation information before updating, a firmware file is stored in a storage region corresponding to the region identification information carried by the updated activation information, and after the activation information is updated, the hardware module to be upgraded is restarted, so that the hardware module to be upgraded acquires a firmware file from a storage region corresponding to the region identification information carried by the updated activation information and starts to operate after the hardware module to be upgraded is restarted. Therefore, based on the method, the user can switch between the firmware files of two different versions of the hardware module to be subjected to firmware upgrading so as to select the firmware file capable of meeting the requirements of the user for use.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a memory device according to the present invention. The storage device may be implemented by software, hardware, or a combination of software and hardware, and may be a separate storage device or a storage device integrated in another device. As shown in fig. 1, the storage device provided in this embodiment includes a storage control unit SPU and at least one disk cabinet unit DSU, a storage controller module SP is disposed in the SPU, a disk cabinet control module EP is disposed in each DSU, and the SP is connected to the EP,
the SP is used for receiving a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in the DSU; the SP is also used for acquiring the target upgrading file according to the identification information of the target upgrading file and the address information of the target upgrading file;
the SP is further configured to transmit the target upgrade file to a first EP corresponding to the hardware module to be subjected to firmware upgrade, where the first EP is an EP arranged in the same DSU as the hardware module to be subjected to firmware upgrade;
and the first EP is used for upgrading the firmware of the hardware module to be upgraded according to the target upgrading file after receiving the target upgrading file.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the header file information carried by the target upgrade file includes a preset check method and a check value, and the first EP is further specifically configured to check whether the target upgrade file is correct according to the preset check method and the check value, return response information of successful transmission to the SP when the target upgrade file is correct, and perform firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the first EP is further configured to determine whether the firmware upgrade process is completed, record an upgrade result when it is determined that the firmware upgrade process is completed, and send a broadcast message, where the broadcast message is used to notify the SP that the firmware upgrade process is completed.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the SP is further configured to send a query command to the first EP to query an upgrade result after receiving the broadcast message.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the storage medium of the hardware module to be firmware upgraded comprises at least two storage areas, at least one of the at least two storage areas stores a firmware file of the hardware module to be firmware upgraded, and one of the at least two storage areas stores activation information, wherein the activation information carries area identification information, the area identification information is used for representing a currently activated storage area, and the first EP is further used for determining a currently activated first storage area according to the area identification information carried in the activation information;
the first EP is further configured to set a target address of a firmware upgrade program as area identification information corresponding to a second storage area, where the second storage area is different from the first storage area;
the first EP is further configured to start the firmware upgrade program, so as to upgrade the firmware of the hardware module to be subjected to firmware upgrade through the firmware upgrade program and the target upgrade file, and update the area identification information carried by the activation information to the area identification information corresponding to the second storage area after the firmware upgrade process is completed and the upgrade result shows that the upgrade is successful.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the SP is further configured to receive a version switching command input by a user, and transmit the version switching command to the first EP; the version switching command is used for indicating the first EP to update the area identification information carried by the activation information, so that the area identification information carried by the updated activation information is different from the area identification information carried by the activation information before updating, and a firmware file is stored in a storage area corresponding to the area identification information carried by the updated activation information;
the first EP is further configured to update the activation information according to the version switching command, and restart the hardware module to be subjected to firmware upgrade after the activation information is updated, so that after the hardware module to be subjected to firmware upgrade is restarted, the firmware file is acquired from the storage area corresponding to the area identification information carried by the updated activation information and starts to run.
The storage device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 7, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A firmware upgrading method for a storage device, wherein the storage device includes a storage control unit (SPU) and a plurality of cascaded disk cabinet units (DSUs), a storage controller module (SP) is arranged in the SPU, a disk cabinet control module (EP) is arranged in each DSU, the SP is connected with an EP in a first DSU of the DSUs, and the EPs in the DSUs are cascaded step by step, the method comprising:
the SP receives a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in a DSU; the identification information of the hardware module to be subjected to firmware upgrading comprises name information of the hardware module to be subjected to firmware upgrading and DSU information of the hardware module to be subjected to firmware upgrading;
when the firmware file stored in the address indicated by the address information of the target upgrade file is the target upgrade file carrying header file information, the SP acquires the target upgrade file; when the firmware file stored in the address indicated by the address information of the target upgrade file is an original firmware file without header file information, the SP acquires the header file information of the original firmware file, and then encapsulates the header file information of the original firmware file to obtain the target upgrade file; the header file information at least comprises a preset checking method and a checking value;
the SP divides the target upgrading file with the maximum load larger than the single SES command and transmits the divided target upgrading file to a first EP (serial attached peripheral interface) included by a DSU (digital signal processing unit) indicated by DSU information of the hardware module to be upgraded through an SAS (serial attached SCSI) protocol, and the first EP determines the hardware module to be upgraded, which is in the same DSU as the first EP, based on the name information of the hardware module to be upgraded;
after receiving the target upgrade file, the first EP verifies whether the target upgrade file is correct according to a preset verification method and a preset verification value included in header file information carried by the target upgrade file; and if the verification is correct, the first EP returns response information of successful transmission to the SP, and carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
2. The method of claim 1, wherein the first EP, after performing a firmware upgrade on the hardware module to be firmware upgraded according to the target upgrade file, further comprises:
the first EP judges whether the firmware upgrading process is finished or not;
if yes, the first EP records an upgrade result and sends a broadcast message, where the broadcast message is used to inform the SP that the firmware upgrade process is completed.
3. The method of claim 2, wherein after the SP receives the broadcast message, the method further comprises:
and the SP sends a query command to the first EP so as to query an upgrading result.
4. The method according to any one of claims 1 to 3, wherein the storage medium of the hardware module to be firmware upgraded includes at least two storage areas, at least one of the at least two storage areas stores a firmware file of the hardware module to be firmware upgraded, and one of the at least two storage areas stores activation information, where the activation information carries area identification information, the area identification information is used to characterize a currently activated storage area, and the first EP performs firmware upgrade on the hardware module to be firmware upgraded according to the target upgrade file, specifically including:
the first EP determines a currently activated first storage area according to the area identification information carried in the activation information;
the first EP sets a target address of a firmware upgrading program as area identification information corresponding to a second storage area, wherein the second storage area is different from the first storage area;
and the first EP starts a firmware upgrading program to upgrade the firmware of the hardware module to be upgraded through the firmware upgrading program and the target upgrading file, and updates the area identification information carried by the activation information into the area identification information corresponding to the second storage area after the firmware upgrading process is completed and the upgrading result shows that the upgrading is successful.
5. The method of claim 4, wherein after the hardware module to be firmware upgraded successfully performs a firmware upgrade, the method further comprises:
the SP receives a version switching command input by a user and transmits the version switching command to the first EP; the version switching command is used for indicating the first EP to update the area identification information carried by the activation information, so that the area identification information carried by the updated activation information is different from the area identification information carried by the activation information before updating, and a firmware file is stored in a storage area corresponding to the area identification information carried by the updated activation information;
and the first EP updates the activation information according to the version switching command, and restarts the hardware module to be subjected to firmware upgrading after updating the activation information, so that the hardware module to be subjected to firmware upgrading acquires a firmware file from a storage area corresponding to the area identification information carried by the updated activation information and starts to operate after being restarted.
6. A storage device, comprising a storage control unit SPU and a plurality of cascaded disk cabinet units DSU, wherein a storage controller module SP is arranged in the SPU, a disk cabinet control module EP is arranged in each DSU, the SP is connected with an EP in a first DSU of the DSUs, the EPs in the DSUs are cascaded step by step, wherein,
the SP is used for receiving a firmware upgrading command input by a user, wherein the firmware upgrading command carries identification information of a hardware module to be subjected to firmware upgrading, identification information of a target upgrading file and address information of the target upgrading file, and the hardware module to be subjected to firmware upgrading is a hardware module arranged in the DSU; the identification information of the hardware module to be subjected to firmware upgrading comprises name information of the hardware module to be subjected to firmware upgrading and DSU information of the hardware module to be subjected to firmware upgrading; the SP is also used for acquiring the target upgrading file when the firmware file stored in the address indicated by the address information of the target upgrading file is the target upgrading file carrying header file information; when the firmware file stored in the address indicated by the address information of the target upgrade file is an original firmware file without header file information, the SP acquires the header file information of the original firmware file, and then encapsulates the header file information of the original firmware file to obtain the target upgrade file; the header file information at least comprises a preset checking method and a checking value;
the SP is also used for transmitting the target upgrading file with the maximum load larger than the single SES command to a first EP (serial port interface) included by a DSU (hardware upgrading unit) indicated by DSU information of a hardware module to be upgraded through an SAS (serial attached small computer system interface) protocol after being segmented, and determining the hardware module to be upgraded, which is in the same DSU as the first EP, by the first EP based on the name information of the hardware module to be upgraded;
the first EP is used for verifying whether the target upgrade file is correct or not according to a preset verification method and a preset verification value included in header file information carried by the target upgrade file after the target upgrade file is received; and if the verification is correct, the first EP returns response information of successful transmission to the SP, and carries out firmware upgrade on the hardware module to be subjected to firmware upgrade according to the target upgrade file.
7. The storage device according to claim 6, wherein the first EP is further configured to determine whether a firmware upgrade process is completed, and upon determining that the firmware upgrade process is completed, record an upgrade result and send a broadcast message, wherein the broadcast message is configured to notify the SP that the firmware upgrade process is completed.
8. The storage device of claim 7, wherein the SP is further configured to send a query command to the first EP to query the upgrade result after receiving the broadcast message.
CN201710267535.9A 2017-04-21 2017-04-21 Firmware upgrading method of storage device and storage device Active CN107066300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710267535.9A CN107066300B (en) 2017-04-21 2017-04-21 Firmware upgrading method of storage device and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710267535.9A CN107066300B (en) 2017-04-21 2017-04-21 Firmware upgrading method of storage device and storage device

Publications (2)

Publication Number Publication Date
CN107066300A CN107066300A (en) 2017-08-18
CN107066300B true CN107066300B (en) 2021-08-24

Family

ID=59603353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710267535.9A Active CN107066300B (en) 2017-04-21 2017-04-21 Firmware upgrading method of storage device and storage device

Country Status (1)

Country Link
CN (1) CN107066300B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110268386A (en) * 2018-01-19 2019-09-20 深圳市大疆创新科技有限公司 A kind of firmware upgrade method, device, electronic equipment and control equipment
CN109471642A (en) * 2018-11-15 2019-03-15 北京行易道科技有限公司 Firmware generates storage method and device, firmware start method and device
CN110347414A (en) * 2019-07-15 2019-10-18 西安易朴通讯技术有限公司 Firmware update, device, equipment and computer readable storage medium
CN113765957B (en) * 2020-06-04 2022-09-16 华为技术有限公司 Model updating method and device
WO2022104530A1 (en) * 2020-11-17 2022-05-27 中山市江波龙电子有限公司 Method for upgrading firmware of storage apparatus, control device, and storage apparatus
CN112328328B (en) * 2020-11-24 2023-07-25 北京百度网讯科技有限公司 Method, device, equipment and storage medium for equipment driving reload
CN114020306A (en) * 2021-09-28 2022-02-08 苏州浪潮智能科技有限公司 Method and device for updating hard disk firmware, electronic equipment and storage medium
CN113849215A (en) * 2021-12-01 2021-12-28 武汉天喻信息产业股份有限公司 Wireless firmware upgrading method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944029A (en) * 2009-07-10 2011-01-12 环旭电子股份有限公司 Updating device and updating method of magnetic disk firmware
CN105511990A (en) * 2015-12-09 2016-04-20 浪潮电子信息产业股份有限公司 Novel dual-redundancy storage control node framework based on fusion framework
CN106445577A (en) * 2015-08-12 2017-02-22 广达电脑股份有限公司 Updating method, server system and non-transitory computer readable medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675258B1 (en) * 2000-06-30 2004-01-06 Lsi Logic Corporation Methods and apparatus for seamless firmware update and propagation in a dual raid controller system
CN103186402A (en) * 2011-12-30 2013-07-03 英业达股份有限公司 Storage equipment firmware updating system
CN103092786A (en) * 2013-02-25 2013-05-08 浪潮(北京)电子信息产业有限公司 Double-control double-active storage control system and method
CN105468383A (en) * 2014-07-21 2016-04-06 上海庆科信息技术有限公司 Data upgrading method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944029A (en) * 2009-07-10 2011-01-12 环旭电子股份有限公司 Updating device and updating method of magnetic disk firmware
CN106445577A (en) * 2015-08-12 2017-02-22 广达电脑股份有限公司 Updating method, server system and non-transitory computer readable medium
CN105511990A (en) * 2015-12-09 2016-04-20 浪潮电子信息产业股份有限公司 Novel dual-redundancy storage control node framework based on fusion framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MacroSANMS2510MS2520系列存储设备图形界面用户手册;huercao889;《https://www.docin.com/p-844122825.html》;20140625;第1-14,1-16,2-17,5-54,5-55,5-56,7-105页 *

Also Published As

Publication number Publication date
CN107066300A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN109460245B (en) Remote upgrading method for embedded system
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
US9983790B2 (en) System management controller and method of configuration file backup and recovery
CN102667716A (en) Methods and devices for updating firmware of a component using a firmware update application
CN107980119B (en) Server management method and server
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
KR20110076432A (en) System for upgrading multi-program by using can communication and method thereof
WO2017016282A1 (en) Software upgrading method and apparatus, and computer storage medium
CN111104139A (en) Firmware upgrading method, device, equipment and storage medium
CN111104147A (en) BMC upgrading method, device, terminal and storage medium
CN113760332A (en) Software upgrading method and electronic equipment
CN114840242A (en) System upgrading method and device of electronic equipment and readable storage medium
CN102880478B (en) Oftware updating method
CN111752577A (en) System version upgrading method and device
CN107239303B (en) Application program update package generation method and device and application program update method and device
CN106775636B (en) Battery firmware processing method and device and charging cabinet system
CN111984287A (en) Equipment upgrading method and system
CN106484442B (en) Server system and method for updating startup mapping file
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
CN115098301B (en) Snapshot generation method and system for stateful application in cloud primary scene
CN114489711A (en) Terminal upgrading method and device and storage medium
CN114594970A (en) DSP software remote upgrading system and method
CN113377425A (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN115878145B (en) Electronic device, system upgrading method thereof and computer readable storage medium

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