Method and process for loading program in ROM (Read Only Memory) of NVM solid-state disk

By actively searching and automatically selecting the optimal path for the NVM solid-state drive ROM loader method, the problems of poor compatibility, low efficiency, and weak reliability in the existing technology are solved, achieving efficient and stable system program loading and running, and ensuring data correctness.

CN121635995APending Publication Date: 2026-03-10MIANCUN (ZHEJIANG) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing methods and processes for loading NVM solid-state drive ROMs suffer from poor compatibility, low efficiency, weak reliability, and insufficient flexibility. They cannot flexibly adapt to multiple media, and the loading process is time-consuming. The simple verification mechanism is prone to data errors.

Method used

It actively searches NOR FLASH and NAND FLASH, automatically selects the optimal loading path, and combines a double-headed tag + CRC + hash mechanism with security verification of RSA/SM3 encryption algorithm to dynamically select the optimal loading path. The search starting point is configured in efuse to improve compatibility and efficiency.

Benefits of technology

It achieves flexible adaptation to multiple media, dynamically selects the optimal loading path, reduces time consumption, ensures the efficiency and stability of the loading process and the correctness of data, and improves the loading and running reliability of system programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121635995A_ABST
    Figure CN121635995A_ABST
Patent Text Reader

Abstract

The invention provides a method and a process for loading a program in an ROM (Read Only Memory) of an NVM (Non-Volatile Memory) solid-state disk, which belong to the technical field of program loading and comprise the following steps of: step 1, actively searching NOR FLASH and NAND FLASH; 2, automatic screening is carried out, an optimal convenient path is automatically screened, and an optimal loading mode is selected; the method comprises the following steps: firstly, in active search, firstly searching from NOR Flash, searching NAND FLASH when the NOR Flash cannot be searched, and selecting whether to search the NOR Flash firstly or the NAND FLASH firstly according to configuration in efuse; in the step 1, in active search, a plurality of boot points are divided into 16 segments, and each segment only contains 8 nand flash boot points. According to the method, the system program can be efficiently and stably loaded and operated by actively searching the NOR FLASH and the NAND FLASH, automatically screening the optimal convenient path and selecting the optimal loading mode; and in cooperation with a security verification mechanism, the correctness and accuracy of the data in the loading process are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of program loading, and particularly relates to a method and a process for loading a ROM program of an NVM solid state disk. BACKGROUND

[0002] NVM, i.e. non-volatile memory, is a kind of memory in which data is not lost after power-off, and ROM is a storage location of a first boot program in an NVM solid state disk, so its importance is self-evident. The NVM solid state disk ROM loading program not only plays a role in booting the system, but also has an important influence on the stability, security and timeliness of the system.

[0003] Common schemes of the existing method and process for loading the ROM program of the NVM solid state disk include the following: 1. a "single medium" loading process, which only fixedly selects NOR FLASH or NAND FLASH; 2. a multi-medium adaptive loading process, such as detecting in a preset fixed order, such as first NOR and then NAND, which one exists, and then loading from which one; 3. when searching for NAND FLASH, the time is too long because there is a process of searching, and the length of the searching time depends on the number of boot points, the more the boot points, the more the times of reading NAND FLASH, the more the boot points, and the better the compatibility; 4. the program burned into NAND FLASH is mostly single or two backups; 5. searching in order on the multiple backups and loading the first one found; 6. the existing verification mechanism mostly uses head markers, checksums, crcs, hashes and the like to verify whether the ROM loading program is complete; and 7. the program stored in NAND on the market generally supports a data error correction capability range of 70 bits-200 bits per 4 KB data.

[0004] Therefore, the existing method and process for loading the ROM program of the NVM solid state disk have the following problems: 1. poor compatibility: only supporting fixed media or fixed order detection, and being unable to flexibly adapt to multiple media; 2. low efficiency: a single loading mode is not optimized in combination with the characteristics of the media, and the time consumption is long; 3. weak reliability: the verification mechanism is simple, and data errors are prone to occur; and 4. insufficient flexibility: the optimal loading path cannot be dynamically selected. SUMMARY

[0005] In order to solve the above technical problems, the application provides a method and a process for loading a ROM program of an NVM solid state disk, which flexibly adapts to multiple media, dynamically selects an optimal loading path, reduces time consumption, can efficiently and stably load and run a system program, and ensures the correctness and accuracy of data in the loading process.

[0006] A method and a process for loading a ROM program of an NVM solid state disk include the following steps:

[0007] Step one: active search, active search NOR FLASH and NAND FLASH;

[0008] Step two: automatic screening, automatic screening of the optimal convenient path, selecting the optimal loading mode.

