MMC tools introduction
======================
There is one MMC test tools called mmc-utils, which is maintained by
Ulf Hansson, you can find it at the below public git repository:
https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
Functions
=========
The mmc-utils tools can do the following:
- Print and parse extcsd data.
- Determine the eMMC writeprotect status.
- Set the eMMC writeprotect status.
- Set the eMMC data sector size to 4KB by disabling emulation.
- Create general purpose partition.
- Enable the enhanced user area.
- Enable write reliability per partition.
- Print the response to STATUS_SEND (CMD13).
- Enable the boot partition.
- Set Boot Bus Conditions.
- Enable the eMMC BKOPS feature.
- Permanently enable the eMMC H/W Reset feature.
- Permanently disable the eMMC H/W Reset feature.
- Send Sanitize command.
- Program authentication key for the device.
- Counter value for the rpmb device will be read to stdout.
- Read from rpmb device to output.
- Write to rpmb device from data file.
- Enable the eMMC cache feature.
- Disable the eMMC cache feature.
- Print and parse CID data.
- Print and parse CSD data.
- Print and parse SCR data.
sysutils/mmc-utils: Update to 20230612 version
Apart from Linux build bits, this improves CID printing slightly and
changes the version number reported by mmc-utils form 0.1 to the git
hash of the checkout.
Approved by: netchild
sysutils/mmc-utils: Update to 20230209 version
This loops back some local fixes and enhancements but also brings initial
support for writing EXT_CSD values and GEN_CMD (CMD56) read support, both
for vendor-specific bits. Also:
- Use more up-to-date location for WWW and pkg-descr.
- Take back port.
Approved by: netchild
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils/mmc-utils: Minor changes to port
- Fetch the distfile directly from the master git repository based on
the nifty approach taken by mail/alpine instead of using a local copy.
Note that this bumps the PORTVERSION to the last commit date (rather
than last change date) of the repository w/o a change in source. [1]
- Chase outdated repository URL in pkg-descr (still wrong in WWW). [2]
PR: 260527
Obtained from: mail/alpine [1]
Submitted by: diizzy [2]
- Update to mmc-utils as of 20191004, for the most part bringing only
minor enhancements and fixes.
- Chase WWW [1]
PR: 251787 [1]
Submitted by: Newton Terry [1]
- Remove always-false OSVERSION conditions
- Convert the remaining one into IGNORE_DragonFly and fix message
correspondingly
Approved by: portmgr blanket
Update to mmc-utils as of 20180327, fixing an ENH_START_ADDR conversion
overflow which in turn can cause a failure when trying to partition the
enhanced user data area.
Update to mmc-utils as of 20170320, which additionally allow for
obtaining the life time estimation and pre-EOL information of an
eMMC chip from the extended CSD registers.
Add a port of mmc-utils, a collection of tools for MMC/SD devices.
Among others, this allows to partition eMMC devices via /dev/mmcsdN.
Currently, FreeBSD version 1200025 or later is required for mmc-utils.
CAVEAT EMPTOR: Partitioning eMMC devices is a one-time operation.