Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!reuter.cse.ogi.edu!netnews.nwnet.net!news.u.washington.edu!spleen.apl.washington.edu!user From: kargl@apl.washington.edu (Steven G. Kargl) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD 2.0-950412-SNAP and 3c509 problems Date: Thu, 11 May 1995 11:11:41 -0700 Organization: Applied Physics Lab/University of Washington Lines: 73 Message-ID: <kargl-1105951111410001@spleen.apl.washington.edu> References: <3ok7ck$874@nntp4.mindspring.com> <D8A988.oB@deanstoy.wa.com> NNTP-Posting-Host: nntp5.u.washington.edu In article <D8A988.oB@deanstoy.wa.com>, dean@deanstoy.wa.com (Dean M. Phillips) wrote: > In article <3ok7ck$874@nntp4.mindspring.com> rsanders@interbev.mindspring.com (Robert Sanders) writes: > >I hate to be a pest about this, but I still can't get the 3c509 to > >work under FreeBSD 2.0-950412-SNAP. I ifconfig'd it right, but the 10-baseT > >hub never shows the port as being active. Is the 3c509 supposed to work? > [snip] > I have one and its working fine with the BNC connection. > > >Here's what I did: > > > > ifconfig ep0 168.121.253.90 netmask 0xffffff00 > link0 ==== AUI link1 ==== BNC link2 ==== UTP No link specified ==== Use EEPROM value (if present) or AUI ifconfig ep0 168.121.253.90 netmask 0xffffff00 link[0,1,2] > Try: ifconfig ep0 link2 168.121.253.90 netmask 0xffffff00 > > Disclaimer: I don't use 10-baseT. I got this by reading the kernel source: This is not the kernel source code for FreeBSB-current. Judging from what is below and the timestamp on if_ep.c and the $Id:$ strings, I believe this is not the kernel code compiled into 0412-SNAP (though I didn't check). > > #if defined(__NetBSD__) > if (!(ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & BNC)) { > #else > if (!(ifp->if_flags & IFF_ALTPHYS) && (sc->ep_connectors & BNC)) { > #endif > outw(BASE + EP_COMMAND, START_TRANSCEIVER); > DELAY(1000); > } > #if defined(__NetBSD__) > if ((ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & UTP)) { > #else > if ((ifp->if_flags & IFF_ALTPHYS) && (sc->ep_connectors & UTP)) { > #endif > GO_WINDOW(4); > outw(BASE + EP_W4_MEDIA_TYPE, ENABLE_UTP); > GO_WINDOW(1); > > 16 % grep IFF_ALTPHYS *.h > if.h:#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */ > > There appears to be a slight disconnect between the kernel source and the > ifconfig program (or at least the man page). The man page makes no mention > of the "bnc" and "aui" options which used to exist (and don't work anymore). > The link[012] options do exist but which one to use is not clear from the > kernel source. See comment above about reading the CORRECT source code. The correspondence between a link[] flag and connector is probably device specific. It does not make sense to use link2 for a device that expects at most link0 and/or link1. Currently, there is no man page ep.4. I might have to write such a beast. > > Now, I have not tested the 10-baseT since I don't use it and I don't claim > to be an expert on the 3c5x9 driver. Would a real expert care to comment? -- Steven G. Kargl Applied Physics Laboratory University of Washington Seattle, WA 98105