Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2004 11:08:47 +0400
From:      Roman Bessyadovskii <rick@nnz.ru>
To:        freebsd-questions@FreeBSD.org
Subject:   P4R800-VM Integrated LAN (kern/64522) [patch] is this solution?
Message-ID:  <5BDAB0852B4CBF458E657E5A74C2B47201F9F099@exch.work.nienschanz.ru>

next in thread | raw e-mail | index | archive | help
Hi.

On p4r800-vm after install FreeBSD (tested 4.9, 4.10-BETA) I have unknown
pci device vendor id 0x10b7 (3Com) device id (0x9202) - 3Com 3C920B-EMB-WNM
Integrated Fast Ethernet Controller.

I see, that xl driver support 3C920B-EMB Integrated Fast Ethernet Controller
[Tornado] (device id 9201), and think (hope), that
this driver will support my controller too.
After applying patch (that just add device id 0x9202 to the list of devices
supported by this driver) `make kernel` and `reboot` I see, that device was
recognized (oh, it's magic :-)), and after boot, I successfully set ip
address, test ping, and then ftp transaction via this card.
And now, system lives (and use this card over 4 days)
[root@host etc]# netstat -I xl0
Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs
Coll
xl0    1500 <Link#2>    00:0e:a6:10:a1:8b  4473627     0  5037537     0
0
xl0    1500 1.1.1 	host                2823803    -  5057580     -
-
xl0    1500 1.1.1.1     1.1.1.1             1484037    -        3     -
-

But I have question.
1) Is this correct, I mean, may be there is some situation when driver fail?
2) Where I can find information for difference between 3C920B-EMB (device id
9201) and 3C920B-EMB-WNM (device id 9202).
3)  If it is solution, may be 3C920B-EMB-WNM Integrated Fast Ethernet
Controller (device id 9210) will work in such way?

Thanks for the answers.

Links:
kern/64522: 3COM 3C920B onboard Asus P4R800-VM not supported
(http://lists.freebsd.org/pipermail/freebsd-bugs/2004-March/005982.html)

System:
FreeBSD host 4.10-BETA FreeBSD 4.10-BETA #4: Sat Apr 17 19:07:30 MSD 2004
root@host:/usr/obj/usr/src/sys/proxy.ipsec.20030829  i386

Patch:
su-2.05b# diff -Naur /usr/src/sys/pci/if_xlreg.h.orig
/usr/src/sys/pci/if_xlreg.h
--- /usr/src/sys/pci/if_xlreg.h.orig    Mon Apr 19 10:20:36 2004
+++ /usr/src/sys/pci/if_xlreg.h Mon Apr 19 10:21:12 2004---
@@ -683,6 +683,7 @@
 #define TC_DEVICEID_CYCLONE_10_100FX           0x905A
 #define TC_DEVICEID_TORNADO_10_100BT           0x9200
 #define TC_DEVICEID_TORNADO_10_100BT_920B      0x9201
+#define TC_DEVICEID_TORNADO_INTEGRATED_10_100BT_920B   0x9202
 #define TC_DEVICEID_HURRICANE_10_100BT_SERV    0x9800
 #define TC_DEVICEID_TORNADO_10_100BT_SERV      0x9805
 #define TC_DEVICEID_HURRICANE_SOHO100TX                0x7646
su-2.05b#

su-2.05b# diff -Naur /usr/src/sys/pci/if_xl.c.orig  /usr/src/sys/pci/if_xl.c
--- /usr/src/sys/pci/if_xl.c.orig       Mon Apr 19 10:21:03 2004
+++ /usr/src/sys/pci/if_xl.c    Sat Apr 17 19:03:56 2004
@@ -188,6 +188,8 @@
                "3Com 3c905C-TX Fast Etherlink XL" },
        { TC_VENDORID, TC_DEVICEID_TORNADO_10_100BT_920B,
                "3Com 3c920B-EMB Integrated Fast Etherlink XL" },
+       { TC_VENDORID, TC_DEVICEID_TORNADO_INTEGRATED_10_100BT_920B,
+               "3Com 3c920B-EMB-WMN Integrated Fast Etherlink XL" },
        { TC_VENDORID, TC_DEVICEID_HURRICANE_10_100BT_SERV,
                "3Com 3c980 Fast Etherlink XL" },
        { TC_VENDORID, TC_DEVICEID_TORNADO_10_100BT_SERV,
@@ -1268,6 +1270,7 @@
        case TC_DEVICEID_HURRICANE_656B:        /* 3c656B */
        case TC_DEVICEID_TORNADO_656C:          /* 3c656C */
        case TC_DEVICEID_TORNADO_10_100BT_920B: /* 3c920B-EMB */
+       case TC_DEVICEID_TORNADO_INTEGRATED_10_100BT_920B:  /*
3c920B-EMB-WNM */
                sc->xl_media = XL_MEDIAOPT_MII;
                sc->xl_xcvr = XL_XCVR_MII;
                if (verbose)
@@ -1366,6 +1369,7 @@
                sc->xl_flags |= XL_FLAG_INVERT_MII_PWR |
                    XL_FLAG_INVERT_LED_PWR;
        if (pci_get_device(dev) == TC_DEVICEID_TORNADO_10_100BT_920B ||
+           pci_get_device(dev) ==
TC_DEVICEID_TORNADO_INTEGRATED_10_100BT_920B)
                sc->xl_flags |= XL_FLAG_PHYOK;
 #ifndef BURN_BRIDGES
        /*




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