CN115525316A - Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment - Google Patents

Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment Download PDF

Info

Publication number
CN115525316A
CN115525316A CN202210547716.8A CN202210547716A CN115525316A CN 115525316 A CN115525316 A CN 115525316A CN 202210547716 A CN202210547716 A CN 202210547716A CN 115525316 A CN115525316 A CN 115525316A
Authority
CN
China
Prior art keywords
firmware
solid state
state disk
nand
dram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210547716.8A
Other languages
Chinese (zh)
Inventor
陈岭岭
韩道静
王飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yilian Information System Co Ltd
Original Assignee
Suzhou Yilian Information System 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 Suzhou Yilian Information System Co Ltd filed Critical Suzhou Yilian Information System Co Ltd
Priority to CN202210547716.8A priority Critical patent/CN115525316A/en
Publication of CN115525316A publication Critical patent/CN115525316A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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 application relates to a solid state disk firmware upgrading method, a solid state disk firmware upgrading device, computer equipment and a storage medium based on no DRAM, wherein the method comprises the following steps: acquiring a firmware upgrading request of a solid state disk; according to the firmware upgrading request of the solid state disk, directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command; verifying the firmware stored in the NAND temporary area; and if the firmware verification is successful, saving the firmware from the NAND temporary area to the root area. The invention provides a firmware upgrading solution for the SSD without DRAM components, can effectively improve the efficiency of firmware upgrading, meets different design schemes of the solid state disk, and gets rid of the dependence on the DRAM components.

