Subject: Re: kern/11925: Integrated 3Com netcard not working
To: None <vkd79@yahoo.com>
From: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 01/10/2001 09:43:35
vkd79@yahoo.com wrote:
> My ethernet controller cannot access the internet. The interface is
> a 3Com card built in into Dell Precision Workstation 410. Windows
> reports it as
> 
> 3Com 3c918 Integrated Fast Ethernet Controller
> (3c905B-TX Compatible)
> 
> NetBSD (OpenBSD and FreeBSD as well) reports it as 3c905B-TX

I had the same problem on my Precision 210. Here's a hack I use to get
the on-board ethernet interface to work. The patch turns off the media
autoconfiguration, so you'll have to set the media yourself with
ifconfig (this unfortunately goes also for any other 3c905B or
compatible you have on your computer).

Apply this patch and build a kernel with "options IF_EX_PCI_MII_HACK".

Index: if_ex_pci.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pci/if_ex_pci.c,v
retrieving revision 1.12.4.1
diff -u -r1.12.4.1 if_ex_pci.c
--- if_ex_pci.c	2000/10/19 13:54:28	1.12.4.1
+++ if_ex_pci.c	2000/12/13 08:32:23
@@ -127,7 +127,11 @@
 	{ PCI_PRODUCT_3COM_3C900BTPC,   EX_CONF_90XB,
 	  "3c900B-TPC Ethernet" },
 
+#ifdef  IF_EX_PCI_MII_HACK
+	{ PCI_PRODUCT_3COM_3C905BTX,	EX_CONF_90XB,
+#else
 	{ PCI_PRODUCT_3COM_3C905BTX,	EX_CONF_90XB|EX_CONF_MII|EX_CONF_INTPHY,
+#endif
 	  "3c905B-TX 10/100 Ethernet" },
 	{ PCI_PRODUCT_3COM_3C905BT4,	EX_CONF_90XB|EX_CONF_MII,
 	  "3c905B-T4 10/100 Ethernet" },

-- 
Michael Eriksson <eramore@era-t.ericsson.se>
/usr/sys/ken/slp.c:	 * You are not expected to understand this.