Checking method and device for Nand Flash parameter data
Through multiple backup mechanisms and CRC verification methods, the problem of inaccurate Nand Flash parameter data verification is solved, fast and accurate verification and fault-tolerant verification are achieved, and the reliability of the embedded system and the accuracy of firmware loading are improved.
Patent Information
- Application Number
- CN202410816541.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, there are misjudgments and inaccuracies in Nand Flash parameter data verification, causing the embedded system to fail to start and affecting system reliability.
Use multiple backup mechanisms and CRC verification methods to store MFG information, first backup information and second backup information in Nand Flash, and perform verification through the preset CRC algorithm to ensure the accuracy of parameter data. If the verification fails Then, fault tolerance verification is performed by combining the information to ensure system startup.
It achieves fast and accurate Nand Flash parameter data verification, reduces the misjudgment rate, improves the reliability of the system and the accuracy of firmware loading, and ensures that the system can start normally under error conditions.
Smart Images

Figure CN118737248A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software design, and in particular to a method and device for verifying Nand Flash parameter data. Background Art
[0002] Non-volatile memory is often used in embedded systems to store system firmware programs, program running data, factory parameters, etc. Nand Flash has large capacity and low price, and is often used in embedded system memory. However, due to the process of Nand Flash, it is very easy to have problems such as bit flipping and bad blocks; on the other hand, due to its large capacity and large storage content, the probability of data error is naturally high. Therefore, the common backup redundancy mechanism and CRC check mechanism for Nand Flash data are as follows.
[0003] Since stored data is very important for embedded devices or systems, for example, if a firmware program has a bit flip, the program cannot be started, and the startup will hang and cannot work properly; for example, the factory parameters are the calibration values of the module or device. If an error occurs, the embedded device cannot work properly, which has a great impact.
[0004] like Figure 1 As shown, traditional embedded system firmware and data are stored as follows:
[0005] Step 1: After the main control chip (Micro Process Unit, abbreviated as: MPU) is powered on, an initialization program is executed.
[0006] Step 2: Then load the firmware or data from the non-volatile memory Nand Flash to the DDR and perform the necessary integrity check.
[0007] Step 3: After verification, complete the data processing calculation in DDR and send the result to the control device (FPGA, DSP, GPU, etc.).
[0008] This process is described in steps 1 to 3 above. After the embedded system is powered on, it will read the program and calibration data from the Nand Flash. This step requires a reliable method to quickly confirm the integrity of the Nand Flash data.
[0009] like Figure 2 As shown, the data stored in Nand Flash is divided into two parts:
[0010] One part is the parameter information (meta data) of Nand Flash, which generally includes version number, production information, capacity information, block size, page size, spare size per page, etc. Block size, page size and spare size per page are key parameters for reading Flash storage information, and they cannot be wrong, otherwise the reading and writing of Flash will be abnormal;
[0011] The other part is the application data of Nand Flash, such as firmware information, program parameters, backup data, etc. To read this part of information, you must first obtain parameter information from Nand Flash, and obtain it correctly before programming, modifying, reading, and other operating data contents.
[0012] There are two main methods for traditional software processing logic:
[0013] One method is to first obtain the Nand Flash parameters, and then directly use the parameters to read the Nand Flash firmware, data, etc. This method works in most cases, but when the Nand Flash sample size becomes larger, or the number of read and write times increases, or the external electromagnetic radiation environment changes, the obtained Nand Flash parameters may be incorrect, resulting in errors when reading the firmware through the parameters, and the embedded system fails to load.
[0014] Another method is to first obtain the parameters of Nand Flash and perform integrity CRC verification. If the verification passes, the parameters of Nand Flash are considered to be correct and legal. If the verification fails, the parameters are considered abnormal, the Flash is invalid, the system hangs, and the next step of firmware loading and starting is not performed. The disadvantage of this method is that it is easy to misjudge and cause the system to fail to start normally.
[0015] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention
[0016] The technical problem to be solved by the present invention is to identify whether a bit flip error occurs in Nand Flash parameter data, verify whether there is an error in the Flash parameter data, solve the verification defect problem of Nand Flash parameter data in the prior art, and improve the reliability of software.
[0017] The present invention adopts the following technical solution:
[0018] In a first aspect, the present invention provides a method for verifying Nand Flash parameter data, wherein MFG information of the Nand Flash is stored in a first storage area in the Nand Flash, first backup information of the MFG information is stored in a second storage area in the Nand Flash, and second backup information of the MFG information is stored in a third storage area in the Nand Flash, the method comprising:
[0019] According to a preset CRC check algorithm, the MFG information is checked to obtain a value X1, and the X1 is compared with a theoretical value Y1 that is copied to the first storage area in advance along with the MFG information. If they are the same, the first check passes, and the firmware information is read according to the MFG information to enter the next level of startup;
[0020] If the first check fails, the first backup information is checked to obtain a value X2, and X2 is compared with a theoretical value Y2 that is copied to the second storage area in advance along with the first backup information. If they are the same, the second check passes, and the firmware information is read according to the first backup information to enter the next level of startup;
[0021] If the second check fails, the second backup information is checked to obtain the value X3, and the X3 is compared with the theoretical value Y3 copied to the third storage area in advance along with the second backup information. If they are the same, the third check passes, and the firmware information is read according to the second backup information to enter the next level of startup.
[0022] Preferably, the method for obtaining the MFG information, the first backup information and the second backup information includes:
[0023] In the bootloader code, the Flash parameter information is obtained through the standard ONFI Flash interface command 0xEC.
[0024] Preferably, the parameter information length is 768 bytes; wherein, bytes 0-253 are the MFG information of the Flash, bytes 254-255 correspond to the CRC information Y1 of bytes 0-253; bytes 256-509 store the first backup information, bytes 510-511 correspond to the CRC information Y2 of bytes 256-509; bytes 512-765 store the parameters of the second backup, bytes 766-767 correspond to the CRC information Y3 of bytes 512-765.
[0025] Preferably, the verifying the MFG information to obtain the value X1 specifically includes:
[0026] The CRC16 value X1 is calculated for bytes 0-253 using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1).
[0027] Preferably, the verifying the first backup information to obtain the value X2 specifically includes:
[0028] The CRC16 value X2 is calculated for bytes 256-509 using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1).
[0029] Preferably, the verifying the second backup information to obtain the value X3 specifically includes:
[0030] Using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), the CRC16 value X3 is calculated for the 512th to 765th byte data.
[0031] Preferably, if the third check fails, it is directly determined that the Nand Flash parameter information check fails, the Nand Flash is abnormal, and feedback is given that the Nand Flash needs to be repaired or replaced.
[0032] Preferably, if the third check fails, the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area and the theoretical value Y3 in the third storage area are compared. If any two theoretical values of the three are the same and are called value Y4, the method further includes:
[0033] Reading data in the first storage area, the second storage area and the third storage area respectively in byte blocks of a preset size, and splicing them into MFG combination information;
[0034] When reading byte block data of a preset size corresponding to the first storage area, the second storage area and the third storage area, according to the address offsets of the MFG information, the first backup information and the second backup information, it is ensured that the data blocks read from the three storage areas are continuous in terms of the MFG information content;
[0035] The MFG combination information is verified to obtain a value X4, and the X4 is compared with Y4 to be the same. The firmware information is read according to the MFG combination information to enter the next level of startup.
[0036] Preferably, the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area and the theoretical value Y3 in the third storage area are compared. If all three are different, it is determined that the Nand Flash parameter information verification fails, the Nand Flash is abnormal, and feedback is given that the Nand Flash needs to be repaired and replaced.
[0037] In a second aspect, the present invention further provides a Nand Flash parameter data verification device, which is used to implement the Nand Flash parameter data verification method described in the first aspect, and the device includes:
[0038] At least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the Nand Flash parameter data verification method described in the first aspect.
[0039] In a third aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors to complete the Nand Flash parameter data verification method described in the first aspect.
[0040] In a fourth aspect, a chip is provided, including: a processor and an interface, for calling and running a computer program stored in the memory from a memory, and executing the Nand Flash parameter data verification method as described in the first aspect.
[0041] In a fifth aspect, a computer program product including instructions is provided. When the instructions are executed on a computer or a processor, the computer or the processor executes the Nand Flash parameter data verification method as described in the first aspect.
[0042] The present invention proposes a method for verifying Nand Flash parameter data. After using this method, it is possible to quickly and accurately verify whether the Nand Flash parameter data is obtained correctly, thereby providing a basis for subsequent firmware and data verification. A common situation is that the parameter data verification is inaccurate or misjudged, or the parameter data is not verified, resulting in errors in the subsequent firmware loading verification.
[0043] The method of the present invention can accurately verify the accuracy of Nand Flash parameter data, provide an accuracy basis for firmware reading and loading, and improve the reliability of software. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 It is a schematic diagram of an embedded system firmware architecture in the prior art;
[0046] Figure 2 It is a Nand Flash data format in the prior art;
[0047] Figure 3 It is a flow chart of a method for verifying Nand Flash parameter data provided by an embodiment of the present invention;
[0048] Figure 4 It is a flowchart of another method for verifying Nand Flash parameter data provided by an embodiment of the present invention;
[0049] Figure 5 It is a flowchart of another method for verifying Nand Flash parameter data provided by an embodiment of the present invention;
[0050] Figure 6 It is a flowchart of another method for verifying Nand Flash parameter data provided by an embodiment of the present invention;
[0051] Figure 7 This is another Nand Flash parameter information structure diagram provided by an embodiment of the present invention;
[0052] Figure 8 It is another Nand Flash parameter information redundancy structure diagram provided by an embodiment of the present invention;
[0053] Fig. 9 It is a schematic diagram of the structure of another device for verifying Nand Flash parameter data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0055] In the description of the present invention, the terms "inside", "outside", "longitudinal", "lateral", "upper", "lower", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention.
[0056] The terms "first", "second", etc. in the present invention are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0057] In this application, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "coupling" can be a way of achieving electrical connection for signal transmission.
[0058] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0059] Embodiment 1:
[0060] Embodiment 1 of the present invention provides a method for verifying Nand Flash parameter data. The first storage area in the Nand Flash stores MFG (full name: manufacturing) information of the Nand Flash, the second storage area in the Nand Flash stores the first backup information of the MFG information, and the third storage area in the Nand Flash stores the second backup information of the MFG information. Figure 3 As shown, the method includes:
[0061] In step 201, the MFG information is verified according to a preset CRC verification algorithm to obtain a value X1, and the X1 is compared with a theoretical value Y1 that is copied to the first storage area in advance along with the MFG information. If they are the same, the first verification passes, and the firmware information is read according to the MFG information to enter the next level of startup.
[0062] In step 202, if the first check fails, the first backup information is checked to obtain the value X2, and the X2 is compared with the theoretical value Y2 that was previously copied to the second storage area along with the first backup information. If they are the same, the second check passes, and the firmware information is read according to the first backup information to enter the next level of startup.
[0063] In step 203, if the second check fails, the second backup information is checked to obtain the value X3, and the X3 is compared with the theoretical value Y3 that was copied to the third storage area in advance along with the second backup information. If they are the same, the third check passes, and the firmware information is read according to the second backup information to enter the next level of startup.
[0064] The embodiment of the present invention proposes a method for verifying Nand Flash parameter data. After using this method, it is possible to quickly and accurately verify whether the Nand Flash parameter data is obtained correctly, thereby providing a basis for subsequent firmware and data verification. A common situation is that the parameter data verification is inaccurate or misjudged, or the parameter data is not verified, resulting in errors in the subsequent firmware loading verification.
[0065] In combination with the embodiment of the present invention, there is also a specific application example scenario, wherein the method for obtaining the MFG information, the first backup information and the second backup information includes:
[0066] In the bootloader code, the Flash parameter information is obtained through the standard ONFI Flash interface command 0xEC.
[0067] For example, in a specific instance scenario, the above parameter information is 768 bytes long; among them, bytes 0-253 are the MFG information of the Flash, and bytes 254-255 correspond to the CRC information Y1 of bytes 0-253; bytes 256-509 store the first backup information, and bytes 510-511 correspond to the CRC information Y2 of bytes 256-509; bytes 512-765 store the parameters of the second backup, and bytes 766-767 correspond to the CRC information Y3 of bytes 512-765.
[0068] In the embodiment of the present invention, a specific implementation method is provided for verifying the MFG information to obtain the value X1 in step 201: using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), the CRC16 value X1 is calculated for the 0th to 253rd bytes.
[0069] In an embodiment of the present invention, a specific implementation method is provided for verifying the first backup information to obtain the value X2 in step 202: using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), the CRC16 value X2 is calculated for the 256th to 509th bytes.
[0070] In an embodiment of the present invention, a specific implementation method is provided for verifying the second backup information to obtain the value X3 in step 202: using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), the CRC16 value X3 is calculated for the 512-765 bytes of data.
[0071] In conjunction with the embodiment of the present invention, as a complete implementation scheme, the "reading firmware information according to the MFG information and entering the next level of startup" involved in step 201, step 202 and step 203 all belong to the scope of the prior art, so they are not specifically expanded in the embodiment of the present invention. As a complement to step 203 of the embodiment of the present invention, that is, when the third check fails, the method is implemented as follows Figure 4 As shown, it also includes:
[0072] In step 204, if the third check fails, it is directly determined that the Nand Flash parameter information check fails, and there is an abnormality in the Nand Flash, and feedback is given that the Nand Flash needs to be repaired and replaced.
[0073] As another core innovation of the embodiment of the present invention, the inventors found that when two backup information are included, the actual storage of MFG information actually reaches three copies. However, when the bit inversion described in the corresponding background technology occurs, it is not within the scope of the entire storage area, and the probability of discrete individuality is higher; therefore, in combination with the embodiment of the present invention, in addition to completing the verification through steps 201-203, the embodiment of the present invention also provides another supplementary verification method with higher fault tolerance, which can achieve higher fault tolerance space based on the implementation of steps 201-203. The actual implementation process is manifested as follows: if the third verification fails, the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area, and the theoretical value Y3 in the third storage area are compared. If any two theoretical values of the three are the same and are called value Y4, such as Figure 5 As shown, the method also includes:
[0074] In step 301, data are read from the first storage area, the second storage area and the third storage area respectively in byte blocks of a preset size and spliced into MFG combination information.
[0075] When reading byte block data of a preset size corresponding to the first storage area, the second storage area and the third storage area, according to the address offsets of the MFG information, the first backup information and the second backup information, it is ensured that the data blocks read from the three storage areas are continuous in terms of the MFG information content;
[0076] In step 302, the MFG combination information is verified to obtain a value X4, and X4 is compared to Y4 to be the same, and firmware information is read according to the MFG combination information to enter the next level of startup.
[0077] In step 303, the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area and the theoretical value Y3 in the third storage area are compared. If the three are different, it is determined that the Nand Flash parameter information verification fails, the Nand Flash is abnormal, and feedback is fed back that the Nand Flash needs to be repaired and replaced.
[0078] During the implementation of the above steps 301-302, as long as the corresponding replacement cost is high and the fault tolerance time permits, the above step 301 intelligently reads data in a manner that sets multiple sets of historically set distribution strategies in the BootLoader program; and in the preferred solution, the distribution method of the read data blocks suitable for the Nand Flash of different manufacturers and models can also be set, thereby achieving better results.
[0079] Embodiment 2:
[0080] The present invention proposes a Nand Flash parameter data method, which is mainly used to solve the problem of inaccurate Nand Flash parameter data verification leading to abnormal system startup in the prior art. The core is around steps 201 to 204 in Example 1, and the method implementation process is presented in a data structure matching manner. Figure 6 As shown, the following steps are included:
[0081] In step 401, in the bootloader code, the Flash parameter information is obtained through the standard ONFI Flash interface command 0xEC, and the parameter information length is 768 bytes.
[0082] if Figure 7 and Figure 8 As shown, the first 254 bytes are the MFG parameter information of the Flash, and the 254th-255th bytes correspond to the CRC information Y1 (2 bytes, 16 bits) of the data 0-253. Similarly, offset 256-511 stores the first backup information and its supporting CRC information Y2, and offset 513-767 stores the parameters of the second backup and its supporting CRC information Y3.
[0083] In step 402, the CRC16 value X1 is calculated for the 0-254 data using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1).
[0084] In step 403, the values of X1 and Y1 are compared to see if they are consistent. If they are consistent, the Nand Flash parameter information verification is passed and the verification is ended. The firmware information is read and the next level of startup is entered; if they are inconsistent, the verification is continued.
[0085] In step 404, the CRC16 value X2 is calculated for the 256-509 data using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), where 510-511 are the pre-stored CRC values Y2.
[0086] In step 405, the values of X2 and Y2 are compared to see if they are consistent. If they are consistent, the Nand Flash parameter information verification is passed and the verification is ended. The firmware information is read and the next level of startup is entered; if they are inconsistent, the verification is continued.
[0087] In step 406, the CRC16 value X3 is calculated for the 512-765 data using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), where 766-767 is the pre-stored CRC value Y3.
[0088] In step 407, the values of X3 and Y3 are compared to see if they are consistent. If they are consistent, the Nand Flash parameter information verification is passed and the verification is ended. The firmware information is read and the next level of startup is entered; if they are inconsistent, the verification is continued.
[0089] In step 408, since the Flash parameter information CRC check fails three times in a row, it can be directly determined that the Nand Flash parameter information check fails, and there is an abnormality in the Nand Flash, and the Flash needs to be repaired and replaced.
[0090] In the preferred solution, the verification may be continued for a fourth or fifth time and then the result may be determined.
[0091] Embodiment 3:
[0092] like Fig. 9 , which is a schematic diagram of the architecture of the device according to an embodiment of the present invention. The device according to this embodiment includes one or more processors 21 and a memory 22. Fig. 9 A processor 21 is taken as an example.
[0093] The processor 21 and the memory 22 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0094] The memory 22 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs and non-volatile computer executable programs, such as the method in Example 1. The processor 21 executes the method by running the non-volatile software programs and instructions stored in the memory 22.
[0095] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the method in the above embodiment 1 is executed, for example, the method described above is executed. Figure 3-Figure 5 The steps shown.
[0097] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific contents can be found in the description of the method embodiment of the present invention and will not be repeated here.
[0098] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for verifying Nand Flash parameter data, characterized in that: The first storage area in the Nand Flash stores MFG information of the Nand Flash, the second storage area in the Nand Flash stores first backup information of the MFG information, and the third storage area in the Nand Flash stores second backup information of the MFG information, and the method includes: According to a preset CRC check algorithm, the MFG information is checked to obtain a value X1, and the X1 is compared with a theoretical value Y1 that is copied to the first storage area in advance along with the MFG information. If they are the same, the first check passes, and the firmware information is read according to the MFG information to enter the next level of startup; If the first check fails, the first backup information is checked to obtain a value X2, and X2 is compared with a theoretical value Y2 that is copied to the second storage area in advance along with the first backup information. If they are the same, the second check passes, and the firmware information is read according to the first backup information to enter the next level of startup; If the second check fails, the second backup information is checked to obtain the value X3, and the X3 is compared with the theoretical value Y3 copied to the third storage area in advance along with the second backup information. If they are the same, the third check passes, and the firmware information is read according to the second backup information to enter the next level of startup.
2. The method for verifying Nand Flash parameter data according to claim 1, characterized in that: The method for obtaining the MFG information, the first backup information and the second backup information includes: In the bootloader code, the Flash parameter information is obtained through the standard ONFIFlash interface command 0xEC.
3. The method for verifying Nand Flash parameter data according to claim 2, characterized in that: The parameter information is 768 bytes long, wherein bytes 0-253 are the MFG information of the Flash, bytes 254-255 correspond to the CRC information Y1 of bytes 0-253; bytes 256-509 store the first backup information, bytes 510-511 correspond to the CRC information Y2 of bytes 256-509; bytes 512-765 store the parameters of the second backup, bytes 766-767 correspond to the CRC information Y3 of bytes 512-765.
4. The method for verifying Nand Flash parameter data according to claim 3, characterized in that: The verifying the MFG information to obtain the value X1 specifically includes: The CRC16 value X1 is calculated for bytes 0-253 using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1).
5. The method for verifying Nand Flash parameter data according to claim 3, characterized in that: The step of verifying the first backup information to obtain the value X2 specifically includes: The CRC16 value X2 is calculated for bytes 256-509 using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1).
6. The method for verifying Nand Flash parameter data according to claim 1, characterized in that: The step of verifying the second backup information to obtain a value X3 specifically includes: Using the agreed CRC calculation formula (G(X)=X^16+X^15+X^2+1), the CRC16 value X3 is calculated for the 512th to 765th byte data.
7. The method for verifying Nand Flash parameter data according to any one of claims 1 to 6, characterized in that: If the third check fails, it is directly determined that the Nand Flash parameter information check fails, the Nand Flash is abnormal, and the Nand Flash needs to be repaired or replaced.
8. The method for verifying Nand Flash parameter data according to any one of claims 1 to 6, characterized in that: If the third check fails, then the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area, and the theoretical value Y3 in the third storage area are compared. If any two theoretical values of the three are the same and are called value Y4, the method further includes: Reading data in the first storage area, the second storage area and the third storage area respectively in byte blocks of a preset size, and splicing them into MFG combination information; When reading byte block data of a preset size corresponding to the first storage area, the second storage area and the third storage area, according to the address offsets of the MFG information, the first backup information and the second backup information, it is ensured that the data blocks read from the three storage areas are continuous in terms of the MFG information content; The MFG combination information is verified to obtain a value X4, and the X4 is compared with Y4 to be the same. The firmware information is read according to the MFG combination information to enter the next level of startup.
9. The method for verifying Nand Flash parameter data according to claim 8, characterized in that: Compare the theoretical value Y1 in the first storage area, the theoretical value Y2 in the second storage area and the theoretical value Y3 in the third storage area. If all three are different, it is determined that the Nand Flash parameter information verification fails, the Nand Flash is abnormal, and feedback is given that the Nand Flash needs to be repaired and replaced.
10. A Nand Flash parameter data verification device, characterized in that: The device comprises: At least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the Nand Flash parameter data verification method described in any one of claims 1-9.