Description

Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment
Technical Field
The invention relates to the technical field of solid state disks, in particular to a solid state disk firmware upgrading method and device based on a DRAM, computer equipment and a storage medium.
Background
With the development of Solid State Disk technology, SSD (Solid State Disk) has been widely used in various occasions, and has gradually replaced traditional HDD (Hard Disk Drive) in PC market, providing better experience for users from the aspects of reliability and performance.
In the development stage of Solid State Disks (SSDs) or after the distribution, firmware upgrade of the SSDs is a necessary function of the SSDs. To save on SSD manufacturing costs, more and more SSD designs eliminate the use of DRAMs. However, in the conventional method for upgrading the SSD firmware, the firmware needs to be downloaded to the DRAM on the SSD first, and after integrity check is performed on the firmware in the DRAM, the firmware is stored in the root area. Obviously, the above solution cannot meet the requirement of firmware upgrade of the solid state disk without DRAM.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for upgrading a solid state disk firmware without DRAM, a computer device, and a storage medium.
A solid state disk firmware upgrading method based on no DRAM comprises the following steps:
acquiring a firmware upgrading request of a solid state disk;
according to the firmware upgrading request of the solid state disk, directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command;
verifying the firmware stored in the NAND temporary area;
and if the firmware verification is successful, saving the firmware from the NAND temporary area to the root area.
In one embodiment, after the step of verifying the firmware stored in the NAND temporary area, the method further comprises:
if the firmware verification fails, the firmware is deleted from the NAND temporary area.
In one embodiment, after the step of saving the firmware from the NAND temporary area to the root area if the firmware verification is successful, the method further comprises:
and upgrading the firmware of the solid state disk by using the firmware of the root area.
In one embodiment, the step of verifying the firmware in the NAND temporary area further comprises:
and taking out the firmware from the NAND temporary area in a segmented mode, carrying out segmented verification on the firmware and saving the firmware segments passing the verification into the root area.
A solid state disk firmware upgrading device based on no DRAM comprises the following components:
the acquisition module is used for acquiring a firmware upgrading request of the solid state disk;
the downloading module is used for directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command according to the firmware upgrading request of the solid state disk;
a verification module for verifying the firmware stored in the NAND temporary area;
and the storage module is used for storing the firmware from the NAND temporary area to the root area if the firmware verification is successful.
In one embodiment, the apparatus further comprises a deletion module configured to:
if the firmware verification fails, the firmware is deleted from the NAND temporary area.
In one embodiment, the apparatus further comprises an upgrade module configured to:
and upgrading the firmware of the solid state disk by using the firmware of the root area.
In one embodiment, the verification module is further configured to:
and taking out the firmware from the NAND temporary area in a segmented mode, carrying out segmented verification on the firmware and saving the firmware segments passing the verification into the root area.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
The solid state disk firmware upgrading method and device based on the DRAM, the computer equipment and the storage medium acquire the solid state disk firmware upgrading request; according to the firmware upgrading request of the solid state disk, directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command; verifying the firmware stored in the NAND temporary area; and if the firmware verification is successful, saving the firmware from the NAND temporary area to the root area. The invention provides a firmware upgrading solution for the SSD without DRAM components, can effectively improve the efficiency of firmware upgrading, meets different design schemes of the solid state disk, and gets rid of the dependence on the DRAM components.
Drawings
FIG. 1 is a diagram illustrating a firmware upgrade performed in the prior art;
FIG. 2 is a schematic diagram of firmware upgrade performed in the present invention;
FIG. 3 is a flowchart illustrating a solid state drive firmware upgrade method based on no DRAM in one embodiment;
FIG. 4 is a flowchart illustrating a method for upgrading firmware of a solid state drive without DRAM according to another embodiment;
FIG. 5 is a block diagram of an embodiment of a solid state disk firmware upgrade apparatus without DRAM;
FIG. 6 is a block diagram of an apparatus for upgrading firmware of a solid state disk without DRAM according to another embodiment;
FIG. 7 is a block diagram of a solid state disk firmware upgrade device without DRAM according to yet another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, a schematic diagram of firmware upgrade in the prior art is shown, when firmware upgrade is implemented in the prior art, the firmware is downloaded to a DRAM and verified in the DRAM. And after the verification is passed, saving the verification result to a root area on the NAND. And deleting the DRAM after the verification fails. Obviously, the above scheme relies on the DRAM components in the SSD.
Based on the method, the invention provides a solid state disk firmware upgrading method based on no DRAM. Specifically, referring to the schematic diagram of firmware upgrade in the present invention shown in fig. 2, the present invention performs firmware upgrade without using DRAM. The firmware is downloaded to a temporary area in the NAND, then read out from the temporary area, and the section is checked. After the verification is successful, the firmware is saved from the temporary area in the NAND to the root area. If the verification fails, the firmware is deleted from the NAND temporary area, and the scheme does not depend on DRAM components.
In one embodiment, as shown in fig. 3, there is provided a method for upgrading firmware of a solid state disk based on no DRAM, the method including:
step 302, acquiring a solid state disk firmware upgrading request;
step 304, directly downloading new firmware to a NAND temporary area of the solid state disk through a firmware downloading command according to the firmware upgrading request of the solid state disk;
step 306, verifying the firmware stored in the NAND temporary area;
step 308, if the firmware verification is successful, storing the firmware from the NAND temporary area to the root area;
in step 310, if the firmware verification fails, the firmware is deleted from the NAND temporary area.
In this embodiment, a method for upgrading firmware of a solid state disk based on no DRAM is provided, which may be applied to an application environment as shown in fig. 2, where the firmware is first stored in a temporary area on a NAND, and after the firmware is verified, the firmware is saved in a root area.
Specifically, first, a solid state disk firmware upgrade request is acquired. And then, directly downloading the new firmware to the NAND temporary area of the solid state disk through a firmware downloading command according to the firmware upgrading request of the solid state disk.
Then, the firmware stored in the NAND temporary area is verified. If the firmware verification is successful, saving the firmware from the NAND temporary area to the root area; if the firmware verification fails, the firmware is deleted from the NAND temporary area.
And finally, upgrading the firmware of the solid state disk by using the firmware which passes the verification in the root area.
In the embodiment, a solid state disk firmware upgrading request is obtained; according to the firmware upgrading request of the solid state disk, directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command; verifying the firmware stored in the NAND temporary area; and if the firmware verification is successful, saving the firmware from the NAND temporary area to the root area. The scheme provides a firmware upgrading solution for the SSD without DRAM components, can effectively improve the efficiency of firmware upgrading, meets different design schemes of the solid state disk, and gets rid of dependence on the DRAM components.
In one embodiment, as shown in fig. 4, there is provided a method for upgrading firmware of a solid state disk based on no DRAM, the method including:
step 402, acquiring a solid state disk firmware upgrading request;
step 404, according to the firmware upgrading request of the solid state disk, directly downloading new firmware to the NAND temporary area of the solid state disk through a firmware downloading command;
step 406, taking out the firmware from the NAND temporary area in a segmented manner, performing segmented verification on the firmware, and saving the verified firmware segments in the root area;
and step 408, upgrading the firmware of the solid state disk by using the firmware of the root area.
In this embodiment, a method for upgrading a firmware of a solid state disk based on no DRAM is provided, where the method includes the following steps:
1. when the firmware is upgraded, the new firmware is directly downloaded to the NAND temporary area of the SSD through a firmware download command.
2. And taking out the firmware from the NAND temporary area in a segmented mode, and sequentially checking the firmware.
3. And if the verification is successful, saving the firmware from the temporary area in the NAND to the root area.
4. If the verification fails, the firmware is deleted from the NAND temporary area.
5. And upgrading the firmware of the SSD by using the firmware of the root area.
In the present embodiment, firmware is downloaded to the NAND medium temporary area. Then, the data is read from the temporary area and the segment is checked. After the verification is successful, the firmware is saved to a root area from a temporary area in the NAND; if the verification fails, the firmware is deleted from the NAND temporary area. The scheme realizes the firmware upgrade of the SSD without depending on DRAM components.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a solid state disk firmware upgrade apparatus 500 based on no DRAM, the apparatus comprising:
an obtaining module 501, configured to obtain a firmware upgrade request of a solid state disk;
a downloading module 502, configured to download, according to the firmware upgrade request of the solid state disk, new firmware directly into an NAND temporary area of the solid state disk through a firmware downloading command;
a verification module 503 for verifying the firmware stored in the NAND temporary area;
a saving module 504, configured to save the firmware from the NAND temporary area to the root area if the firmware verification is successful.
In one embodiment, as shown in fig. 6, there is provided a solid state disk firmware upgrade apparatus 500 without DRAM, the apparatus further includes a deletion module 505 for:
if the firmware verification fails, the firmware is deleted from the NAND temporary area.
In one embodiment, as shown in fig. 7, there is provided a solid state disk firmware upgrade apparatus 500 without DRAM, the apparatus further comprising an upgrade module 506 for:
and upgrading the firmware of the solid state disk by using the firmware of the root area.
In one embodiment, the verification module is further configured to:
and taking out the firmware from the NAND temporary area in a segmented manner, checking the firmware in a segmented manner, and storing the firmware segments passing the checking into the root area.
For specific limitations of the solid state disk firmware upgrading device based on no DRAM, reference may be made to the above limitations of the solid state disk firmware upgrading method based on no DRAM, and details are not repeated here.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a solid state disk firmware upgrading method based on no DRAM.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A solid state disk firmware upgrading method based on no DRAM comprises the following steps:
acquiring a firmware upgrading request of a solid state disk;
according to the firmware upgrading request of the solid state disk, directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command;
verifying the firmware stored in the NAND temporary area;
and if the firmware verification is successful, saving the firmware from the NAND temporary area to the root area.
2. The DRAM-less solid state disk firmware upgrade method according to claim 1, further comprising, after the step of verifying the firmware stored in the NAND temporary area:
if the firmware verification fails, the firmware is deleted from the NAND temporary area.
3. The method for upgrading firmware of a solid state disk based on no DRAM according to claim 2, further comprising after the step of saving the firmware from a NAND temporary area to a root area if the firmware verification is successful:
and upgrading the firmware of the solid state disk by using the firmware of the root area.
4. The method for firmware upgrade of a solid state disk based on no DRAM according to any of claims 1-3, wherein the step of checking the firmware in the NAND temporary area further comprises:
and taking out the firmware from the NAND temporary area in a segmented mode, carrying out segmented verification on the firmware and saving the firmware segments passing the verification into the root area.
5. The solid state disk firmware upgrading device based on no DRAM is characterized by comprising the following components:
the acquisition module is used for acquiring a firmware upgrading request of the solid state disk;
the downloading module is used for directly downloading new firmware to an NAND temporary area of the solid state disk through a firmware downloading command according to the firmware upgrading request of the solid state disk;
a verification module for verifying the firmware stored in the NAND temporary area;
and the storage module is used for storing the firmware from the NAND temporary area to the root area if the firmware is successfully verified.
6. The DRAM-less solid state drive firmware upgrade apparatus according to claim 5, further comprising a delete module configured to:
if the firmware verification fails, the firmware is deleted from the NAND temporary area.
7. The DRAM-less solid state drive firmware upgrade device according to claim 6, further comprising an upgrade module to:
and upgrading the firmware of the solid state disk by using the firmware of the root area.
8. The non-DRAM solid state hard disk firmware upgrade device according to any one of claims 5 to 7, wherein the check module is further configured to:
and taking out the firmware from the NAND temporary area in a segmented mode, carrying out segmented verification on the firmware and saving the firmware segments passing the verification into the root area.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202210547716.8A 2022-05-18 2022-05-18 Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment Pending CN115525316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210547716.8A CN115525316A (en) 2022-05-18 2022-05-18 Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210547716.8A CN115525316A (en) 2022-05-18 2022-05-18 Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment

