Subject: Setting PC Card Accton EN2228 under NetBSD 3.0
To: None <netbsd-help@NetBSD.org>
From: None <degoor@dir.bg>
List: netbsd-help
Date: 05/19/2006 00:32:23
Hello, friends!
I have an old laptop Texas Instruments Extensa570CDT (Pentium I 133Mhz,
24 MB RAM). Under Windows 98 SE I used for my network connection Accton
Cheetah EtherCard-2228 (EN2228) 10/100 Fast EthernetPC Card. Recently I
successfully installed NetBSD 3.0 on the laptop but I can't use the PC
Card as a network adapter.

I believe that NetBSD 3.0 has support for Accton Cheeetah EN2228
because in dmesg it is recognized as

"ne0 at pcmcia0 function 0: <CHEETAH ETHERCARD, EN2228, V, 1.0> 

so perhaps some adjustments should be made to the kernel to support it.
When I try to use the card I get 

"ne0: device timeout"

Here is dmesg:

NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon Dec 19 01:08:52 UTC 2005
builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP
total memory = 24188 KB
avail memory = 17432 KB
BIOS32 rev. 0 found at 0xfd6f4
PCI BIOS rev. 2.1 found at 0xfd772
pcibios: config mechanism [1][x], special cycles [x][x], last bus 0
PCI BIOS has 4 Interrupt Routing table entries
------------------------------------------
device vendor product pin PIRQ IRQ stage
------------------------------------------
------------------------------------------
PCI fixup examining 1045:c557
PCI fixup examining 1045:c558
PCI fixup examining 1013:1202
PCI bus #0 is the last bus
[System BIOS Setting]-----------------------
device vendor product
register space address size
--------------------------------------------
000:00:0 0x1045 0xc557 
[OK]
000:01:0 0x1045 0xc558 
[OK]
000:02:0 0x1013 0x1202 
10h mem 0xfc000000 0x01000000
14h mem 0xfd000000 0x01000000
[OK]
--------------------------[ 0 devices bogus]
Physical memory end: 0x017fc000
PCI memory mapped I/O space start: 0x01800000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium/MMX (586-class), 132.18 MHz, id 0x544
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
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: Opti 82C557 (rev. 0x00)
pcib0 at pci0 dev 1 function 0
pcib0: Opti 82C558 (rev. 0x00)
vga1 at pci0 dev 2 function 0: Cirrus Logic CL-GD7543 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atabus0 at wdc0 channel 0
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pas: detected card but PAS2 test failed
pcppi0 at isa0 port 0x61
midi2 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
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff irq 
pcic0: controller 0 (Intel 82365SL Revision 1) 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
apm0 at mainbus0: Power Management spec V1.1
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0: controller 0 detecting irqs with mask 0xdeb8:..3..9..10..11..15
pcic0: using irq 3 for socket events
Kernelized RAIDframe activated
ne0 at pcmcia0 function 0: <CHEETAH ETHERCARD, EN2228, V, 1.0>
pcic0: port 0x300-0x31f
pcmcia0: card irq 9
ne0: Ethernet address 00:10:b5:be:39:ef
ukphy0 at ne0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0006b8, model 0x000c, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1 at ne0 phy 16: Generic IEEE 802.3u media interface
ukphy1: OUI 0x0006b8, model 0x000c, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
wd0 at atabus0 drive 0: <IBM-DMCA-21440>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 1378 MB, 2800 cyl, 16 head, 63 sec, 512 bytes/sect x 2822400
sectors
wd0: drive supports PIO mode 4, DMA mode 2
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
pcmcia0: card irq 9
ne0: device timeout
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)

--------------------------------------------------------------
dmesg ---- END
---------------------------------------------------------------

Because of this problem I had to reinstall Windows 98 SE to get the
card settings. Here they are:

MS System Information > Hardware Resources > I/O

