An embedded system one-key destruction method and system based on eMMC storage

Through software improvements to the eMMC driver and button driver, a one-click destruction function for eMMC memory without hardware modifications has been implemented, solving the problem of the lack of one-click destruction for eMMC memory, reducing costs and improving data security.

CN122263186APending Publication Date: 2026-06-23EMDOOR CHINESE ACAD OF SCI CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
EMDOOR CHINESE ACAD OF SCI CO LTD
Filing Date
2026-03-21
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing eMMC storage technologies lack a one-click destruction solution, resulting in a high risk of data leakage. Furthermore, existing solutions require hardware modifications and incur high costs.

Method used

Through software improvements, a one-click destruction function is implemented using existing eMMC and button drivers, including button detection, timer module, judgment module and data erasure module, and the erase function is used to erase eMMC data.

Benefits of technology

It enables one-click destruction of eMMC memory without external hardware support, reducing costs and improving data security, and is suitable for all embedded products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122263186A_ABST
    Figure CN122263186A_ABST
Patent Text Reader

Abstract

The application provides an embedded system one-key destruction method and system based on eMMC storage, and belongs to the technical field of memory data destruction. The embedded system one-key destruction method based on eMMC storage comprises the following steps: S1: a key drive detects that a destruction key is pressed down; S2: whether the time of pressing down the destruction key exceeds a first set value is judged, if not, no operation is performed, and if yes, the next step is performed; S3: an eMMC drive scanning function detects the destruction key, and if it is detected that the destruction key is pressed down, the next step is performed; S4: an erase function of the eMMC drive is executed to erase the data of the eMMC; and S5: data destruction is completed. The application has the beneficial effect that based on the existing structure, an external MCU is not needed, and one-key destruction operation of eMMC storage can be realized through pure software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of memory data destruction technology, specifically to a one-click destruction method and system for embedded systems based on eMMC storage. Background Technology

[0002] With the continuous development of computers, many fields now rely on them, making data and technological security paramount. Many companies possess core technologies, and to prevent leaks, they typically implement functions for rapid data destruction in emergencies. This has led to the development of one-click data destruction. In an emergency, pressing a single button triggers data corruption, preventing technology leaks. Currently, an increasing number of embedded products use eMMC storage; however, only SATA and NVMe hard drives currently support one-click destruction, and there is no specific one-click destruction solution for eMMC storage.

[0003] The patent application, with publication number CN111090895A and titled "A Technical Solution for an EMMC Memory Logic Destruction System and Destruction Method," modifies the hardware of existing products by adding an external MCU. The logic destruction is controlled by the external MCU. This implementation method requires adding external hardware to each product and relies on external hardware support for control, resulting in a large workload and high cost. Summary of the Invention

[0004] To address the problems in the prior art, this invention provides a one-click destruction method for embedded systems based on eMMC storage, and also provides a one-click destruction system that enables eMMC storage that does not support one-click destruction to achieve one-click destruction, effectively preventing data leakage.

[0005] This invention provides a one-click destruction method for embedded systems based on eMMC storage, comprising the following steps: S1: The button driver detected that the destroy button was pressed; S2: Determine whether the time the destroy button has been pressed exceeds the first set value. If not, do not perform the operation; if so, proceed to the next step. S3: The eMMC driver scan function detects the destroy button. If the destroy button is detected to be pressed, proceed to the next step. S4: Execute the erase function of the eMMC driver to erase the data in the eMMC; S5: Data destruction complete.

[0006] Furthermore, in step S1, when a button is detected to be pressed, the timer starts counting; when a button is detected to be released, the timer stops counting; and then the timer is initialized.

[0007] Furthermore, after step S2 is executed and before step S3 is executed, a restart step is also included: if the time the destroy button is pressed exceeds the first set value, a restart operation is performed.

[0008] Further, in step S4, the erase function obtains the number of sectors of the eMMC and the initial erase position, and then performs the erasure of data in each sector.