Publications (1)

Publication Number Publication Date
CN115525316A true CN115525316A (en) 2022-12-27

Family

ID=84696691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210547716.8A Pending CN115525316A (en) 2022-05-18 2022-05-18 Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment

Country Status (1)

Country Link
CN (1) CN115525316A (en)

Similar Documents

Publication Publication Date Title
CN111309364B (en) Chip program upgrading method and device and storage medium
CN111752487A (en) Data recovery method and device and solid state disk
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN114253483A (en) Write cache management method and device based on command, computer equipment and storage medium
CN109634674B (en) Chip BOOT starting method and device, computer equipment and storage medium
CN115525316A (en) Solid state disk firmware upgrading method and device based on DRAM (dynamic random Access memory) and computer equipment
CN110275596B (en) Solid state disk-based power-on initialization acceleration method and device and computer equipment
CN115563021A (en) Method and device for improving repeated reading performance based on solid state disk and computer equipment
CN110826114B (en) User data testing method and device based on SSD after safe erasure
CN114168225A (en) Method and device for delaying updating of solid state disk mapping table, computer equipment and storage medium
CN109634676B (en) NAND BOOT starting method and device based on main control chip
CN114115745A (en) RAID optimization method and device for multi-Pass programming NAND and computer equipment
CN112579004A (en) Method, system, computer equipment and storage medium for quickly deleting flash data
CN113986318A (en) Firmware upgrading method and device based on solid state disk, computer equipment and storage medium
CN114185620B (en) Method and device for realizing acceleration of SSD firmware loading, computer equipment and storage medium
CN113986126A (en) TCG data deleting method and device based on solid state disk and computer equipment
CN110750215A (en) Method and device for improving random reading performance of solid state disk and computer equipment
CN111625265B (en) Method and device for reducing DRAM space consumption in firmware upgrade
CN114047880B (en) NAND write power consumption optimization method and device for multi-Pass programming and computer equipment
CN109686394B (en) Nand Flash Phy parameter configuration method and device
CN114490168A (en) DDR (double data Rate) time sequence dynamic training method and device, computer equipment and storage medium
CN114356369A (en) SSD firmware consistency loading method and device, computer equipment and storage medium
CN114327274A (en) Mapping table loading checking method and device based on solid state disk and computer equipment
CN114003438A (en) Mapping table recovery method and device for solid state disk, computer equipment and storage medium
CN115328692A (en) Execution program checking method and device based on solid state disk and computer equipment

Legal Events

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