[PATCH 02/10] Add part_find command

Simon Glass sjg at chromium.org
Sun Dec 8 16:29:32 CET 2024


Hi Matthew,

On Sat, 23 Nov 2024 at 12:56, Matthew Garrett <mjg59 at srcf.ucam.org> wrote:
>
> From: Matthew Garrett <mgarrett at aurora.tech>
>
> part_find takes a GPT GUID and searches for a partition that matches
> that. It then sets the target_part environment variable to the media
> type, device number and partition number that matched, allowing
> $target_part to be passed directly to bootm and similar commands.
>
> Signed-off-by: Matthew Garrett <mgarrett at aurora.tech>
> ---
>
>  cmd/Kconfig     |  10 ++++
>  cmd/Makefile    |   1 +
>  cmd/part_find.c | 156 ++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 167 insertions(+)
>  create mode 100644 cmd/part_find.c

Reviewed-by: Simon Glass <sjg at chromium.org>

Nits below. This needs an update to doc/usage/cmd/part.rst and a test.
There is a ChromeOS bootimage used in the bootflow tests which might
be helpful here, as it uses GPT.

>
Applied to ci/master, thanks!


More information about the U-Boot mailing list