[0009] Preferably, in the active search of step one, priority is given to searching from NOR Flash first, and if not found, then search NAND FLASH, and according to the configuration in efuse, select to search NOR Flash first or NAND Flash first.

[0010] Preferably, in the active search of step one, multiple boot points are divided into 16 segments, and each segment contains only 8 nandflash boot points.

[0011] Preferably, the active search of step one and the automatic screening of step two are both equipped with a security verification mechanism.

[0012] Preferably, the security verification mechanism adopts a double-head marker + crc + hash mechanism, and supports RSA encryption algorithm or SM3 encryption algorithm verification.

[0013] Advantages

[0014] Compared with the prior art, the present application has the following advantages:

[0015] Flexible adaptation to multiple media, dynamic selection of the optimal loading path, and reduction of time consumption;

[0016] Through active search of NOR FLASH and NAND FLASH, and automatic screening of the optimal convenient path, the optimal loading mode is selected, which can efficiently and stably load and run the system program;

[0017] In cooperation with the security verification mechanism, the correctness and accuracy of the data in the loading process are ensured. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 is a flowchart of the method and process of the NVM solid state disk ROM loading program. DETAILED DESCRIPTION

[0019] The present application will be further described below in conjunction with the drawings:

[0020] In the drawings:

[0021] As shown in the accompanying Figure 1 :

[0022] The method and process of the NVM solid state disk ROM loading program specifically includes the following steps:

[0023] S1: active search, active search NOR FLASH and NAND FLASH;

[0024] S2: automatic screening, automatically screening the optimal convenient path, selecting the optimal loading mode.

[0025] In this embodiment, specifically, in the active search of S1, priority is given to searching from NOR Flash first, and then searching from NAND FLASH if NOR Flash cannot be searched. Whether to search NOR Flash first or NAND FLASH first is selected according to the configuration in efuse, and actual use will select one to search first according to product application market.

[0026] In this embodiment, specifically, in the active search of S1, multiple boot points are divided into 16 segments, each of which contains only 8 nand flash boot points. In efuse, a certain segment can be specified, and the search is directly jumped to the corresponding segment to start searching, reducing the number of boot points searched each time and reducing the search time. Moreover, because any segment can be specified to start, the entire NAND FLASH range can be compatible, improving compatibility.

[0027] In this embodiment, specifically, the active search of S1 and the automatic screening of S2 are both equipped with a security verification mechanism to ensure the correctness and accuracy of the data in the loading process.

[0028] In this embodiment, specifically, the security verification mechanism adopts a double-head marker + crc + hash mechanism, and supports RSA encryption algorithm or SM3 encryption algorithm verification.

[0029] In this embodiment, specifically, the backup setting of the program burned into nand flash is four backups.

[0030] In this embodiment, specifically, when loading the program, it can be selected which one of the four backups is searched first. The parameters are obtained from efuse before searching to specify the segment position (the position of different backups) and let the search start from which one to search first, avoiding the situation that one backup is used for a long time and will cause reading interference and cause this backup to be wrong after a long time. Subsequent use can automatically skip this backup and start searching from other backups. Special recording is made according to previous use records, including recording the state information of each backup program in the previous loading process, and then the most stable backup is selected to search and load from this backup.

[0031] When storing the program, only 8K bytes of a single nand fash page is used, the maximum hardware LDPC capability is used, and the supported error correction capability is > ss600bit / 4KB, which greatly ensures the safety of data.

[0032] Any design falling in the protection scope of the present application, which achieves the above technical effects by using the technical solutions of the present application or by using the technical solutions inspired by the technical solutions of the present application, is also within the protection scope of the present application.

Claims

1. A method and flow of NVM solid state disk ROM loader, characterized in that, Comprising the following steps: Step one: active search, active search NOR FLASH and NAND FLASH; Step two: automatic screening, automatic screening the optimal convenient path, selecting the optimal loading mode.

2. The method and flow of NVM solid state disk ROM loader according to claim 1, wherein, In step one active search, priority is given to searching from NOR Flash first, and if not found, searching from NAND FLASH. The selection of searching from NOR Flash first or NAND Flash first is based on the configuration in efuse.

3. The method and flow of NVM solid state disk ROM loader as claimed in claim 1, wherein, In step one active search, multiple boot points are divided into 16 segments, and each segment contains only 8 NAND flash boot points.

4. The method and flow of NVM solid state disk ROM loader according to claim 1, wherein, Both step one active search and step two automatic screening are equipped with a security verification mechanism.

5. The method and flow of NVM solid state disk ROM loader as claimed in claim 1, wherein, The security verification mechanism adopts a double-head marker + crc + hash mechanism, and supports RSA encryption algorithm or SM3 encryption algorithm verification.