[epic] PCMCIA Cardbus problem

Zdenko zdenko.dolar@telekom.si
Wed, 2 Aug 2000 12:07:46 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0020_01BFFC7A.453D05E0
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Hello!


I own Psion 56k+10/100 Ethernet PCMCIA CardBus card.
My present configuration is:
    Linux Slackware 7.0 with Linux kernel 2.2.16
    pcmcia-cs-3.1.19 with your epic100.c version 1.07h
		from 8/18/99


The card is initialised, but network part do not work.
If I try to reach card with cardctl, the computer hangs.
With pcmcia-cs-3.1.19 are debug tools.
I include results listings.
I searched for a newer driver and found you.
On ftp://scyld.com/pub/network you offer drivers I need.

Can you please:

a) help me to configure driver I use
	(your epic100.c version 1.07h from 8/18/99)
or
b) tell me how to compile drivers on FTP site you offer.

Makefile do not want to compile cardbus drivers. If I want 
to compile epic_cb.o directly, compiler return "pci_tbl"
not defined. I need include file, where pci_tbl is defined.
That include file is not found in Linux source directory,
not in pcmcia directory, not in your source directory.

For debuging and solving my problem, I attached pcmcia/debug-tools
listings and boot time listings to this message.


Can you please help me?



With best regards!



Zdenko Dolar


------=_NextPart_000_0020_01BFFC7A.453D05E0
Content-Type: application/octet-stream;
	name="pcmcia.debug-tools"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="pcmcia.debug-tools"

Tests created on Mon Jul 31 11:00:55 2000 by Zdenko Dolar.=0A=
All tests performed with inserted LAN dongle and connected to 100Mb LAN.=0A=
Modem dongle was not connected to card.=0A=
=0A=
=0A=
dump_cardbus=0A=
=0A=
Socket 0:=0A=
  Socket Event:    0x00000000=0A=
  Socket Mask:     0x00000000=0A=
  Socket State:    0x30000006=0A=
    [ccd1] [ccd2] [5Vsock] [3Vsock]=0A=
  Socket Control:  0x00000000=0A=
    [Vcc off] [Vpp off]=0A=
=0A=
Socket 1:=0A=
  Socket Event:    0x00000009=0A=
    [cstschg] [pwrcycle]=0A=
  Socket Mask:     0x00000000=0A=
  Socket State:    0x30000868=0A=
    [pwrcycle] [32bit] [cint] [3Vcard] [5Vsock] [3Vsock]=0A=
  Socket Control:  0x00000033=0A=
    [Vcc=3D3.3v] [Vpp=3D3.3v]=0A=
=0A=
=0A=
dump_cis=0A=
=0A=
Socket 0:=0A=
  no CIS present=0A=
=0A=
Socket 1:=0A=
  manfid 0x016c, 0x0021=0A=
  vers_1 5.0, "Psion", "10-100Mb MF CardBus", "400062-01C",=0A=
    "123456789abc"=0A=
  config_cb base 0x00f2 last_index 0x01=0A=
  funcid network_adapter=0A=
  lan_technology ethernet=0A=
  lan_speed 10 mb/sec=0A=
  lan_speed 100 mb/sec=0A=
  lan_media unshielded_twisted_pair=0A=
  lan_node_id 00 60 63 06 5c ab=0A=
  lan_connector Closed connector standard=0A=
  BAR 1 size 8b [io]=0A=
  BAR 2 size 12b [mem]=0A=
  BAR 7 size 16b [mem]=0A=
  cftable_entry_cb 0x01 [default]=0A=
    [master] [parity] [serr] [fast back]=0A=
    Vcc Vnom 3300mV Istatic 80mA=0A=
    io_base 1=0A=
    irq mask 0xffff [level] [shared]=0A=
    mem_base 2=0A=
=0A=
=0A=
dump_cisreg=0A=
=0A=
ioctl(): No data available =0A=
=0A=
=0A=
dump_exca=0A=
=0A=
Socket 0:=0A=
  Identification and revision =3D 0x84=0A=
  Interface status =3D 0x00=0A=
   =0A=
  Power control =3D 0x00=0A=
    [resetdrv] [Vcc off] [Vpp off]=0A=
  Interrupt and general control =3D 0x40=0A=
    [irq=3D0]=0A=
  Card status change interrupt control =3D 0x08=0A=
    [detect] [irq=3D0]=0A=
  Card detect and general control =3D 0xc0=0A=
   =0A=
  memory 0: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 1: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 2: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 3: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 4: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  io 0: 0x0000-0x0001 [off] [8bit]=0A=
  io 1: 0x0000-0x0001 [off] [8bit]=0A=
=0A=
Socket 1:=0A=
  Identification and revision =3D 0x84=0A=
  Interface status =3D 0x6e=0A=
    [bvd2/spkr] [detect] [ready] [poweron]=0A=
  Power control =3D 0x19=0A=
    [resetdrv] [Vcc=3D3.3v] [Vpp=3D5v]=0A=
  Interrupt and general control =3D 0x09=0A=
    [reset] [irq=3D9]=0A=
  Card status change interrupt control =3D 0x00=0A=
    [irq=3D0]=0A=
  Card detect and general control =3D 0xc0=0A=
   =0A=
  memory 0: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 1: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 2: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 3: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  memory 4: 0x0000-0x0fff @ 0x00000000 [off] [8bit]=0A=
  io 0: 0x0000-0x0001 [off] [8bit]=0A=
  io 1: 0x0000-0x0001 [off] [8bit]=0A=
=0A=
=0A=
dump_pirq=0A=
=0A=
Interrupt routing table found at address 0xf73d0:=0A=
  Version 1.0, size 0x0070=0A=
  Interrupt router is device 00:07.0=0A=
  PCI exclusive interrupt mask: 0x0000=0A=
  Compatible router: vendor 0x8086 device 0x122e=0A=
=0A=
Device 50:0a.3 (slot 73):=0A=
  INTA: link 0x51, irq mask 0xb852=0A=
  INTC: link 0xc0, irq mask 0xff33=0A=
  INTD: link 0x66, irq mask 0x43b8=0A=
=0A=
Device 50:17.1 (slot 80):=0A=
  INTA: link 0xff, irq mask 0x26ff=0A=
  INTB: link 0x80, irq mask 0x503d=0A=
  INTC: link 0x75, irq mask 0x660c=0A=
  INTD: link 0x26, irq mask 0x3d81=0A=
=0A=
Device 49:08.3 (slot 89):=0A=
  INTA: link 0x75, irq mask 0xeb02=0A=
  INTB: link 0x06, irq mask 0xe247=0A=
  INTC: link 0xeb, irq mask 0xebf9=0A=
  INTD: link 0x01, irq mask 0x5af8=0A=
=0A=
Device 58:18.3 (slot 232):=0A=
  INTA: link 0xe8, irq mask 0x000d=0A=
  INTB: link 0xc3, irq mask 0x00b6=0A=
  INTC: link 0xb0, irq mask 0xb35f=0A=
  INTD: link 0x07, irq mask 0x03b4=0A=
=0A=
Device 08:18.3 (slot 195):=0A=
  INTA: link 0xb6, irq mask 0xb000=0A=
  INTB: link 0x5f, irq mask 0x07b3=0A=
  INTC: link 0xb4, irq mask 0xe803=0A=
  INTD: link 0x73, irq mask 0xc308=0A=
=0A=
Interrupt router at 00:07.0: Intel 82371AB PIIX4/PIIX4E PCI-to-ISA bridge=0A=
  PIRQ1 (link 0x60): irq 10=0A=
  PIRQ2 (link 0x61): irq 5=0A=
  PIRQ3 (link 0x62): irq 5=0A=
  PIRQ4 (link 0x63): unrouted=0A=
  Serial IRQ: [enabled] [continuous] [frame=3D21] [pulse=3D4]=0A=
