diff options
author | Enric Balletbo i Serra <eballetb@redhat.com> | 2023-01-10 19:19:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-18 21:10:41 +0300 |
commit | 22e7f1d108410cc81a0ec5a6481338e4d6e9586e (patch) | |
tree | 9b75ad847f2e71442a80c4b8b2e4e6649d1c0b5d /doc | |
parent | a685e9c99fb22b37aa5a9c8df235e35384321515 (diff) | |
download | u-boot-22e7f1d108410cc81a0ec5a6481338e4d6e9586e.tar.xz |
cmd: part: Add partition-related type command
This implements the following command:
part type mmc 0:1
-> print partition type UUID
part type mmc 0:1 uuid
-> set environment variable to partition type UUID
"part type" can be useful when writing a bootcmd which searches for a
specific partition type to enable automatic discovery of partitions and
their intended usage or mount point.
Signed-off-by: Enric Balletbo i Serra <eballetbo@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Fix when CONFIG_PARTITION_TYPE_GUID is disabled and have the
command check for "types" before "type"]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/usage/cmd/part.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/usage/cmd/part.rst b/doc/usage/cmd/part.rst index ed464b180b..8d2a280391 100644 --- a/doc/usage/cmd/part.rst +++ b/doc/usage/cmd/part.rst @@ -13,6 +13,7 @@ Synopis part start <interface> <dev> <part> <varname> part size <interface> <dev> <part> <varname> part number <interface> <dev> <part> <varname> + part type <interface> <dev>:<part> [varname] part types Description @@ -81,6 +82,17 @@ part must be specified as partition name. varname a variable to store the current partition number value into +The 'part type' command prints or sets an environment variable to the partition type UUID. + + interface + interface for accessing the block device (mmc, sata, scsi, usb, ....) + dev + device number + part + partition number + varname + a variable to store the current partition type UUID value into + The 'part types' command list supported partition table types. Examples @@ -126,6 +138,12 @@ Examples => env print varname varname=0x2 => + => part type host 0:1 + ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 + => part type host 0:1 varname + => env print varname + varname=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 + => => part types Supported partition tables: EFI, AMIGA, DOS, ISO, MAC |