[go: up one dir, main page]

CN103955386B - Method and device for upgrading storage equipment firmware - Google Patents

Method and device for upgrading storage equipment firmware Download PDF

Info

Publication number
CN103955386B
CN103955386B CN201410164251.3A CN201410164251A CN103955386B CN 103955386 B CN103955386 B CN 103955386B CN 201410164251 A CN201410164251 A CN 201410164251A CN 103955386 B CN103955386 B CN 103955386B
Authority
CN
China
Prior art keywords
firmware
upgraded
upgrading
data
firmware data
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
CN201410164251.3A
Other languages
Chinese (zh)
Other versions
CN103955386A (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.)
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SILICONGO SEMICONDUCTOR 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 SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Priority to CN201410164251.3A priority Critical patent/CN103955386B/en
Publication of CN103955386A publication Critical patent/CN103955386A/en
Application granted granted Critical
Publication of CN103955386B publication Critical patent/CN103955386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for upgrading storage equipment firmware. The method comprises the steps of when a firmware upgrading command is received, obtaining the data of the firmware to be upgraded corresponding to the firmware upgrading command and obtaining firmware data before upgrading from a firmware storage area of storage equipment; upgrading the firmware data before the upgrading into the data of the firmware to be upgraded to form new firmware data; after the firmware storage area is formatted, writing the new firmware data into the firmware storage area. The invention also discloses a device for upgrading the storage equipment firmware. The problem that user data are lost as the user data formerly generated in the storage equipment cannot be identified by the upgraded firmware is effectively avoided, the integrity of the user data is ensured, and the user experience is improved.

Description

