Ok, back to actual OVMF networking. :p
GCC 4.7 (but I tell build to use GCC46 and it seems to work fine)
EDK2 at revision 14280
qemu 1.4.0
gdb 7.5.1
$ build -D SOURCE_DEBUG_ENABLE -D FD_SIZE_2MB -D NETWORK_ENABLE -p
OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC46
$ /usr/local/bin/qemu-system-x86_64 -m 1024 -bios OVMF.fd -monitor
stdout -debugcon file:debug.log -global isa-debugcon.iobase=0x402 -vga
std -device e1000,netdev=net0,mac=52:52:00:12:34:01 -netdev
type=tap,id=net0,ifname=tap1,script=no,downscript=no -net dump,file=a.pcap
-S -s
By specifying a tap device directly (avoiding libvirt) I can bridge to a
specific NIC. In this case the NIC is unused by the rest of the host
system so setting up the bridge doesn't affect the rest of the host's
network. (note: yes we have to use a bridge - taps are end points [ie.
layer 2 devices with an IP, ("tun" devices are layer 3 that have no IP)]
and a bridge is needed to connect endpoints like NICs and taps)
So now my OVMF PXE boots over a physical network and I can use Shell2 as my
PXE payload. The shell then gives:
Shell> ifconfig -l
eth0
MAC : 52-52-00-12-34-01
Media States: Media present
Not configured.
but, a dhcp config returns the following *immediately* with *no* network
traffic (via wireshark on the tap1 device):
Shell> ifconfig -s eth0
Create an IP and start to get the default address
Please wait, you console may stop responding for a while ...
Default: 192.168.1.117
which happens to be the IP PXE used to download the shell, and after this
"ping" fails with:
Shell> ping 192.168.1.1
Ping 192.168.1.1 16 data bytes
There is no route to the destination '192.168.1.1' from the source '<null
string>' was found.
Any ideas on why (1) ifconfig -s returns imediately, and (2) how to set up
route?
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel