[2/4] cmd: part: support lookup by UUID in 'part number'
Simon Glass
sjg at chromium.org
Tue Mar 31 17:00:13 CEST 2026
Hi Dario,
On 2026-03-28T17:15:13, Dario Binacchi
<dario.binacchi at amarulasolutions.com> wrote:
> diff --git a/cmd/part.c b/cmd/part.c
> @@ -139,6 +139,10 @@ static int do_part_info(int argc, char *const argv[], enum cmd_part_info param)
> + } else if (uuid_str_valid(argv[2])) {
> + part = part_get_info_by_uuid(desc, argv[2], &info);
> + if (part < 0)
> + return 1;
Please can you update the help for 'part start' and 'part size' as
well so they mention UUID?
> diff --git a/cmd/part.c b/cmd/part.c
> @@ -139,6 +139,10 @@ static int do_part_info(int argc, char *const argv[], enum cmd_part_info param)
> + } else if (uuid_str_valid(argv[2])) {
Since you are adding a new feature, could you add a test for this in
test/dm/part.c?
Regards,
Simon
More information about the U-Boot
mailing list