From: Laszlo Ersek <lersek@redhat.com>
To: Rebecca Cran <rebecca@bluestop.org>
Cc: edk2-devel@lists.01.org
Subject: Re: OVMF and TCP4, HTTP protocols
Date: Wed, 6 Feb 2019 20:05:08 +0100 [thread overview]
Message-ID: <059fccc8-3ab5-057b-008a-efbeb30438a9@redhat.com> (raw)
In-Reply-To: <1568584.MsCH1bHPGx@photon.int.bluestop.org>
On 02/06/19 18:44, Rebecca Cran wrote:
> On Wednesday, 6 February 2019 09:36:43 MST Laszlo Ersek wrote:
>
>> please refer to the HTTP_BOOT_ENABLE define in the OVMF DSC files; the
>> default value is FALSE.
>>
>> If you'd like HTTP over IPv6, then please pass -D NETWORK_IP6_ENABLE on
>> the "build" cmdline as well.
>
> Thanks. I'm already building with HTTP_BOOT_ENABLE though, and successfully
> fetching loader.efi from the web server. However once loader.efi runs, my code
> can't find the HTTP or TCPv4 protocols.
>
>>> Start HTTP Boot over IPv4.....
> Station IP address is 192.168.0.119
>
> URI: http://192.168.0.1/boot/loader.efi
> File Size: 480256 Bytes
> Downloading...100%
>
Is "loader.efi" opaque, or do we know what it does?
For example, if it opens SNP with BY_DRIVER|EXCLUSIVE attributes, then
everything on top will be disconnected.
(I don't understand clearly if "loader.efi" is your own code in fact.)
Here's an idea:
(1) Build "loader.efi" and code "around" it with
OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
as the DebugLib instance. Then debug messages from the application and
the platform firmware will be nicely intermixed on the QEMU debug port.
(2) Add a DEBUG_INFO message to CoreUninstallProtocolInterface()
[MdeModulePkg/Core/Dxe/Hand/Handle.c], logging the fact and the protocol
GUID.
(3) Search the log for installation & uninstallation of the GUID
BDC8E6AF-D9BC-4379-A72A-E0C4E75DAE1C
(EFI_HTTP_SERVICE_BINDING_PROTOCOL). Perhaps you can correlate those log
entries with other events.
Thanks
Laszlo
next prev parent reply other threads:[~2019-02-06 19:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-06 6:06 OVMF and TCP4, HTTP protocols Rebecca Cran
2019-02-06 16:36 ` Laszlo Ersek
2019-02-06 17:44 ` Rebecca Cran
2019-02-06 19:05 ` Laszlo Ersek [this message]
2019-02-06 23:07 ` Rebecca Cran
2019-02-13 4:28 ` Rebecca Cran
2019-02-13 5:44 ` Laszlo Ersek
2019-02-13 18:46 ` Rebecca Cran
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=059fccc8-3ab5-057b-008a-efbeb30438a9@redhat.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