public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "CrossedCarpet" <crossedcarpet@hotmail.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: [Help] in Setting up EFI Shell in QEMU to allow for HTTP Requests
Date: Mon, 13 Feb 2023 08:47:38 +0000	[thread overview]
Message-ID: <DB9P193MB1179389EDE632433F6910826A1DD9@DB9P193MB1179.EURP193.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

Greetings,
I want to create an UEFI App with internet connection.

Before I start developing the code, I wanted to make sure my setup is working properly so that the app can make http requests.
To that end, I spent the last days trying to make the `http` command work in the EFI Shell launched inside QEMU.
I can get the ping command to work properly, but calling:
http httpbin.org/get
Always returns:
Unable to open http protocol on `eth0` - Unsupported
Unable to download the file `/get` on `eth0` - Unsupported

This is my startup.nsh script to configure the interface:
connect
ifconfig -r eth0
ifconfig -s eth0 dhcp
ifconfig -l eth0

These were my different attempts at invoking Qemu properly:
        -netdev user,id=mynet0,hostfwd=tcp::8080-:80 -device e1000,netdev=mynet0 \
        -netdev user,id=user.0 -device e1000,netdev=user.0 \
        -nic user,ipv6=off,model=e1000,mac=52:54:98:76:54:32 \

And following this guide<https://gist.github.com/extremecoders-re/e8fd8a67a515fee0c873dcafc81d811c> I tried to setup a tap, but no dice:
        -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -device e1000,netdev=mynet0,mac=52:55:00:d1:55:01 \

Have you ever achieved this? What was your setup like?

Thank you for your time.

[-- Attachment #2: Type: text/html, Size: 5909 bytes --]

             reply	other threads:[~2023-02-13  8:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13  8:47 CrossedCarpet [this message]
2023-02-17 18:34 ` [edk2-devel] [Help] in Setting up EFI Shell in QEMU to allow for HTTP Requests Brian J. Johnson
2023-02-18  8:32   ` CrossedCarpet

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=DB9P193MB1179389EDE632433F6910826A1DD9@DB9P193MB1179.EURP193.PROD.OUTLOOK.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