CN114003415A - Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium - Google Patents

Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium Download PDF

Info

Publication number
CN114003415A
CN114003415A CN202111210729.8A CN202111210729A CN114003415A CN 114003415 A CN114003415 A CN 114003415A CN 202111210729 A CN202111210729 A CN 202111210729A CN 114003415 A CN114003415 A CN 114003415A
Authority
CN
China
Prior art keywords
emmc
attribute
determining
state
reliability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111210729.8A
Other languages
Chinese (zh)
Inventor
彭和平
郑泽龙
谭贵勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202111210729.8A priority Critical patent/CN114003415A/en
Publication of CN114003415A publication Critical patent/CN114003415A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/008Reliability or availability analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

The application discloses a method for verifying reliability write attribute of eMMC, a device thereof and a storage medium, wherein the method comprises the following steps: detecting the starting state of the mainboard; entering a bootloader program according to the starting state of the mainboard; and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value. According to the method and the device, the attribute value of the reliability write attribute of the eMMC is obtained by executing the verification function in the bootloader program, and then the starting state of the reliability write attribute of the eMMC is determined according to the attribute value, so that the starting state efficiency of verifying the reliability write attribute of the eMMC attached to the PCB is improved.

Description

Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium
Technical Field
The embodiment of the application relates to the field of communication, in particular to a method and a device for verifying reliability write attributes of eMMC and a storage medium.
Background
Due to the fact that a physical structure of a paged page exists in the existing NAND Flash, when power is suddenly cut off during writing operation, data written before can be damaged possibly. The purpose of the reliable Write attribute (Write Reliability) of the emmc (embedded Multi Media card) is to prevent data from being damaged due to sudden power failure and ensure the integrity of the data, i.e., the power-off protection function.
In the prior art, before the burner is used for burning the reliability write attribute of the eMMC, the burner controls the opening and closing of the reliability write attribute of the eMMC through a setting interface of the burner. However, after the eMMC is burned and attached to the PCB, the reliability write attribute cannot be changed, and whether the current eMMC is in an open state or a closed state cannot be checked, that is, the open state of the reliability write attribute of the eMMC attached to the PCB cannot be verified quickly.
Disclosure of Invention
The method, the device and the storage medium for verifying the reliability write attribute of the eMMC are characterized in that the attribute value of the reliability write attribute of the eMMC is obtained by executing a verification function according to a bootloader program, and then the opening state of the reliability write attribute of the eMMC is determined according to the attribute value, so that the opening state efficiency of verifying the reliability write attribute of the eMMC attached to a PCB is improved.
A first aspect of the present application provides a method for verifying an eMMC reliability write attribute, including:
detecting the starting state of the mainboard;
entering a bootloader program according to the starting state of the mainboard;
and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
Optionally, after determining the open state of the eMMC reliability write attribute according to the attribute value, the method further includes:
and displaying the opening state through a display module.
Optionally, the determining the starting state of the eMMC reliability write attribute according to the attribute value includes:
judging whether the attribute value is equal to a preset value or not;
and if so, determining that the opening state of the reliability write attribute of the eMMC is the closing state.
Optionally, after determining whether the attribute value is equal to the preset value, the method further includes:
and if not, determining that the starting state of the reliability write attribute of the eMMC is the opening state.
A second aspect of the present application provides an apparatus for verifying eMMC reliability write attributes, comprising:
the detection unit is used for detecting the starting state of the mainboard;
the access unit is used for entering a bootloader program according to the starting state of the mainboard;
and the acquisition/determination unit is used for acquiring the attribute value of the reliability write attribute of the eMMC by executing a verification function through the bootloader program and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
Optionally, the apparatus further comprises:
and the display unit is used for displaying the opening state through the display module.
Optionally, the obtaining/determining unit includes:
the judging module is used for judging whether the attribute value is equal to a preset value or not;
and the first determining module is used for determining that the starting state of the reliability write attribute of the eMMC is the closing state when the judging module determines that the attribute value is equal to the preset value.
Optionally, the obtaining/determining unit further includes:
and the second determining module is used for determining that the starting state of the reliability write attribute of the eMMC is an open state when the judging module determines that the attribute value is not equal to the preset value.
A third aspect of the present application provides an apparatus for verifying an eMMC reliability write attribute, comprising:
a processor, a memory, an input-output device, and a bus; the processor is connected with the memory, the input and output device and the bus.
The processor performs the following operations:
detecting the starting state of the mainboard;
entering a bootloader program according to the starting state of the mainboard;
and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
Optionally, the processor is further configured to perform the operations of any of the alternatives of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having a program stored thereon, the program being executable on a computer to perform the aforementioned method.
From the above techniques: detecting the starting state of the mainboard; entering a bootloader program according to the starting state of the mainboard; and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value. According to the method and the device, the attribute value of the reliability write attribute of the eMMC is obtained by executing the verification function in the bootloader program, and then the starting state of the reliability write attribute of the eMMC is determined according to the attribute value, so that the starting state efficiency of verifying the reliability write attribute of the eMMC attached to the PCB is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an embodiment of a method for verifying an eMMC reliability write attribute in the present application;
fig. 2 is a schematic structural diagram of an embodiment of an apparatus for verifying an eMMC reliability write attribute in the present application;
fig. 3 is a schematic structural diagram of another embodiment of an apparatus for verifying an eMMC reliability write attribute in the present application.
Detailed Description
The embodiment of the application provides a method, a device and a storage medium for verifying reliability write attributes of eMMC, wherein the method comprises the steps of obtaining an attribute value of the reliability write attributes of the eMMC by executing a verification function in a bootloader program, and then determining the starting state of the reliability write attributes according to the attribute value, so that the starting state efficiency of verifying the reliability write attributes of the eMMC attached to a PCB is improved.
Referring to fig. 1, an embodiment of a method for verifying an eMMC reliability write attribute in an embodiment of the present application includes:
101. detecting the starting state of the mainboard;
in this embodiment, the device for verifying the eMMC reliability write attribute is always in a state of detecting the startup of the motherboard, and when the motherboard is powered on by a current, the device for verifying the eMMC reliability write attribute detects that the startup state of the motherboard is startup; when the mainboard is not supplied with current, the device for verifying the reliability write attribute of the eMMC can not detect that the mainboard is activated, namely, the startup state of the mainboard is shutdown.
In this embodiment, the power-on state of the motherboard may be detected through a current, or the power-on state of the motherboard may be detected through a digital signal, which is not specifically limited herein.
102. Entering a bootloader program according to the starting state of the mainboard;
because the Bootloader is the first section of program executed by the embedded system after power-on, after the Bootloader completes the initialization of the CPU and the related hardware, the operating system image or the solidified embedded application program is loaded into the memory, and then the operating system jumps to the space where the operating system is located, and the operating system is started to run. Therefore, when the boot state of the mainboard is detected as boot, the bootloader program is entered and executed.
103. Acquiring an attribute value of the reliability write attribute of the eMMC by executing a verification function through a bootloader program, and judging whether the attribute value is equal to a preset value or not; if yes, go to step 104; if not, go to step 105;
in the application, a verification function is set in a bootloader program, wherein the verification function is a command function, namely a function for inputting a command and executing the command; the verification function is used to read the value stored in the EXT _ CSD [167] register of the chip. The specific verification function is as follows:
Figure BDA0003308853830000041
Figure BDA0003308853830000051
since the value stored in the EXT _ CSD [167] register of the chip is used for indicating the open state of the reliability write attribute of the eMMC attached to the PCB, after entering the bootloader program, a command is input under the command line of the bootloader program to execute the verification function. Obtaining an attribute value of an eMMC reliability write attribute by executing the verification function; in order to further determine the reliability write attribute open state of the eMMC, after the attribute value is obtained, whether the attribute value is equal to a preset value is determined. When the attribute value is not equal to the preset value, the attribute value indicates that the reliability write attribute of the eMMC is opened; when the attribute value is equal to a preset value, the attribute indicates that the eMMC reliability write attribute is not turned on.
In this embodiment, if the preset value is 0x00, when the attribute value is 0x00, it indicates that the eMMC reliability write attribute is not opened; when the attribute value is not 0x00, it indicates that the eMMC reliability write attribute has been opened.
104. Determining that the opening state of the reliability write attribute of the eMMC is the closing state;
when the attribute value is determined to indicate that the reliability write attribute of the eMMC is not opened, the eMMC reliability write attribute device determines that the open state of the reliability write attribute of the eMMC attached to the PCB is the closed state.
105. Determining the starting state of the reliability write attribute of the eMMC as an opening state;
when it is determined that the attribute value represents that the eMMC reliability write attribute has been opened, the eMMC reliability write attribute determining means determines that the on state of the reliability write attribute of the eMMC attached to the PCB is an open state.
106. And displaying the opening state through the display module.
After the opening state of the reliability writing attribute of the eMMC is determined, the device for the reliability writing attribute of the eMMC displays the opening state to a user through the display module, so that the user can directly and quickly know the opening state.
Detecting the starting state of the mainboard; entering a bootloader program according to the starting state of the mainboard; and executing a verification function through a bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value. According to the method and the device, the attribute value of the reliability write attribute of the eMMC is obtained by executing the verification function in the bootloader program, and then the starting state of the reliability write attribute of the eMMC is determined according to the attribute value, so that the starting state efficiency of verifying the reliability write attribute of the eMMC attached to the PCB is improved.
Referring to fig. 2, an embodiment of an apparatus for verifying an eMMC reliability write attribute in an embodiment of the present application includes:
a detection unit 201, configured to detect a motherboard boot state;
an entry unit 202, configured to enter a bootloader program according to a motherboard boot state;
the obtaining/determining unit 203 is configured to obtain an attribute value of the eMMC reliability write attribute by executing a verification function through the bootloader program, and determine an open state of the eMMC reliability write attribute according to the attribute value.
In this embodiment, the apparatus may further include:
the display unit 204 is configured to display the open state through the display module.
In this embodiment, the obtaining/determining unit 203 may include a determining module 2031, a first determining module 2032, and a second determining module 2033.
A judging module 2031, configured to judge whether the attribute value is equal to a preset value;
the first determining module 2032 is configured to determine that the open state of the eMMC reliability write attribute is the closed state when the determining module 2031 determines that the attribute value is equal to the preset value.
A second determining module 2033, configured to determine, when the determining module 2031 determines that the attribute value is not equal to the preset value, that the open state of the eMMC reliability write attribute is an open state.
In this embodiment, the detecting unit 201 detects a motherboard boot state, and when the detecting unit detects that the motherboard boot state is a boot, the entering unit 202 enters a bootloader program according to the motherboard boot state, further, the obtaining/determining unit 203 obtains an attribute value of an eMMC reliability write attribute by executing a verification function through the bootloader program, and sends the attribute value to the determining module 2031, and the determining module 2031 determines whether the attribute value is equal to a preset value; when the judging module 2031 determines that the attribute value is equal to the preset value, the first determining module 2032 determines that the open state of the eMMC reliability write attribute is the closed state; when the determining module 2031 determines that the attribute value is not equal to the preset value, the second determining module 2033 determines that the open state of the eMMC reliability write attribute is an open state. After the device determines the opening state of the eMMC reliability write attribute, the opening state is sent to the presentation unit 204, and the presentation unit 204 presents the opening state through the display module.
Referring to fig. 3, a device for verifying an eMMC reliability write attribute in an embodiment of the present application is described in detail below, where another embodiment of the device for verifying an eMMC reliability write attribute in the embodiment of the present application includes:
a processor 301, a memory 302, an input-output unit 303, a bus 304;
the processor 301 is connected with the memory 302, the input and output unit 303 and the bus 304;
processor 301 performs the following operations:
detecting the starting state of the mainboard;
entering a bootloader program according to the starting state of the mainboard;
and executing a verification function through a bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
In this embodiment, the functions of the processor 301 are similar to those of the steps in the embodiment shown in fig. 1, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. A method of verifying an eMMC reliability write attribute, comprising:
detecting the starting state of the mainboard;
entering a bootloader program according to the starting state of the mainboard;
and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
2. The method of claim 1, wherein after determining the on state of the eMMC reliability write attribute from the attribute value, the method further comprises:
and displaying the opening state through a display module.
3. The method of claim 1 or 2, wherein determining the on state of the eMMC reliability write attribute from the attribute value comprises:
judging whether the attribute value is equal to a preset value or not;
and if so, determining that the opening state of the reliability write attribute of the eMMC is the closing state.
4. The method of claim 3, wherein after determining whether the attribute value is equal to the predetermined value, the method further comprises:
and if not, determining that the starting state of the reliability write attribute of the eMMC is the opening state.
5. An apparatus to verify an eMMC reliability write attribute, comprising:
the detection unit is used for detecting the starting state of the mainboard;
the access unit is used for entering a bootloader program according to the starting state of the mainboard;
and the acquisition/determination unit is used for acquiring the attribute value of the reliability write attribute of the eMMC by executing a verification function through the bootloader program and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
6. The apparatus of claim 5, further comprising:
and the display unit is used for displaying the opening state through the display module.
7. The apparatus according to claim 5 or 6, wherein the obtaining/determining unit comprises: the judging module is used for judging whether the attribute value is equal to a preset value or not;
and the first determining module is used for determining that the starting state of the reliability write attribute of the eMMC is the closing state when the judging module determines that the attribute value is equal to the preset value.
8. The apparatus of claim 7, wherein the obtaining/determining unit further comprises:
and the second determining module is used for determining that the starting state of the reliability write attribute of the eMMC is an open state when the judging module determines that the attribute value is not equal to the preset value.
9. An apparatus to verify an eMMC reliability write attribute, comprising:
a processor, a memory, an input-output device, and a bus;
the processor is connected with the memory, the input and output equipment and the bus;
the processor performs the following operations:
detecting the starting state of the mainboard;
entering a bootloader program according to the starting state of the mainboard;
and executing a verification function through the bootloader program to obtain an attribute value of the reliability write attribute of the eMMC, and determining the starting state of the reliability write attribute of the eMMC according to the attribute value.
10. A computer-readable storage medium having a program stored thereon, which when executed on a computer performs the method of any one of claims 1 to 4.
CN202111210729.8A 2021-10-18 2021-10-18 Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium Pending CN114003415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111210729.8A CN114003415A (en) 2021-10-18 2021-10-18 Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111210729.8A CN114003415A (en) 2021-10-18 2021-10-18 Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium

