*BSD News Article 32542


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!panix!not-for-mail
From: wpaul@panix.com (Bill Paul)
Newsgroups: comp.os.386bsd.questions
Subject: Re: NE2000 adapter at a different i/o address??
Date: 9 Jul 1994 09:23:48 -0400
Organization: The M00se Illuminati (bl00p!)
Lines: 61
Distribution: world
Message-ID: <2vm8d4$127@panix3.panix.com>
References: <2vlecg$bv@eps.com>
NNTP-Posting-Host: panix3.panix.com
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se,
Steven Kornreich (steve@eps.com) had the courage to say:

: I have a NE2000 compatable ethernet board I am triing to use with FreeBSD.  
: In the install notes it says to set the board at 0x280 irq 5 .. My board  
: cannot do 0x280. Can I use another i/o address ? and if so how do I do it?

: --
: Steven Kornreich
: Kornreich Communications
: NeXTmail OK

The answer is: yes you can do it.

Looking at the GENERIC?? config files, it seems there's an ed0 and an
ed1 device. ed0 is at 0x280 while ed1 is at address 0x300. If your
board allows you to select 0x300 as the I/O address, try that and
see if it's detected as ed1. (The IRQ is 5 for both devices.)

If 0x300 is also unavailable, of if ed1 isn't probed correctly, you'll
have to make a new kernel. If you don't already have the kernel sources
installed, install them, then check out /usr/src/sys/i386/conf/GENERICAH
(or GENERICBT, if that's what you're using now) and look for a line
that says:

device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr

Adjust the values to suit your board, and do away with any other
devices that you don't need, if you're so inclined. Here's a quick
summary of how to build a kernel:

# cd /usr/src/sys/i386/conf
# cp GENERICAH MYHOST
<edit MYHOST accordingly -- change the 'ident' line from GENERICAH
 to MYHOST too>
# config MYHOST
# cd /usr/src/compile/MYHOST
# make depend
# make
# mv /386bsd /386bsd.old
# mv 386bsd /386bsd
# reboot

Keep /386bsd.old around until you're sure everything is working
correctly, then feel free to nuke it.

Note that all of this assumes that you are running FreeBSD 1.1 or later.
Also note that the general concensus seems to be that NE2000 boards
aren't all that great.

Hope this helps.

-Bill

--
 _      /\      _            Join the
/ \_/\_/  \_/\_/ \  .----.   M00se Illuminati   Bill Paul 
\_____/ () \_____/ (bl00p!)  Face it: wouldn't  <Big City M00se>
     /      \       `----'   you feel much      wpaul@panix.com   -or-
    /  \__/  \    --'        safer?             ghod@drycas.club.cc.cmu.edu
   /__________\