Subject: second NIC (Via Rhine) not availeble
To: None <tech-net@netbsd.org>
From: None <roberto@redix.it>
List: tech-net
Date: 02/05/2004 17:13:20
Date: 5 feb 2003

HW:
Motherboard VIA EPIA CL, CPU EDEN C3, Dual Ethernet 10/100

Problem description: the second nic is not recognized, and it cannot be
configured by ifconfig

example dmesg:

NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003
    autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC
cpu0: IDT Pentium Pro compatible (686-class), 601.39 MHz
cpu0: features 803035<FPU,DE,TSC,MSR,MTRR>
cpu0: features 803035<PGE,MMX>
total memory = 479 MB
avail memory = 438 MB
using 6144 buffers containing 24656 KB of memory
BIOS32 rev. 0 found at 0xfaff0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies product 0x3123 (rev. 0x00)
agp0 at pchb0: aperture at 0xe0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies product 0xb091 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: VIA Technologies product 0x3122 (rev. 0x03)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
VIA Technologies product 0x3106 (ethernet network, revision 0x8b) at pci0
dev 15 function 0 not configured
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller
(rev. 0x80)
pci_intr_map: no mapping for pin A (line=00)
uhci0: couldn't map interrupt
uhci1 at pci0 dev 16 function 1: VIA Technologies VT83C572 USB Controller
(rev. 0x80)
pci_intr_map: no mapping for pin B (line=ff)
uhci1: couldn't map interrupt
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller
(rev. 0x80)
pci_intr_map: no mapping for pin C (line=ff)
uhci2: couldn't map interrupt
VIA Technologies product 0x3104 (USB serial bus, interface 0x20, revision
0x82) at pci0 dev 16 function 3 not configured
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8235 (Apollo KT400) PCI-ISA Bridge (rev. 0x00)
pciide0 at pci0 dev 17 function 1: VIA Technologies VT8235 ATA133 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFB-128>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 122 MB, 980 cyl, 8 head, 32 sec, 512 bytes/sect x 250880 sectors
wd0: 32-bit data port
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 0
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at irq 11
vr0: Ethernet address: 00:40:63:c9:cb:ec
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0002c6, model 0x0032, rev. 5
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
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
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
biomask f745 netmask ff45 ttymask ffc7
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
warning: no /dev/console
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

while pcictl shows:
000:00:0: VIA Technologies product 0x3123 (host bridge)
000:01:0: VIA Technologies product 0xb091 (PCI bridge)
000:15:0: VIA Technologies product 0x3106 (ethernet network, revision 0x8b)
000:16:0: VIA Technologies VT83C572 USB Controller (USB serial bus,
revision 0x80)
000:16:1: VIA Technologies VT83C572 USB Controller (USB serial bus,
revision 0x80)
000:16:2: VIA Technologies VT83C572 USB Controller (USB serial bus,
revision 0x80)
000:16:3: VIA Technologies product 0x3104 (USB serial bus, interface 0x20,
revision 0x82)
000:17:0: VIA Technologies VT8235 (Apollo KT400) PCI-ISA Bridge (ISA bridge)
000:17:1: VIA Technologies VT82C586A IDE Controller (IDE mass storage,
interface 0x8a, revision 0x06)
000:18:0: VIA Technologies VT6102 (Rhine II) 10/100 Ethernet (ethernet
network, revision 0x74)

=====

In dmesg's output I see the ethernet:
VIA Technologies product 0x3106 (ethernet network, revision 0x8b) at pci0
dev 15 function 0 not configured

but it is not configured (what actually means?)

Any ideas?

Thanks,
Roberto