x0000 - x000F Direct memory access controller
x0020 - x0021 Programmable interrupt controller
x0022 - x0022 PCI bus
x0024 - x0024 PCI bus
x0040 - x0043 System timer
x0060 - x0060 Standard 101/102-Key or Microsoft Natural Keyboard
x0061 - x0061 System speaker
x0064 - x0064 Standard 101/102-Key or Microsoft Natural Keyboard
x0070 - x0071 System CMOS/real time clock
x0081 - x008F Direct memory access controller
x00A0 - x00A1 Programmable interrupt controller
x00C0 - x00DF Direct memory access controller
x00F0 - x00F1 Numeric data processor
x00F8 - x00FF Numeric data processor
x01F0 - x01F7 Standard IDE/ESDI Hard Disk Controller
x0220 - x022F ES688 Plug And Play AudioDrive
x02F8 - x02FF Infrared PnP Serial Port (*PNP0510)
x0300 - x031F CHEETAH ETHERCARD EN2228
x0378 - x037F ECP Printer Port (LPT1)
x0388 - x038B ES688 Plug And Play AudioDrive
x03B0 - x03BB Cirrus Logic 7543 PCI
x03C0 - x03DF Cirrus Logic 7543 PCI
x03E0 - x03E1 PCIC or compatible PCMCIA controller
x03F0 - x03F5 Standard Floppy Disk Controller
x03F6 - x03F6 Standard IDE/ESDI Hard Disk Controller
x03F7 - x03F7 Standard Floppy Disk Controller
x03F8 - x03FF Communications Port (COM1)
x05F0 - x05F7 Alias of Standard IDE/ESDI Hard Disk Controller
x0620 - x062F Alias of ES688 Plug And Play AudioDrive
x06F8 - x06FF Alias of Infrared PnP Serial Port (*PNP0510)
x0778 - x077A ECP Printer Port (LPT1)
x0788 - x078B Alias of ES688 Plug And Play AudioDrive
x07B0 - x07BB Alias of Cirrus Logic 7543 PCI
x07C0 - x07DF Alias of Cirrus Logic 7543 PCI
x07E0 - x07E1 Alias of PCIC or compatible PCMCIA controller
x07F0 - x07F5 Alias of Standard Floppy Disk Controller
x07F6 - x07F6 Alias of Standard IDE/ESDI Hard Disk Controller
x07F7 - x07F7 Alias of Standard Floppy Disk Controller
x07F8 - x07FF Alias of Communications Port (COM1)
x09F0 - x09F7 Alias of Standard IDE/ESDI Hard Disk Controller
x0A20 - x0A2F Alias of ES688 Plug And Play AudioDrive
x0AF8 - x0AFF Alias of Infrared PnP Serial Port (*PNP0510)
x0B88 - x0B8B Alias of ES688 Plug And Play AudioDrive
x0BB0 - x0BBB Alias of Cirrus Logic 7543 PCI
x0BC0 - x0BDF Alias of Cirrus Logic 7543 PCI
x0BE0 - x0BE1 Alias of PCIC or compatible PCMCIA controller
x0BF0 - x0BF5 Alias of Standard Floppy Disk Controller
x0BF6 - x0BF6 Alias of Standard IDE/ESDI Hard Disk Controller
x0BF7 - x0BF7 Alias of Standard Floppy Disk Controller
x0BF8 - x0BFF Alias of Communications Port (COM1)
x0CF8 - x0CFF PCI bus
x0DF0 - x0DF7 Alias of Standard IDE/ESDI Hard Disk Controller
x0E20 - x0E2F Alias of ES688 Plug And Play AudioDrive
x0EF8 - x0EFF Alias of Infrared PnP Serial Port (*PNP0510)
x0F88 - x0F8B Alias of ES688 Plug And Play AudioDrive
x0FB0 - x0FBB Alias of Cirrus Logic 7543 PCI
x0FC0 - x0FDF Alias of Cirrus Logic 7543 PCI
x0FE0 - x0FE1 Alias of PCIC or compatible PCMCIA controller
x0FF0 - x0FF5 Alias of Standard Floppy Disk Controller
...
x13E0 - x13E1 Alias of PCIC or compatible PCMCIA controller
...
x17E0 - x17E1 Alias of PCIC or compatible PCMCIA controller
...
x1BE0 - x1BE1 Alias of PCIC or compatible PCMCIA controller
...
x1FE0 - x1FE1 Alias of PCIC or compatible PCMCIA controller
...
x23E0 - x23E1 Alias of PCIC or compatible PCMCIA controller
...
x27E0 - x27E1 Alias of PCIC or compatible PCMCIA controller
...
x2BE0 - x2BE1 Alias of PCIC or compatible PCMCIA controller
...
x2FE0 - x2FE1 Alias of PCIC or compatible PCMCIA controller
...
x33E0 - x33E1 Alias of PCIC or compatible PCMCIA controller
...
x37E0 - x37E1 Alias of PCIC or compatible PCMCIA controller
...
x3BE0 - x3BE1 Alias of PCIC or compatible PCMCIA controller
...
x3FE0 - x3FE1 Alias of PCIC or compatible PCMCIA controller
...
x43E0 - x43E1 Alias of PCIC or compatible PCMCIA controller
...
x47E0 - x47E1 Alias of PCIC or compatible PCMCIA controller
...
x4BE0 - x4BE1 Alias of PCIC or compatible PCMCIA controller
...
x4FE0 - x4FE1 Alias of PCIC or compatible PCMCIA controller
...
x53E0 - x53E1 Alias of PCIC or compatible PCMCIA controller
...
x57E0 - x57E1 Alias of PCIC or compatible PCMCIA controller
...
x5BE0 - x5BE1 Alias of PCIC or compatible PCMCIA controller
...
x5FE0 - x5FE1 Alias of PCIC or compatible PCMCIA controller
...
x63E0 - x63E1 Alias of PCIC or compatible PCMCIA controller
...
x67E0 - x67E1 Alias of PCIC or compatible PCMCIA controller
...
x6BE0 - x6BE1 Alias of PCIC or compatible PCMCIA controller
...
x6FE0 - x6FE1 Alias of PCIC or compatible PCMCIA controller
...
x73E0 - x73E1 Alias of PCIC or compatible PCMCIA controller
...
x77E0 - x77E1 Alias of PCIC or compatible PCMCIA controller
...
x7BE0 - x7BE1 Alias of PCIC or compatible PCMCIA controller
...
x7FE0 - x7FE1 Alias of PCIC or compatible PCMCIA controller
...
x83E0 - x83E1 Alias of PCIC or compatible PCMCIA controller
...
x87E0 - x87E1 Alias of PCIC or compatible PCMCIA controller
...
x8BE0 - x8BE1 Alias of PCIC or compatible PCMCIA controller
...
x8FE0 - x8FE1 Alias of PCIC or compatible PCMCIA controller
...
x93E0 - x93E1 Alias of PCIC or compatible PCMCIA controller
...
x97E0 - x97E1 Alias of PCIC or compatible PCMCIA controller
...
x9BE0 - x9BE1 Alias of PCIC or compatible PCMCIA controller
...
x9FE0 - x9FE1 Alias of PCIC or compatible PCMCIA controller
...
xA3E0 - xA3E1 Alias of PCIC or compatible PCMCIA controller
...
xA7E0 - xA7E1 Alias of PCIC or compatible PCMCIA controller
...
xABE0 - xABE1 Alias of PCIC or compatible PCMCIA controller
...
xAFE0 - xAFE1 Alias of PCIC or compatible PCMCIA controller
...
xB3E0 - xB3E1 Alias of PCIC or compatible PCMCIA controller
...
xB7E0 - xB7E1 Alias of PCIC or compatible PCMCIA controller
...
xBBE0 - xBBE1 Alias of PCIC or compatible PCMCIA controller
...
xBFE0 - xBFE1 Alias of PCIC or compatible PCMCIA controller
...
xC3E0 - xC3E1 Alias of PCIC or compatible PCMCIA controller
...
xC7E0 - xC7E1 Alias of PCIC or compatible PCMCIA controller
...
xCBE0 - xCBE1 Alias of PCIC or compatible PCMCIA controller
...
xCFE0 - xCFE1 Alias of PCIC or compatible PCMCIA controller
...
xD3E0 - xD3E1 Alias of PCIC or compatible PCMCIA controller
...
xD7E0 - xD7E1 Alias of PCIC or compatible PCMCIA controller
...
xDBE0 - xDBE1 Alias of PCIC or compatible PCMCIA controller
...
xDFE0 - xDFE1 Alias of PCIC or compatible PCMCIA controller
...
xE3E0 - xE3E1 Alias of PCIC or compatible PCMCIA controller
...
xE7E0 - xE7E1 Alias of PCIC or compatible PCMCIA controller
...
xEBE0 - xEBE1 Alias of PCIC or compatible PCMCIA controller
...
xEFE0 - xEFE1 Alias of PCIC or compatible PCMCIA controller
...
xF3E0 - xF3E1 Alias of PCIC or compatible PCMCIA controller
...
xF7E0 - xF7E1 Alias of PCIC or compatible PCMCIA controller
...
xFBE0 - xFBE1 Alias of PCIC or compatible PCMCIA controller
...
xFFE0 - xFFE1 Alias of PCIC or compatible PCMCIA controller
...

