Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 14:28:18 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Cc:        Joshua Coombs <jcoombs@gwi.net>, Juergen Lock <nox@jelal.kn-bremen.de>, thierry@herbelot.com, freebsd-emulation@FreeBSD.org, Bakul Shah <bakul@BitBlocks.com>, Warner Losh <imp@FreeBSD.org>
Subject:   Re: Loss of ed(4) in a RC1 booted in qemu
Message-ID:  <200510131428.21211.jkim@FreeBSD.org>
In-Reply-To: <200510131210.55135.jkim@FreeBSD.org>
References:  <200510131331.27906.thierry@herbelot.com> <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-00=_FdqTDbJyKm4r4NS
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote:
> QEMU emulates RTL8029:
>
> ed0: <RealTek 8029> 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

--Boundary-00=_FdqTDbJyKm4r4NS
Content-Type: text/plain;
  charset="utf-8";
  name="patch-hw::ne2000.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-hw::ne2000.c"

--- qemu/hw/ne2000.c.orig	Thu Apr 28 15:45:10 2005
+++ qemu/hw/ne2000.c	Thu Oct 13 12:40:27 2005
@@ -676,10 +676,10 @@
                                               -1, 
                                               NULL, NULL);
     pci_conf = d->dev.config;
-    pci_conf[0x00] = 0xec; // Realtek 8029
-    pci_conf[0x01] = 0x10;
-    pci_conf[0x02] = 0x29;
-    pci_conf[0x03] = 0x80;
+    pci_conf[0x00] = 0x06; // VIA VT86C926
+    pci_conf[0x01] = 0x11;
+    pci_conf[0x02] = 0x26;
+    pci_conf[0x03] = 0x09;
     pci_conf[0x0a] = 0x00; // ethernet network controller 
     pci_conf[0x0b] = 0x02;
     pci_conf[0x0e] = 0x00; // header_type

--Boundary-00=_FdqTDbJyKm4r4NS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510131428.21211.jkim>