Subject: kern/13337: CN40BC ne2000 PCMCIA card support (patch included)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rslr@free.fr>
List: netbsd-bugs
Date: 06/29/2001 04:33:56
>Number:         13337
>Category:       kern
>Synopsis:       CN40BC ne2000 PCMCIA card support (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 29 04:32:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     de SAINT LEGER Rodolphe
>Release:        1.5.1 BETA2 (updated by sup)
>Organization:
IPvSEC
>Environment:
NetBSD gally 1.5.1 NetBSD 1.5.1 (TOSHIBA 480 CDT) #2: Fri Jun 29 13:28:39 CEST 2001     root@gally:/usr/src/sys/arch/i386/compile/TOSHIBA480CDT i386

>Description:
The CN40BC PCMCIA card is not supported in the 1.5.1 release (current not tested)
I was able to make it work with the following diffs
WARNING, apparently, the promiscuous mode doesn't work
(wasn't able to sniff packets on a non switched LAN)

I checked the cvs web, and apparently this card is not supported on NetBSD-current too
>How-To-Repeat:
Insert a CNET CN40BC in a pcmcia slot... :)

>Fix:
These are the diffs for the /sys/dev/pcmcia/if_ne_pcmcia.c
161a162,166
>     { PCMCIA_STR_CNET_NE2000,
>       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
>       PCMCIA_CIS_CNET_NE2000,
>       0, -1, { 0x00, 0x80, 0xad } },
> 
These are the diffs for the /sys/dev/pcmcia/pcmciadevs
265a266
> vendor CNET                   -1      CNet
306a308
> product CNET NE2000           { "CNet", "CN40BC&spEthernet", "D", "NE2000" } CNet CN40BC NE2000 Compatible

(after the pcmciadevs modification, don't forget to run make -f Makefile.pcmciadevs in the pcmcia directory
to update pcmciadevs.h

>Release-Note:
>Audit-Trail:
>Unformatted: