<command> <interface> [devnum][.hwpartnum][:partnum|#partname]
Many U-Boot commands allow specifying partitions (or whole disks) using a generic syntax.
- The interface used to access the partition’s device, like
scsi. For a full list of supported interfaces, consult the
- The device number. This defaults to 0.
- The hardware partition number. All devices have at least one hardware partition. On most devices, hardware partition 0 specifies the whole device. On eMMC devices, hardware partition 0 is the user partition, hardware partitions 1 and 2 are the boot partitions, hardware partition 3 is the RPMB partition, and further partitions are general-purpose user-created partitions. The default hardware partition number is 0.
- The partition number, starting from 1. The partition number 0 specifies that the whole device is to be used as one “partition.”
The partition name. This is the partition label for GPT partitions. For MBR partitions, the following syntax is used:
- A device type like
hd. See the
disk/part.cfor a complete list.
- The device number as an offset from
a. For example, device number 2 would have a device letter of
- The partition number. This is the same as above.
partnum is specified and there is a partition
table, then partition 1 is used. If there is no partition table, then the whole
device is used as one “partition.” If none of
partname is specified, or only
- is specified, then
devnum defaults to the value of the
bootdevice environmental variable.
List the root directory contents on MMC device 2, hardware partition 1, and partition number 3:
ls mmc 2.1:3 /
/kernel.itb to address
0x80000000 from SCSI device 0, hardware partition
0, and the partition labeled
load scsi #boot 0x80000000 /kernel.itb
Print the partition UUID of the SATA device
$bootdevice, hardware partition
0, and partition number 0:
part uuid sata -