tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NetBSD 5.1 RC1 wm0 with Xen 4.0.0
> >> wm0 at pci0 dev 4 function 0: Intel i82540EM 1000BASE-T Ethernet, rev 3
> >> wm0: interrupting at ioapic0 pin 32
> >> wm0: 32-bit 33Mhz PCI bus
> >> wm0: No EEPROM
> >> wm0: unable to read Ethernet address
> >
> > Just FYI, qemu-0.12.3 seems to have the similar problem:
>
> Since I am based on qemu-0.11.0 it is maybe the reason why.... :)
>
> Maybe NetBSD can handle better a different nic?
Or fix qemu?
--- qemu-0.12.3/hw/e1000.c.orig 2010-02-24 05:54:38.000000000 +0900
+++ qemu-0.12.3/hw/e1000.c 2010-05-08 01:29:53.000000000 +0900
@@ -259,6 +259,12 @@
s->eecd_state.old_eecd = val & (E1000_EECD_SK | E1000_EECD_CS |
E1000_EECD_DI|E1000_EECD_FWE_MASK|E1000_EECD_REQ);
+ if ((E1000_EECD_CS & (val ^ oldval))) { // EEPROM reset on CS edge
+ s->eecd_state.bitnum_in = 0;
+ s->eecd_state.bitnum_out = 0;
+ s->eecd_state.reading = 0;
+ return;
+ }
if (!(E1000_EECD_SK & (val ^ oldval))) // no clock edge
return;
if (!(E1000_EECD_SK & val)) { // falling edge
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index