Subject: Re: PCMCIA Ethernet Card Problem
To: None <netbsd-help@netbsd.org>
From: Simon Rowe <sj.rowe@btinternet.com>
List: netbsd-help
Date: 05/19/2000 17:33:41
Hello,
It appears this card is getting closer to working, but not quite there yet !
I am stuck as what to try next.
Can anybody suggest a way forward ?

Below are the steps I have taken so far:

1) Applied patches to (thanks for your help Yuji Yamano and David Brownlee
!)

/sys/dev/pcmcia/pcmciadevs

--- pcmciadevs.orig Wed Jan 26 19:21:20 2000
+++ pcmciadevs Fri May 19 10:41:24 2000
@@ -53,6 +53,7 @@
 vendor USROBOTICS 0x0115 US Robotics Corporation
 vendor MEGAHERTZ2 0x0128 Megahertz Corporation
 vendor ADAPTEC 0x012f Adaptec Corporation
+vendor GREYCELL 0x0143  Grey Cell
 vendor LINKSYS 0x0149 Linksys Corporation
 vendor SIMPLETECH 0x014d Simple Technology
 vendor LUCENT 0x0156 Lucent Technologies
@@ -155,6 +156,10 @@

 /* Bay Networks */
 product BAY STACK_650 0x804 BayStack 650 Wireless LAN
+
+/* Grey Cell */
+product GREYCELL GCS2000 0x0201 Grey Cell GCS2000
+

2) The I ran:

                    make -f Makefile.pcmciadevs

3) Next I applied the rest of the patch sent to me Yuji Yamano as follows:

/sys/dev/pcmcia/if_ne_pcmcia.c

 /* Cards we know only by their cis */
 vendor PREMAX -1 Premax
--- if_ne_pcmcia.c.orig Wed Jan 26 19:19:52 2000
+++ if_ne_pcmcia.c Fri May 19 12:17:17 2000
@@ -217,6 +217,13 @@
       PCMCIA_CIS_ALLIEDTELESIS_LA_PCM,
       0, 0x0ff0, { 0x00, 0x00, 0xf4 } },

+    { PCMCIA_STR_GREYCELL_GCS2000,
+      PCMCIA_VENDOR_GREYCELL, PCMCIA_PRODUCT_GREYCELL_GCS2000,
+      PCMCIA_CIS_GREYCELL_GCS2000,
+      /* XXX Fix enet_maddr and enet_vendor. I don't know it because
+       * XXX I don't have this card.  */
+      0, -1, { 0x00, 0x00, 0x00 } },
+
 #if 0
     /* the rest of these are stolen from the linux pcnet pcmcia device
        driver.  Since I don't know the manfid or cis info strings for

3) Recompiled the kernel ok, and rebooted. The follow messages are seen when
the card is inserted:

pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: Grey Cell, GCS2000, Gold II, 1
pcmcia0: Manufacturer code 0x143, product 0x201
pcmcia0: function 0: network adapter, ccr addr 3f8 mask 1
pcmcia0: function 0, config table entry 32: I/O card; irq mask 9e38; iomask
a, iospace 300-31f; mwait_required rdybsy_active wp_active bvd_active io16
irqlevel
pcmcia0: function 0, config table entry 33: I/O card; irq mask 9e38; iomask
a, iospace 320-33f; mwait_required rdybsy_active wp_active bvd_active io16
irqlevel
pcmcia0: function 0, config table entry 34: I/O card; irq mask 9e38; iomask
a, iospace 340-35f; mwait_required rdybsy_active wp_active bvd_active io16
irqlevel
pcmcia0: function 0, config table entry 35: I/O card; irq mask 9e38; iomask
a, iospace 360-37f; mwait_required rdybsy_active wp_active bvd_active io16
irqlevel
ne0 at pcmcia0 function 0 port 0x340-0x34f port 0x350-0x35f
ne0: Grey Cell GCS2000 Ethernet
ne0: where did the card go?

The lights on the card flicker, and then go off. If I remove the card the
laptop crashes into debug(?) and I have to reboot.

Any further suggestion would very helpful.

Thanks

Simon