Subject: Help on cloning network driver for compact flash Ethernet adapter
To: None <netbsd-help@netbsd.org>
From: Michael Francini <francini@mindspring.com>
List: netbsd-help
Date: 04/01/2003 09:59:40
--=-Mf0KMnjQDu3vKY9Nb0uw
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

First off, I'm new to NetBSD and am a novice *NIX hacker so chances are
that I've yet to find the right information on the new to answer this
question; hence the post.

I bought off ebay a compact flash Ethernet adapter that I've since
learned is made by Billionton Taiwan.  It's their model CFLT-10N.  (FYI,
this praticular nic has a picture of a person flying a hanglider on
it).  It uses the TAMARAK TC3299CE chipset which is register compatible
with the National Semiconductor NE8390 chipset.  I was able to verify
this by configuring my PCMCIA config options file on my linux box to use
the 8390 module on this NIC and VIOLA, IT WORKED!!  The problem is: the
manufacturer and product CIS codes aren't in the card so when I plug the
nic into my IBM Z50 CE laptop running NetBSD, it doesn't work, showing
the dreaded 0xfff... id for both product and manufacturer codes. What I
am able to obtain from my linux box cardctl info is the following:

PRODID_1="CF"
PRODID_2="10Base-Ethernet"
PRODID_3="1.0"
PRODID_4=""
MANFID=0000,0000
FUNCID=6

Browsing the directories and postings I've found the "if_ne_pcmcia.c"
driver code that would seem to be appropriate for running this NIC and I
also saw the "pcmcia_cis_quirks.c" program which seems to allow for
static entries of NICs displaying rude behavior similar to this one. 
Unfortunately, I'm not hack enough to understand the code to even try to
patch it to try to run this nic and I was hoping that some person out
there could give me guidance on documentation that can help me or on
work already done on this particular nic.  Any references to docs or
postings would be appreciated and I promise to post a resolution is
there is one.

TIA.
-- 
Michael Francini <francini@mindspring.com>

--=-Mf0KMnjQDu3vKY9Nb0uw
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
Hi,<BR>
<BR>
First off, I'm new to NetBSD and am a novice *NIX hacker so chances are that I've yet to find the right information on the new to answer this question; hence the post.<BR>
<BR>
I bought off ebay a compact flash Ethernet adapter that I've since learned is made by Billionton Taiwan.&nbsp; It's their model CFLT-10N.&nbsp; (FYI, this praticular nic has a picture of a person flying a hanglider on it).&nbsp; It uses the TAMARAK TC3299CE chipset which is register compatible with the National Semiconductor NE8390 chipset.&nbsp; I was able to verify this by configuring my PCMCIA config options file on my linux box to use the 8390 module on this NIC and VIOLA, IT WORKED!!&nbsp; The problem is: the manufacturer and product CIS codes aren't in the card so when I plug the nic into my IBM Z50 CE laptop running NetBSD, it doesn't work, showing the dreaded 0xfff... id for both product and manufacturer codes. What I am able to obtain from my linux box cardctl info is the following:<BR>
<BR>
PRODID_1=&quot;CF&quot;<BR>
PRODID_2=&quot;10Base-Ethernet&quot;<BR>
PRODID_3=&quot;1.0&quot;<BR>
PRODID_4=&quot;&quot;<BR>
MANFID=0000,0000<BR>
FUNCID=6<BR>
<BR>
Browsing the directories and postings I've found the &quot;if_ne_pcmcia.c&quot; driver code that would seem to be appropriate for running this NIC and I also saw the &quot;pcmcia_cis_quirks.c&quot; program which seems to allow for static entries of NICs displaying rude behavior similar to this one.&nbsp; Unfortunately, I'm not hack enough to understand the code to even try to patch it to try to run this nic and I was hoping that some person out there could give me guidance on documentation that can help me or on work already done on this particular nic.&nbsp; Any references to docs or postings would be appreciated and I promise to post a resolution is there is one.<BR>
<BR>
TIA.<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Michael Francini &lt;<A HREF="mailto:francini@mindspring.com">francini@mindspring.com</A>&gt;
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-Mf0KMnjQDu3vKY9Nb0uw--