eMMC quality detection and repair method, device and storage medium thereof
By detecting the quality status of the eMMC chip from multiple angles and providing repair solutions in combination with the eMMC protocol, the problem of eMMC chip quality detection and repair is solved, and the repair effect with high accuracy and practicality is achieved.
Patent Information
- Application Number
- CN202011088371.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-13
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-10-13
AI Technical Summary
The existing technology is difficult to quickly and accurately detect and repair eMMC chips with uneven quality eMMC chips, resulting in confusion and problems for users.
By reading the protocol version information, production date, non-distorted registers and read-only information of the eMMC chip, the quality status of the chip is obtained, and combined with read-write erase performance detection, the quality evaluation results are generated, and the repair solution is provided, including closing the non-distorted registers. Functions, erase data storage areas and improve read and write performance.
It has achieved a wide coverage and high accuracy of eMMC chip quality inspection, which is close to the actual user needs, is highly practical, and can effectively repair old chips and put them back into use.
Smart Images

Figure CN112289364B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of eMMC, and in particular to an eMMC quality detection and repair method, device and storage medium thereof. Background Art
[0002] eMMCs are widely used in various electronic products, including mobile phones and tablets. However, with technological advancements, eMMCs originally used in mobile phones and other products are being phased out in large numbers, becoming disassembled chips and then used in other electronic products. The quality of these obsolete eMMCs varies greatly, and they are mixed in with genuine eMMCs, causing significant confusion and problems for manufacturers. Therefore, how to quickly detect and repair these eMMCs has become a critical issue for eMMC manufacturers. Currently, the commonly used methods for testing eMMC quality are simple and crude, and can easily miss some problematic chips. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an eMMC quality detection and repair method that can quickly detect the quality information of the eMMC and provide repair.
[0004] The present invention also provides an eMMC quality detection and repair device using the above-mentioned eMMC quality detection and repair method.
[0005] The present invention also provides a computer storage medium capable of executing the above-mentioned eMMC quality detection and repair method.
[0006] According to an embodiment of the first aspect of the present invention, an eMMC quality detection and repair method includes: reading protocol version information and a production date, a non-distortion register, and read-only information of an eMMC chip according to eMMC protocol characteristics, and obtaining a first quality status of the eMMC chip; reading a data storage area of the eMMC chip, determining whether all are default values, extracting partition characteristics, and obtaining a second quality status of the eMMC chip; performing a read and erase performance test on the eMMC chip to obtain a third quality status of the eMMC chip; generating a quality assessment result of the eMMC chip according to the first quality status, the second quality status, and the third quality status; and according to the quality assessment result, disabling the function enabled by the non-distortion register, repairing the data storage area through an erase command, and repairing the read and write performance.
[0007] The eMMC quality detection and repair method according to an embodiment of the present invention has at least the following beneficial effects: through multiple detection methods, fully combined with the eMMC protocol, analyzing the data fed back from the eMMC itself, obtaining the usage of the eMMC, and then analyzing its quality. In addition, based on the usage and combined with the protocol, a repair solution is provided. The detection and repair has a wide coverage, high accuracy, is close to the actual usage needs of users, and is highly practical.
[0008] According to some embodiments of the present invention, the method for obtaining the first quality status includes: comparing the protocol version information with the latest eMMC protocol version to obtain a version difference, comparing the difference between the production date and the current date to obtain a date difference; reading the value in the non-distortion register to determine whether the function supported by the eMMC chip is enabled and obtain a function setting status; reading read-only information through an eMMC protocol command to determine whether the read-only information contains read-only area information and obtain a read-only area setting status; and obtaining the first quality status based on the version difference, the date difference, the function setting status, and the read-only area setting status. The age of the eMMC chip is determined from multiple perspectives based on eMMC protocol characteristics, and the chip quality risk is assessed based on the age.
[0009] According to some embodiments of the present invention, the method for obtaining the first quality status further includes: if the protocol version information is eMMC protocol 5.0 or above, obtaining lifespan information of the eMMC chip based on the Device Health Report; and obtaining the first quality status based on the lifespan information. For chips for which lifespan information can be obtained, the accuracy of quality assessment is further improved, facilitating early detection of chips that have reached or are nearing the end of their lifespan.
[0010] According to some embodiments of the present invention, the method for obtaining the third quality status includes: detecting the read, write, and erase speed of the eMMC chip, comparing it with the read, write, and erase speed of a brand-new eMMC, obtaining a read, write, and erase speed difference, and obtaining the third quality status based on the read, write, and erase speed difference. By comparing the read, write, and erase speed of the eMMC chip with that of a brand-new chip, the quality of the chip can be more accurately assessed.
[0011] According to some embodiments of the present invention, the method for repairing read and write performance includes at least one of: erasing the eMMC chip using an eMMC protocol command based on the third quality status, reducing the actual capacity using the eMMC's Dynamic Capacity Management function, and converting the eMMC chip to PSLC mode. Multiple repair methods are provided to maximize the possibility of restoring valuable old eMMC chips and returning them to service.
[0012] According to some embodiments of the present invention, the method of erasing the eMMC chip using an eMMC protocol command according to the third quality status includes: if the third quality status is a normal level, using a discard / erase / trim command to stop the eMMC chip from maintaining old written data; if the third quality status is a severe level, using a secure erase / secure trim / sanitize function to completely erase the NAND flash of the eMMC chip. Different repair methods are used based on the performance quality level to improve performance or extend its life.
[0013] According to some embodiments of the present invention, the method for converting the eMMC chip to PSLC mode includes converting the eMMC chip to PSLC mode using the Enhanced Storage Media function in the eMMC protocol, which can conveniently and effectively improve the performance quality of the chip.
[0014] According to some embodiments of the present invention, the method further includes: providing a corresponding prompt if the eMMC chip cannot be repaired or cannot be directly repaired during the repair process. If the repair cannot be done automatically, the user is notified and a repair method for the eMMC chip requiring manual intervention is provided.
[0015] According to the second aspect of the present invention, the eMMC quality detection and repair device includes: a detection execution module, which is used to detect the quality of the eMMC chip, generate a quality assessment result, and repair the eMMC chip according to the quality assessment result, including: a program storage module, which is used to store the computer program corresponding to the method of any one of claims 1 to 7; a program execution module, which is used to execute the computer program; a power supply module, which is used to power the eMMC chip and the detection execution module; and a serial port module, which is used to output the quality assessment result; a host computer, which is used to communicate with the detection execution module via a USB interface and receive the quality assessment result.
[0016] The eMMC quality detection and repair device according to the embodiment of the present invention has at least the following beneficial effects: through multiple detection methods, fully combined with the eMMC protocol, the usage of the chip is judged from multiple angles, and then its quality is analyzed. In addition, based on the usage and combined with the protocol, a repair solution is provided. The detection and repair has a wide coverage, high accuracy, is close to the actual usage needs of users, and is highly practical.
[0017] According to a computer-readable storage medium of an embodiment of the third aspect of the present invention, a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor when running, and is used to execute the eMMC quality detection and repair method of the embodiment of the first aspect of the present invention as claimed in claim 1.
[0018] The computer-readable storage medium according to the embodiment of the present invention has at least the following beneficial effects: through multiple detection methods, fully combined with the eMMC protocol, the usage of the eMMC is analyzed, and then its quality is analyzed, and based on the usage and combined with the protocol, a repair solution is provided. The detection and repair coverage is wide, the accuracy is high, it is close to the actual usage needs of users, and it is highly practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:
[0020] Figure 1 A schematic flow chart of the steps of a method according to an embodiment of the present invention;
[0021] Figure 2 Schematic diagram of the quality inspection process in the method of an embodiment of the present invention;
[0022] Figure 3 Schematic diagram of the quality repair process in the method of an embodiment of the present invention;
[0023] Figure 4 Schematic diagram of the structure of the device according to an embodiment of the present invention.
[0024] Reference numerals:
[0025] Detection execution module 100 , program storage module 110 , program execution module 120 , power module 130 , serial port module 140 , USB module 150 ; host computer 200 ; eMMC chip 300 . DETAILED DESCRIPTION
[0026] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.
[0027] In the description of the present invention, "several" means one or more, "many" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The use of "first" and "second" in the description is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, implicitly specifying the number of the indicated technical features, or implicitly specifying the order of the indicated technical features.
[0028] Reference Figure 1In an embodiment of the present invention, a method includes the following steps: reading the protocol version information and production date, non-distortion registers, and read-only information of an eMMC chip based on eMMC protocol characteristics to obtain a first quality status of the eMMC chip; reading the data storage area of the eMMC chip to determine whether all values are default values, extracting partition characteristics, and obtaining a second quality status of the eMMC chip; performing a read and erase performance test on the eMMC chip to obtain a third quality status of the eMMC chip; generating a quality assessment result of the eMMC chip based on the first quality status, the second quality status, and the third quality status; and based on the quality assessment result, disabling the function enabled by the non-distortion register, repairing the data storage area via an erase command, and repairing the read and write performance. It should be understood that in the embodiments of the present invention, the order of obtaining the first quality status, the second quality status, and the third quality status is not limited.
[0029] The method of the embodiment of the present invention mainly includes two major processes: detection and repair. The detection process is shown in Figure 2. The protocol version of the eMMC chip is obtained by reading the eMMC register, and compared with the latest existing eMMC protocol version to obtain the version difference. The larger the version difference, the older the chip and the worse its first quality status. In some embodiments of the present invention, different first quality statuses can be mapped according to different version differences. The production date of the eMMC chip is obtained by reading the eMMC register, and compared with the current date to obtain the date difference. The older the chip production date, the older the chip and the worse its first quality status. In some embodiments of the present invention, different date differences correspond to different first quality statuses. If the protocol version of the eMMC chip is above 5.0, the life status can be obtained through the Device Health Report. If its life value is not the default value, it is an old chip; if it has reached the service life limit, the first quality status is considered to be aging and scrapped. By reading the value of the non-distortion register (that is, the register whose value will not change when power is off or reset), it is determined whether the function of the eMMC chip is set. If it has been set, it is considered to be an old chip. The eMMC protocol specifies that eMMC chips contain internal storage spaces, such as csd / ext_csd, which are used to communicate certain eMMC information to the host, such as supported functions. Accessing these storage spaces allows the host to determine the functions supported by the eMMC chip. For read-only features, commands are sent via the eMMC protocol to read the read-only information within these areas. If any area is set to read-only, the chip is considered outdated. Old chips are considered to have certain quality risks. In some embodiments of the present invention, the first quality status can be assigned different scores based on the number of test items. If the conditions are not met, the corresponding score is deducted. Alternatively, a more complex calculation model can be used to evaluate the first quality status. The second quality status primarily determines whether the chip's data storage area has been altered. By reading the data within the chip, the host determines whether it is the default value (all zeros or all ones). If not, the eMMC chip is in use, and its second quality status indicates data is written. Data partition features are extracted. If a partition table can be identified, the eMMC chip is in use, and its second quality status indicates data partitions are present. The third quality status measures the performance of the eMMC chip. It evaluates the chip's third quality status by testing its read, write, and erase speeds and comparing them with the test data of a brand-new eMMC chip. If the difference in read, write, and erase speeds is within a certain threshold, the chip is considered normal. The third quality status can be divided into different levels based on the difference in read, write, and erase speeds, such as normal, moderately abnormal, and severely abnormal.Finally, based on the first quality status, the second quality status, and the third quality status, a corresponding quality assessment result is generated. If one of the following conditions is met, the user is prompted that there is a quality risk: the first quality status indicates that the chip is an old chip, or the second quality status indicates that there is data operation (including data writing or data partitioning), or the third quality status is abnormal (including general abnormality or serious abnormality). Obviously, in some embodiments of the present invention, the first quality status, the second quality status, and the third quality status can be scored separately according to certain rules. The worse the total score of all quality statuses, the worse the quality of the eMMC chip.
[0030] In the embodiment of the present invention, the repair process of the eMMC chip includes: function repair, data repair and performance repair. Figure 3 During functional repair, if the non-volatile registers are found to have settings for functions supported by the chip during the first quality state test, those that can be disabled are disabled. If not, the host is prompted to require compatible functions before use. During data repair, if data is written or partitioned in the second quality state, the entire data storage area, including partition information, is erased using an erase command. During performance repair, at least one of the following three methods can be used: erasing and restoring the eMMC chip using eMMC protocol commands based on the third quality state, reducing the actual capacity using the eMMC Dynamic Capacity Management function, and converting the eMMC chip to PSLC mode. If the third quality state is a general abnormality, the discard / erase / trim command is used to prevent the eMMC chip from maintaining old written data. If the third quality state is a severe abnormality, the secureerase / secure trim / sanitize function is used to completely erase the eMMC chip's NAND flash. In some embodiments of the present invention, the Enhanced Storage Media feature in the eMMC protocol is used to convert the eMMC chip to PSLC mode. Finally, based on the automatic repair results and quality assessment results, corresponding suggestions and prompts are generated. For issues that cannot be automatically repaired or cannot be directly repaired and require manual intervention, corresponding prompts are provided. It should be understood that in embodiments of the present invention, if the eMMC chip is not found to have quality risks, the repair process is skipped.
[0031] The device of the embodiment of the present invention refers to Figure 4, including: a detection execution module 100 and a host computer connected to the detection execution module 100 via a USB interface. Among them, the detection execution module 100 includes: a program storage module 110, a program execution module 120, a power module 130, a serial port module 140 and a USB module 150. The power module 130 is used for power supply management of the detection execution module 100, and for supplying power to the eMMC chip 300 to be tested. The host computer 200 transmits the executable program for the above-mentioned eMMC repair detection method to the detection execution module 100 through the USB interface. The detection execution module 100 stores the executable program in the program storage module 110. The program execution module 120 reads the executable code of its program storage module 110, detects and repairs the eMMC chip 300, and transmits the quality assessment results and corresponding prompts during the repair process to the host computer 200 through the serial port module 140.
[0032] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by ordinary technicians in the technical field without departing from the scope of the present invention.
Claims
1. An eMMC quality detection and repair method, characterized in that: include: According to the eMMC protocol characteristics, read the protocol version information and production date, non-distortion registers and read-only information of the eMMC chip to obtain the first quality status of the eMMC chip; Read the data storage area of the eMMC chip, determine whether all are default values, extract partition features, and obtain the second quality state of the eMMC chip; Performing a read and erase performance test on the eMMC chip to obtain a third quality state of the eMMC chip; Generate a quality assessment result of the eMMC chip according to the first quality status, the second quality status, and the third quality status; According to the quality evaluation result, the function enabled by the non-distortion register is turned off, the data storage area is repaired by an erase command, and the read and write performance is repaired; The repairing of the read and write performance includes: erasing the eMMC chip through an eMMC protocol command according to the third quality state, reducing the actual capacity through the Dynamic Capacity Management function of the eMMC, and converting the eMMC chip into a pslc mode; The step of erasing the eMMC chip through an eMMC protocol command according to the third quality state includes: When the third quality status is at a general abnormal level, the eMMC chip is made to no longer maintain the old data that has been written by using a discard / erase / trim command; When the third quality status is at a serious abnormal level, the nand flash of the eMMC chip is completely erased again through the secure erase / secure trim / sanitize function.
2. The eMMC quality detection and repair method according to claim 1, wherein The method for acquiring the first quality state includes: Compare the protocol version information with the latest eMMC protocol version to obtain a version difference, and compare the difference between the production date and the current date to obtain a date difference; Read the value in the non-distortion register, determine whether the function supported by the eMMC chip is enabled, and obtain the function setting status; Read the read-only information through the eMMC protocol command, determine whether the read-only information contains read-only area information, and obtain the read-only area setting status; The first quality status is obtained according to the version difference, the date difference, the function setting status and the read-only area setting status.
3. According to the eMMC quality detection and repair method described in claim 2, it is characterized in that, The method for acquiring the first quality status further includes: If the protocol version information is eMMC protocol 5.0 or above, obtaining the life information of the eMMC chip according to the Device Health Report; The first quality state is obtained according to the life information.
4. The eMMC quality detection and repair method according to claim 1, characterized in that, The method for acquiring the third quality state includes: The read, write and erase speed of the eMMC chip is detected and compared with the read, write and erase speed of the new eMMC to obtain a read, write and erase speed difference, and the third quality state is obtained according to the read, write and erase speed difference.
5. The eMMC quality detection and repair method according to claim 1, characterized in that, The method for converting the eMMC chip into a pslc mode comprises: The eMMC chip is converted into pslc mode through the Enhanced storage media function in the eMMC protocol.
6. The eMMC quality detection and repair method according to claim 1, characterized in that, Also includes: During the repair process, if the eMMC chip cannot be repaired or cannot be directly repaired, a corresponding prompt will be given.
7. An eMMC quality detection and repair device, characterized in that: include: A detection execution module, used to detect the quality of the eMMC chip, generate a quality assessment result, and repair the eMMC chip according to the quality assessment result, comprising: a program storage module, used to store a computer program corresponding to the method of any one of claims 1 to 6; a program execution module, used to execute the computer program; a power supply module, used to supply power to the eMMC chip and the detection execution module; and a serial port module, used to output the quality assessment result; The host computer is used to communicate with the detection execution module through a USB interface and receive the quality assessment result.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is executed by a processor when running, and is used to execute the eMMC quality detection and repair method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Embedded architecture with serial interface for testing flash memories
CN101611456A
Apparatus, system, and method for detecting and replacing failed data storage
CN102124527A