--------------------------------------------------------------
MS System Information > Hardware Resources > I/O ---- END
---------------------------------------------------------------


MS System Information > Hardware Resources > IRQs

0 System timer
1 Standard 101/102-Key or Microsoft Natural Keyboard
2 Programmable interrupt controller
3 Infrared PnP Serial Port (*PNP0510)
4 Communications Port (COM1)
5 ES688 Plug And Play AudioDrive
6 Standard Floppy Disk Controller
7 ECP Printer Port (LPT1)
8 System CMOS/real time clock
9 (free)
10 (free)
11 (free)
12 PS/2 Compatible Mouse Port
13 Numeric data processor
14 Standard IDE/ESDI Hard Disk Controller
15 CHEETAH ETHERCARD EN2228

--------------------------------------------------------------
MS System Information > Hardware Resources > IRQs ---- END
---------------------------------------------------------------


MS System Information > Hardware Resources > Memory

x00000000 - x0009FFFF System board extension for PnP BIOS
x000A0000 - x000AFFFF Cirrus Logic 7543 PCI
x000B0000 - x000BFFFF Cirrus Logic 7543 PCI
x000C0000 - x000C7FFF Cirrus Logic 7543 PCI
x000D0000 - x000D0FFF PCMCIA Card Services
x000E0000 - x000FFFFF System board extension for PnP BIOS
xFC000000 - xFCFFFFFF Cirrus Logic 7543 PCI
xFD000000 - xFDFFFFFF Cirrus Logic 7543 PCI
xFEC00000 - xFEC0FFFF System board extension for PnP BIOS
xFEE00000 - xFEE0FFFF System board extension for PnP BIOS
xFFFE0000 - xFFFFFFFF System board extension for PnP BIOS