Publications (1)

Publication Number Publication Date
CN114003415A true CN114003415A (en) 2022-02-01

Family

ID=79923014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111210729.8A Pending CN114003415A (en) 2021-10-18 2021-10-18 Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium

Country Status (1)

Country Link
CN (1) CN114003415A (en)

Similar Documents

Publication Publication Date Title
US6721885B1 (en) Reducing start-up time and avoiding customer-induced system failures for personal computers
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
US20160314002A1 (en) Caching unified extensible firmware interface (uefi) and/or other firmware instructions in a non-volatile memory of an information handling system (ihs)
TWI453581B (en) Method for detecting hardware
US7188235B2 (en) Method for booting computer system with memory card
US20100241815A1 (en) Hybrid Storage Device
US20090300588A1 (en) Method and apparatus for acquiring definitions of debug code of basic input/output system
EP2189906A1 (en) Method and apparatus for abnormality recovering of data card, and data card
US20140195697A1 (en) Apparatus and method for detecting functions of video card
CN103593281A (en) Test system and test method
US20100049961A1 (en) Update method for basic input/output system and update system thereof
US20090132798A1 (en) Electronic device and method for resuming from suspend-to-memory state thereof
WO2012031567A1 (en) Fault tolerance method and device for file system
CN106020895B (en) Application program starting method and user terminal
US9946552B2 (en) System and method for detecting redundant array of independent disks (RAID) controller state from baseboard management controller (BMC)
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
CN108009039B (en) Terminal information recording method, device, storage medium and electronic equipment
CN114003415A (en) Method and device for verifying reliability write attribute of eMMC (enhanced multimedia card) and storage medium
EP4296860A1 (en) Method for running startup program of electronic device, and electronic device
CN113051576A (en) Control method and electronic device
Intel Intel® Desktop Board D848PMB Technical Product Specification
KR20070089399A (en) Method for booting control of digital store apparatus
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
US20100070680A1 (en) Memory management method during power-on self test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination