diff options
| author | Tomas Paukrt <[email protected]> | 2024-09-02 20:49:17 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-09-16 16:45:55 -0600 |
| commit | 6c0943ff54ec27bf3c277767c2a9e1fb458e57a0 (patch) | |
| tree | 596a11bea788836926fb1aedef36d60aca726441 /doc/usage/cmd | |
| parent | 39aa94a5c372f9daaae3f4eb11c26cf900de2094 (diff) | |
cmd: mmc: Allow using partition name in mmc erase command
The mmc erase command currently requires blk# and cnt parameters
which can be obtained using the part start and part size commands
if the entire partition needs to be erased.
Simplify the use of the mmc erase command by allowing the partition
name to be specified directly.
Signed-off-by: Tomas Paukrt <[email protected]>
Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'doc/usage/cmd')
| -rw-r--r-- | doc/usage/cmd/mmc.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/usage/cmd/mmc.rst b/doc/usage/cmd/mmc.rst index 5a64400eeae..55391fda24c 100644 --- a/doc/usage/cmd/mmc.rst +++ b/doc/usage/cmd/mmc.rst @@ -15,6 +15,7 @@ Synopsis mmc read addr blk# cnt mmc write addr blk# cnt mmc erase blk# cnt + mmc erase partname mmc rescan [mode] mmc part mmc dev [dev] [part] [mode] @@ -44,12 +45,15 @@ The 'mmc write' command writes raw data to MMC device from memory address with b cnt block count -The 'mmc erase' command erases *cnt* blocks on the MMC device starting at block *blk#*. +The 'mmc erase' command erases *cnt* blocks on the MMC device starting at block *blk#* or +the entire partition specified by *partname*. blk# start block offset cnt block count + partname + partition name The 'mmc rescan' command scans the available MMC device. |
