From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFOXA-00088n-6T for qemu-devel@nongnu.org; Wed, 06 Oct 2004 23:01:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFOX8-00088C-8x for qemu-devel@nongnu.org; Wed, 06 Oct 2004 23:01:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFOX7-00087q-TZ for qemu-devel@nongnu.org; Wed, 06 Oct 2004 23:01:34 -0400 Received: from [217.69.77.222] (helo=kerckhoffs.g10code.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CFOQL-0001eE-VX for qemu-devel@nongnu.org; Wed, 06 Oct 2004 22:54:34 -0400 Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 3.35 #1 (Debian)) id 1CFOCw-0006E0-00 for ; Thu, 07 Oct 2004 04:40:42 +0200 Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by localhost.localdomain with esmtp (Exim 4.34) id 1CFOQ7-00088x-Qg for qemu-devel@nongnu.org; Thu, 07 Oct 2004 04:54:19 +0200 Date: Thu, 07 Oct 2004 04:54:19 +0200 Message-ID: <87acuzutk4.wl@ulysses.g10code.de> From: Marcus Brinkmann MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: [Qemu-devel] ne2k brokenness Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, (Please CC me on reply, I am not subscribed). the NE2K driver has serious issues, assuming that GRUB's ns8390 driver is correct (as it works on real hardware, the assumption is reasonable in the context of emulation, I'd guess). I have set up a tun device (which works fine in Bochs). I have setup a GRUB 0.95 (actually, 0.95 with some CVS fixes as used in Debian) netboot floppy image with the ns8390 driver enabled (NE2000 PCI). I have reused an old hdimage of mine, which I used at some time with an older version of qemu. I compiled qemu CVS of 2004-10-06, but also tried qemu 0.6.0. I didn't try older versions. I use GNU/Linux as my host OS, Linux kernel version is 2.6.7-1-686 (stock Debian kernel). I have an Intel P4 2.8GHz processor. This is my command line: $ qemu -m 128 -boot a -fda ~/.bochs/grub-0.95-i386-pc.ext2fs \ -hda ~/.bochs/guest.hd0 -n /home/marcus/gnu/bochs/start-tun This will set up the tun device and bring up GRUB. However, GRUB fails to detect the NIC. Oops. Now, here is the weird thing, and the only hint I have to the problem: If I run the same command as above under "strace", it works! At least up to the point of detecting the NIC, downloading the menu.lst file via tftpboot, and starting to download the kernel etc. It was too slow to test further, but it seemed to make progress. I don't have time to do serious debugging (not within the next two weeks anyway), but I am happy to test what you throw at me, or try some stuff if you can give some pointers. My goal is to use qemu instead bochs for developing the GNU/Hurd port to the L4 microkernel. It's absolutely essential that I can just drop my stuff into the tftpboot directory and test it quickly. Bochs 2.1 can't even boot L4 anymore, it's a misery ;) The speed advantage of using qemu (over Bochs) is an extra bonus. Keep it up, guys. Very impressive progress in the last months. Thanks, Marcus