Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2002 09:24:31 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Jarkko Santala <jake@iki.fi>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: Still about ISA NICs on FreeBSD 4.5/alpha
Message-ID:  <15532.25119.807428.35143@grasshopper.cs.duke.edu>
In-Reply-To: <20020404140739.H61960-100000@trillian.santala.org>
References:  <20020404140739.H61960-100000@trillian.santala.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Jarkko Santala writes:
 > Hi all,
 > 
 > Sorry for writing about this again, but does anyone else have this same
 > problem? I know some EISA stuff might not work, but how about ISA NICs?
 > Doesn't seem to me like this would be horribly hard to fix if one knows
 > what she is doing.

Nobody else has tried to run most ISA nics on anything but x86.
That's why they are not in the alpha GENERIC kernel.  You're tredding
on new ground here.  Your initial problems are configuration related.
Expect to have more problems once you get the drivers building.

 > I'm running 4.5-RELEASE-p1 on a AlphaServer 1000. If I'm doing something
 > stupid please let me know so I can stop making a fool of myself. ;) And
 > if there's anything I can do to provide more information, I will be happy
 > to do it.
 > 
 > First with 3 ISA NICs in kernel like this:
 > 
 > ---cut---
 > --- GENERIC     Wed Dec 19 20:34:44 2001
 > +++ GENERIC-ISA Thu Apr  4 12:19:58 2002
 > @@ -131,4 +131,9 @@
 >  device          ppi             # Parallel port interface device
 >  #device         vpo             # Requires scbus and da
 > +
 > +# ISA Etherner NICs (let's see now...)
 > +device ep
 > +device ex
 > +device fe0 at isa? port 0x300
 > 
 >  # PCI Ethernet NICs.
 > ---cut---
 > 
 > 'config GENERIC-ISA' goes fine, 'make depend' results in:
 > 
 > ---cut---
 > bd_isa.c ../../isa/atkbdc_isa.c  ../../isa/fd.c ../../isa/ppc.c
 > ../../isa/psm.c ../../isa/sio.c  ../../isa/syscons_isa.c
 > ../../isa/vga_isa.c ../../kern/subr_diskmbr.c  ../../libkern/bcmp.c
 > ../../libkern/ffs.c ioconf.c vnode_if.c config.c
 > ../../alpha/alpha/genassym.c
 > ../../dev/fe/if_fe.c:71: opt_fe.h: No such file or directory
 > mkdep: compile failed
 > *** Error code 1

Move:

FE_8BIT_SUPPORT         opt_fe.h

from conf/options.i386 to conf/options & try again.
You'll probably stumble on something else.


> 
 > Stop in /usr/src/sys/compile/GENERIC-ISA.
 > trillian:/usr/src/sys/compile/GENERIC-ISA#
 > ---cut---
 > 
 > Then, with the fe0 removed:
 > 
 > ---cut---
 > --- GENERIC     Wed Dec 19 20:34:44 2001
 > +++ GENERIC-ISA2        Thu Apr  4 12:35:28 2002
 > @@ -131,4 +131,8 @@
 >  device          ppi             # Parallel port interface device
 >  #device         vpo             # Requires scbus and da
 > +
 > +# ISA Etherner NICs (let's see now...)
 > +device ep
 > +device ex
 > 
 >  # PCI Ethernet NICs.
 > ---cut---
 > 
 > 'config GENERIC-ISA2' and 'make depend' go fine, but 'make' results in:
 > 
 > ---cut---
 > cc -c -O -pipe -mcpu=ev4 -Wall -Wredundant-decls -Wnested-externs
 > -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
 > -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
 > -I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
 > opt_global.h -elf  -mno-fp-regs -Wa,-mev56  vers.c
 > linking kernel
 > if_ep_isa.o: In function `ep_isa_identify':
 > if_ep_isa.o(.text+0x1d0): undefined reference to `elink_idseq'
 > if_ep_isa.o(.text+0x1d4): undefined reference to `elink_idseq'
 > if_ep_isa.o(.text+0x1e0): undefined reference to `elink_reset'
 > if_ep_isa.o(.text+0x1e4): undefined reference to `elink_reset'
 > if_ep_isa.o(.text+0x244): undefined reference to `elink_idseq'
 > if_ep_isa.o(.text+0x248): undefined reference to `elink_idseq'
 > *** Error code 1
 > 

Move 

i386/isa/elink.c	optional	ep

from conf/files.i386 to conf/files & try again.

I notice the ep driver still does inb/outb so it hasn't been
converted to bus space yet.  This reduces the likleyhood of it
actually working if you manage to compile it.

BTW, do you actually have all these nics?

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




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