The method and device of storage device firmware upgrading
Technical field
The present invention relates to storage device technical field, more particularly to the method and device of storage device firmware upgrading.
Background technology
With the development in epoch, increasing storage device (for example, USB flash disk, portable hard drive etc.) enters into the day of people In the middle of often life, work.When there is Bug or incompatible situation when using storage device in user, can be by from storage In the firmware upgrade data that equipment vendors send, corresponding firmware upgrade data are found, original firmware is upgraded, with effective Solve Bug or incompatible situation that storage device is present.In existing storage device, usual firmware data is all stored in depositing The fixed position of storage equipment, and it is limited to distribute to the memory space of firmware data.Therefore, enter in the firmware to storage device In the middle of the process of row upgrading, first whole firmware data memory block is formatted and (is wiped the firmware data of firmware storage areas Except), then firmware data to be upgraded is written in firmware storage areas.
However, according to above-mentioned this existing firmware upgrade mode, when firmware upgrade is carried out to storage device, because needing First whole firmware data memory block is formatted, then new firmware data to be upgraded is written in firmware storage areas, led Firmware identification after causing the user data for previously having produced in storage device to be upgraded, and generate user data loss Problem.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill Art.
The content of the invention
The main object of the present invention is the method and device for providing storage device firmware upgrading, it is intended to realize ensureing number of users According to integrality.
For achieving the above object, the present invention provides a kind of method of storage device firmware upgrading, and the method comprising the steps of:
When firmware upgrade instruction is received, firmware data to be upgraded corresponding with firmware upgrade instruction is obtained, and The firmware data before upgrading is obtained from the firmware storage areas of storage device;
Firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas.
Preferably, firmware data includes storage algorithm information, and the firmware data by before the upgrading is updated to described In firmware data to be upgraded, to form including for new firmware data:
Whether analysis storage algorithm to be upgraded is consistent with the storage algorithm before upgrading;
When the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, by the firmware before the upgrading Data are updated in the firmware data to be upgraded, to form new firmware data;
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, by the upgrading before consolidate Number of packages evidence is converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to described to be upgraded In firmware data, to form new firmware data.
Preferably, the firmware data by before the upgrading is updated in the firmware data to be upgraded, new to be formed Firmware data the step of include:
It is determined that the version information and the version information of firmware data to be upgraded of the front firmware data of upgrading;
Whether the version of firmware data is less than the version of firmware data to be upgraded before analysis upgrading;
When the version of firmware data before upgrading is less than the version of firmware data to be upgraded, by the firmware number before the upgrading According to being updated in the firmware data to be upgraded, to form new firmware data;
When the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, the storage device is not consolidated Part is upgraded.
Preferably, it is described when firmware upgrade instruction is received, obtain corresponding to be upgraded with firmware upgrade instruction Firmware data and from the firmware storage areas of storage device obtain upgrading before firmware data the step of include:
When firmware upgrade instruction is received, the storage device is restarted, into firmware upgrade operational mode;
Obtain firmware data to be upgraded corresponding with firmware upgrade instruction and from the firmware storage areas of storage device Obtain the firmware data before upgrading.
Preferably, it is described after the firmware storage areas are formatted, by the new firmware data write firmware storage After step in area, the method also includes step:
In firmware upgrade process, prompting message is sent, to point out the progress of user's firmware upgrade;And/or
After the completion of firmware upgrade, information is sent, to point out user's firmware upgrade to complete;And/or
After the completion of firmware upgrade, the storage device is restarted, into normal operation mode.
The present invention further provides a kind of device of storage device firmware upgrading, the device includes:
Acquisition module, for when firmware upgrade instruction is received, acquisition is corresponding with firmware upgrade instruction to be waited to rise Level firmware data, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;
Processing module, for the firmware data before the upgrading to be updated in the firmware data to be upgraded, to be formed New firmware data;
Upgraded module, it is for after the firmware storage areas are formatted, the new firmware data write is described solid In part memory block.
Preferably, firmware data includes storage algorithm information, and the device also includes the first analysis module,
Whether first analysis module, the storage algorithm for analyzing to be upgraded is consistent with the storage algorithm before upgrading;
The processing module, is additionally operable to consistent with the storage algorithm before the upgrading in the storage algorithm to be upgraded When, the firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, by the upgrading before consolidate Number of packages evidence is converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to described to be upgraded In firmware data, to form new firmware data.
Preferably, the device also includes the second analysis module,
The processing module, is additionally operable to determine the version information and the version of firmware data to be upgraded of firmware data before upgrading Information;
Whether second analysis module, the version for firmware data before analysis upgrading is less than firmware data to be upgraded Version;
The upgraded module, is additionally operable to when the version of firmware data before upgrading is less than the version of firmware data to be upgraded, Firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
When the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, the storage device is not consolidated Part is upgraded.
Preferably, the processing module, is additionally operable to, when firmware upgrade instruction is received, restart the storage device, enters Enter firmware upgrade operational mode;
The acquisition module, is additionally operable to obtain firmware data to be upgraded corresponding with firmware upgrade instruction and from storage The firmware data before upgrading is obtained in the firmware storage areas of equipment.
Preferably, the device also includes reminding module,
The reminding module, in firmware upgrade process, sending prompting message, to point out entering for user's firmware upgrade Degree;
After the completion of firmware upgrade, information is sent, to point out user's firmware upgrade to complete;
The processing module, is additionally operable to after the completion of firmware upgrade, restarts the storage device, enters common operation mould Formula.
Hinge structure, the present invention is by the way that when firmware upgrade instruction is received, acquisition and the firmware upgrade are instructed Corresponding firmware data to be upgraded, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;By the liter Firmware data before level is updated in the firmware data to be upgraded, to form new firmware data;The firmware is being stored After area formats, the new firmware data is write in the firmware storage areas.It is prevented effectively from and previously produced in storage device Firmware after raw user data cannot be upgraded is recognized, and generates the problem of user data loss, it is ensured that user data Integrality, improve Consumer's Experience.
Description of the drawings
Fig. 1 is the schematic flow sheet of the method first embodiment of storage device firmware upgrading of the present invention;
Fig. 2 is the refinement schematic flow sheet of step S20 in Fig. 1;
Fig. 3 is the schematic flow sheet of the method second embodiment of storage device firmware upgrading of the present invention;
Fig. 4 is the schematic flow sheet of the method 3rd embodiment of storage device firmware upgrading of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the device first embodiment of storage device firmware upgrading of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the device second embodiment of storage device firmware upgrading of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the device 3rd embodiment of storage device firmware upgrading of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
As shown in figure 1, the schematic flow sheet of the method first embodiment for storage device firmware of the present invention upgrading.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing What should not all depart from the scope covered in following technical scheme around the embodiment that inventive concept builds:
When firmware upgrade instruction is received, firmware data to be upgraded corresponding with firmware upgrade instruction is obtained, and The firmware data before upgrading is obtained from the firmware storage areas of storage device;Firmware data before the upgrading is updated to described In firmware data to be upgraded, to form new firmware data;After the firmware storage areas are formatted, by the new firmware Data are write in the firmware storage areas.
The following is the concrete steps that the present embodiment is done step-by-step storage device firmware upgrading:
Step S10, when firmware upgrade instruction is received, obtains firmware to be upgraded corresponding with firmware upgrade instruction Data, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;
User occur during using storage device Bug or it is incompatible when, or storage device manufacturer issue When the firmware upgrade of New function application is announced, firmware data to be upgraded is downloaded from network, or firmware data to be upgraded copied Shellfish gets off, and by wired or wirelessly to storage device carry out firmware upgrade.The method for performing the embodiment of the present invention Main body be preferably storage device.
When user needs to upgrade the firmware of storage device, the upgrade button in storage device is clicked on, or passed through The firmware upgrade menu that storage device is provided, selects firmware upgrade.When firmware upgrade instruction is received, storage device restarts institute Storage device is stated, and into firmware upgrade operational mode, storage device obtains corresponding to be upgraded with firmware upgrade instruction Firmware data.For example, obtain from the other equipment for communicating with connection, or, download from network etc..Storage device sets from storage The firmware data before upgrading is obtained in standby firmware storage, that is, obtains current stored key message in firmware storage areas. User can only be read and/or data storage by the firmware data from storage device.The firmware data may include one Algorithm form data, the firmware produced during critical operational parameters, storage algorithm information, storage device use during secondary upgrading Positional information etc. of the memory block in storage device.
Step S20, the firmware data before the upgrading is updated in the firmware data to be upgraded, to form new consolidating Number of packages evidence;
After firmware data and the firmware data to be upgraded before upgrading in firmware storage areas are successfully got, storage Equipment is updated to the firmware data of the upgrading in the firmware data to be upgraded, to form new firmware data.Firmware number According to renewal process can include replace, modification, merge etc. operation.
Further, in order to be able to the firmware upgrade of storage device is better achieved, with reference to Fig. 2, step S20 includes:
Step S201, it is determined that the version information and the version information of firmware data to be upgraded of the front firmware data of upgrading;
Step S202, whether the version of firmware data is less than the version of firmware data to be upgraded before analysis upgrading;
Each firmware data in firmware storage areas carries version information, that is, carry the version of storage device firmware This mark, for example, V1.0, V2.0, V3.0 etc., represent respectively for version 1.0, version 2 .0 and version 3 .0, version 3 .0 is higher than Version 2 .0, version 2 .0 are higher than version 1.0.Storage device upgrade in firmware storage areas are got before firmware data and described During firmware data to be upgraded, the version information of the firmware data before upgrading is further obtained, and obtain the firmware number to be upgraded According to version information, if so, whether the version of firmware data then perform less than the version of firmware data to be upgraded before analysis upgrading Step S203, if it is not, then execution step S204.
Step S203, when the version of firmware data before upgrading is less than the version of firmware data to be upgraded, by the upgrading Front firmware data is updated in the firmware data to be upgraded, to form new firmware data;
Step S204, when the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, does not deposit to described The firmware of storage equipment is upgraded.
For example, if the version information of firmware data is V1.0 before upgrading, the version information of firmware data to be upgraded is V2.0, Then determine the version of the version less than firmware data to be upgraded of firmware data before upgrading, the firmware data before the upgrading is updated Into the firmware data to be upgraded, to form new firmware data.If the version information of firmware data is V3.0 before upgrading, treat The version information of firmware updating data is V2.0, it is determined that version of the version of firmware data higher than firmware data to be upgraded before upgrading This, it is not necessary to the firmware of storage device is upgraded, the firmware of the storage device is not upgraded.Equally before upgrading When the version of firmware data is identical with the version of firmware data to be upgraded, also the firmware of the storage device do not upgraded.
Step S30, after the firmware storage areas are formatted, by the new firmware data firmware storage is write Qu Zhong.
Firmware data before by the upgrading is updated in the firmware data to be upgraded, forms new firmware data Afterwards, the firmware storage areas are formatted, will firmware storage areas storage firmware data erasing, to write new firmware Data.After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas, that is, completed The firmware upgrade of the storage device.User can by being updated to the firmware data to be upgraded in upgrading before firmware number According to conducting interviews to the user data for storing before, the problem of user data loss in firmware upgrade process, equally, user are prevented Back up without the user data to storing, while reducing the flow process of storage device firmware upgrading, it is ensured that number of users According to integrality, improve Consumer's Experience.
The embodiment of the present invention is by when firmware upgrade instruction is received, obtaining treats corresponding with firmware upgrade instruction Firmware updating data, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;Consolidating before by the upgrading Number of packages evidence is updated in the firmware data to be upgraded, to form new firmware data;The firmware storage areas are being formatted Afterwards, the new firmware data is write in the firmware storage areas.It is prevented effectively from the user for previously producing in storage device Firmware after data cannot be upgraded is recognized, and generates the problem of user data loss, it is ensured that the integrality of user data, Improve Consumer's Experience.
As shown in figure 3, the schematic flow sheet of the method second embodiment for storage device firmware of the present invention upgrading.Based on upper First embodiment is stated, firmware data includes storage algorithm information, and step S20 can also include:
Whether consistent with the storage algorithm before upgrading step S205, analyze storage algorithm to be upgraded;
In the firmware data and the firmware data to be upgraded before upgrading in getting firmware storage areas, storage device is entered One step obtains the storage algorithm information that the firmware data before upgrading includes, and obtains the storage in the firmware data to be upgraded Algorithm information, whether with storage algorithm upgrading before consistent, if so, then execution step S206 if analyzing storage algorithm to be upgraded, If it is not, then execution step S207.
Step S206, when the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, by the liter Firmware data before level is updated in the firmware data to be upgraded, to form new firmware data;
Step S207, when the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, will be described Firmware data before upgrading is converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to In the firmware data to be upgraded, to form new firmware data.
When the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, that is, the firmware data before upgrading Also can be identified according to the storage algorithm after upgrading.Storage device is updated to the firmware data before the upgrading described to be upgraded In firmware data, to form new firmware data, firmware data that will be before the upgrading is added to the firmware number to be upgraded According in, so that user can be by the user data of the digital independent to be upgraded after updating to former storage.
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, that is, the firmware number before upgrading According to can not be identified according to the storage algorithm after upgrading.Firmware data before the upgrading is converted to and described waits to rise by storage device The storage algorithm firmware data of level, and the firmware data after conversion is updated in the firmware data to be upgraded, it is new to be formed Firmware data, for example, by the algorithm form data of storage be converted to it is to be upgraded storage algorithm algorithm form data.Need to turn The firmware data changed is user it is upper upgrade to this after once upgrading is completed before, consolidating produced by user storage data Number of packages evidence.Firmware data before will upgrading is converted to the firmware data that can be recognized by the storage algorithm to be upgraded, then will Firmware data after conversion is added into the firmware data to be upgraded, so that user can be read by the data to be upgraded after updating The user data of storage, further effectively prevents the loss of user data before getting.
As shown in figure 4, the schematic flow sheet of the method 3rd embodiment for storage device firmware of the present invention upgrading.Based on upper The first and second embodiments are stated, after step S30, the method also includes step:
Step S40, after the completion of firmware upgrade, sends information, to point out user's firmware upgrade to complete.
After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas, In the new firmware data ablation process, i.e., in firmware upgrade process, prompting message is sent, to point out user firmware upgrade Progress, when the new firmware data write is completed, information is sent, to point out user's firmware upgrade to complete.Solid After the completion of part upgrading, the storage device is restarted, into normal operation mode.For user's normal storage data or experience admittedly New function after part upgrading etc..
The embodiment of the present invention by firmware upgrade process and after the completion of firmware upgrade, sending information, for Family understand in time storage device firmware upgrading situation, with time to burst, abnormal conditions be monitored and process in time, effectively Ensure the firmware upgrade of storage device.
As shown in figure 5, the high-level schematic functional block diagram of the device first embodiment for storage device firmware of the present invention upgrading.Should Device includes:Acquisition module 10, processing module 20, the first analysis module 30 and upgraded module 40.
Shown acquisition module 10, for when firmware upgrade instruction is received, obtaining corresponding with firmware upgrade instruction Firmware data to be upgraded, and from the firmware storage areas of storage device obtain upgrading before firmware data;
User occur during using storage device Bug or it is incompatible when, or storage device manufacturer issue When the firmware upgrade of New function application is announced, firmware data to be upgraded is downloaded from network, or firmware data to be upgraded copied Shellfish gets off, and by wired or wirelessly to storage device carry out firmware upgrade.The method for performing the embodiment of the present invention Main body be preferably storage device.
When user needs to upgrade the firmware of storage device, the upgrade button in storage device is clicked on, or passed through The firmware upgrade menu that storage device is provided, selects firmware upgrade.When firmware upgrade instruction is received, storage device restarts institute Storage device is stated, and into firmware upgrade operational mode, storage device obtains corresponding to be upgraded with firmware upgrade instruction Firmware data.For example, obtain from the other equipment for communicating with connection, or, download from network etc..Storage device sets from storage The firmware data before upgrading is obtained in standby firmware storage, that is, obtains current stored key message in firmware storage areas. User can only be read and/or data storage by the firmware data from storage device.The firmware data may include one Algorithm form data, the firmware produced during critical operational parameters, storage algorithm information, storage device use during secondary upgrading Positional information etc. of the memory block in storage device.
The processing module 20, for the firmware data before the upgrading to be updated in the firmware data to be upgraded, To form new firmware data;
After firmware data and the firmware data to be upgraded before upgrading in firmware storage areas are successfully got, storage Equipment is updated to the firmware data of the upgrading in the firmware data to be upgraded, to form new firmware data.Firmware number According to renewal process can include replace, modification, merge etc. operation.
In order to be able to the firmware upgrade of storage device is better achieved, the processing module 20 is additionally operable to:Step S201, it is determined that The version information and the version information of firmware data to be upgraded of firmware data before upgrading;
Whether the analysis module 30, the version for firmware data before analysis upgrading is less than the version of firmware data to be upgraded This;
Each firmware data in firmware storage areas carries version information, that is, carry the version of storage device firmware This mark, for example, V1.0, V2.0, V3.0 etc., represent respectively for version 1.0, version 2 .0 and version 3 .0, version 3 .0 is higher than Version 2 .0, version 2 .0 are higher than version 1.0.Storage device upgrade in firmware storage areas are got before firmware data and described During firmware data to be upgraded, the version information of the firmware data before upgrading is further obtained, and obtain the firmware number to be upgraded According to version information, whether the version of firmware data less than the version of firmware data to be upgraded before analysis upgrading.
The processing module 20 is additionally operable to:Version of the version of firmware data less than firmware data to be upgraded before upgrading When, the firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
When the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, the storage device is not consolidated Part is upgraded.
For example, if the version information of firmware data is V1.0 before upgrading, the version information of firmware data to be upgraded is V2.0, Then determine the version of the version less than firmware data to be upgraded of firmware data before upgrading, the firmware data before the upgrading is updated Into the firmware data to be upgraded, to form new firmware data.If the version information of firmware data is V3.0 before upgrading, treat The version information of firmware updating data is V2.0, it is determined that version of the version of firmware data higher than firmware data to be upgraded before upgrading This, it is not necessary to the firmware of storage device is upgraded, the firmware of the storage device is not upgraded.Equally before upgrading When the version of firmware data is identical with the version of firmware data to be upgraded, also the firmware of the storage device do not upgraded.
The upgraded module 40, for after the firmware storage areas are formatted, by the new firmware data write In the firmware storage areas.
Firmware data before by the upgrading is updated in the firmware data to be upgraded, forms new firmware data Afterwards, the firmware storage areas are formatted, will firmware storage areas storage firmware data erasing, to write new firmware Data.After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas, that is, completed The firmware upgrade of the storage device.User can by being updated to the firmware data to be upgraded in upgrading before firmware number According to conducting interviews to the user data for storing before, the problem of user data loss in firmware upgrade process, equally, user are prevented Back up without the user data to storing, while reducing the flow process of storage device firmware upgrading, it is ensured that number of users According to integrality, improve Consumer's Experience.
The embodiment of the present invention is by when firmware upgrade instruction is received, obtaining treats corresponding with firmware upgrade instruction Firmware updating data, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;Consolidating before by the upgrading Number of packages evidence is updated in the firmware data to be upgraded, to form new firmware data;The firmware storage areas are being formatted Afterwards, the new firmware data is write in the firmware storage areas.It is prevented effectively from the user for previously producing in storage device Firmware after data cannot be upgraded is recognized, and generates the problem of user data loss, it is ensured that the integrality of user data, Improve Consumer's Experience.
As shown in fig. 6, the high-level schematic functional block diagram of the device second embodiment for storage device firmware of the present invention upgrading.Should Device also includes:Second analysis module 50.
Further, second analysis module 50, for analyze storage algorithm to be upgraded whether with upgrading before deposit Storage algorithm is consistent;
In the firmware data and the firmware data to be upgraded before upgrading in getting firmware storage areas, storage device is entered One step obtains the storage algorithm information that the firmware data before upgrading includes, and obtains the storage in the firmware data to be upgraded Whether consistent with the storage algorithm before upgrading algorithm information, analyze storage algorithm to be upgraded.
The processing module 20 is additionally operable to:It is consistent with the storage algorithm before the upgrading in the storage algorithm to be upgraded When, the firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, by the upgrading before consolidate Number of packages evidence is converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to described to be upgraded In firmware data, to form new firmware data.Second analysis module 50 can have phase with the first analysis module 30 The module of congenerous, i.e., described second analysis module can be the first analysis module, or with the first analysis module 30 not Same module.
When the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, that is, the firmware data before upgrading Also can be identified according to the storage algorithm after upgrading.Storage device is updated to the firmware data before the upgrading described to be upgraded In firmware data, to form new firmware data, firmware data that will be before the upgrading is added to the firmware number to be upgraded According in, so that user can be by the user data of the digital independent to be upgraded after updating to former storage.
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, that is, the firmware number before upgrading According to can not be identified according to the storage algorithm after upgrading.Firmware data before the upgrading is converted to and described waits to rise by storage device The storage algorithm firmware data of level, and the firmware data after conversion is updated in the firmware data to be upgraded, it is new to be formed Firmware data, for example, by the algorithm form data of storage be converted to it is to be upgraded storage algorithm algorithm form data.Need to turn The firmware data changed is user it is upper upgrade to this after once upgrading is completed before, consolidating produced by user storage data Number of packages evidence.Firmware data before will upgrading is converted to the firmware data that can be recognized by the storage algorithm to be upgraded, then will Firmware data after conversion is added into the firmware data to be upgraded, so that user can be read by the data to be upgraded after updating The user data of storage, further effectively prevents the loss of user data before getting.
As shown in fig. 7, the high-level schematic functional block diagram of the device 3rd embodiment for storage device firmware of the present invention upgrading.Should Device also includes:Reminding module 60.
The reminding module 60, for after the completion of firmware upgrade, sending information, to point out user's firmware upgrade complete Into.
After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas, In the new firmware data ablation process, i.e., in firmware upgrade process, prompting message is sent, to point out user firmware upgrade Progress, when the new firmware data write is completed, information is sent, to point out user's firmware upgrade to complete.Solid After the completion of part upgrading, the storage device is restarted, into normal operation mode.For user's normal storage data or experience admittedly New function after part upgrading etc..
The embodiment of the present invention by firmware upgrade process and after the completion of firmware upgrade, sending information, for Family understand in time storage device firmware upgrading situation, with time to burst, abnormal conditions be monitored and process in time, effectively Ensure the firmware upgrade of storage device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.Embodiment party by more than The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software The mode of hardware platform is realizing, naturally it is also possible to by hardware, but in many cases the former is more preferably embodiment.It is based on Such understanding, the part that technical scheme substantially contributes in other words to prior art can be with software product Form embody, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including Some instructions are used so that a station terminal equipment (can be mobile phone, computer, server, or network equipment etc.) performs this Method described in bright each embodiment.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention, every utilization is not thereby limited Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.

