<div>&nbsp;</div>
<div>Thany you so much for help. The qemu.log does exist, while no any content in it(Zero length).</div>
<p>Now what I have done is to chang the menu.lst in grub-qemu.img</p>
<p>$sudo mount &ndash;o loop ../tools/grub-qemu.img /mnt<br>$sudo vi /mnt/boot/grub/menu.lst</p>
<p>to new one like this:<br>-----------------------------------<br>serial<br>terminal --timeout=0 serial<br>dhcp<br>timeout 0<br>default 0</p>
<p>title new menu.lst<br>root (nd)<br>kernel /x86_64/sbin/cpu <br>module /x86_64/sbin/init<br>module /x86_64/sbin/mem_serv<br>module /x86_64/sbin/monitor<br>module /x86_64/sbin/chips<br>module&nbsp; /x86_64/sbin/skb<br>module&nbsp; /x86_64/sbin/pci<br>
module&nbsp; /x86_64/sbin/serial<br>module /x86_64/sbin/fish<br>------------------------------------</p>
<div>Thus the TFTP error dispeared, while the output is still a loop :(</div>
<div>&nbsp;</div>
<p>------------------------------------<br>qemu-system-x86_64 -smp 8 -net nic,model=ne2k_pci -net user -fda ../tools/grub-qemu.img -tftp /home/aimlab/barrelfish/build </p>
<p>-nographic -d int<br>Found Realtek 8029 at 0xc100, ROM address 0x0000<br>Probing...[Realtek 8029]<br>NE2000 base 0xc100, addr 52:54:00:12:34:56<br>Address: 10.0.2.15<br>Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>
Address: 10.0.2.15<br>Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>&nbsp;[H [J<br>&nbsp;&nbsp;&nbsp; GNU GRUB&nbsp; version 0.97&nbsp; (636K lower / 129984K upper memory)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use the ^ and v keys to select which entry is highlighted.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Press enter to boot the selected OS, &#39;e&#39; to edit the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commands before booting, or &#39;c&#39; for a command-line. [5;78H&nbsp; [m [7m [5;3H dgtg2 new menu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;[H [J&nbsp; Booting &#39;new menu.lst&#39;</p>
<p>root (nd)<br>&nbsp;Filesystem type is tftp, using whole disk<br>kernel /x86_64/sbin/cpu <br>&nbsp;&nbsp; [Multiboot-elf, &lt;0x100000:0x15ac0:0x5c550&gt;, shtab=0x173780, entry=0x10000c]<br>module /x86_64/sbin/init<br>&nbsp;&nbsp; [Multiboot-module @ 0x1d1000, 0x11f3a2 bytes]<br>
module /x86_64/sbin/mem_serv<br>&nbsp;&nbsp; [Multiboot-module @ 0x2f1000, 0x105473 bytes]<br>module /x86_64/sbin/monitor <br>&nbsp;&nbsp; [Multiboot-module @ 0x3f7000, 0x1978ac bytes]<br>module&nbsp; /x86_64/sbin/chips<br>&nbsp;&nbsp; [Multiboot-module @ 0x58f000, 0x103289 bytes]<br>
module&nbsp; /x86_64/sbin/skb<br>&nbsp;&nbsp; [Multiboot-module @ 0x693000, 0x8934c3 bytes]<br>module&nbsp; /x86_64/sbin/pci<br>&nbsp;&nbsp; [Multiboot-module @ 0xf27000, 0x2f337a bytes]<br>module&nbsp; /x86_64/sbin/serial<br>&nbsp;&nbsp; [Multiboot-module @ 0x121b000, 0x104ba6 bytes]<br>
module&nbsp; /x86_64/sbin/fish<br>&nbsp;&nbsp; [Multiboot-module @ 0x1320000, 0x1a9809 bytes]</p>
<p>Found Realtek 8029 at 0xc100, ROM address 0x0000<br>Probing...[Realtek 8029]<br>NE2000 base 0xc100, addr 52:54:00:12:34:56<br>Address: 10.0.2.15<br>Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>Address: 10.0.2.15<br>
Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>&nbsp;[H [J<br>&nbsp;&nbsp;&nbsp; GNU GRUB&nbsp; version 0.97&nbsp; (636K lower / 129984K upper memory)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use the ^ and v keys to select which entry is highlighted.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Press enter to boot the selected OS, &#39;e&#39; to edit the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commands before booting, or &#39;c&#39; for a command-line. [5;78H&nbsp; [m [7m [5;3H dgtg2 new menu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp; [H [J&nbsp; Booting &#39;new menu.lst&#39;</p>
<p>root (nd)<br>&nbsp;Filesystem type is tftp, using whole disk<br>kernel /x86_64/sbin/cpu <br>&nbsp;&nbsp; [Multiboot-elf, &lt;0x100000:0x15ac0:0x5c550&gt;, shtab=0x173780, entry=0x10000c]<br>module /x86_64/sbin/init<br>&nbsp;&nbsp; [Multiboot-module @ 0x1d1000, 0x11f3a2 bytes]<br>
module /x86_64/sbin/mem_serv<br>&nbsp;&nbsp; [Multiboot-module @ 0x2f1000, 0x105473 bytes]<br>module /x86_64/sbin/monitor <br>&nbsp;&nbsp; [Multiboot-module @ 0x3f7000, 0x1978ac bytes]<br>module&nbsp; /x86_64/sbin/chips<br>&nbsp;&nbsp; [Multiboot-module @ 0x58f000, 0x103289 bytes]<br>
module&nbsp; /x86_64/sbin/skb<br>&nbsp;&nbsp; [Multiboot-module @ 0x693000, 0x8934c3 bytes]<br>module&nbsp; /x86_64/sbin/pci<br>&nbsp;&nbsp; [Multiboot-module @ 0xf27000, 0x2f337a bytes]<br>module&nbsp; /x86_64/sbin/serial<br>&nbsp;&nbsp; [Multiboot-module @ 0x121b000, 0x104ba6 bytes]<br>
module&nbsp; /x86_64/sbin/fish<br>&nbsp;&nbsp; [Multiboot-module @ 0x1320000, 0x1a9809 bytes]</p>
<p>Found Realtek 8029 at 0xc100, ROM address 0x0000<br>Probing...[Realtek 8029]<br>NE2000 base 0xc100, addr 52:54:00:12:34:56<br>Address: 10.0.2.15<br>Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>Address: 10.0.2.15<br>
Netmask: 255.255.255.0<br>Server: 10.0.2.2<br>Gateway: 10.0.2.2<br>&nbsp;[H [J<br>&nbsp;&nbsp;&nbsp; GNU GRUB&nbsp; version 0.97&nbsp; (636K lower / 129984K upper memory)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use the ^ and v keys to select which entry is highlighted.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Press enter to boot the selected OS, &#39;e&#39; to edit the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commands before booting, or &#39;c&#39; for a command-line. <br>&nbsp;[H [J&nbsp; Booting &#39;new menu.lst&#39;</p>
<p>root (nd)<br>&nbsp;Filesystem type is tftp, using whole disk<br>kernel /x86_64/sbin/cpu <br>&nbsp;&nbsp; [Multiboot-elf, &lt;0x100000:0x15ac0:0x5c550&gt;, shtab=0x173780, entry=0x10000c]<br>module /x86_64/sbin/init<br>&nbsp;&nbsp; [Multiboot-module @ 0x1d1000, 0x11f3a2 bytes]<br>
module /x86_64/sbin/mem_serv<br>&nbsp;&nbsp; [Multiboot-module @ 0x2f1000, 0x105473 bytes]<br>module /x86_64/sbin/monitor <br>&nbsp;&nbsp; [Multiboot-module @ 0x3f7000, 0x1978ac bytes]<br>module&nbsp; /x86_64/sbin/chips<br>&nbsp;&nbsp; [Multiboot-module @ 0x58f000, 0x103289 bytes]<br>
module&nbsp; /x86_64/sbin/skb<br>&nbsp;&nbsp; [Multiboot-module @ 0x693000, 0x8934c3 bytes]<br>module&nbsp; /x86_64/sbin/pci<br>&nbsp;&nbsp; [Multiboot-module @ 0xf27000, 0x2f337a bytes]<br>module&nbsp; /x86_64/sbin/serial<br>&nbsp;&nbsp; [Multiboot-module @ 0x121b000, 0x104ba6 bytes]<br>
module&nbsp; /x86_64/sbin/fish<br>------------------------------------</p>
<p>Btw, the -no-reboot&nbsp;option append the &#39;qemu-system-x86_64&#39;&nbsp;will prevent the loop, but fish still does not work. When delete the -nographic option, the popped up QEMU window freezed at &quot;Booting from Floppy...&quot;&nbsp; &quot;GRUB Loading stage2........................&quot;</p>

<div class="gmail_quote">2010/4/14 Andrew Baumann <span dir="ltr">&lt;<a href="mailto:andrewb@inf.ethz.ch" target="_blank">andrewb@inf.ethz.ch</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi there,<br>
<div><br>On Wednesday 14 April 2010 14.42:54 Ê¯ÁÖ wrote:<br>&gt; I am newbie here, when I download the the second release of<br>&gt; Barrelfish(2009-12-19)<br>&gt; and install it, qemu seems failed to launch the Barrelfish and all test did<br>
&gt; not run properly.<br><br></div>[...]<br><br>It looks like everything goes well up until:<br>
<div>&gt; $ make sim ARCH=x86_64<br>&gt; qemu-system-x86_64 -smp 8 -net nic,model=ne2k_pci -net user -fda<br>&gt; ../tools/grub-qemu.img -tftp /barrelfish-64/build -nographic -d int<br></div>[...]<br>
<div>&gt;root &nbsp;(nd)<br>&gt; Filesystem type is tftp, using whole disk<br>&gt;configfile (nd)/menu.lst<br>&gt;TFTP error 1 (File not found)<br><br></div>The tftp path being provided to qemu (/barrelfish-64/build) appears not to be<br>
valid, because the booted grub running inside qemu is unable to load menu.lst,<br>but then you get:<br>
<div><br>&gt;[H[J &nbsp;Booting &#39;Barrelfish&#39;<br>&gt;<br>&gt;root (nd)<br>&gt; Filesystem type is tftp, using whole disk<br>&gt;kernel /x86_64/sbin/cpu loglevel=4<br>&gt; &nbsp; [Multiboot-elf, &lt;0x100000:0x15ac0:0x5c550&gt;, shtab=0x173780,<br>
&gt; entry=0x10000c]<br><br></div>... it apparently succeeds in loading the kernel. So, I&#39;m not really sure what<br>to make of this. Assuming the kernel is loaded successfully, you are probably<br>experiencing a triple-fault early in boot that causes the system to reset and<br>
repeat the failed boot. You might find some information in /tmp/qemu.log that<br>tells you where it is faulting, but that&#39;s just a guess.<br>
<div><br>&gt; Can anybody please tell me how to make things right? How to make the<br>&gt; &nbsp;memtest to run? I want to know what will happen after the correct running<br>&gt; &nbsp;of module /x86_64/sbin/fish, maybe a standard SHELL waitfing for input?<br>
<br></div>The current version of fish is not what you might call a &quot;standard shell&quot;, but<br>yes you should get a prompt and the ability to input commands.<br>
<div><br>&gt; &nbsp;Where can I get the appropriate qemu tools ? maybe from source code?<br><br></div>Your qemu appears to be the same version that I am using.<br><br>Cheers,<br><font color="#888888">Andrew<br></font></blockquote>
</div><br>