<div dir="ltr">I'm curious to try this but I don't have pxegrub-undi in my source tree. Is this something you build by hand?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 2:20 PM, Andrew Baumann <span dir="ltr"><<a href="mailto:Andrew.Baumann@microsoft.com" target="_blank">Andrew.Baumann@microsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Oh that’s a grub error. You need to use a grub that supports either e1000 or PXE boot. The one in the tree that ‘make sim’ points at only includes (I think)
the RTL driver.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">After digging back through old email, here’s a qemu invocation that once worked for me:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">qemu-system-x86_64 -smp 1 -m 2048 -net nic,model=e1000 -net user,tftp=/.../build,bootfile=/pxegrub-undi -serial file:/dev/stdout<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Andrew<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Alan Kligman [mailto:<a href="mailto:alan.kligman@gmail.com" target="_blank">alan.kligman@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, 25 June 2013 11:12<br>
<b>To:</b> Andrew Baumann<br>
<b>Cc:</b> <a href="mailto:barrelfish-users@lists.inf.ethz.ch" target="_blank">barrelfish-users@lists.inf.ethz.ch</a><br>
<b>Subject:</b> Re: [Barrelfish-users] RTL8029 not recognized in qemu<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Unfortunately, I'm not able to get barrelfish to boot at all with the e1000 nic:<br>
<br>
root (nd)<br>
<br>
Error 23: Error while parsing number<u></u><u></u></p>
</div>
<p class="MsoNormal">Do I need to rebuild the boot image here?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Jun 25, 2013 at 1:59 PM, Andrew Baumann <<a href="mailto:Andrew.Baumann@microsoft.com" target="_blank">Andrew.Baumann@microsoft.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This rings a faint bell for me.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If I remember correctly, the RTL driver has a hardcoded IO port range and IRQ, and at some point
qemu moved the device. If you’re using a newer version of qemu, I’d suggest trying its e1000 support, as that driver is generally in much better shape than the RTL driver.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Andrew
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Alan Kligman [mailto:<a href="mailto:alan.kligman@gmail.com" target="_blank">alan.kligman@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, 25 June 2013 10:52<br>
<b>To:</b> <a href="mailto:barrelfish-users@lists.inf.ethz.ch" target="_blank">barrelfish-users@lists.inf.ethz.ch</a><br>
<b>Subject:</b> [Barrelfish-users] RTL8029 not recognized in qemu</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm trying to get networking up inside qemu, but barrelfish doesn't recognize the emulated network adapter:<br>
<br>
Initializing RTL8029(AS)...<br>
This is not a recognized rtl8029as: ID is 00:00!<br>
For service [rtl8029] MAC= 00:00:00:00:00:00<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I definitely have an adapter:<br>
<br>
(qemu) info network<br>
ne2k_pci.0: index=0,type=nic,model=ne2k_pci,macaddr=52:54:00:12:34:56<br>
\ local: index=0,type=user,net=10.0.2.0,restrict=off<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Here's my menu.lst:<br>
<br>
title Barrelfish<br>
root (nd)<br>
kernel /x86_64/sbin/elver loglevel=4<br>
module /x86_64/sbin/cpu loglevel=4<br>
module /x86_64/sbin/init<br>
<br>
# Domains spawned by init<br>
module /x86_64/sbin/mem_serv<br>
module /x86_64/sbin/monitor<br>
<br>
# Special boot time domains spawned by monitor<br>
module /x86_64/sbin/ramfsd boot<br>
module /x86_64/sbin/skb boot<br>
modulenounzip /skb_ramfs.cpio.gz nospawn<br>
module /x86_64/sbin/kaluga boot<br>
module /x86_64/sbin/acpi boot<br>
module /x86_64/sbin/spawnd boot<br>
#bootapic-x86_64=1-15<br>
module /x86_64/sbin/startd boot<br>
module /x86_64/sbin/routing_setup boot<br>
<br>
# Drivers<br>
module /x86_64/sbin/pci boot<br>
module /x86_64/sbin/ahcid boot<br>
module /x86_64/sbin/rtl8029<br>
module /x86_64/sbin/NGD_mng cardname=rtl8029<br>
module /x86_64/sbin/netd cardname=rtl8029<br>
<br>
# General user domains<br>
module /x86_64/sbin/serial<br>
module /x86_64/sbin/fish<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Any help would be appreciated.<u></u><u></u></p>
</div>
<p class="MsoNormal">Cheers,<br>
A<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>