[0009] This invention also provides a one-click destruction system for implementing the aforementioned one-click destruction method for an embedded system based on eMMC storage, comprising: Key operation detection module: Set in the key driver, used to detect whether the destroy key is pressed; Timer module: Used to detect the duration of continuous pressing of the destroy button; Judgment module: Used to determine whether the duration of the destroy button press exceeds the first preset value; Key detection module: Located within the eMMC driver, used to detect and destroy key press signals; Data erasure module: The erase function driven by eMMC is used to erase data in eMMC.

[0010] Furthermore, it also includes a restart module, which performs a restart operation if the duration of pressing the destroy button exceeds a first set value.

[0011] Compared with the prior art, the beneficial effects of the present invention are: the present invention does not rely on external hardware, does not require external MCU processing, and does not require the addition of external hardware to achieve one-click destruction function. Furthermore, the present invention is based on existing driver internal functions and is implemented in pure software, without the need for hardware-level destruction. It is quick and convenient, has low upgrade costs, and is applicable to all embedded products including eMMC memory. Attached Figure Description

[0012] To more clearly illustrate the solutions in this invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0013] Figure 1 This is a flowchart of the method according to the first embodiment of the present invention; Figure 2 This is a flowchart of the method according to the second embodiment of the present invention. Detailed Implementation

[0014] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains; the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings are used to distinguish different objects, not to describe a particular order.

[0015] In this invention, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment to other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this invention can be combined with other embodiments.

[0016] To enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0017] Current data destruction technologies suffer from significant media compatibility gaps: SATA / NVMe solutions are highly mature and offer one-click destruction technology; however, eMMC storage currently lacks a similar one-click destruction method, and since most embedded systems use eMMC storage, it does not support one-click destruction. Therefore, this invention, through software improvements, implements a one-click destruction function based on eMMC storage media.

[0018] like Figure 1 As shown, the one-click destruction method for embedded systems based on eMMC storage of the present invention includes the following steps: S1: The button driver detected that the destroy button was pressed; S2: Determine whether the time the destroy button has been pressed exceeds the first set value. If not, do not perform the operation; if so, proceed to the next step. S3: The eMMC driver scan function detects the destroy button. If the destroy button is detected to be pressed, proceed to the next step. S4: Execute the erase function of the eMMC driver to erase the data in the eMMC; S5: Data destruction complete, end.

[0019] In step S1, when a button is detected to be pressed, the timer starts counting down. When the button to be destroyed is detected to be released, the timer stops counting down. Then, the timer is initialized. In this example, the timer is directly implemented using the timer processing function in the button driver. When the button to be destroyed is released, the timer is initialized using the module initialization function.

[0020] In terms of implementation, this invention only requires setting up a one-click destroy function, and then using existing eMMC drivers and button drivers. Of course, the one-click destroy function in this example can also be used in conjunction with existing operation buttons, thus requiring no hardware modifications to existing products.

[0021] Preferably, when used in conjunction with existing operation buttons, the present invention will send a reminder message after the destroy button is operated, and the one-click destroy operation will be performed only after the personnel confirm, so as to avoid accidental data deletion.

[0022] like Figure 2 As shown, this example includes a restart step after step S2 and before step S3: if the duration of the press of the destroy button exceeds a first set value, a restart operation is performed. The first set value in this example can be 4 seconds, or it can be set to other durations as needed. The button driver detects that the destroy button is pressed and remains pressed for 4 seconds. At this time, the button driver performs a system restart operation. If the button is pressed for less than 4 seconds, no operation is performed to prevent accidental data destruction.

[0023] In step S4, the erase function obtains the number of sectors of the eMMC and the initial erase position, and then performs the erasure of data in each sector. In this example, the erase function can be divided into full disk erase, full disk write (0xFF), etc.

