Subject: PCMCIA Ethernet Card frustration
To: None <netbsd-users@netbsd.org>
From: Zach Crisler <zcrisler@gmail.com>
List: netbsd-users
Date: 03/08/2005 11:10:34
Working with a Compaq Armada E500 Laptop.  During installation I can
choose FTP or NFS and the system automatcially recognizes my PCMCIA
ethernet card (Linksys EtherFast 10/100) as ne2.  Download begins--but
takes forever, so I cancel and just install from CDROM.  After
installation, (choosing the GENERIC_LAPTOP kernel) the card is no
longer functioning.  `ifconfig -a` does not even list it.

The installation notes mention a problem with the INSTALL kernel not
supporting PCMCIA hardware but not the other way around--the INSTALL
supporting it and it breaking for GENERIC?  I try the suggested "hack"
to "just see what happens", but it "Memory fault (core dumped)" gdb.

Listed below is dmesg after a fresh install.  You can clearly find
'ne2' when installing, and yet after the first reboot there seem to be
a lot of PCI IRQ and I/O space problems...any ideas?

-Zach

dmesg:

NetBSD 2.0 (INSTALL) #0: Wed Dec  1 11:08:18 UTC 2004
       builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/INSTALL
total memory = 511 MB
avail memory = 491 MB
BIOS32 rev. 0 found at 0xf0000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 646.69 MHz, id 0x681
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
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: vendor 0x8086 product 0x7190 (rev. 0x03)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x4c4d (rev. 0x64)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
vendor 0x104c product 0xac1c (CardBus bridge, revision 0x01) at pci0
dev 4 function 0 not configured
vendor 0x104c product 0xac1c (CardBus bridge, revision 0x01) at pci0
dev 4 function 1 not configured
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel ignored (disabled)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x03) at
pci0 dev 7 function 3 not configured
vendor 0x125d product 0x1978 (audio multimedia, revision 0x10) at pci0
dev 8 function 0 not configured
vendor 0x11c1 product 0x0449 (miscellaneous communications, revision
0x01) at pci0 dev 9 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pcppi0 at isa0 port 0x61
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
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff irq
pcic0: controller 0 (Intel 82365SL-DF) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0: controller 0 detecting irqs with mask 0xde18:..3..9..10..15
pcic0: using irq 3 for socket events
Kernelized RAIDframe activated
md0: internal 5000 KB image area
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <Compaq  DRN8040B, 2000/01/21, 1.25> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
wd0 at atabus0 drive 0: <IBM-DARA-212000>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 11513 MB, 23392 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)
(using DMA data transfers)
cd0(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
ne2 at pcmcia0 function 0pcic0: port 0x400-0x40f
pcic0: port 0x410-0x41f

ne2: SVEC PN650TX 10/100 Dual Speed Fast Ethernet PC Card (DL10022) Ethernet
ne2: Ethernet address 00:e0:98:84:45:ff
nsphyter0 at ne2 phy 4: DP83815 10/100 media interface, rev. 0
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs
warning: no /dev/console
syncing disks... done
rebooting...
NetBSD 2.0 (GENERIC_LAPTOP) #0: Wed Dec  1 11:01:08 UTC 2004
       builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP
total memory = 511 MB
avail memory = 494 MB
BIOS32 rev. 0 found at 0xf0000
PCI BIOS rev. 2.1 found at 0xf0478
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xf0970, size 0 bytes (-2 entries)
pcibios_pir_init: bad IRQ table size
PCI IRQ Routing Table rev. 1.0 found at 0xf4ef0, size 224 bytes (12 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371AB PCI-to-ISA Bridge
(PIIX4) compatible)
PCI Exclusive IRQs: 11
------------------------------------------
 device vendor product pin PIRQ IRQ stage
------------------------------------------
000:04:0 0x104c 0xac1c   A  0x00  11  0    already assigned
000:04:1 0x104c 0xac1c   A  0x00  11  0    already assigned
000:07:2 0x8086 0x7112   D  0x03  11  0    already assigned
000:08:0 0x125d 0x1978   A  0x02  11  0    already assigned
000:09:0 0x11c1 0x0449   A  0x02  11  0    already assigned
001:00:0 0x1002 0x4c4d   A  0x00  11  0    already assigned
------------------------------------------
PCI fixup examining 8086:7190
PCI fixup examining 8086:7191
PCI fixup examining 1002:4c4d
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac1c
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 104c:ac1c
PCI bridge 2: primary 0, secondary 3, subordinate 3
PCI fixup examining 8086:7110
PCI fixup examining 8086:7111
PCI fixup examining 8086:7112
PCI fixup examining 8086:7113
PCI fixup examining 125d:1978
PCI fixup examining 11c1:449
PCI bus #3 is the last bus
[System BIOS Setting]-----------------------
 device vendor product
 register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190
       10h mem  0x50000000 0x04000000
               [OK]
000:01:0 0x8086 0x7191
               [OK]
000:04:0 0x104c 0xac1c
       10h mem  0x41100000 0x00001000
               [OK]
000:04:1 0x104c 0xac1c
       10h mem  0x41180000 0x00001000
               [OK]
000:07:0 0x8086 0x7110
               [OK]
000:07:1 0x8086 0x7111
       20h port 0x00003420 0x00000010
               [OK]
000:07:2 0x8086 0x7112
       20h port 0x00003400 0x00000020
               [OK]
000:07:3 0x8086 0x7113
               [OK]
000:08:0 0x125d 0x1978
       10h port 0x00003000 0x00000100
               [OK]
000:09:0 0x11c1 0x0449
       10h mem  0x41200000 0x00000100
       14h port 0x00003430 0x00000008
       18h port 0x00003800 0x00000100
               [OK]
001:00:0 0x1002 0x4c4d
       10h mem  0x40000000 0x01000000
       14h port 0x00002000 0x00000100
       18h mem  0x41000000 0x00001000
               [OK]
--------------------------[  0 devices bogus]
Physical memory end: 0x1ffec000
PCI memory mapped I/O space start: 0x20000000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 646.70 MHz, id 0x681
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
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: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0x50000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Rage Mobility (rev. 0x64)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
cbb0 at pci0 dev 4 function 0: Texas Instruments PCI1225 PCI-CardBus
Bridge (rev. 0x01)
cbb1 at pci0 dev 4 function 1: Texas Instruments PCI1225 PCI-CardBus
Bridge (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel ignored (disabled)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller
(PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous
bridge, revision 0x03) at pci0 dev 7 function 3 not configured
esm0 at pci0 dev 8 function 0: ESS Technology, Inc. Maestro 2E PCI
Audio Accelerator (rev. 0x10)
esm0: interrupting at irq 11
esm0: ac97: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at esm0: full duplex, mmap, independent
Lucent Technologies LTMODEM (miscellaneous communications, revision
0x01) at pci0 dev 9 function 0 not configured
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0
pcmcia1 at cardslot1
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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
apm0 at mainbus0: Power Management spec V1.2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <Compaq  DRN8040B, 2000/01/21, 1.25> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
wd0 at atabus0 drive 0: <IBM-DARA-212000>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 11513 MB, 23392 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)
(using DMA data transfers)
cd0(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)