--------------------------------------------------------------
MS System Information > Hardware Resources > Memory ---- END
---------------------------------------------------------------


MS System Information > Componets > Network

(.....)

PCIC or compatible PCMCIA controller
PCMCIA
Registry Key: HKEY_LOCAL_MACHINE\enum\BIOS\*PNP0E00\0D
Alloc resources: Logical Configuration 0
IO Range: Base=x03E0 End=x03E1 Alias=x04, Decode=x03
Forced resources: None
Boot resources: Logical Configuration 0
IO Range: Base=x03E0 End=x03E1 Alias=x04, Decode=x03
Filtered resources: Logical Configuration 0
IO Range: Base=x0000 End=x0000 Min=x03E0 Max=x03E1 Alias=x00,
Decode=x00
Basic resources: Logical Configuration 0
IO Range: Base=x0000 End=x0000 Min=x03E0 Max=x03E1 Alias=x00,
Decode=x00
Driver: PCMCIA\0000
Driver Date: 4-23-1999
Driver: FLS2MTD.VXD
File Size: 6911 (0x1AFF)
File Date: 4/23/1999 10:22 PM
Company Name: Microsoft Corporation
File Version: 4.10.1998
Driver: FLS1MTD.VXD
File Size: 6807 (0x1A97)
File Date: 4/23/1999 10:22 PM
Company Name: Microsoft Corporation
File Version: 4.10.1998
Driver: SRAMMTD.VXD
File Size: 6299 (0x189B)
File Date: 4/23/1999 10:22 PM
Company Name: Microsoft Corporation
File Version: 4.10.1998
Driver: carddrv.exe
File Size: 27296 (0x6AA0)
File Date: 4/23/1999 10:22 PM
Driver: csmapper.sys
File Size: 13387 (0x344B)
File Date: 4/23/1999 10:22 PM
Company Name: Microsoft Corporation
File Version: 4.10.1998
Driver: PCCard.vxd
File Size: 80721 (0x13B51)
File Date: 4/23/1999 10:22 PM
Company Name: Microsoft Corporation
File Version: 4.10.2222

