[U-Boot] [PATCH v3 2/2] efi: device path for nvme

Heinrich Schuchardt xypron.glpk at gmx.de
Fri Oct 4 22:32:48 UTC 2019

On 10/3/19 4:24 PM, Patrick Wildt wrote:
> This allows our EFI API to create a device path node for NVMe
> devices.  It adds the necessary device path struct, uses the
> nvme namespace accessor to retrieve the id and eui64, and also
> provides support for the device path text protocol.
> Signed-off-by: Patrick Wildt <patrick at blueri.se>
> ---

I have tested with an NVMe drive mounted on a MACCHIATObin and saw
consistent device paths and GUIDs in U-Boot, UEFI Shell and Debian:

In U-Boot:

=> efidebug devices
Device           Device Path
================ ====================

In UEFI Shell (started from U-Boot):

     BLK1: Alias(s):


In Debian:

$ smartctl -a /dev/nvme0n1
Namespace 1 IEEE EUI-64:            002538 b581e60565

The first bytes match the brand of the drive:

002538     Samsung Electronics Co., Ltd., Memory Division

Tested-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

More information about the U-Boot mailing list