public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Saqib Khan <saqib.khan2011@gmail.com>
To: edk2-devel@lists.01.org
Subject: How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable
Date: Tue, 18 Oct 2016 22:18:28 +0500	[thread overview]
Message-ID: <CAF=YJJ8cgQEUiNK_-BmDgPaSXYrf9AWu8RSCWV3d9PvVX5rObQ@mail.gmail.com> (raw)

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


             reply	other threads:[~2016-10-18 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18 17:18 Saqib Khan [this message]
2016-10-18 17:40 ` How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable Laszlo Ersek
2016-10-18 18:37   ` Andrew Fish
2016-10-19 18:17     ` Saqib Khan
2016-10-19 20:41       ` Carsey, Jaben
2016-10-20  7:29         ` Saqib Khan
2016-10-20 15:44           ` Carsey, Jaben

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF=YJJ8cgQEUiNK_-BmDgPaSXYrf9AWu8RSCWV3d9PvVX5rObQ@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox