[PATCH] efi_loader: expand disk device names with drive details
Simon Glass
sjg at chromium.org
Mon Apr 20 21:34:10 CEST 2026
On 2026-04-20T07:28:41, Padmarao Begari <padmarao.begari at amd.com> wrote:
> efi_loader: expand disk device names with drive details
>
> Increase the boot menu device name buffer so we can append extra
> metadata. Append the disk capacity and trimmed vendor/product strings
> to the device name so users can differentiate drives in the EFI boot
> menu. Also tighten the parameter validation and pull in linux/string.h
> for strl* helpers.
>
> For example, the U-Boot boot menu now shows entries such as:
>
> usb 0 (29.7 GiB, Generic Ultra HS-COMBO)
> usb 1 (28.6 GiB, USB SanDisk 3.2Gen1)
> scsi 0 (1 GiB, MICRON MT064GBCAV1U31AA)
>
> Signed-off-by: Padmarao Begari <padmarao.begari at amd.com>
>
> include/efi_loader.h | 2 +-
> lib/efi_loader/efi_disk.c | 86 +++++++++++++++++++++++++++++++++++++++++++++--
> 2 files changed, 85 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list