xref: /OK3568_Linux_fs/kernel/Documentation/driver-api/mmc/mmc-tools.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun======================
2*4882a593SmuzhiyunMMC tools introduction
3*4882a593Smuzhiyun======================
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunThere is one MMC test tools called mmc-utils, which is maintained by Chris Ball,
6*4882a593Smuzhiyunyou can find it at the below public git repository:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun	https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunFunctions
11*4882a593Smuzhiyun=========
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunThe mmc-utils tools can do the following:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun - Print and parse extcsd data.
16*4882a593Smuzhiyun - Determine the eMMC writeprotect status.
17*4882a593Smuzhiyun - Set the eMMC writeprotect status.
18*4882a593Smuzhiyun - Set the eMMC data sector size to 4KB by disabling emulation.
19*4882a593Smuzhiyun - Create general purpose partition.
20*4882a593Smuzhiyun - Enable the enhanced user area.
21*4882a593Smuzhiyun - Enable write reliability per partition.
22*4882a593Smuzhiyun - Print the response to STATUS_SEND (CMD13).
23*4882a593Smuzhiyun - Enable the boot partition.
24*4882a593Smuzhiyun - Set Boot Bus Conditions.
25*4882a593Smuzhiyun - Enable the eMMC BKOPS feature.
26*4882a593Smuzhiyun - Permanently enable the eMMC H/W Reset feature.
27*4882a593Smuzhiyun - Permanently disable the eMMC H/W Reset feature.
28*4882a593Smuzhiyun - Send Sanitize command.
29*4882a593Smuzhiyun - Program authentication key for the device.
30*4882a593Smuzhiyun - Counter value for the rpmb device will be read to stdout.
31*4882a593Smuzhiyun - Read from rpmb device to output.
32*4882a593Smuzhiyun - Write to rpmb device from data file.
33*4882a593Smuzhiyun - Enable the eMMC cache feature.
34*4882a593Smuzhiyun - Disable the eMMC cache feature.
35*4882a593Smuzhiyun - Print and parse CID data.
36*4882a593Smuzhiyun - Print and parse CSD data.
37*4882a593Smuzhiyun - Print and parse SCR data.
38