=0A=
=0A=
dump_tcic=0A=
=0A=
Databook TCIC-2 probe: not found.=0A=
=0A=
=0A=
lspnp=0A=
=0A=
00 PNP0c01 System board=0A=
01 PNP0c02 Motherboard resources=0A=
02 PNP0c04 Math coprocessor=0A=
03 PNP0000 AT programmable interrupt controller=0A=
04 PNP0200 AT DMA controller=0A=
05 PNP0100 AT system timer=0A=
06 PNP0b00 AT real-time clock=0A=
07 PNP0303 IBM enhanced keyboard (101/102-key, PS/2 mouse support)=0A=
08 PNP0800 AT-style speaker sound=0A=
09 PNP0a03 PCI bus=0A=
0a PNP0f13 PS/2 port for PS/2-style mice=0A=
0b PNP0700 PC standard floppy disk controller=0A=
0c PNP0401 ECP printer port=0A=
0f PNP0501 16550A-compatible COM port=0A=
10 NSC6001 communications device: RS-232=0A=
13 PNP0e03 Intel 82365-compatible CardBus controller=0A=
=0A=
=0A=
=0A=
test_modem=0A=
=0A=
Checking modem at /dev/ttyS2:=0A=
  Settings: /dev/ttyS2, UART: 16550A, Port: 0x1200, IRQ: 2=0A=
  Sending modem query command...=0A=
  Modem query timed out: trying polled mode...=0A=
    ATI3 =3D ' RA8R V8.27,0A9'=0A=
  The modem interrupt (irq 2) has a delivery problem.=0A=
=0A=
=0A=
test_network=0A=
=0A=
PCMCIA network settings are coming from /etc/pcmcia/network.opts.=0A=
    /etc/pcmcia/network.opts is not configured??=0A=
=0A=
Checking network interface eth0 (epic_cb driver):=0A=
=0A=
  Kernel messages for eth0:=0A=
  eth0: <NULL> at 0x1300, IRQ 9, 00:60:63:06:5c:ab.=0A=
  eth0: MII transceiver #1 control 3100 status 7809.=0A=
  eth0:  Autonegotiation advertising 01e1 link partner 0000.=0A=
  eth0: Out-of-sync dirty pointer, 0 vs. 17, full=3D1.=0A=
  eth0: Out-of-sync dirty pointer, 16 vs. 33, full=3D1.=0A=
  eth0: Out-of-sync dirty pointer, 32 vs. 49, full=3D1.=0A=
  eth0: Out-of-sync dirty pointer, 48 vs. 65, full=3D1.=0A=
=0A=
  Current ifconfig settings:=0A=
  eth0      Link encap:Ethernet  HWaddr 00:60:63:06:5C:AB  =0A=
            inet addr:192.168.120.99  Bcast:192.168.120.255  =
Mask:255.255.255.0=0A=
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1=0A=
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0=0A=
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0=0A=
            collisions:0 txqueuelen:100 =0A=
            Interrupt:9 Base address:0x1300 =0A=
=0A=
  The interface is configured and running.=0A=
  There hasn't been any traffic on this interface!=0A=
=0A=
  There is a route to a gateway at 192.168.120.1.=0A=
=0A=
  Pinging 192.168.120.1 ... timed out!=0A=
  The device interrupt seems to be incrementing normally.=0A=
=0A=
=0A=
test_setup=0A=
=0A=
Current kernel: 2.2.16 #1 Tue Jun 27 16:24:23 CEST 2000=0A=
Module info from /lib/modules/2.2.16/pcmcia/pcmcia_core.o:=0A=
  Linux PCMCIA Card Services 3.1.19=0A=
  kernel build: 2.2.16 #1 Tue Jun 27 16:24:23 CEST 2000=0A=
  options:  [pci] [cardbus] [apm] [pnp]=0A=
=0A=
Checking current syslog files in /var/log:=0A=
  PCMCIA kernel messages are in /var/log/messages.=0A=
  cardmgr messages are in .=0A=
=0A=
Module status:=0A=
  The PCMCIA kernel modules are loaded correctly.=0A=
=0A=
Daemon status:=0A=
  cardmgr is running (process 98)=0A=
=0A=
Current socket status from /var/lib/pcmcia/stab:=0A=
  Socket 0: empty=0A=
  Socket 1: Psion Gold Card Netglobal 56K+10/100Mb CardBus=0A=
  1	network	epic_cb	0	eth0=0A=
  1	serial	serial_cb	0	ttyS2	4	66=0A=
=0A=
=0A=

------=_NextPart_000_0020_01BFFC7A.453D05E0
Content-Type: application/octet-stream;
	name="pcmcia.boot.messages"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="pcmcia.boot.messages"

