*BSD News Article 43904


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!europa.chnt.gtegsc.com!news.sprintlink.net!cs.utexas.edu!math.ohio-state.edu!newsfeed.acns.nwu.edu!ftpbox!mothost!mdisea!uw-coco!nwfocus.wa.com!deanstoy!dean
From: dean@deanstoy.wa.com (Dean M. Phillips)
Subject: Re: FreeBSD 2.0-950412-SNAP and 3c509 problems
Organization: None whatsoever!
Message-ID: <D8A988.oB@deanstoy.wa.com>
References: <3ok7ck$874@nntp4.mindspring.com>
Date: Mon, 8 May 1995 23:28:56 GMT
Lines: 47

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

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:

#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.

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?
_________________________________________________________________________
Dean M. Phillips           PGP mail encouraged       dean@deanstoy.wa.com
Office: 206-294-1024        Lab: 206-662-0286          Home: 206-488-8282
PGP key on server, ID: 2CE87FB5