CHEETAH ETHERCARD EN2228
Net
Registry Key:
HKEY_LOCAL_MACHINE\enum\PCMCIA\CHEETAH_ETHERCARD-EN2228-71C2\0
Alloc resources: Logical Configuration 0
IRQ: 15 Mask: x8E88
IO Range: Base=x0300 End=x031F Min=x0300 Max=x031F Alias=x00,
Decode=x00
Forced resources: None
Boot resources: None
Filtered resources: Logical Configuration 0
IRQ: 15 Mask: x8E88
IO Range: Base=x0300 End=x031F Min=x0300 Max=x031F Alias=x00,
Decode=x00
Logical Configuration 1
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0320 Max=x033F Alias=x00,
Decode=x00
Logical Configuration 2
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0340 Max=x035F Alias=x00,
Decode=x00
Logical Configuration 3
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0360 Max=x037F Alias=x00,
Decode=x00
Logical Configuration 4
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0200 Max=x021F Alias=x00,
Decode=x00
Logical Configuration 5
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0220 Max=x023F Alias=x00,
Decode=x00
Logical Configuration 6
IRQ: 0 Mask: x8E98
IO Range: Base=x0000 End=x0000 Min=x0000 Max=xFFFF Alias=x00,
Decode=x00
Basic resources: Logical Configuration 0
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0300 Max=x031F Alias=x00,
Decode=x00
Logical Configuration 1
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0320 Max=x033F Alias=x00,
Decode=x00
Logical Configuration 2
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0340 Max=x035F Alias=x00,
Decode=x00
Logical Configuration 3
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0360 Max=x037F Alias=x00,
Decode=x00
Logical Configuration 4
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0200 Max=x021F Alias=x00,
Decode=x00
Logical Configuration 5
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0220 Max=x023F Alias=x00,
Decode=x00
Logical Configuration 6
IRQ: 0 Mask: xFFFF
IO Range: Base=x0000 End=x0000 Min=x0000 Max=xFFFF Alias=x00,
Decode=x00
Driver: Net\0004
Driver Date: 1-13-2000
Driver: EN2228.sys
File Size: 21952 (0x55C0)
File Date: 1/12/2000 6:35 PM
Company Name: Microsoft Corporation
File Version: 4.1

PCMCIA Card Services
PCMCIA
Registry Key: HKEY_LOCAL_MACHINE\enum\PCMCIA\PCCARD\HTREE&ROOT&0
Alloc resources: Logical Configuration 0
Memory Address Range: Base= x000D0000 End= x000D0FFF Min= x000D0000
Max= x000D0FFF 
Forced resources: None
Boot resources: None
Filtered resources: Logical Configuration 0
Memory Address Range: Base= x000D0000 End= x000D0FFF Min= x000D0000
Max= x000D0FFF 
Basic resources: Logical Configuration 0
Memory Address Range: Base= x00000000 End= x00000000 Min= x000D0000
Max= x000D0FFF 
Driver: PCMCIA\0001
Driver Date: 4-23-1999

(.....)

--------------------------------------------------------------
MS System Information > Componets > Network ---- END
---------------------------------------------------------------

Using Windows setting perhaps it will be possible to set the PC card
correctly under NetBSD.

I hope you can help me.

Best regards,
degoor