Loss of ed(4) in a RC1 booted in qemu

Jung-uk Kim jkim at FreeBSD.org
Thu Oct 13 11:28:48 PDT 2005


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
-------------- next part --------------
--- 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


More information about the freebsd-emulation mailing list