/var/log/messages=0A=
=0A=
Jul 31 10:09:41 trlzdenko kernel: Linux PCMCIA Card Services 3.1.19=0A=
Jul 31 10:09:41 trlzdenko kernel:   kernel build: 2.2.16 #1 Tue Jun 27 =
16:24:23 CEST 2000=0A=
Jul 31 10:09:41 trlzdenko kernel:   options:  [pci] [cardbus] [apm] [pnp]=0A=
Jul 31 10:09:41 trlzdenko kernel: PCI routing table version 1.0 at =
0xf73d0=0A=
Jul 31 10:09:41 trlzdenko kernel: PnP: PNP BIOS installation structure =
at 0xc00ff020=0A=
Jul 31 10:09:41 trlzdenko kernel: PnP: PNP BIOS version 1.0, entry at =
ec000:3082, dseg at ec000=0A=
Jul 31 10:09:41 trlzdenko kernel: Intel PCIC probe: =0A=
Jul 31 10:09:41 trlzdenko kernel:   TI 1225 rev 01 PCI-to-CardBus at =
slot 00:08, mem 0x68000000=0A=
Jul 31 10:09:41 trlzdenko kernel:     host opts [0]: [pci + serial irq] =
[no pci irq] [lat 168/176] [bus 32/0]=0A=
Jul 31 10:09:41 trlzdenko kernel:     host opts [1]: [pci + serial irq] =
[no pci irq] [lat 168/176] [bus 35/0]=0A=
Jul 31 10:09:41 trlzdenko kernel:     ISA irqs (scanned) =3D 9,11 =
polling interval =3D 1000 ms=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: IO port probe 0x1000-0x17ff: clean.=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: IO port probe 0x0100-0x04ff: clean.=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: IO port probe 0x0a00-0x0aff: clean.=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: cb_alloc(bus 35): vendor 0x10b8, =
device 0x0006=0A=
Jul 31 10:09:41 trlzdenko kernel: epic100.c:v1.07h 8/18/99 Donald Becker =
http://cesdis.gsfc.nasa.gov/linux/drivers/epic100.html=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: cb_config(bus 35)=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 0 bar 1: io 0x1300-0x13ff=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 0 bar 2: mem 0x60041000-0x60041fff=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 1 bar 1: io 0x1200-0x12ff=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 1 bar 2: mem 0x60040000-0x60040fff=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 0 rom: mem 0x60030000-0x6003ffff=0A=
Jul 31 10:09:41 trlzdenko kernel:   fn 1 rom: mem 0x60020000-0x6002ffff=0A=
Jul 31 10:09:41 trlzdenko kernel:   irq 9=0A=
Jul 31 10:09:41 trlzdenko kernel: eth0: <NULL> at 0x1300, IRQ 9, =
00:60:63:06:5c:ab.=0A=
Jul 31 10:09:41 trlzdenko kernel: eth0: MII transceiver #1 control 3100 =
status 7809.=0A=
Jul 31 10:09:41 trlzdenko kernel: eth0:  Autonegotiation advertising =
01e1 link partner 0000.=0A=
Jul 31 10:09:41 trlzdenko kernel: serial_attach(device 23:00.1)=0A=
Jul 31 10:09:41 trlzdenko kernel: tty02 at 0x1200 (irq =3D 9) is a 16550A=0A=
=0A=
/var/log/debug=0A=
=0A=
Jul 31 10:09:41 trlzdenko kernel: ROM image dump:=0A=
Jul 31 10:09:41 trlzdenko kernel:   image 0: 0x000000-0x000bff, =
signature PCIR=0A=
Jul 31 10:09:41 trlzdenko kernel: cs: cb_enable(bus 35)=0A=
Jul 31 10:09:41 trlzdenko kernel:   bridge io map 0 (flags 0x21): =
0x1200-0x13ff=0A=
Jul 31 10:09:41 trlzdenko kernel:   bridge mem map 0 (flags 0x1): =
0x60020000-0x60041fff=0A=
Jul 31 10:09:41 trlzdenko kernel: epic_attach(bus 35, function 0)=0A=
=0A=
=0A=
=0A=

------=_NextPart_000_0020_01BFFC7A.453D05E0--