Claims (8)

1. a kind of method that storage device firmware is upgraded, it is characterised in that the method comprising the steps of:
When receiving firmware upgrade and instructing, corresponding with firmware upgrade instruction firmware data to be upgraded is obtained, and from depositing The firmware data before upgrading is obtained in the firmware storage areas of storage equipment;
Firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
After the firmware storage areas are formatted, the new firmware data is write in the firmware storage areas;
Firmware data includes storage algorithm information, and the firmware data by before the upgrading is updated to the firmware number to be upgraded According in, to form including for new firmware data:
Whether analysis storage algorithm to be upgraded is consistent with the storage algorithm before upgrading;
When the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, by the firmware data before the upgrading In being updated to the firmware data to be upgraded, to form new firmware data;
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, by the firmware number before the upgrading According to being converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to into the firmware to be upgraded In data, to form new firmware data.
2. the method for storage device firmware as claimed in claim 1 upgrading, it is characterised in that it is described by the upgrading before consolidate Number of packages includes according to being updated in the firmware data to be upgraded, the step of to form new firmware data:
It is determined that the version information and the version information of firmware data to be upgraded of the front firmware data of upgrading;
Whether the version of firmware data is less than the version of firmware data to be upgraded before analysis upgrading;
When the version of firmware data before upgrading is less than the version of firmware data to be upgraded, by the firmware data before the upgrading more In the new extremely firmware data to be upgraded, to form new firmware data;
When the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, the firmware of the storage device is not entered Row upgrading.
3. the method that storage device firmware as claimed in claim 1 or 2 is upgraded, it is characterised in that described to receive firmware During upgrade command, firmware data to be upgraded corresponding with firmware upgrade instruction and the firmware storage areas from storage device are obtained It is middle obtain upgrading before firmware data the step of include:
When firmware upgrade instruction is received, the storage device is restarted, into firmware upgrade operational mode;
Obtain firmware data to be upgraded corresponding with firmware upgrade instruction and obtain from the firmware storage areas of storage device Firmware data before upgrading.
4. the method for storage device firmware as claimed in claim 1 or 2 upgrading, it is characterised in that described by the firmware After memory block formats, the new firmware data is write after the step in firmware storage areas, the method also includes step:
In firmware upgrade process, prompting message is sent, to point out the progress of user's firmware upgrade;And/or
After the completion of firmware upgrade, information is sent, to point out user's firmware upgrade to complete;And/or
After the completion of firmware upgrade, the storage device is restarted, into normal operation mode.
5. the device that a kind of storage device firmware is upgraded, it is characterised in that the device includes:
Acquisition module, for when firmware upgrade instruction is received, obtaining corresponding to be upgraded solid with firmware upgrade instruction Number of packages evidence, and the firmware data before upgrading is obtained from the firmware storage areas of storage device;
Processing module is new to be formed for the firmware data before the upgrading to be updated in the firmware data to be upgraded Firmware data;
Upgraded module, for after the firmware storage areas are formatted, the new firmware data being write into the firmware and being deposited In storage area;
Firmware data includes storage algorithm information, and the device also includes the first analysis module,
Whether first analysis module, the storage algorithm for analyzing to be upgraded is consistent with the storage algorithm before upgrading;
The processing module, is additionally operable to when the storage algorithm to be upgraded is consistent with the storage algorithm before the upgrading, will Firmware data before the upgrading is updated in the firmware data to be upgraded, to form new firmware data;
When the storage algorithm before the storage algorithm to be upgraded with the upgrading is inconsistent, by the firmware number before the upgrading According to being converted to the storage algorithm firmware data to be upgraded, and the firmware data after conversion is updated to into the firmware to be upgraded In data, to form new firmware data.
6. the device that storage device firmware as claimed in claim 5 is upgraded, it is characterised in that the device is also including the second analysis Module,
The processing module, is additionally operable to determine the version letter of the version information of firmware data and firmware data to be upgraded before upgrading Breath;
Whether second analysis module, the version for firmware data before analysis upgrading is less than the version of firmware data to be upgraded This;
The upgraded module, is additionally operable to when the version of firmware data before upgrading is less than the version of firmware data to be upgraded, by institute State the firmware data before upgrading to be updated in the firmware data to be upgraded, to form new firmware data;
When the version of firmware data before upgrading is higher than the version of firmware data to be upgraded, the firmware of the storage device is not entered Row upgrading.
7. the device that the storage device firmware as described in claim 5 or 6 is upgraded, it is characterised in that
The processing module, is additionally operable to, when firmware upgrade instruction is received, restart the storage device, into firmware upgrade fortune Row mode;
The acquisition module, is additionally operable to obtain firmware data to be upgraded corresponding with firmware upgrade instruction and from storage device Firmware storage areas in obtain upgrading before firmware data.
8. the device that the storage device firmware as described in claim 5 or 6 is upgraded, it is characterised in that the device also includes prompting Module,
The reminding module, in firmware upgrade process, sending prompting message, to point out the progress of user's firmware upgrade;
After the completion of firmware upgrade, information is sent, to point out user's firmware upgrade to complete;
The processing module, is additionally operable to after the completion of firmware upgrade, the storage device is restarted, into normal operation mode.
CN201410164251.3A 2014-04-22 2014-04-22 Method and device for upgrading storage equipment firmware Active CN103955386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410164251.3A CN103955386B (en) 2014-04-22 2014-04-22 Method and device for upgrading storage equipment firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410164251.3A CN103955386B (en) 2014-04-22 2014-04-22 Method and device for upgrading storage equipment firmware

