Subject: Re: IPNAT with just one ethernet card? -- now two cards...
To: None <netbsd-help@netbsd.org>
From: Zach Fine <czyz@u.washington.edu>
List: netbsd-help
Date: 03/03/1999 01:25:50
I decided to do the right thing, and bought a second ethernet card so
that I could use separate cards for the internet and intranet
connections and use NAT to provide internet service for my housemates'
computers.

My 2 ISA slots were already full, but I had an extra PCI slot
available, so I decided to buy a PCI ethernet adapter.  They had a few
varieties available at the local computer store, I bought the rather
inexpensive Bay Networks NetGear 10/100 Fast Ethernet PCI Adapter FA
310TX, which according to http://www.netbsd.org/Hardware/pci.html
should use the "de" driver (unless of course that page's inclusion of
'Bay Networks NetGear cards' is meant to exclude the particular card I
bought).

I compiled a new kernel with support for every PCI ethernet device, de
and ep (my other ethernet card) included.

When I turned on the machine, the BIOS listed two Network cards in the
table of devices it displays as it boots, yet NetBSD didn't recognize
the card as a de device, instead it scrolled by as a:

Lite-On Communications product 0x0002 (ethernet network, revision
0x21) at pci0 dev 9 function 0 not configured

This seemed rather odd. I also tried booting with a kernel that
included support for the ep and de ethernet adapters and no other
ethernet cards. Same result.  I tried booting with IRQ hungry cards
removed, same result.

Unfortunately, there doesn't appear to be any man page or other
documentation for the 'de' driver, nor did the card itself come with
any useful documentation.  I was partially happy to note that Bay
Networks supplies a Linux driver for the FA 310TX on their website,
but I was unable to extract it from their self extracting .exe file
using unzip, and it'd doubtless be of no use with NetBSD.

So at this point I'm stuck. I'll probably have to buy a different
ethernet card unless there's a driver which works for this card. If
the problem is that I happened to buy a NetGear card that uses a
different and unsupported chipset (FWIW there are no chips labelled
DEC or Tulip on the card), it might be good if our list of supported
PCI devices included a caveat along with the mentioning of 'netgear'.
If my problem is that I'm running NetBSD 1.3.2 and a simple upgrade to
1.3.3 will save me a return trip to the computer store, please tell me
so.

Thanks for any help or information.

-Zach Fine
czyz@u.washington.edu

PS. (just in case it's relevant, I'm appending my dmesg output here):
xdsl014% dmesg
Copyright (c) 1996, 1997, 1998
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3.2 (JEHOVIII) #6: Wed Mar  3 00:31:32 PST 1999
    czyz@xdsl014:/usr/src/sys/arch/i386/compile/JEHOVIII
cpu0: family 6 model 6 step 0
cpu0: Intel Pentium Pro (686-class)
real mem  = 66711552
avail mem = 63381504
using 839 buffers containing 3436544 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
Intel product 0x7190 (host bridge, revision 0x03) at pci0 dev 0
function 0 not configured
ppb0 at pci0 dev 1 function 0: Intel product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface
0x80, revision 0x01) at pci0 dev 7 function 1 not configured
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision
0x01) at pci0 dev 7 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous
bridge, revision 0x02) at pci0 dev 7 function 3 not configured
Lite-On Communications product 0x0002 (ethernet network, revision
0x21) at pci0 dev 9 function 0 not configured
ncr0 at pci0 dev 11 function 0: ncr 53c815 fast10 scsi
ncr0: interrupting at irq 12
ncr0: minsync=25, maxsync=206, maxoffs=8, 16 dwords burst, normal dma
fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets
sd0 at scsibus0 targ 1 lun 0: <QUANTUM, FIREBALL_TM3200S, 300X> SCSI2
0/direct fixed
sd0: sd0(ncr0:1:0): 10.0 MB/s (100 ns, offset 8)
3067MB, 6810 cyl, 5 head, 184 sec, 512 bytes/sect x 6281856 sectors
uk0 at scsibus0 targ 2 lun 0: <HP, C5100A, R030> SCSI2 3/processor
fixed
uk0: unknown device
ep0 at pci0 dev 13 function 0: 3Com 3C590 Ethernet
ep0: MAC address 00:a0:24:ba:5f:2d
ep0: 8KB byte-wide FIFO, 1:1 Rx:Tx split, utp default utp, autoselect
ep0: interrupting at irq 10
Texas Instruments product 0x3d07 (VGA display, revision 0x01) at pci0
dev 15 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
com3 at isa0 port 0x2e8-0x2ef irq 9: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
lpt1 at isa0 port 0x278-0x27b: polled
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
cd0 at atapibus0 drive 1: <CD-ROM  CDR_S1G, , 2.15> type 5 cdrom
removable
wd0 at wdc0 drive 0: <QUANTUM FIREBALL_TM3200A>
wd0: using 16-sector 16-bit pio transfers, lba mode
wd0: 3067MB, 6281856 sec, 512 bytes/sec
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0 at isa0 port 0x279: read port 0x203
guspnp0 at isapnp0 port 0x220/16,0x320/8,0x32c/4 irq 11 drq 5,7
guspnp0: UltraSound Plug & Play Synth & Codec
bank[0] 1024K : bank[1] 0K : bank[2] 0K : bank[3] 0K : 
interwave version 1.26. using irq 11 drqs 7,5
audio0 at guspnp0
isapnp0: <UltraSound Plug & Play, GRV0011, , Disabled Device> not
configured
joy0 at isapnp0 port 0x201/1
joy0: UltraSound Plug & Play Game Port
joy0: joystick connected
isapnp0: <UltraSound Plug & Play, GRV0003, , SB Compatible A> port
0x388/2 irq 5 drq 1 not configured
isapnp0: <UltraSound Plug & Play, GRV0004, , MPU-401 GM Musi> port
0x330/2 not configured
biomask 5040 netmask 5440 ttymask 54c2
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
IP Filter: initialized.  Default = pass all, Logging = disabled