diff options
| author | Marek Vasut <[email protected]> | 2026-07-28 19:53:38 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-07-31 11:05:31 +0200 |
| commit | c9baa7611b2a00f31dc5855b9b3572bfac1fd0a8 (patch) | |
| tree | 79871d47e0cbbd192e2098dc44dcee0638606635 | |
| parent | b4d2bad93e3080e9c7a7e007367265c3756ac435 (diff) | |
doc: cmd: gpt: Reinstate gpt setenv
Commit dc3765ede5a4 ("doc: Switch from setenv to env set") was
too eager to switch "setenv" to "env set" and also incorrectly
rewrote "gpt setenv" to "gpt env set". Undo this error.
Fixes: dc3765ede5a4 ("doc: Switch from setenv to env set")
Signed-off-by: Marek Vasut <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | doc/usage/cmd/gpt.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/usage/cmd/gpt.rst b/doc/usage/cmd/gpt.rst index a2f116d05ad..6afc634eb0a 100644 --- a/doc/usage/cmd/gpt.rst +++ b/doc/usage/cmd/gpt.rst @@ -119,10 +119,10 @@ Sets the bootable flag for all partitions in the table. If the partition name is in 'partition list' (separated by ','), the bootable flag is set, otherwise it is cleared. CONFIG_CMD_GPT_RENAME=y is required. -gpt env set -~~~~~~~~~~~ +gpt setenv +~~~~~~~~~~ -The 'gpt env set' command will set a series of environment variables with +The 'gpt setenv' command will set a series of environment variables with information about the partition named '<partition name>'. The variables are: gpt_partition_addr @@ -199,7 +199,7 @@ $gpt_parts:: Get the information about the partition named 'rootfs':: - => gpt env set mmc 0 rootfs + => gpt setenv mmc 0 rootfs => echo ${gpt_partition_addr} 2000 => echo ${gpt_partition_size} @@ -231,19 +231,19 @@ Set the bootable flag for the 'boot' partition and clear it for all others:: Swap the order of the 'boot' and 'rootfs' partition table entries:: - => gpt env set mmc 0 rootfs + => gpt setenv mmc 0 rootfs => echo ${gpt_partition_entry} 2 - => gpt env set mmc 0 boot + => gpt setenv mmc 0 boot => echo ${gpt_partition_entry} 1 => gpt transpose mmc 0 1 2 - => gpt env set mmc 0 rootfs + => gpt setenv mmc 0 rootfs => echo ${gpt_partition_entry} 1 - => gpt env set mmc 0 boot + => gpt setenv mmc 0 boot => echo ${gpt_partition_entry} 2 |