Publications (2)

Publication Number Publication Date
CN103955386A CN103955386A (en) 2014-07-30
CN103955386B true CN103955386B (en) 2017-05-03

Family

ID=51332662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410164251.3A Active CN103955386B (en) 2014-04-22 2014-04-22 Method and device for upgrading storage equipment firmware

Country Status (1)

Country Link
CN (1) CN103955386B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017059599A1 (en) * 2015-10-10 2017-04-13 华为技术有限公司 Method and device for upgrading multi-dwelling units
CN112214341B (en) * 2020-09-11 2023-01-10 苏州浪潮智能科技有限公司 Processing method and system based on hard disk upgrade transmission failure
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350295A (en) * 2000-10-23 2002-05-22 国际商业机器公司 Method and apparatus for executing up date of disk array controller based on driver
CN101625648A (en) * 2009-08-18 2010-01-13 深圳华为通信技术有限公司 Plug and play equipment, firmware upgrade method and firmware upgrade device
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update
CN103186402A (en) * 2011-12-30 2013-07-03 英业达股份有限公司 Storage Device Firmware Update System

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007047993A (en) * 2005-08-09 2007-02-22 Rohm Co Ltd Control circuit, electronic equipment using it and update method for firmware

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350295A (en) * 2000-10-23 2002-05-22 国际商业机器公司 Method and apparatus for executing up date of disk array controller based on driver
CN101625648A (en) * 2009-08-18 2010-01-13 深圳华为通信技术有限公司 Plug and play equipment, firmware upgrade method and firmware upgrade device
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update
CN103186402A (en) * 2011-12-30 2013-07-03 英业达股份有限公司 Storage Device Firmware Update System

