public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Stefano Cristalli <stefanocristalli@gmail.com>
To: edk2-devel@lists.01.org
Subject: Running pieces of PEI from binary UEFI images
Date: Mon, 10 Apr 2017 09:48:59 +0200	[thread overview]
Message-ID: <CAEemdL_M7uWYpXrKK0-NNobF8Jsu=vmLAjfN7kfRT7rELNdmuw@mail.gmail.com> (raw)

Hello everyone,

I'm interested in experimenting with the PEI phase using EmulatorPkg,
OVMF and other EDKII parts that could be useful.
In particular, I'm interested in the possibility of integrating parts
of an existing pre-built binary UEFI image with such environments. If
the image was developed based on EDKII, would I expect things to work?
I'm not looking for complete emulation, I just think it would be
interesting to be able to single-step code inside PEIMs or even the
PeiCore from random images, leveraging the already existing EDKII
infrastructures (rather than switching to other debugging/emulation
projects).

I thought that the task might be feasible, since the layout of the
memory at the beginning of PEI and even the arguments passed to the
PeiCore are standardized... I should at least be able to begin
execution.

What do you think? Am I missing something?

Additionally, I would ask for technical help, as it's not clear to me
how exactly I would be able to load such modules. I saw that there is
the possibility of loading binaries inside an EDKII image build (cfr.
INF_Spec_1_25 section 2.7), but I don't understand how would I do this
for PEI binaries and if I could expect things to work (as in with only
the pointer to the image, without any additional information
specified).

I'd really appreciate if someone could give me some explanations to
clear my ideas about this. Some pointers to documentation would be
just fine, for it's quite complicated to figure out completely as an
EDKII beginner. "Dude, it's completely unfeasible" is also fine and
helpful as a response, if that's the case for some reason.

Thanks in advance.
Best regards.

Stefano Cristalli


             reply	other threads:[~2017-04-10  7:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10  7:48 Stefano Cristalli [this message]
2017-04-10 15:49 ` Running pieces of PEI from binary UEFI images Andrew Fish

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='CAEemdL_M7uWYpXrKK0-NNobF8Jsu=vmLAjfN7kfRT7rELNdmuw@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