CN115576587B - Firmware upgrading device and method for storage device - Google Patents
Firmware upgrading device and method for storage device Download PDFInfo
- Publication number
- CN115576587B CN115576587B CN202211442794.8A CN202211442794A CN115576587B CN 115576587 B CN115576587 B CN 115576587B CN 202211442794 A CN202211442794 A CN 202211442794A CN 115576587 B CN115576587 B CN 115576587B
- Authority
- CN
- China
- Prior art keywords
- storage device
- updated
- information
- firmware
- version number
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a firmware upgrading device of a storage device, which is characterized by comprising the following components: the network unit is used for acquiring information to be updated; the micro control unit is in communication connection with the network unit and is used for temporarily storing the information to be updated; the interface unit is in communication connection with the micro control unit and is in communication connection with a communication interface of the host; the micro control unit transmits the information to be updated into the storage device through the interface unit so as to update the firmware of the storage device. The firmware upgrading device of the storage device can upgrade the firmware of the storage device under the condition that the firmware of the storage device has problems.
Description
Technical Field
The present invention relates to the field of memory chip technology, and in particular, to a firmware upgrading device and method for a memory device.
Background
The firmware in the storage device can run corresponding driving programs, and the storage device can be failed and cannot be used due to the difference of the algorithm or the application scene of the firmware in the using process of the storage device, so that the firmware needs to be upgraded. When the internal data of the firmware is lost, the storage device cannot communicate with the host, and the host cannot directly upgrade the firmware of the storage device, so that the use of the storage device is influenced.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a firmware upgrade apparatus for a storage device, which can upgrade firmware of the storage device in case of a problem with the firmware of the storage device.
To achieve the above and other related objects, the present invention provides a firmware upgrading apparatus for a storage device, comprising:
the network unit is used for acquiring information to be updated;
the micro control unit is in communication connection with the network unit and is used for temporarily storing the information to be updated; and
the interface unit is in communication connection with the micro control unit and is in communication connection with a communication interface of the host;
the micro control unit transmits the information to be updated into the storage device through the interface unit so as to update the firmware of the storage device.
In an embodiment of the present invention, the information to be updated includes operating system information to be updated and firmware information to be updated.
In an embodiment of the present invention, the micro control unit and the storage device communicate with each other through a standard memory communication protocol.
The invention also provides a firmware upgrading method of the storage device, which comprises the following steps:
acquiring information to be updated;
transmitting the information to be updated to a micro control unit through a network unit, and temporarily storing the information in the micro control unit; and
and the micro control unit transmits the information to be updated to a storage device through an interface unit so as to update the firmware of the storage device.
In an embodiment of the present invention, after the step of obtaining the information to be updated, the method further includes the steps of: and switching the working mode of the storage device according to the firmware condition of the storage device.
In an embodiment of the present invention, the step of switching the operating mode of the storage device according to the firmware condition of the storage device includes:
judging whether data in an operating system and/or firmware of the storage device is error-reported or not;
when the data in the operating system and the firmware of the storage device are not in error, the storage device is in a normal mode;
switching the storage device from a normal mode to a debug mode when a data error occurs in an operating system and/or firmware of the storage device.
In an embodiment of the present invention, after the step of switching the operating mode of the storage device according to the firmware condition of the storage device, the method further includes the steps of: and when the storage device is in a normal mode, transmitting the information to be updated into the storage device through a host so as to update the firmware of the storage device.
In an embodiment of the present invention, when the storage device is in the normal mode, the step of transmitting the information to be updated to the storage device through the host to update the firmware of the storage device includes:
transmitting the information to be updated to the storage device through a host;
comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct or not;
if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
and if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to the host.
In an embodiment of the present invention, the step of the micro control unit transmitting the information to be updated to a storage device through an interface unit to update the firmware of the storage device includes:
the micro control unit transmits the information to be updated to the interface unit through a standard memory communication protocol;
the interface unit transmits the information to be updated to the storage device;
and updating the firmware of the storage device through the information to be updated.
In an embodiment of the present invention, the step of updating the firmware of the storage device by using the information to be updated includes:
comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct or not;
if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to the micro control unit;
if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
switching the storage device from a debug mode to a normal mode.
As described above, the present invention provides a firmware upgrade apparatus for a storage device, which can update firmware of the storage device to restore the storage device to normal operation when the storage device cannot communicate with a host computer in the case where the firmware of the storage device is lost or damaged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a storage device in a firmware upgrade device of a storage device according to the present invention.
Fig. 2 is a schematic structural diagram illustrating a communication between an upgrade apparatus and a storage apparatus in a firmware upgrade apparatus of a storage apparatus according to the present invention.
FIG. 3 is a flowchart illustrating a firmware upgrade method for a storage device according to the present invention.
Fig. 4 is a flowchart of step S20 in fig. 3.
Fig. 5 is a flowchart of step S30 in fig. 3.
Fig. 6 is a flowchart of step S50 in fig. 3.
Fig. 7 is a flowchart of step S53 in fig. 6.
Description of the element reference numerals:
100. an upgrade device; 110. a micro control unit; 120. a network unit; 130. an interface unit;
200. a storage device; 210. an operating system; 220. firmware; 230. a communication interface;
300. a processor;
400. dynamic random access memory.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
Referring to fig. 1 and 2, the present invention provides a firmware upgrading apparatus for a storage device, which can be applied to a storage device 200 to upgrade a system in the storage device 200. The storage device 200 may be provided with an Operating System (OS Image) including a driver necessary for System operation. The OS Image includes an operating system 210 and Firmware (FW) 220. The operating system 210 may include a Bootloader, a reboot program Uboot, an operating system program Kernel Linux Kernel, an Android operating system Android, user Data, and other Data, and any part of the Bootloader, the Uboot, the Linux Kernel, the Android, and the User Data may be lost, which may result in that the operating system 210 of the storage device 200 cannot be used. The firmware 220 is a part of the firmware responsible for the communication response between the storage device 200 and the host, and data in the firmware 220 is damaged or lost, which may cause the storage device 200 to fail to respond to the read/write operation of the host. Therefore, when the firmware of the storage apparatus 200 is in error, i.e. the operating system 210 or the firmware 220 of the storage apparatus 200 is damaged, the operating system 210 or the firmware 220 needs to be upgraded.
Referring to FIG. 2, in one embodiment of the invention, the memory device 200 may include a Normal Mode (Normal Mode) and a Debug Mode (Debug Mode). When the firmware of the storage device 200 is not in error, that is, the storage device 200 is in the normal mode, the processor (CPU) 300 of the host can extract information to be updated that is temporarily stored in a Dynamic Random Access Memory (DRAM) 400, and transmit the information to the storage device 200 through the interface, so as to update the firmware of the storage device 200. When the operating system 210 or the firmware 220 of the storage apparatus 200 reports an error, that is, when the storage apparatus 200 is in the debug mode, the operating system 210 or the firmware 220 of the storage apparatus 200 may be updated by the upgrading apparatus 100. The upgrade apparatus 100 may include a micro control unit 110, a network unit 120, and an interface unit 130, and the micro control unit 110, the network unit 120, and the interface unit 130 may be integrated on a single circuit board.
Referring to fig. 2, in an embodiment of the present invention, the MCU 110 may be a micro CPU MCU, which is a chip formed by integrating peripheral interfaces such as a memory (memory), a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and even an LCD driving circuit on a single chip, and by properly reducing the frequency and specification of a Central Processing Unit (CPU). The mcu 110 may be communicatively connected to the network unit 120, and may receive information to be updated through the network unit 120, where the information to be updated may include os information to be updated and firmware information to be updated. The operating system information to be updated may update the operating system 210 of the storage apparatus 200, and the firmware information to be updated may update the firmware 220 of the storage apparatus 200. The os information and the firmware information to be updated may be temporarily stored in the mcu 110. The mcu 110 can be communicatively connected to the interface unit 130, and can transmit the os information and the firmware information to be updated, which are temporarily stored in the mcu 110, to the storage device 200 through the interface unit 130, and update the os 210 and the firmware 220 of the storage device 200.
Referring to fig. 2, in an embodiment of the present invention, the network unit 120 may be a wireless network WIFI module, and the wireless network WIFI module may receive operating system information and firmware information to be updated through a cloud or a server, and send the operating system information and the firmware information to the micro control unit 110. The wireless network WIFI module is an embedded module which converts a serial port or TTL level into a level meeting WIFI wireless network communication standard, and a wireless network protocol IEEE802.11b.g.n protocol stack and a TCP/IP protocol stack are arranged in the wireless network WIFI module. The micro control unit 110 may be connected to a cloud or a server through a wireless network WIFI module.
Referring to fig. 2, in one embodiment of the invention, the interface unit 130 may be an eMMC Debug Port (Debug Port), which refers to process-specific software or application-specific software constructs used as communication endpoints by the transport layer protocols of the internet protocol suite, such as User Datagram Protocol (UDP) and Transmission Control Protocol (TCP), and a particular network Port is identified by its number (commonly referred to as a Port number), an IP address associated with the Port, and a type of transport protocol used for communication. The interface unit 130 may be communicatively coupled to a communication interface 230 on the host, the communication interface 230 may be communicatively coupled to the storage device 200, and the interface unit 130 may communicate with the storage device 200. The mcu 110 may transmit the operating system information and the firmware information to be updated temporarily stored to the storage device 200 through a standard eMMC communication protocol, so as to update the firmware of the storage device 200. The interface unit 130 is removably connected to the communication interface 230 on the host. When the upgrade apparatus 100 needs to be used, the interface unit 130 on the upgrade apparatus 100 may be connected with the communication interface 230 on the host computer to enable the upgrade apparatus 100 to upgrade the firmware of the storage apparatus 200. When the firmware upgrade of the storage device 200 is completed, the upgrade device 100 may be separated from the communication interface 230 on the host, and the storage device 200 may be normally used.
Referring to fig. 3, the present invention further provides a firmware upgrading method for a storage device, where the upgrading method may be applied to the upgrading device 100, and when the firmware of the storage device 200 needs to be upgraded, the firmware of the storage device 200 may be upgraded by the upgrading method, and the upgrading method may include the following steps:
s10, acquiring information to be updated;
step S20, switching the working modes of the storage device according to the firmware condition of the storage device, wherein the working modes comprise a normal mode and a debugging mode;
step S30, when the storage device is in a normal mode, transmitting information to be updated to the storage device through a processor of the host computer so as to update the firmware of the storage device;
s40, when the storage device is in a debugging mode, transmitting information to be updated to the micro control unit through the network unit, and temporarily storing the information in the micro control unit;
and S50, the micro control unit transmits the information to be updated to the storage device through the interface unit so as to update the firmware of the storage device.
In one embodiment of the present invention, when step S10 is performed, the information to be updated is acquired. Specifically, the information to be updated may include operating system information to be updated and firmware information to be updated. The operating system information to be updated may update the operating system 210 of the storage apparatus 200, and the firmware information to be updated may update the firmware 220 of the storage apparatus 200. When the storage apparatus 200 needs to be updated, the operating system 210 of the storage apparatus 200 may need to be updated, the firmware 220 of the storage apparatus 200 may need to be updated, and both the operating system 210 and the firmware 220 of the storage apparatus 200 may need to be updated. Therefore, according to the firmware condition of the storage device 200, the corresponding information to be updated may be further obtained, and the information to be updated may only include the operating system information to be updated, may also only include the firmware information to be updated, and may also include both the operating system information to be updated and the firmware information to be updated.
Referring to fig. 4, in an embodiment of the invention, when step S20 is executed, the operating mode of the storage device is switched according to the firmware condition of the storage device. Specifically, step S20 may include the following steps:
s21, judging whether data in an operating system and/or firmware of the storage device are error-reported or not;
s22, when the data in the operating system and the firmware of the storage device are not reported in error, the storage device is in a normal mode;
and S23, when the data in the operating system and/or the firmware of the storage device is wrong, switching the storage device from the normal mode to the debugging mode.
In an embodiment of the present invention, when the steps S21, S22 and S23 are executed, specifically, when the firmware of the storage device 200 needs to be updated, it needs to be determined whether the storage device 200 can operate normally, and further, according to the operating condition of the storage device 200, different updating manners may be selected to update the firmware of the storage device 200. When the storage device 200 is capable of normal operation, i.e., the storage device 200 is in a normal mode, the storage device 200 can communicate with the processor 300 of the host. The information to be updated may be transmitted into the storage device 200 by the processor 300 of the host to update the firmware of the storage device 200 while the storage device 200 is in the normal mode. When the storage device 200 cannot work normally, i.e. when data errors occur in the operating system and/or firmware of the storage device 200, the storage device 200 cannot communicate with the processor 300 of the host, and the processor 300 of the host cannot directly upgrade the firmware of the storage device 200. At this time, it is necessary to switch the operation mode of the memory device 200 and switch the memory device 200 from the normal mode to the debug mode. In the debug mode, information to be updated may be transmitted into the storage apparatus 200 through the upgrade apparatus 100 to update the firmware of the storage apparatus 200.
Referring to fig. 5, in an embodiment of the invention, when step S30 is executed, that is, when the storage device is in the normal mode, the information to be updated is transmitted to the storage device through the processor of the host, so as to update the firmware of the storage device. Specifically, step S30 may include the following steps:
s31, transmitting the information to be updated to a storage device through a processor of the host;
step S32, comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct or not;
step S33, if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
step S34, if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to a processor of the host.
In an embodiment of the invention, when the steps S31, S32, S33 and S34 are executed, specifically, when the storage device 200 is in the normal mode, the storage device 200 and the processor 300 of the host can normally communicate, and the processor 300 of the host can transmit the information to be updated into the storage device 200 to update the firmware of the storage device 200. When the storage device 200 is updated, in order to prevent the firmware version of the updated storage device 200 from deviating, it is necessary to determine the version number of the information to be updated, compare the version number of the information to be updated with the firmware version number of the storage device 200, and determine whether the version number of the information to be updated is correct. The version number is an identification number of the version, and each operating system has a version number, so that the version number can make a user know whether the used operating system is the latest version and the functions and facilities provided by the operating system.
In one embodiment of the present invention, when it is required to determine whether the version number of the information to be updated is correct, the version number of the information to be updated needs to be compared with the firmware version number of the storage apparatus 200. For example, the version number of the operating system 210 of the storage apparatus 200 is 1.1.1.2, the version number of the operating system information to be updated in the information to be updated is 1.1.1.3, and the version of the operating system information to be updated is higher than the version of the operating system 210 of the storage apparatus 200, so that the version number of the operating system information to be updated in the information to be updated can be determined to be correct. If the version number of the os information to be updated in the information to be updated is 1.1.1.0, or 1.1.1.1, or 1.1.1.2, the version number of the os information to be updated is lower or the same as the version number of the os 210 in the storage device 200, and thus the version number of the os information to be updated in the information to be updated may be determined to be incorrect.
In an embodiment of the present invention, for another example, the version number of the firmware information to be updated in the information to be updated may also be compared with the version number of the firmware 220 of the storage apparatus 200. For example, the version number of the firmware 220 in the storage apparatus 200 is 2.1.1.2, the version number of the firmware information to be updated in the information to be updated is 2.1.1.3, and the version of the firmware information to be updated in the information to be updated is higher than the version of the firmware 220 in the storage apparatus 200, so that the version number of the firmware information to be updated in the information to be updated can be determined to be correct. If the version number of the firmware information to be updated in the information to be updated is 2.1.1.0, or 2.1.1, or 2.1.1.2, the version number of the firmware information to be updated in the information to be updated is lower or the same as the version number of the firmware 220 in the storage apparatus 200, and therefore the version number of the firmware information to be updated in the information to be updated can be determined as incorrect.
In one embodiment of the present invention, when only the operating system information to be updated exists in the information to be updated, the version number of the operating system information to be updated may be compared with the version number of the operating system 210 of the storage device 200. When the version number of the operating system information to be updated is correct, the operating system 210 of the storage apparatus 200 may be updated. When the version number of the operating system information to be updated is incorrect, the storage device 200 may send a version error instruction to the processor of the host to indicate that the version of the operating system information to be updated sent by the processor of the host is too low to be downloaded again.
In one embodiment of the present invention, when only the firmware information to be updated exists in the information to be updated, the version number of the firmware information to be updated may be compared with the version number of the firmware 220 of the storage device 200. When the version number of the firmware information to be updated is correct, the firmware 220 of the storage apparatus 200 may be updated, and when the version number of the firmware information to be updated is incorrect, the storage apparatus 200 may send a version error instruction to the processor 300 of the host to indicate that the version of the firmware information to be updated sent by the processor 300 of the host is too low and needs to be downloaded again.
In an embodiment of the present invention, when the operating system information to be updated and the firmware information to be updated exist in the information to be updated at the same time, the version number of the operating system information to be updated needs to be compared with the version number of the operating system 210 of the storage device 200, and the version number of the firmware information to be updated needs to be compared with the version number of the firmware 220 of the storage device 200. When the version number of the operating system information to be updated is incorrect or the version number of the firmware information to be updated is incorrect, the storage device 200 may send a version error instruction to the processor 300 of the host at this time to indicate that the version of the operating system information to be updated or the firmware information to be updated sent by the processor 300 of the host is too low to be downloaded again. The firmware of the storage apparatus 200 can be updated by the information to be updated only when the version number of the operating system information to be updated and the version number of the firmware information to be updated are correct at the same time.
In one embodiment of the present invention, when step S40 is executed, i.e. when the storage device is in the debug mode, the information to be updated is transmitted to the micro control unit through the network unit and is temporarily stored in the micro control unit. Specifically, when the firmware of the storage apparatus 200 is lost or damaged, the storage apparatus 200 needs to be switched from the normal mode to the debug mode. The memory device 200 can be brought into a debug mode by manually switching the switch. The memory device 200 may also be controlled by the host's processor 300 to enter a debug mode. At this time, the storage device 200 may communicate with the upgrading device 100, and the mcu 110 may download the information to be updated through the network unit 120 and temporarily store the information in the mcu 110.
Referring to fig. 6, in an embodiment of the present invention, when step S50 is executed, the mcu transmits information to be updated to the storage device through the interface unit, so as to update the firmware of the storage device. Specifically, step S50 may include the following steps:
s51, the micro control unit transmits the information to be updated to an interface unit through a standard eMMC communication protocol;
step S52, the interface unit transmits the information to be updated to the storage device;
step S53, updating the firmware of the storage device by the information to be updated.
In one embodiment of the present invention, when steps S51, S52 and S53 are executed, specifically, after the information to be updated is temporarily stored in the micro control unit 110, since the micro control unit 110 communicates with the storage device 200 through the interface unit 130, the micro control unit 110 may transmit the information to be updated into the interface unit 130 through the standard memory eMMC communication protocol, and the interface unit 130 transmits the information to be updated into the storage device 200, so as to update the firmware of the storage device 200 through the information to be updated.
Referring to fig. 7, in an embodiment of the present invention, when step S53 is executed, the firmware of the storage device is updated by the information to be updated. Specifically, step S53 may include the following steps:
step S531, comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct;
step S532, if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to the micro control unit;
step S533, if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
step S534, the storage device is switched from the debugging mode to the normal mode.
In an embodiment of the present invention, when the steps S531, S532, S533 and S534 are executed, specifically, after the information to be updated is transmitted to the storage device 200, the version number of the information to be updated needs to be compared with the firmware version number of the storage device 200. For example, the version number of the operating system information and/or the firmware information is compared with the version number of the operating system and/or the firmware of the storage device 200. When the version number of the operating system information to be updated is incorrect or the version number of the firmware information to be updated is incorrect, the storage device 200 may send a version error instruction to the micro control unit 110 of the upgrade device 100 at this time to indicate that the version of the operating system information to be updated or the firmware information to be updated sent by the micro control unit 110 is too low and needs to be downloaded again. The firmware of the storage device 200 can be updated by the information to be updated only when the version number of the operating system information to be updated and the version number of the firmware information to be updated are correct at the same time. After the update is complete, the storage device 200 may be switched from the debug mode to the normal mode.
It can be seen that, in the above solution, for the firmware upgrading process in the storage device, when the storage device is in the normal mode, the firmware of the storage device can be directly upgraded through the host. When the storage device is in a debugging mode, the operating system or the firmware of the storage device cannot run, the host cannot communicate with the storage device, and at the moment, the firmware of the storage device can be upgraded through the upgrading device, so that the storage device can recover normal work. Meanwhile, due to the arrangement of the upgrading device, the storage device does not need to be disassembled and maintained, the integrity of the internal structure of the storage device is further ensured, and the internal structure of the storage device cannot be damaged.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the description of the present specification, reference to the description of the terms "present embodiment," "example," "specific example," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The embodiments of the invention disclosed above are intended merely to aid in the explanation of the invention. The examples are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand the invention for and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims (7)
1. A firmware upgrade apparatus for a storage device, comprising:
the network unit is used for acquiring information to be updated;
the micro control unit is in communication connection with the network unit and is used for temporarily storing the information to be updated; and
the interface unit is in communication connection with the micro control unit and is in communication connection with a communication interface of the host;
the micro control unit transmits the information to be updated into the storage device through the interface unit so as to update the firmware of the storage device;
the micro control unit, the network unit and the interface unit are integrated on a circuit board;
switching the working mode of the storage device according to the firmware condition of the storage device;
judging whether data in an operating system and/or firmware of the storage device is error-reported or not;
when the data in the operating system and the firmware of the storage device are not reported in error, the storage device is in a normal mode, and the information to be updated is transmitted to the storage device through a host computer so as to update the storage device;
when data errors occur in an operating system and/or firmware of the storage device, the storage device is switched from the normal mode to a debugging mode, in the debugging mode, the storage device is updated through an upgrading device, and the storage device is switched from the debugging mode to the normal mode.
2. The apparatus for upgrading firmware of a storage device according to claim 1, wherein the information to be updated includes operating system information to be updated and firmware information to be updated.
3. The firmware upgrading device of the storage device according to claim 1, characterized in that the micro control unit communicates with the storage device through a standard memory communication protocol.
4. A method for upgrading firmware of a storage device, comprising:
acquiring information to be updated;
switching the working mode of the storage device according to the firmware condition of the storage device;
judging whether data in an operating system and/or firmware of the storage device are error-reported or not;
when the data in the operating system and the firmware of the storage device are not reported in error, the storage device is in a normal mode, and the information to be updated is transmitted to the storage device through a host computer so as to update the storage device;
when data in an operating system and/or firmware of the storage device is wrong, the storage device is switched from a normal mode to a debugging mode, the storage device is updated through an upgrading device in the debugging mode, the storage device is switched from the debugging mode to the normal mode, the upgrading device comprises a micro control unit, a network unit and an interface unit, the micro control unit, the network unit and the interface unit are integrated on a circuit board, information to be updated is transmitted to the micro control unit through the network unit and is temporarily stored in the micro control unit, and the micro control unit transmits the information to be updated to the storage device through the interface unit so as to update the firmware of the storage device.
5. The method for upgrading firmware of a storage device according to claim 4, wherein the step of transmitting the information to be updated to the storage device through a host to update the firmware of the storage device when the storage device is in a normal mode comprises:
transmitting the information to be updated to the storage device through a host;
comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct or not;
if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
and if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to the host.
6. The method for upgrading firmware of a storage device according to claim 4, wherein the step of the micro control unit transmitting the information to be updated into the storage device through the interface unit to update the firmware of the storage device comprises:
the micro control unit transmits the information to be updated to the interface unit through a standard memory communication protocol;
the interface unit transmits the information to be updated to the storage device;
and updating the firmware of the storage device through the information to be updated.
7. The method for upgrading firmware of a storage device according to claim 6, wherein the step of updating the firmware of the storage device by the information to be updated comprises:
comparing the version number of the information to be updated with the firmware version number of the storage device, and judging whether the version number of the information to be updated is correct or not;
if the version number of the information to be updated is incorrect, the storage device sends a version error instruction to the micro control unit;
if the version number of the information to be updated is correct, upgrading the firmware of the storage device according to the information to be updated;
switching the storage device from a debug mode to a normal mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211442794.8A CN115576587B (en) | 2022-11-18 | 2022-11-18 | Firmware upgrading device and method for storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211442794.8A CN115576587B (en) | 2022-11-18 | 2022-11-18 | Firmware upgrading device and method for storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115576587A CN115576587A (en) | 2023-01-06 |
CN115576587B true CN115576587B (en) | 2023-04-14 |
Family
ID=84589975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211442794.8A Active CN115576587B (en) | 2022-11-18 | 2022-11-18 | Firmware upgrading device and method for storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115576587B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101814034A (en) * | 2009-02-19 | 2010-08-25 | 雷凌科技股份有限公司 | Wireless access device with firmware updating function and method thereof |
CN109656608A (en) * | 2019-01-08 | 2019-04-19 | 深圳市网心科技有限公司 | A kind of MCU firmware upgrade method and its relevant device |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978225A (en) * | 2010-08-02 | 2015-10-14 | 中颖电子股份有限公司 | Firmware updating method and firmware updating device |
CN104199706B (en) * | 2014-09-11 | 2018-02-13 | 福州瑞芯微电子股份有限公司 | A kind of eMMC firmware upgrade method and its equipment |
CN105094916A (en) * | 2015-08-10 | 2015-11-25 | 深圳市中兴物联科技有限公司 | Method and device for wireless firmware upgrading expansion based on module |
CN106464519A (en) * | 2015-09-24 | 2017-02-22 | 广东欧珀移动通信有限公司 | Adapter and adapter upgrade method |
US10318270B2 (en) * | 2015-09-24 | 2019-06-11 | Guangdong Oppo Mobile Telecommunications Corp, Ltd. | Method for upgrading firmware of adapter, apparatus, and system thereof |
CN105740015A (en) * | 2016-01-27 | 2016-07-06 | 北京小鸟看看科技有限公司 | Upgrade method for firmware of HMD device |
CN107102879A (en) * | 2017-04-27 | 2017-08-29 | 深圳怡化电脑股份有限公司 | Information is sent and firmware upgrade method, device, terminal, equipment and storage medium |
WO2019105211A1 (en) * | 2017-11-30 | 2019-06-06 | 南京德朔实业有限公司 | Electronic device and program updating method therefor |
JP6762989B2 (en) * | 2018-05-16 | 2020-09-30 | ソフトバンク株式会社 | Wireless communication device, control method of wireless communication device, control program of wireless communication device, firmware providing device, control method of firmware providing device, control program of firmware providing device, and communication system |
CN113656061B (en) * | 2021-08-20 | 2023-12-15 | 成都亨通光通信有限公司 | 5G communication power supply firmware updating method and updating device |
CN114721683A (en) * | 2022-04-06 | 2022-07-08 | 合肥市芯海电子科技有限公司 | Circuit, method, chip and electronic equipment for upgrading firmware |
CN114995860B (en) * | 2022-08-01 | 2022-11-11 | 摩尔线程智能科技(北京)有限责任公司 | Method for upgrading firmware of graphics processor and graphics processor |
-
2022
- 2022-11-18 CN CN202211442794.8A patent/CN115576587B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101814034A (en) * | 2009-02-19 | 2010-08-25 | 雷凌科技股份有限公司 | Wireless access device with firmware updating function and method thereof |
CN109656608A (en) * | 2019-01-08 | 2019-04-19 | 深圳市网心科技有限公司 | A kind of MCU firmware upgrade method and its relevant device |
Also Published As
Publication number | Publication date |
---|---|
CN115576587A (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100901903B1 (en) | Self-monitoring and updating of firmware over a network | |
US20100199078A1 (en) | Method of safe and recoverable firmware update and device using the same | |
EP2096538A1 (en) | Communication device and firmware update method thereof | |
CN101329631B (en) | Method and apparatus for automatically detecting and recovering start-up of embedded system | |
CA2701491A1 (en) | Firmware image update and management | |
US11314665B2 (en) | Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device | |
CN112947977A (en) | Software online upgrading method and system | |
WO2021136200A1 (en) | Bootloader loading method, storage medium, and embedded terminal | |
CN106547645B (en) | Method for automatically restoring image file and server system | |
JP2020535504A (en) | How to upgrade system version and equipment | |
US20020095619A1 (en) | Fault tolerant/redundant boot ROM reprogramming | |
CN111897560A (en) | NB-IoT module-based program upgrading system, method, device and storage medium | |
CN111026417A (en) | Embedded equipment upgrading method and embedded equipment | |
US11403113B2 (en) | Server with system setting data synchronization function | |
CN115576587B (en) | Firmware upgrading device and method for storage device | |
CN113138791A (en) | Upgrade processing method and device based on embedded system and electronic equipment | |
US11061689B2 (en) | Synchronization method for performing bi-directional data synchronization for bios | |
CN112463466B (en) | Computer testing method | |
CN106484442B (en) | Server system and method for updating startup mapping file | |
CN110908733A (en) | Working mode determining method and device, and control method and device | |
CN116560678A (en) | Firmware updating method and device, storage medium and electronic device | |
CN113377425B (en) | BMC firmware generation method and device, BMC starting method and device and storage medium | |
CN109684134B (en) | Method and server for rapidly deploying firmware settings among multiple devices | |
TWI777664B (en) | Booting method of embedded system | |
JP5992029B2 (en) | Basic input / output system program code writing circuit and writing method |
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 |