CN-121979582-A - Starting method of solid state disk, electronic equipment and storage medium
Abstract
The embodiment of the application provides a starting method of a solid state disk, electronic equipment and a storage medium, wherein the method comprises the steps of responding to the fact that a preset NAND particle parameter library is not matched with any NAND particle parameter after the solid state disk is electrified, and establishing communication between NAND particles of the solid state disk and a main control one by one according to a plurality of preset loading strategies; in response to successful establishment of communication between the NAND die and the master, firmware loading of the NAND die by a target loading policy used when communication is successfully established. The embodiment of the application can improve the fault tolerance of firmware loading.
Inventors
- LONG CHANG
- SU JIEWEI
- LAI NAI
Assignees
- 珠海妙存科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251219
Claims (10)
- 1. The starting method of the solid state disk is characterized by comprising the following steps of: responding to the fact that the NAND particle parameter library is not matched with any NAND particle parameter after the solid state disk is electrified, and establishing communication between the NAND particles of the solid state disk and a master control one by one according to a plurality of preset loading strategies; in response to successful establishment of communication between the NAND die and the master, firmware loading of the NAND die by a target loading policy used when communication is successfully established.
- 2. The method according to claim 1, wherein the method further comprises: Responding to the fact that the number of times that the solid state disk successfully establishes communication between the NAND particles and the master control through the target loading strategy is not smaller than a preset threshold value, and determining the target loading strategy as an optimal starting strategy used by the master control; And responding to the fact that the solid state disk is powered on again and is not matched with any NAND particle parameter in the NAND particle parameter library after the solid state disk is powered on again, and establishing communication between the NAND particles and the main control according to the optimal starting strategy.
- 3. The method according to claim 2, wherein the method further comprises: Responding to the communication failure between the NAND particle and the master control according to the optimal starting strategy, and carrying out communication establishment on the NAND particle and the master control one by one according to the rest multiple loading strategies; in response to successful establishment of communication between the NAND particle and the master, the loading policy used when communication is successfully established is determined to be a new target loading policy, and communication between the NAND particle and the master is established according to the new target loading policy.
- 4. A method according to claim 3, characterized in that the method further comprises: Responding to the fact that the times of successfully establishing communication between the NAND particles and the main control through the target loading strategy and the new target loading strategy respectively by the solid state disk are not smaller than the preset threshold value, and comparing the times of using the target loading strategy with the times of using the new target loading strategy; And responding to the difference of the using times of the target loading strategy and the using times of the new target loading strategy, and correcting the optimal starting strategy according to the most using time of the target loading strategy and the new target loading strategy.
- 5. The method of claim 1, wherein the establishing the communication between the NAND particles of the solid state disk and the master control one by one according to the preset plurality of loading strategies comprises: for each loading strategy, driving the main control to read the firmware of the NAND particle according to the current loading strategy and verifying the read firmware, and driving the main control to read the firmware of the NAND particle according to the next loading strategy in response to failure in verifying the read firmware according to the current loading strategy; And responding to successful reading verification corresponding to the current loading strategy, and determining the current loading strategy as the target loading strategy.
- 6. The method according to claim 1, wherein the method further comprises: acquiring additionally stored guide information in response to failure in establishing communication between the NAND particles and the master control through each loading strategy; Repairing communication between the NAND particles and the master control according to the guide information; and starting the solid state disk.
- 7. The method of claim 6, wherein the enabling the solid state disk comprises: Restarting the solid state disk in response to successful communication restoration between the NAND particles and the master control; And establishing communication between the NAND particles and the master control according to the guide information, and loading firmware to the NAND particles.
- 8. The method of claim 6, wherein the enabling the solid state disk comprises: Responding to communication restoration failure between the NAND particle and the master control, and outputting starting feedback information through the guiding information; and in response to receiving the forced starting instruction, carrying out forced starting on the solid state disk according to the guiding information.
- 9. An electronic device, comprising: At least one processor; At least one memory for storing at least one program; A method of booting a solid state disk as claimed in any one of claims 1 to 8 when at least one of said programs is executed by at least one of said processors.
- 10. A computer-readable storage medium storing computer-executable instructions for performing the method of starting a solid state disk according to any one of claims 1 to 8.
Description
Starting method of solid state disk, electronic equipment and storage medium Technical Field The embodiment of the application relates to the technical field of storage, in particular to a starting method of a solid state disk, electronic equipment and a storage medium. Background In related art, the start-up of the Solid state disk (Solid STATE DRIVE, SSD) includes the correct loading of firmware from the NAND flash memory by the master control inside the Solid state disk. However, different models use different manufacturers of NAND grains in NAND flash memory due to design and supply chain cost issues. In order to smoothly load firmware, in the traditional scheme, a database containing known particle parameters is preset in the main control of the solid state disk, and the currently required NAND particle parameters are compared through the database. However, in practical application, because of power timing deviation, hardware interference or excessive sensitivity of a parameter library matching algorithm, even if the current NAND particle actually has a corresponding particle parameter in a database containing known particle parameters, the current NAND particle is misjudged to have no corresponding particle parameter, so that firmware loading is interrupted, and further, the solid state disk is failed to start. Disclosure of Invention The embodiment of the application provides a starting method of a solid state disk, electronic equipment and a storage medium, which can improve the fault tolerance of firmware loading. In one aspect, an embodiment of the present application provides a method for starting a solid state disk, including: responding to the fact that the NAND particle parameter library is not matched with any NAND particle parameter after the solid state disk is electrified, and establishing communication between the NAND particles of the solid state disk and a master control one by one according to a plurality of preset loading strategies; in response to successful establishment of communication between the NAND die and the master, firmware loading of the NAND die by a target loading policy used when communication is successfully established. In an embodiment, the method further comprises: Responding to the fact that the number of times that the solid state disk successfully establishes communication between the NAND particles and the master control through the target loading strategy is not smaller than a preset threshold value, and determining the target loading strategy as an optimal starting strategy used by the master control; And responding to the fact that the solid state disk is powered on again and is not matched with any NAND particle parameter in the NAND particle parameter library after the solid state disk is powered on again, and establishing communication between the NAND particles and the main control according to the optimal starting strategy. In an embodiment, the method further comprises: Responding to the communication failure between the NAND particle and the master control according to the optimal starting strategy, and carrying out communication establishment on the NAND particle and the master control one by one according to the rest multiple loading strategies; in response to successful establishment of communication between the NAND particle and the master, the loading policy used when communication is successfully established is determined to be a new target loading policy, and communication between the NAND particle and the master is established according to the new target loading policy. In an embodiment, the method further comprises: Responding to the fact that the times of successfully establishing communication between the NAND particles and the main control through the target loading strategy and the new target loading strategy respectively by the solid state disk are not smaller than the preset threshold value, and comparing the times of using the target loading strategy with the times of using the new target loading strategy; And responding to the difference of the using times of the target loading strategy and the using times of the new target loading strategy, and correcting the optimal starting strategy according to the most using time of the target loading strategy and the new target loading strategy. In an embodiment, the establishing the communication between the NAND particles of the solid state disk and the master control one by one according to a plurality of preset loading strategies includes: for each loading strategy, driving the main control to read the firmware of the NAND particle according to the current loading strategy and verifying the read firmware, and driving the main control to read the firmware of the NAND particle according to the next loading strategy in response to failure in verifying the read firmware according to the current loading strategy; And responding to successful reading verification corresponding to the current loadin