Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 1997 01:57:53 -0700
From:      Dmitry Kohmanyuk =?KOI8-R?B?5M3J1NLJyiDrz8jNwc7Ayw==?= <dk@farm.org>
To:        Jane Kelly <Jane@intercom.org>
Cc:        dk@snark.ukma.kiev.ua, FreeBSD-doc@FreeBSD.ORG
Subject:   Re: ne2000
Message-ID:  <19970910015753.17286@dog.farm.org>
In-Reply-To: <34158A8E.61B@intercom.org>; from "Jane Kelly" on Tue, Sep 09, 1997 at 06:42:38PM %2B0100
References:  <34158A8E.61B@intercom.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 09, 1997 at 06:42:38PM +0100, Jane Kelly wrote:
> Im trying to run ne2000 card on freeBSD 2.2.2 but 
> BSD cannot see the card. What is the usual setup procedure.
> 
> My understanding is that there is usually a program
> that comes with the card and that it runs under dos.
> Does this program need to be compiled?

it depends on the card.  If it is the older card with jumpers on it,
you just have to set them correctly. (port 0x300, usually, and irq
from 5,9,10,11,12 - one which is not used on your system (check your
PCI BIOS settings if you have PCI - remove the IRQ used from those available).

If it is newer software configurable model, you _can_ run this program
once to reconfigure the card to settings you like to use;  very frequently
the default is port 0x300 and irq 5 or 9. 

If it is ISA plug-and-pray card, it still can have compatibility mode...

> My card did not come with aprogram for BSD. Is there such a 
> program out there? Is there a way to do it using only the BSD?

try -c on boot prompt, and then set irq and port for ed0 device.
(from visual mode, or from command-line mode).
Then quit and see boot messages (use dmesg or scroll lock 
if you can't read them fast).

you can wish to boot single-user (boot -cs) to make your probes faster;
from there, type ifconfig -a to see if your ed0 device is there.
The port 0x300 is likely to be the one used;  otherwise, try 0x280.
The card would be detected even if irq is wrong.

If your card is detected, try ifconfig it to correct address and netmask
and then ping your network broadcast address (or any other host on LAN).
If this works, you are done; otherwise, if you see `ed0: timed out'
or something like that, it means that you have wrong irq.
Try other irq from the list above. 

Once you find the correct setting, boot multi-user so it is saved into
your on-disk kernel image (using dset from /etc/rc script;  newer FreeBSDs
can use /boot.* files for that).  Or you can compile your new kernel
with new setting. Do not forget to edit /etc/sysconfig or /etc/rc.conf 
to set your IP address and default gateway.

To documentation people: feel free to adapt my text for inclusion into 
handbook ;-)




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