cmd_part: add partition-related command
authorStephen Warren <swarren@nvidia.com>
Fri, 21 Sep 2012 09:51:01 +0000 (09:51 +0000)
committerTom Rini <trini@ti.com>
Tue, 25 Sep 2012 22:05:47 +0000 (15:05 -0700)
commit5cf41dccff9d1e8c297de6eae8422d3e322eebbc
treeb26a97d6cea358c5a0ba3e51c74a5b44e4b6634c
parentd27b5f9398aba377ff2185fb4b8170eeca7c3b65
cmd_part: add partition-related command

This implements the following:

part uuid mmc 0:1
  -> print partition UUID
part uuid mmc 0:1 uuid
  -> set environment variable to partition UUID
part list mmc 0
  -> list the partitions on the specified device

"part uuid" can be useful when writing a bootcmd which searches all
known devices for something bootable, and then wants the kernel to
use the same partition as the root device, e.g.:

part uuid ${devtype} ${devnum}:${rootpart} uuid
setenv bootargs root=PARTUUID=${uuid} ...

Signed-off-by: Stephen Warren <swarren@nvidia.com>
common/Makefile
common/cmd_part.c [new file with mode: 0644]