Also Published As

Publication number Publication date
CN103955386A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN104199706A (en) Firmware upgrade method and device for eMMC
CN102932777B (en) The update method of a kind of terminal applies and user terminal
EP2857965B1 (en) Method and device for generating firmware over-the-air upgrade package
CN114375069B (en) Communication method and network equipment
CN105302587B (en) Data-updating method and device
CN111316230B (en) Method and equipment for generating patch package
CN104281478B (en) The method and device of more new application
CN107943501A (en) Embedded device upgrade method, device, computer equipment and storage medium
CN103955386B (en) Method and device for upgrading storage equipment firmware
CN103678696B (en) Control the separated method and device of digital independent
CN107643898A (en) Terminal staging method and device
CN101895883B (en) A smart card and method supporting authentication algorithm update
CN113760611B (en) System site switching method and device, electronic equipment and storage medium
CN109324918A (en) Application program exception handling method and device, terminal and storage medium
CN104978185A (en) Icon processing method and device thereof
CN105786636B (en) System repair method and device
CN104951348B (en) A kind of interruptable recovery upgrade method and device
CN108008970A (en) Application upgrade method and device
CN106792206A (en) A kind of TV menu adaptive updates method and system
CN107784104A (en) A data push update method for children's educational software
CN106250183A (en) A kind of mobile device method for upgrading software and device
CN111859041A (en) Data transmission method and device
CN108170760B (en) Intelligent hardware management system and equipment
CN105700895B (en) The adaptation method and terminal and system server of a kind of terminal system
CN103488503B (en) Oftware updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant