From: spam collector <spamcollector@cableone.net>
To: Laszlo Ersek <lersek@redhat.com>
Cc: edk2-devel@ml01.01.org
Subject: Re: OVMF.fd and placement of EfiBootServicesData
Date: Wed, 5 Oct 2016 23:05:34 -0400 (EDT) [thread overview]
Message-ID: <1208026991.99496554.1475723134167.JavaMail.zimbra@cableone.net> (raw)
In-Reply-To: <280e3403-1821-396e-5243-54b770dcb01a@redhat.com>
----- Original Message -----
> From: "Laszlo Ersek" <lersek@redhat.com>
> To: "spam collector" <spamcollector@cableone.net>
> Cc: edk2-devel@ml01.01.org
> Sent: Wednesday, October 5, 2016 8:28:46 AM
> Subject: Re: [edk2] OVMF.fd and placement of EfiBootServicesData
>
> On 10/05/16 04:47, spam collector wrote:
> >
> > ----- Original Message -----
> >> From: "Laszlo Ersek" <lersek@redhat.com>
> >> To: "spam collector" <spamcollector@cableone.net>
> >> Cc: edk2-devel@ml01.01.org
> >> Sent: Tuesday, October 4, 2016 10:22:34 AM
> >> Subject: Re: [edk2] OVMF.fd and placement of EfiBootServicesData
>
> >> * The first stage improvement is the following command line:
> >>
> >> qemu-system-x86_64 -pflash OVMF.fd
> >
> > This did not work either with or without the NvVars file present.
>
> I think I'll need a more complete issue riport then -- what is your
> exact QEMU command line, and what OVMF binary are you using?
"..\qemu-system-i386w.exe" -m 256 -localtime
-drive file=uefi.bin.vhd,format=raw,if=ide,media=disk,index=0
-pflash ..\OVMF.fd -parallel file:para.txt
Remember that I am running this in WinXPSP3. Also, the version of
OVMF.fd is from http://www.tianocore.org/ovmf/ and I just noticed
that that page has been recently changed. You use to be able to
download the OVMF.fd directly from that page. It was r15214, which
I found out yesterday, is an older version.
> > I did find a few RPM files and one of them contained:
> > OVMF_CODE-pure-efi.fd
> > and
> > OVMF_VARS-pure-efi.fd
>
> Yes, they are from Gerd's "edk2.git-ovmf-ia32" package (since you
> mention IA32), from <http://www.kraxel.org/repos/>, and they are
> recommended to use.
I also could not get these to work. I will do a little more
research into why not and be sure to let you know.
> Otherwise, download the "edk2.git-ovmf-ia32" or "edk2.git-ovmf-x64" RPM
> file (as needed) from <https://www.kraxel.org/repos/jenkins/edk2/>, and
> extract it with:
>
> rpm2cpio FILENAME | pax -r -v
>
> The extracted files you want are:
>
> usr/share/edk2.git/ovmf-*/OVMF_CODE-pure-efi.fd
> usr/share/edk2.git/ovmf-*/OVMF_VARS-pure-efi.fd
> usr/share/edk2.git/ovmf-*/UefiShell.iso
These are the three files I used and could not get the shell to load.
I will try a few other things and get back with you.
Please note that I am using the Windows port of QEMU from
https://qemu.weilnetz.de/ on a WinXP host, if that makes any
difference.
Also, one more question. I can make my GPT image either have a legacy
MBR with two entries pointing to one partition each or I can have a
Protected MBR that encompasses the whole GPT, both partitions, and the
backup items.
With the r15214 version and:
"..\qemu-system-i386w.exe" -m 256 -localtime
-drive file=uefi.bin.vhd,format=raw,if=ide,media=disk,index=0
-bios ..\OVMF.fd -parallel file:para.txt
it would boot to the shell either way and load and run my BOOT.efi file
just fine, whether I had a Legacy MBR or a PMBR. Does this make a
difference with the new image(s) you mention above.
Also, please note that the hard drive image is a VHD image, a
raw image with a single sector at the end for the VHD info so that
Oracles VM Box will boot it. This means that the backup GPT header
is *not* the last sector of the disk. The
-bios OVMF.fd
version boots it just fine in QEMU, but I thought I would mention
this in case the new code expects it to be in the last sector.
Thank you. I will get back with you on my findings.
Ben
next prev parent reply other threads:[~2016-10-06 3:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1063482308.87469389.1475464272414.JavaMail.zimbra@cableone.net>
2016-10-03 3:16 ` OVMF.fd and placement of EfiBootServicesData spam collector
2016-10-03 9:42 ` Laszlo Ersek
2016-10-04 2:45 ` spam collector
2016-10-04 7:52 ` Laszlo Ersek
2016-10-04 16:39 ` spam collector
2016-10-04 17:22 ` Laszlo Ersek
2016-10-05 2:47 ` spam collector
2016-10-05 15:28 ` Laszlo Ersek
2016-10-06 3:05 ` spam collector [this message]
2016-10-06 7:39 ` Laszlo Ersek
2016-10-07 3:11 ` spam collector
2016-10-07 15:08 ` Laszlo Ersek
2016-10-06 5:45 ` spam collector
2016-10-06 7:47 ` Laszlo Ersek
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=1208026991.99496554.1475723134167.JavaMail.zimbra@cableone.net \
--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