[0024] The relevant implementation code is as follows: Get the number of sectors in the eMMC: / / Get the number of sectors on the MMC card #include<linux / mmc / card.h> unsigned int get_mmc_card_sector_count(struct mmc_card *card) { struct mmc_ext_csd *ext_csd = &card->ext_csd; return ext_csd-> sectors; } Get the key value and execute the erase function: unsigned int nr; int g; g=gpio_get_value(KEY_GPIO_PIN); if (!g) { mmc_delay(1000); / / Anti-shake g=gpio_get_value(KEY_GPIO_PIN); if (!g) { nr = get_mmc_card_sector_count(host->card); mmc_erase(host->card, 0, nr,MMC_ERASE_ARG); } } In step S5, all sectors of the eMMC are erased to complete the data destruction process.

[0025] This invention also provides a one-click destruction system for implementing the aforementioned one-click destruction method for an embedded system based on eMMC storage, comprising: Key operation detection module: Set in the key driver, used to detect whether the destroy key is pressed; Timer module: Used to detect the duration of continuous pressing of the destroy button; Judgment module: Used to determine whether the duration of the destroy button press exceeds the first preset value; Key detection module: Located within the eMMC driver, used to detect and destroy key press signals; Data erasure module: The erase function driven by eMMC is used to erase data in eMMC.

[0026] Furthermore, it also includes a restart module, which performs a restart operation if the duration of pressing the destroy button exceeds a first set value.

[0027] As can be seen from the above, compared with the prior art, the present invention is based on the existing driver internal functions and is implemented in pure software. It does not require hardware-level destruction, is quick and convenient, has low upgrade costs, and is applicable to all embedded products including eMMC memory.

[0028] This invention does not rely on external hardware, does not require external MCU processing, and does not require the addition of external hardware to achieve the function of one-click destruction.

[0029] The specific embodiments described above are preferred embodiments of the present invention and are not intended to limit the specific scope of the present invention. The scope of the present invention includes, but is not limited to, these specific embodiments. All equivalent changes made in accordance with the present invention are within the protection scope of the present invention.

Claims

1. A one-click destruction method for an embedded system based on eMMC storage, characterized in that, Includes the following steps: S1: The button driver detected that the destroy button was pressed; S2: Determine whether the time the destroy button has been pressed exceeds the first set value. If not, do not perform the operation; if so, proceed to the next step. S3: The eMMC driver scan function detects the destroy button. If the destroy button is detected to be pressed, proceed to the next step. S4: Execute the erase function of the eMMC driver to erase the data in the eMMC; S5: Data destruction complete.

2. The one-click destruction method for embedded systems based on eMMC storage according to claim 1, characterized in that: In step S1, when a button press is detected, the timer starts counting down; when the button release is detected, the timer stops counting down; and then the timer is initialized.

3. The one-click destruction method for embedded systems based on eMMC storage according to claim 1, characterized in that: After step S2 is executed and before step S3 is executed, a restart step is also included: if the time the destroy button is pressed exceeds the first set value, a restart operation is performed.

4. The one-click destruction method for embedded systems based on eMMC storage according to claim 1, characterized in that: In step S4, the erase function obtains the number of sectors of the eMMC and the initial erase position, and then performs the erasure of data in each sector.

5. A one-click destruction system for implementing the one-click destruction method for embedded systems based on eMMC storage as described in any one of claims 1-4, characterized in that, include: Key operation detection module: Set in the key driver, used to detect whether the destroy key is pressed; Timer module: Used to detect the duration of continuous pressing of the destroy button; Judgment module: Used to determine whether the duration of the destroy button press exceeds the first preset value; Key detection module: Located within the eMMC driver, used to detect and destroy key press signals; Data erasure module: The erase function driven by eMMC is used to erase data in eMMC.

6. The one-click destruction system according to claim 5, characterized in that: It also includes a restart module, which performs a restart operation if the time the destroy button is pressed exceeds a first set value.

Citation Information

Patent Citations

  • EMMC memory logic destruction system and destruction method

    CN111090895A