diff mbox series

mmc-utils: Add ffu modes documentation

Message ID 20250105121407.71566-1-avri.altman@wdc.com
State New
Headers show
Series mmc-utils: Add ffu modes documentation | expand

Commit Message

Avri Altman Jan. 5, 2025, 12:14 p.m. UTC
Add documentation entries for the recently added optional ffu modes,
specifically, to exist in https://mmc-utils.readthedocs.io/en/latest/.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Cc: Bean Huo <beanhuo@micron.com>
---
 docs/HOWTO.rst | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

Comments

Bean Huo Jan. 5, 2025, 7:20 p.m. UTC | #1
On Sun, 2025-01-05 at 14:14 +0200, Avri Altman wrote:
> Add documentation entries for the recently added optional ffu modes,
> specifically, to exist in
> https://mmc-utils.readthedocs.io/en/latest/.
> 
> Signed-off-by: Avri Altman <avri.altman@wdc.com>
> Cc: Bean Huo <beanhuo@micron.com>

Thanks for adding this,  Avri, with you have an amazing new Year filled
with success, happiness, and exciting projects! 

Reviewed-by: Bean Huo <beanhuo@micron.com>
Ulf Hansson Jan. 17, 2025, 11:38 a.m. UTC | #2
On Sun, 5 Jan 2025 at 13:16, Avri Altman <avri.altman@wdc.com> wrote:
>
> Add documentation entries for the recently added optional ffu modes,
> specifically, to exist in https://mmc-utils.readthedocs.io/en/latest/.
>
> Signed-off-by: Avri Altman <avri.altman@wdc.com>
> Cc: Bean Huo <beanhuo@micron.com>

Applied for master, thanks!

Kind regards
Uffe


> ---
>  docs/HOWTO.rst | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/docs/HOWTO.rst b/docs/HOWTO.rst
> index 0ce7279..095a9bd 100644
> --- a/docs/HOWTO.rst
> +++ b/docs/HOWTO.rst
> @@ -35,7 +35,20 @@ Running mmc-utils
>          Print SCR data from <device path>. The device path should specify the scr file directory.
>
>      ``ffu <image name> <device> [chunk-bytes]``
> -        Run Field Firmware Update with <image name> on <device>. [chunk-bytes] is optional and defaults to its max - 512k. Should be in decimal bytes and sector aligned.
> +      Default mode.  Run Field Firmware Update with `<image name>` on `<device>`. `[chunk-bytes]` is optional and defaults to its max - 512k. Should be in decimal bytes and sector aligned.
> +
> +    ``opt_ffu1 <image name> <device> [chunk-bytes]``
> +      Optional FFU mode 1, it's the same as 'ffu', but uses CMD23+CMD25 for repeated downloads and remains in FFU mode until completion.
> +
> +    ``opt_ffu2 <image name> <device> [chunk-bytes]``
> +      Optional FFU mode 2, uses CMD25+CMD12 Open-ended Multiple-block write to download and remains in FFU mode until completion.
> +
> +    ``opt_ffu3 <image name> <device> [chunk-bytes]``
> +      Optional FFU mode 3, uses CMD24 Single-block write for downloading, exiting FFU mode after each block written.
> +
> +    ``opt_ffu4 <image name> <device> [chunk-bytes]``
> +      Optional FFU mode 4, uses CMD24 Single-block write for repeated downloads, remaining in FFU mode until completion.
> +
>
>      ``erase <type> <start address> <end address> <device>``
>          Send Erase CMD38 with specific argument to the <device>. NOTE!: This will delete all user data in the specified region of the device. <type> must be one of: legacy, discard, secure-erase, secure-trim1, secure-trim2, or trim.
> --
> 2.25.1
>
diff mbox series

Patch

diff --git a/docs/HOWTO.rst b/docs/HOWTO.rst
index 0ce7279..095a9bd 100644
--- a/docs/HOWTO.rst
+++ b/docs/HOWTO.rst
@@ -35,7 +35,20 @@  Running mmc-utils
         Print SCR data from <device path>. The device path should specify the scr file directory.
 
     ``ffu <image name> <device> [chunk-bytes]``
-        Run Field Firmware Update with <image name> on <device>. [chunk-bytes] is optional and defaults to its max - 512k. Should be in decimal bytes and sector aligned.
+      Default mode.  Run Field Firmware Update with `<image name>` on `<device>`. `[chunk-bytes]` is optional and defaults to its max - 512k. Should be in decimal bytes and sector aligned.
+
+    ``opt_ffu1 <image name> <device> [chunk-bytes]``
+      Optional FFU mode 1, it's the same as 'ffu', but uses CMD23+CMD25 for repeated downloads and remains in FFU mode until completion.
+
+    ``opt_ffu2 <image name> <device> [chunk-bytes]``
+      Optional FFU mode 2, uses CMD25+CMD12 Open-ended Multiple-block write to download and remains in FFU mode until completion.
+
+    ``opt_ffu3 <image name> <device> [chunk-bytes]``
+      Optional FFU mode 3, uses CMD24 Single-block write for downloading, exiting FFU mode after each block written.
+
+    ``opt_ffu4 <image name> <device> [chunk-bytes]``
+      Optional FFU mode 4, uses CMD24 Single-block write for repeated downloads, remaining in FFU mode until completion.
+
 
     ``erase <type> <start address> <end address> <device>``
         Send Erase CMD38 with specific argument to the <device>. NOTE!: This will delete all user data in the specified region of the device. <type> must be one of: legacy, discard, secure-erase, secure-trim1, secure-trim2, or trim.