Hi, I can not find structure of BOOTXXXX variable, Can any one help how to extract device path from BOOTXXXX variable.
here is code i have attempt (rEFind) *UINT8 *Value;* *Status = gRT->GetVariable ((CHAR16 *)Name, &gEfiGlobalVariableGuid, NULL, &BootVariableSize, Value); //print attribute /*Check if device boot variable is legacy*/ Ptr = Value; Ptr += sizeof (UINT32); DevPathLen = *(UINT16 *) Ptr; Ptr += sizeof (UINT16); Ptr += StrSize ((UINT16 *) Ptr); DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) Ptr; Print (L"Paths: %s\n",ConvertDevicePathToText (DevicePath,TRUE,TRUE));* -- Regards Saqib _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

