From owner-freebsd-current@FreeBSD.ORG Fri Oct 14 18:58:41 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7844116A420; Fri, 14 Oct 2005 18:58:41 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D88143D5A; Fri, 14 Oct 2005 18:58:34 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9EIw72j010762; Fri, 14 Oct 2005 20:58:07 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9EIw7hN010760; Fri, 14 Oct 2005 20:58:07 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9EItr82011672; Fri, 14 Oct 2005 20:55:53 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9EItoLr011671; Fri, 14 Oct 2005 20:55:50 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 14 Oct 2005 20:55:50 +0200 To: "M. Warner Losh" Message-ID: <20051014185550.GA11501@saturn.kn-bremen.de> Mail-Followup-To: "M. Warner Losh" , jkim@freebsd.org, freebsd-current@freebsd.org, thierry@herbelot.com, jcoombs@gwi.net, bakul@BitBlocks.com, freebsd-emulation@freebsd.org References: <200510131210.55135.jkim@FreeBSD.org> <200510131428.21211.jkim@FreeBSD.org> <20051013200254.GA11267@saturn.kn-bremen.de> <20051013.172655.102656323.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051013.172655.102656323.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Sat, 15 Oct 2005 12:49:20 +0000 Cc: jcoombs@gwi.net, thierry@herbelot.com, freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, bakul@BitBlocks.com, jkim@freebsd.org Subject: Re: Loss of ed(4) in a RC1 booted in qemu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 18:58:41 -0000 On Thu, Oct 13, 2005 at 05:26:55PM -0600, M. Warner Losh wrote: > In message: <20051013200254.GA11267@saturn.kn-bremen.de> > Juergen Lock writes: > : On Thu, Oct 13, 2005 at 02:28:18PM -0400, Jung-uk Kim wrote: > : > On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: > : > > QEMU emulates RTL8029: > : > > > : > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 > : > > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 > : > > > : > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: > : > > > : > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 > : > > > : > > The new driver does more aggressive probing and it seems QEMU > : > > cannot handle it. > : > > : > Just for the time being, you can drop the attachment in > : > ports/emulators/qemu/files directory and rebuild qemu to get ed(4) > : > back. > : > > : > Jung-uk Kim > : > : >[patch snipped] > : > : Okay, we could add this as an option to our qemu port (`-ne2kvia' or > : something like that), anyone thinks it is necessary? (I guess this > : issue will be fixed in 6.0-R?) > > I've committed patches to -current to fix this problem. The fixes > correct a minor botch in the probing code, while also adding tolerance > for the RTL8029 that's claimed to be there to not really be there. > I've posted patches to qemu that improves that RTL8029 emulation, but > those aren't required for FreeBSD to work. RC1 won't work with qemu, > patched or unpatched, due to the minor botch. RC2 and newer will have > this problem fixed. The qemu folks can include and improve upon my > patches as they see fit in the future. > > The problem with just switching to the VIA VT86C926 is that it isn't > exactly like a NE-2000. [...] Okay, how about adding this to qemu's pkg-message then: Index: pkg-message =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/pkg-message,v retrieving revision 1.9 diff -u -r1.9 pkg-message --- pkg-message 10 Sep 2005 17:04:41 -0000 1.9 +++ pkg-message 14 Oct 2005 18:49:55 -0000 @@ -25,5 +25,12 @@ (see kern/84102, http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/84102), using a kernel without PREEMPTION has been reported to fix this problem. (or do an ftp install instead of installing from the emulated cdrom, and -then make a new kernel.) +then make a new kernel.) [now fixed in cvs.] +- 6.0-RC1 was released with an ed driver that doesn't like qemu's emulated +RTL8029 nic, this has been fixed in the meantime but if for some reason +you need to use that version as a guest you can temporarily add the patch +in this message: http://docs.freebsd.org/cgi/mid.cgi?200510131428.21211.jkim +(not included in the port since the used VIA VT86C926 PCI ID does not +really match the emulated nic exactly, it just `happens' to work with +6.0-RC1's driver.) ====