Subject: Re: Compaq Netelligent problem
To: Denis Melnikov <dmelnik@regentgroup.ru>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 04/22/1999 16:31:46
On Wed, Apr 21, 1999 at 07:57:45PM +0400, Denis Melnikov wrote:
> I'm running 1.3.3 on Compaq Proliant 850. After adding Netelligent 10T NIC my box 
> stopped on booting with the following messages:
> 
> tl0 at pci0 dev 11 function 0
> tl0: Compaq Netelligent 10 T
> tl0: Ethernet address xx:xx:xx:xx:xx:00
> tl0: interrupting at irq 10
> mii0 at tl0
> tlphy0 at mii0 dev 31: AUI
> ifmedia_set: no match for 0x23/0xffffffff

This is a bug in the card/PHY driver interaction.

As a quick hack, you can probably make it work (at half-duplex
10 megabips) by doing something like this.

--- src/sys/dev/pci/if_tl.c.orig	Thu Apr 22 16:30:21 1999
+++ src/sys/dev/pci/if_tl.c	Thu Apr 22 16:30:38 1999
@@ -429,10 +429,12 @@
 	ifmedia_init(&sc->tl_mii.mii_media, IFM_IMASK, tl_mediachange,
 	    tl_mediastatus);
 	mii_phy_probe(self, &sc->tl_mii, 0xffffffff);
+#if 0
 	if (LIST_FIRST(&sc->tl_mii.mii_phys) == NULL) { 
+#endif
 		ifmedia_add(&sc->tl_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
 		ifmedia_set(&sc->tl_mii.mii_media, IFM_ETHER|IFM_NONE);
+#if 0
 	} else
 		ifmedia_set(&sc->tl_mii.mii_media, IFM_ETHER|IFM_AUTO);
+#endif
 
 	bcopy(sc->sc_dev.dv_xname, sc->tl_if.if_xname, IFNAMSIZ);

> panic: ifmedia_set
> Stopped at	_Debugger+0x4:	leave
> db>
> 
> Before the installation boot messages looks as following:
> 
> tl0 at pci0 dev 16 function 0
> tl0: Compaq Integrated NetFlex 3/P
> tl0: Ethernet address xx:xx:xx:xx:xx:01
> tl0: interrupting at irq 9
> mii0 at tl0
> nsphy0 at mii0 dev1: 10baseT(full duplex)/100baseTx(full duplex)
> tlphy0 at mii0 dev31: BNC/10baseT


-- 
Soren