home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 11 / IOPROG_11.ISO / docs / ethern~1 < prev    next >
Encoding:
Text File  |  1997-02-01  |  211.4 KB  |  4,828 lines

  1.   Linux Ethernet-Howto
  2.   Paul Gortmaker, Editor.
  3.   v2.62, 2 February 1997
  4.  
  5.   This is the Ethernet-Howto, which is a compilation of information
  6.   about which ethernet devices can be used for Linux, and how to set
  7.   them up. It hopefully answers all the frequently asked questions about
  8.   using ethernet cards with Linux. Note that this Howto is focused on
  9.   the hardware and low level driver aspect of the ethernet cards, and
  10.   does not cover the software end of things like ifconfig and route. See
  11.   the NET2-Howto for that stuff.
  12.  
  13.   1.  Introduction
  14.  
  15.   The Ethernet-Howto covers what cards you should and shouldn't buy; how
  16.   to set them up, how to run more than one, and other common problems
  17.   and questions. It contains detailed information on the current level
  18.   of support for all of the most common ethernet cards available.
  19.  
  20.   It does not cover the software end of things, as that is covered in
  21.   the NET-2 Howto. Also note that general non-Linux specific questions
  22.   about Ethernet are not (or at least they should not be) answered here.
  23.   For those types of questions, see the excellent amount of information
  24.   in the comp.dcom.lans.ethernet FAQ. You can FTP it from rtfm.mit.edu
  25.   just like all the other newsgroup FAQs.
  26.  
  27.   This present revision covers distribution kernels up to and including
  28.   v2.0.28. Information pertaining to development kernels up to version
  29.   2.1.24 is also documented.
  30.  
  31.   The Ethernet-Howto is edited and maintained by:
  32.  
  33.        Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  34.  
  35.   The primary source of information for the initial ASCII version of the
  36.   Ethernet-Howto was:
  37.  
  38.        Donald J. Becker, becker@cesdis.gsfc.nasa.gov
  39.  
  40.   who we should thank for writing the vast majority of ethernet card
  41.   drivers that are presently available for Linux. He also is the
  42.   original author of the NFS server too. Thanks Donald!
  43.  
  44.   Net-surfers may wish to check out the following URL:
  45.  
  46.   Donald Becker
  47.   <http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html>
  48.  
  49.   Please see the Disclaimer and Copying information at the end of this
  50.   document for information about redistribution of this document and the
  51.   usual `we are not responsible for what you do...' legal type
  52.   mumblings.
  53.  
  54.   1.1.  New Versions of this Document
  55.  
  56.   New versions of this document can be retrieved via anonymous FTP from:
  57.  
  58.   Sunsite HOWTO Archive <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/>
  59.  
  60.   and various Linux ftp mirror sites. Updates will be made as new
  61.   information and/or drivers becomes available. If this copy that you
  62.   are reading is more than 6 months old, it is either out of date, or it
  63.   means that I have been lazy and haven't updated it.  This document was
  64.   produced by using the SGML system that was specifically set up for the
  65.   Linux Howto project, and there are various output formats available,
  66.   including, postscript, dvi, ascii, html, and soon TeXinfo.
  67.  
  68.   I would recommend viewing it in the html (via a WWW browser) or the
  69.   Postscript/dvi format. Both of these contain cross-references that are
  70.   lost in the ascii translation.
  71.  
  72.   If you want to get the official copy off sunsite, here is URL.
  73.  
  74.   Ethernet-HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Ethernet-HOWTO.html>
  75.  
  76.   1.2.  Using the Ethernet-Howto
  77.  
  78.   As this guide is getting bigger and bigger, you probably don't want to
  79.   spend the rest of your afternoon reading the whole thing. And the good
  80.   news is that you don't have to read it all.
  81.  
  82.   Chances are you are reading this document beacuse you can't get things
  83.   to work and you don't know what to do or check. The next section
  84.   (``HELP - It doesn't work!'')  is aimed at newcomers to linux and will
  85.   point you in the right direction.
  86.  
  87.   Typically the same problems and questions are asked over and over
  88.   again by different people. Chances are your specific problem or
  89.   question is one of these frequently asked questions, and is answered
  90.   in the FAQ portion of this document .  (``The FAQ section'').
  91.   Everybody should have a look through this section before posting for
  92.   help.
  93.  
  94.   If you haven't got an ethernet card, then you will want to start with
  95.   deciding on a card.  (``What card should I buy...'')
  96.  
  97.   If you have already got an ethernet card, but are not sure if you can
  98.   use it with Linux, then you will want to read the section which
  99.   contains specific information on each manufacturer, and their cards.
  100.   (``Vendor Specific...'')
  101.  
  102.   If you are interested in some of the technical aspects of the Linux
  103.   device drivers, then you can have a browse of the section with this
  104.   type of information.  (``Technical Information'')
  105.  
  106.   1.3.  HELP - It doesn't work!
  107.  
  108.   Okay, don't panic. This will lead you through the process of getting
  109.   things working, even if you have no prior background in linux or
  110.   ethernet hardware.
  111.  
  112.   First thing you need to do is figure out what model your card is so
  113.   you can determine if Linux has a driver for that particular card.
  114.   Different cards typically have different ways of being controlled by
  115.   the host computer, and the linux driver (if there is one) contains
  116.   this control information in a format that allows linux to use the
  117.   card.
  118.  
  119.   If you don't have any manuals or anything of the sort that tell you
  120.   anything about the card model, then you can either see the section on
  121.   helping with mystery cards (``Identifying an Unknown Card''), or just
  122.   try a `kitchen-sink' kernel with nearly every driver built in and hope
  123.   one of the drivers recognizes your card.
  124.   Now that you know what type of card you have, read through the details
  125.   of your particular card in the card specific section (``Vendor
  126.   Specific...'')  which lists in alphabetical order, card manufacturers,
  127.   individual model numbers and whether it has a linux driver or not. If
  128.   it lists it as `Not Supported' you can pretty much give up here. If
  129.   you can't find your card in that list, then check to see if your card
  130.   manual lists it as being `compatible' with another known card type.
  131.   For example there are hundreds, if not thousands of different cards
  132.   made to be compatible with the original Novell NE2000 design.
  133.  
  134.   Assuming you have found out that your card does have a linux driver,
  135.   you now need to go back to the CD-ROM or whatever you installed from,
  136.   and find the list of pre-built kernels that comes with it. The kernel
  137.   is the core operating system that is first loaded at boot, and
  138.   contains drivers for various pieces of hardware, among other things.
  139.   Just because linux has a driver for your card does not mean that it is
  140.   built into every kernel. Depending on who made the CD-ROM, there may
  141.   be only a few pre-built kernels, and a whole bunch of drivers as
  142.   smaller separate modules, or there may be a whole lot of kernels,
  143.   covering a vast combination of built-in driver combinations. Hopefully
  144.   there will also be a text file with them that lists what drivers are
  145.   included into which kernels. Try and find a kernel that is listed as
  146.   having the driver you need as built into it, or try and find a module
  147.   with the name of the driver you need.
  148.  
  149.   If you found a pre-built kernel that has your driver in it, you will
  150.   want to boot that kernel instead of the one you are presently using.
  151.   Most linux systems use LILO to boot, and will have installed the LILO
  152.   documentation on your system.  Follow the instructions in that for
  153.   booting another kernel, as they are beyond the scope of this document.
  154.  
  155.   If you instead found a small module that contains the driver, you will
  156.   need to attach this module to the kernel after it has booted up. See
  157.   the information that came with your distribution on installing and
  158.   using modules, along with the module section in this document.
  159.   (``Using the Ethernet Drivers as Modules'')
  160.  
  161.   If you didn't find either a pre-built kernel with your driver, or a
  162.   module form of the driver, chances are you have a typically uncommon
  163.   card, and you will have to build your own kernel with that driver
  164.   included. Once you have linux installed, building a custom kernel is
  165.   not difficult at all. You essentially answer yes or no to what you
  166.   want the kernel to contain, and then tell it to build it. There is a
  167.   Kernel-HowTo that will help you along.
  168.  
  169.   At this point you should have somehow managed to be booting a kernel
  170.   with your driver built in, or be loading it as a module.  About half
  171.   of the problems people have are related to not having driver loaded
  172.   one way or another, so you may find things work now.
  173.  
  174.   If it still doesn't work, then you need to verify that the kernel is
  175.   indeed detecting the card. To do this, you need to type dmesg | more
  176.   when  logged in after the system has booted and all modules have been
  177.   loaded.  This will allow you to review the boot messages that the
  178.   kernel scrolled up the screen during the boot process.  If the card
  179.   has been detected, you should see somewhere in that list a message
  180.   from your card's driver that starts with eth0, mentions the driver
  181.   name and the hardware parameters (interrupt setting, input/output port
  182.   address, etc) that the card is set for. If you don't see a message
  183.   like this, then the driver didn't detect your card, and that is why
  184.   things aren't working. See the FAQ (``The FAQ Section'') for what to
  185.   do if your card is not detected. If you have a NE2000 compatible,
  186.   there is also some NE2000 specific tips on getting a card detected in
  187.   the FAQ section as well.
  188.  
  189.   If the card is detected, but the detection message reports some sort
  190.   of error, like a resource conflict, then the driver probably won't
  191.   have initialized properly and the card still wont be useable. Most
  192.   common error messages of this sort are also listed in the FAQ section,
  193.   along with a solution.
  194.  
  195.   If the detection message seems okay, then double check the card
  196.   resources reported by the driver against those that the card is
  197.   physically set for (either by little black jumpers on the card, or by
  198.   a software utility supplied by the card manufacturer.)  These must
  199.   match exactly. For example, if you have the card jumpered or
  200.   configured to IRQ 15 and the driver reports IRQ 10 in the boot
  201.   messages, things will not work. The FAQ section discusses the most
  202.   common cases of drivers incorrectly detecting the configuration
  203.   information of various cards.
  204.  
  205.   At this point, you have managed to get you card detected with all the
  206.   correct parameters, and hopefully everything is working.  If not, then
  207.   you either have a software configuration error, or a hardware
  208.   configuration error. A software configuration error is not setting up
  209.   the right network addresses for the ifconfig and route commands, and
  210.   details of how to do that are fully described in the NET2-HowTo and
  211.   the `Network Administrator's Guide' which both probably came on the
  212.   CD-ROM you installed from.
  213.  
  214.   A hardware configuration error is when some sort of resource conflict
  215.   or mis-configuration that the driver didn't detect at boot stops the
  216.   card from working properly. This typically can be observed in one of
  217.   three different ways. (1) You get an error message when ifconfig tries
  218.   to open the device for use, such as ``SIOCSFFLAGS: Try again''. (2)
  219.   The driver reports eth0 error messages (viewed by dmesg | more) or
  220.   strange inconsistencies for each time it tries to send or receive
  221.   data. (3) Typing cat /proc/net/dev shows non-zero numbers in one of
  222.   the errs, drop, fifo, frame or carrier columns for eth0.  Most of the
  223.   typical hardware configuration errors are also discussed in the FAQ
  224.   section.
  225.  
  226.   Well, if you have got to this point, read the FAQ section of this
  227.   document, read the vendor specific section detailing your particular
  228.   card, and it still doesn't work then you may have to resort to posting
  229.   to an appropriate newsgroup for help. If you do post, please detail
  230.   all relevant information in that post, such as the card brand, the
  231.   kernel version, the driver boot messages, the output from cat
  232.   /proc/net/dev, a clear description of the problem, and of course what
  233.   you have already tried to do in an effort to get things to work.
  234.  
  235.   You would be surprised at how many people post useless things like
  236.   ``Can someone help me? My ethernet doesn't work.'' and nothing else.
  237.   Readers of the newsgroups tend to ignore such silly posts, wheras a
  238.   detailed and informational problem description may allow a `linux-
  239.   guru' to spot your problem right away.
  240.  
  241.   2.  What card should I buy for Linux?
  242.  
  243.   The answer to this question depends heavily on exactly what you intend
  244.   on doing with your net connection, and how much traffic it will see.
  245.  
  246.   If you only expect a single user to be doing the occasional ftp
  247.   session or WWW connection, then an old 8 bit wd8003 card will keep you
  248.   happy.
  249.  
  250.   If you intend to set up a server, and you require the CPU overhead of
  251.   Rx'ing and Tx'ing ether packets to be kept at a minimum, you probably
  252.   want to look at one of the newer PCI cards with the DEC 21040 chip, or
  253.   the AMD PCnet-PCI chip.
  254.  
  255.   If you fall somewhere in the middle of the above, then any one of the
  256.   16 bit ISA cards with stable drivers will do the job for you.
  257.  
  258.   2.1.  So What Drivers are Stable?
  259.  
  260.   Of the 16 bit ISA cards, the following drivers are very mature, and
  261.   you shouldn't have any problems if you buy a card that uses these
  262.   drivers.
  263.  
  264.   SMC-Ultra/EtherEZ, WD80x3, 3c509, 3c503/16, Lance, NE2000.
  265.  
  266.   This is not to say that all the other drivers are unstable.  It just
  267.   happens that the above are the oldest and most used of all the linux
  268.   drivers, making them the safest choice.
  269.  
  270.   Note that some el-cheapo motherboards can have trouble with the bus-
  271.   mastering that the lance cards do, and some el-cheapo NE2000 clones
  272.   can have trouble getting detected at boot.
  273.  
  274.   As for PCI cards, the PCnet-PCI cards that use the lance driver are a
  275.   safe choice (except for the Boca cards as they have hardware flaws).
  276.   The Allied Telsyn AT2450 is a PCnet-PCI implementation that is known
  277.   to work well.
  278.  
  279.   The DEC 21040 `tulip' driver and the 3c59x `vortex' driver are
  280.   relatively new drivers, but have proven themselves to be quite stable
  281.   already.
  282.  
  283.   2.2.  Eight bit vs 16 bit Cards
  284.  
  285.   You probably can't buy a new 8 bit ISA ethercard anymore, but you will
  286.   find lots of them turning up at computer swap meets and the like for
  287.   the next few years, at very low prices.  This will make them popular
  288.   for ``home-ethernet'' systems.
  289.  
  290.   Some 8 bit cards that will provide adequate performance for light to
  291.   average use are the wd8003, the 3c503 and the ne1000.  The 3c501
  292.   provides poor performance, and these poor 12 year old relics of the XT
  293.   days should be avoided.
  294.  
  295.   The 8 bit data path doesn't hurt performance that much, as you can
  296.   still expect to get about 500 to 800kB/s ftp download speed to an 8
  297.   bit wd8003 card (on a fast ISA bus) from a fast host.  And if most of
  298.   your net-traffic is going to remote sites, then the bottleneck in the
  299.   path will be elsewhere, and the only speed difference you will notice
  300.   is during net activity on your local subnet.
  301.  
  302.   2.3.  32 Bit / VLB / PCI Ethernet Cards
  303.  
  304.   There aren't many 32 bit ethercard device drivers because there aren't
  305.   that many 32 bit ethercards.  There aren't many 32 bit ethercards out
  306.   there because a 10Mbs network doesn't justify spending a large price
  307.   increment for the 32 bit interface. Now that 100Mbs networks are
  308.   becoming more common, this is changing though.
  309.  
  310.   See ``Programmed I/O vs. ...'' as to why having a 10Mbps ethercard on
  311.   an 8MHz ISA bus is really not a bottleneck. Even though having the
  312.   ethercard on a fast bus won't necessarily mean faster transfers, it
  313.   will usually mean reduced CPU overhead, which is good for multi-user
  314.   systems.
  315.  
  316.   AMD has the 32 bit PCnet-VLB and PCnet-PCI chips.  See ``AMD
  317.   PCnet-32'' for info on the 32 bit versions of the LANCE / PCnet-ISA
  318.   chip.
  319.  
  320.   The DEC 21040 PCI chip is another option (see ``DEC 21040'') for
  321.   power-users.  Many manufacturers produce cards that use this chip, and
  322.   the prices of such no-name cards is usually quite cheap.
  323.  
  324.   3Com's `Vortex' and `Boomerang' PCI cards are also another option, and
  325.   the price is quite cheap if you can get one under their evaluation
  326.   deal while it lasts.  (see ``3c590/3c595'')
  327.  
  328.   Various clone manufacturers have started making PCI ne2000 clones
  329.   based on the RealTek 8029 chip. These cards are also supported by the
  330.   linux ne2000 driver for v2.0 kernels.  However you only benefit from
  331.   the faster bus interface, as the card is still using the age-old
  332.   ne2000 driver interface.
  333.  
  334.   2.4.  Available 100Mbs Cards and Drivers
  335.  
  336.   The present list of supported 100Mbs hardware is as follows: cards
  337.   with the DEC 21140 chip; the 3c595 Vortex card; and the HP 100VG ANY-
  338.   LAN. The drivers for the first two are quite stable, but feedback on
  339.   the HP driver has been low so far as it has only been around since
  340.   early 1.3.x kernels.
  341.  
  342.   The EtherExpressPro10/100B is finally supported. However you will have
  343.   to obtain the driver separately from Donald's FTP or WWW site (see
  344.   below) for v2.0 kernels.
  345.  
  346.   The 21140 100Base-? chip is supported with the same driver as its
  347.   10Mbs counterpart, the 21040. SMC's 100Mbs EtherPower PCI card uses
  348.   this chip. As with the 21040, you have a choice of two drivers to pick
  349.   from.
  350.  
  351.   Also have a look at the information on Donald's WWW site, at the
  352.   following URL:
  353.  
  354.   100Mbs Ethernet <http://cesdis.gsfc.nasa.gov/linux/misc/100mbs.html>
  355.  
  356.   Donald had done a fair bit of work with the SMC EtherPower-10/100
  357.   cards, and reported getting about 4.6MB/s application to application
  358.   with TCP on P5-100 Triton machines.
  359.  
  360.   (See ``3c595'' and ``DEC 21140'' for more details.)
  361.  
  362.   For 100VG information, see the following section, and this URL on
  363.   Donald's Site:
  364.  
  365.   Donald's 100VG Page
  366.   <http://cesdis.gsfc.nasa.gov/linux/drivers/100vg.html>
  367.  
  368.   You may also be interested in looking at:
  369.  
  370.   Dan Kegel's Fast Ethernet Page <http://alumni.caltech.edu/~dank/fe/>
  371.  
  372.   2.5.  100VG versus 100BaseT
  373.  
  374.   The following blurb from yet another one of Donald's informative
  375.   comp.os.linux postings summarizes the situation quite well:
  376.  
  377.   ``For those not in the know, there are two competing 100Mbs ethernet
  378.   standards, 100VG (aka 100baseVG and 100VG-AnyLAN) and 100baseT (with
  379.   100baseTx, 100baseT4 and 100baseFx cable types).
  380.  
  381.   100VG was on the market first, and I feel that it is better engineered
  382.   than 100baseTx.  I was rooting for it to win, but it clearly isn't
  383.   going to.  HP et al. made several bad choices:
  384.  
  385.   1) Delaying the standard so that they could accommodate IBM and
  386.   support token ring frames.  It `seemed like a good idea at the time',
  387.   since it would enable token ring shops to upgrade without the managers
  388.   having to admit they made a very expensive mistake committing to the
  389.   wrong technology.  But there was nothing to be gained, as the two
  390.   frame types couldn't coexist on a network, token ring is a morass of
  391.   complexity, and IBM went with 100baseT anyway.
  392.  
  393.   2) Producing only ISA and EISA cards.  (A PCI model was only recently
  394.   announced.)  The ISA bus is too slow for 100mbs, and relatively few
  395.   EISA machines exist.  At the time VLB was common, fast, and cheap with
  396.   PCI a viable choice.  But "old-timer" wisdom held that servers would
  397.   stay with the more expensive EISA bus.
  398.  
  399.   3) Not sending me a databook.  Yes, this action was the real reason
  400.   for the 100VGs downfall :-).  I called all over for programming info,
  401.   and all I could get was a few page color glossy brochure from AT&T
  402.   describing how wonderful the Regatta chipset was.''
  403.  
  404.   2.6.  Programmed I/O vs. Shared Memory vs. DMA
  405.  
  406.   Ethernet is 10Mbs. (Don't be pedantic, 3Mbs and 100Mbs don't count.)
  407.   If you can already send and receive back-to-back packets, you just
  408.   can't put more bits over the wire. Every modern ethercard can receive
  409.   back-to-back packets. The Linux DP8390 drivers (wd80x3, SMC-Ultra,
  410.   3c503, ne2000, etc) come pretty close to sending back-to-back packets
  411.   (depending on the current interrupt latency) and the 3c509 and AT1500
  412.   hardware have  no problem at all automatically sending back-to-back
  413.   packets.
  414.  
  415.   The ISA bus can do 5.3MB/sec (42Mb/sec), which sounds like more than
  416.   enough. You can use that bandwidth in several ways, listed below.
  417.  
  418.   2.6.1.  Programmed I/O (e.g. NE2000, 3c509)
  419.  
  420.   Pro: Doesn't use any constrained system resources, just a few I/O
  421.   registers, and has no 16M limit.
  422.  
  423.   Con: Usually the slowest transfer rate, the CPU is waiting the whole
  424.   time, and interleaved packet access is usually difficult to
  425.   impossible.
  426.  
  427.   2.6.2.  Shared memory (e.g. WD80x3, SMC-Ultra, 3c503)
  428.  
  429.   Pro: Simple, faster than programmed I/O, and allows random access to
  430.   packets. The linux drivers compute the checksum of incoming IP packets
  431.   as they are copied off the card, resulting in a further reduction of
  432.   CPU usage vs. an equivalent PIO card.
  433.  
  434.   Con: Uses up memory space (a big one for DOS users, essentially a non-
  435.   issue under Linux), and it still ties up the CPU.
  436.  
  437.   2.6.3.  Slave (normal) Direct Memory Access (e.g. none for Linux!)
  438.  
  439.   Pro: Frees up the CPU during the actual data transfer.
  440.  
  441.   Con: Checking boundary conditions, allocating contiguous buffers, and
  442.   programming the DMA registers makes it the slowest of all techniques.
  443.   It also uses up a scarce DMA channel, and requires aligned low memory
  444.   buffers.
  445.  
  446.   2.6.4.  Bus Master Direct Memory Access (e.g. LANCE, DEC 21040)
  447.  
  448.   Pro: Frees up the CPU during the data transfer, can string together
  449.   buffers, can require little or no CPU time lost on the ISA bus.
  450.  
  451.   Con: Requires low-memory buffers and a DMA channel. Any bus-master
  452.   will have problems with other bus-masters that are bus-hogs, such as
  453.   some primitive SCSI adaptors. A few badly-designed motherboard
  454.   chipsets have problems with bus-masters. And a reason for not using
  455.   any type of DMA device is using a 486 processor designed for plug-in
  456.   replacement of a 386: these processors must flush their cache with
  457.   each DMA cycle. (This includes the Cx486DLC, Ti486DLC, Cx486SLC,
  458.   Ti486SLC, etc.)
  459.  
  460.   2.7.  Type of cable that your card should support
  461.  
  462.   If you are setting up a small ``personal'' network, you will probably
  463.   want to use thinnet or thin ethernet cable. This is the style with the
  464.   standard BNC connectors. See ``Cables, Coax...''  for other concerns
  465.   with different types of ethernet cable.
  466.  
  467.   Most ethercards also come in a `Combo' version for only $10-$20 more.
  468.   These have both twisted pair and thinnet transceiver built-in,
  469.   allowing you to change your mind later.
  470.  
  471.   The twisted pair cables, with the RJ-45 (giant phone jack) connectors
  472.   is technically called 10BaseT. You may also hear it called UTP
  473.   (Unsheilded Twisted Pair).
  474.  
  475.   The thinnet, or thin ethernet cabling, (RG-58 coaxial cable) with the
  476.   BNC (metal push and turn-to-lock) connectors is technically called
  477.   10Base2.
  478.  
  479.   The older thick ethernet (10mm coaxial cable) which is only found in
  480.   older installations is called 10Base5.
  481.  
  482.   Large corporate installations will most likely use 10BaseT instead of
  483.   10Base2. 10Base2 does not offer an easy upgrade path to the new
  484.   upcoming 100Base-whatever.
  485.  
  486.   3.  Frequently Asked Questions
  487.  
  488.   Here are some of the more frequently asked questions about using Linux
  489.   with an Ethernet connection. Some of the more specific questions are
  490.   sorted on a `per manufacturer basis'.  However, since this document is
  491.   basically `old' by the time you get it, any `new' problems will not
  492.   appear here instantly. For these, I suggest that you make efficient
  493.   use of your newsreader. For example, nn users would type
  494.  
  495.        nn -xX -s'3c'
  496.  
  497.   to get all the news articles in your subscribed list that have `3c' in
  498.   the subject. (ie. 3com, 3c509, 3c503, etc.)  The moral: Read the man
  499.   page for your newsreader.
  500.  
  501.   3.1.  Alpha Drivers -- Getting and Using them
  502.  
  503.   I heard that there is an updated or alpha driver available for my
  504.   card. Where can I get it?
  505.  
  506.   The newest of the `new' drivers can be found on Donald's new ftp site:
  507.   cesdis.gsfc.nasa.gov in the /pub/linux/ area. Things change here quite
  508.   frequently, so just look around for it.
  509.  
  510.   Now, if it really is an alpha, or pre-alpha driver, then please treat
  511.   it as such. In other words, don't complain because you can't figure
  512.   out what to do with it. If you can't figure out how to install it,
  513.   then you probably shouldn't be testing it.  Also, if it brings your
  514.   machine down, don't complain. Instead, send us a well documented bug
  515.   report, or even better, a patch!
  516.  
  517.   Note that some of the `useable' experimental/alpha drivers have been
  518.   included in the standard kernel source tree. When running make config
  519.   one of the first things you will be asked is whether to ``Prompt for
  520.   development and/or incomplete code/drivers''.  You will have to answer
  521.   `Y' here to get asked about including any alpha/experiemntal drivers.
  522.  
  523.   People reading this while net-surfing may want to check out:
  524.  
  525.   Don's Linux Home Page
  526.   <http://cesdis.gsfc.nasa.gov/pub/linux/linux.html>
  527.  
  528.   for the latest dirt on what is new and upcoming.
  529.  
  530.   3.2.  Using More than one Ethernet Card per Machine
  531.  
  532.   What needs to be done so that Linux can run two ethernet cards?
  533.  
  534.   The hooks for multiple ethercards are all there.  However, note that
  535.   at the moment only one ethercard is auto-probed for by default.  This
  536.   helps to avoid possible boot time hangs caused by probing sensitive
  537.   cards.
  538.  
  539.   There are two ways that you can enable auto-probing for the second
  540.   (and third, and...) card. The easiest method is to pass boot-time
  541.   arguments to the kernel, which is usually done by LILO. Probing for
  542.   the second card can be achieved by using a boot-time argument as
  543.   simple as ether=0,0,eth1. In this case eth0 and eth1 will be assigned
  544.   in the order that the cards are found at boot.  Say if you want the
  545.   card at 0x300 to be eth0 and the card at 0x280 to be eth1 then you
  546.   could use
  547.  
  548.        LILO: linux ether=5,0x300,eth0 ether=15,0x280,eth1
  549.  
  550.   The ether= command accepts more than the IRQ + i/o + name shown above.
  551.   Please have a look at ``Passing Ethernet Arguments...''  for the full
  552.   syntax, card specific parameters, and LILO tips.
  553.  
  554.   These boot time arguments can be made permanent so that you don't have
  555.   to re-enter them every time. See the LILO configuration option
  556.   `append' in the LILO manual.
  557.  
  558.   The second way (not recommended) is to edit the file Space.c and
  559.   replace the 0xffe0 entry for the i/o address with a zero. The 0xffe0
  560.   entry tells it not to probe for that device -- replacing it with a
  561.   zero will enable autoprobing for that device.
  562.  
  563.   Note that if you are intending to use Linux as a gateway between two
  564.   networks, you will have to re-compile a kernel with IP forwarding
  565.   enabled. Usually using an old AT/286 with something like the `kbridge'
  566.   software is a better solution.
  567.  
  568.   If you are viewing this while net-surfing, you may wish to look at a
  569.   mini-howto Donald has on his WWW site. Check out Multiple Ethercards
  570.   <http://cesdis.gsfc.nasa.gov/linux/misc/multicard.html>.
  571.  
  572.   For module users with 8390 based cards, you can have a single module
  573.   control multiple cards  of the same brand. Please see ``8390 Based
  574.   Cards as Modules'' for module specific information about using
  575.   multiple cards.
  576.  
  577.   3.3.  Poor NE2000 Clones
  578.  
  579.   Here is a list of some of the NE-2000 clones that are known to have
  580.   various problems. Most of them aren't fatal. In the case of the ones
  581.   listed as `bad clones' -- this usually indicates that the cards don't
  582.   have the two NE2000 identifier bytes. NEx000-clones have a Station
  583.   Address PROM (SAPROM) in the packet buffer memory space.  NE2000
  584.   clones have 0x57,0x57 in bytes 0x0e,0x0f of the SAPROM, while other
  585.   supposed NE2000 clones must be detected by their SA prefix.
  586.  
  587.   This is not a comprehensive list of all the NE2000 clones that don't
  588.   have the 0x57,0x57 in bytes 0x0e,0x0f of the SAPROM. There are
  589.   probably hundreds of them. If you get a card that causes the driver to
  590.   report an `invalid signature' then you will have to add your cards
  591.   signature to the driver. The process for doing this is described
  592.   below.
  593.  
  594.   Accton NE2000 -- might not get detected at boot, see below.
  595.  
  596.   Aritsoft LANtastic AE-2 -- OK, but has flawed error-reporting
  597.   registers.
  598.  
  599.   AT-LAN-TEC NE2000 -- clone uses Winbond chip that traps SCSI drivers
  600.  
  601.   ShineNet LCS-8634 -- clone uses Winbond chip that traps SCSI drivers
  602.  
  603.   Cabletron E10**, E20**, E10**-x, E20**-x -- bad clones, but the driver
  604.   checks for them. See ``E10**''.
  605.   D-Link Ethernet II -- bad clones, but the driver checks for them. See
  606.   ``DE-100 / DE-200''.
  607.  
  608.   DFI DFINET-300, DFINET-400 -- bad clones, but the driver checks for
  609.   them. See ``DFI-300 / DFI-400''
  610.  
  611.   EtherNext UTP8, EtherNext UTP16 -- bad clones, but the driver checks
  612.   for them.
  613.  
  614.   3.4.  Problems with NE1000 / NE2000 cards (and clones)
  615.  
  616.   Problem: PCI NE2000 clone card is not detected at boot with v2.0.x.
  617.  
  618.   Reason: The ne.c driver in v2.0.x only knows about the PCI ID number
  619.   of RealTek 8029 based clone cards. Since then, Winbond and Compex have
  620.   also released PCI NE2000 clone cards, with different PCI ID numbers,
  621.   and hence the driver doesn't detect them.
  622.  
  623.   Solution: After booting, you can get the I/O address (and interrupt)
  624.   that the card will use from a  ``cat /proc/pci''.  Say for example it
  625.   reports IRQ 9 and I/O at 0xffe0, then at the LILO boot prompt you can
  626.   add ether=9,0xffe0,eth0 which will point the driver right at your card
  627.   and avoid the PCI based probing altogether. (Future v2.1+ kernels will
  628.   know about the PCI IDs of Winbond and Compex NE2000 clones as well, so
  629.   this won't be necessary then.)
  630.  
  631.   Problem: PCI NE2000 clone card is reported as an ne1000 (8 bit card!)
  632.   at boot or when I load the ne.o module for v2.0.x, and hence doesn't
  633.   work.
  634.  
  635.   Reason: Some PCI clones don't implement byte wide access (and hence
  636.   are not truly 100% NE2000 compatible). This causes the probe to think
  637.   they are NE1000 cards if the PCI probing wasn't used (which it isn't
  638.   when an explicit I/O address is given with the module or at boot.)
  639.  
  640.   Solution: Make the following change to drivers/net/ne.c:
  641.  
  642.   ______________________________________________________________________
  643.   -       if (pci_irq_line)
  644.   +       if (pci_irq_line || ioaddr >= 0x400)
  645.               wordlength = 2;   /* Catch broken PCI cards mentioned above. */
  646.   ______________________________________________________________________
  647.  
  648.   and then recompile the module (or the kernel). Future (v2.1+) revisons
  649.   will not require an I/O address for detecting most PCI cards (RealTek,
  650.   Winbond and Compex PCI NE2000 clones)  at boot, or with the ne.o
  651.   module.
  652.  
  653.   Problem: NE*000 card hangs machine, sometimes with a `DMA conflict'
  654.   message, sometimes completely silently.
  655.  
  656.   Reason: There were some bugs in the driver and the upper networking
  657.   layers that caused this. They have been fixed in kernels v1.2.9 and
  658.   above. Upgrade your kernel.
  659.  
  660.   Problem: NE*000 card hangs machine during NE probe, or can not read
  661.   station address properly.
  662.  
  663.   Reason: Kernels previous to v1.3.7 did not fully reset the card after
  664.   finding it at boot. Some cheap cards are not left in a reasonable
  665.   state after power-up and need to be fully reset before any attempt is
  666.   made to use them. Also, a previous probe may have upset the NE card
  667.   prior to the NE probe taking place. In that case, look in to using the
  668.   ``reserve='' boot keyword to protect the card from other probes.
  669.  
  670.   Problem: NE*000 driver reports `not found (no reset ack)' during boot
  671.   probe.
  672.  
  673.   Reason: This is related to the above change. After the initial
  674.   verification that an 8390 is at the probed i/o address, the reset is
  675.   performed. When the card has completed the reset, it is supposed to
  676.   acknowedge that the reset has completed.  Your card doesn't, and so
  677.   the driver assumes that no NE card is present.
  678.  
  679.   Solution: You can tell the driver that you have a bad card by using an
  680.   otherwise unused mem_end hexidecimal value of 0xbad at boot time. You
  681.   have to also supply a non-zero i/o base for the card when using the
  682.   0xbad override. For example, a card that is at 0x340 that doesn't ack
  683.   the reset would use something like:
  684.  
  685.        LILO: linux ether=0,0x340,0,0xbad,eth0
  686.  
  687.   This will allow the card detection to continue, even if your card
  688.   doesn't ACK the reset. If you are using the driver as a module, then
  689.   you can supply the option bad=0xbad just like you supply the I/O
  690.   address. Note that v2.0.x modules won't understand the bad= option, as
  691.   it was added during the v2.1 development.
  692.  
  693.   Problem: NE*000 card hangs machine at first network access.
  694.  
  695.   Reason: This problem has been reported for kernels as old as 1.1.57 to
  696.   the present. It appears confined to a few software configurable clone
  697.   cards. It appears that they expect to be initialized in some special
  698.   way.
  699.  
  700.   Solution: Several people have reported that running the supplied DOS
  701.   software config program and/or the supplied DOS driver prior to warm
  702.   booting (i.e. loadlin or the `three-finger-salute') into linux allowed
  703.   the card to work. This would indicate that these cards need to be
  704.   initialized in a particular fashion, slightly different than what the
  705.   present Linux driver does.
  706.  
  707.   Problem: NE*000 ethercard at 0x360 doesn't get detected anymore.
  708.  
  709.   Reason: Recent kernels ( > 1.1.7X) have more sanity checks with
  710.   respect to overlapping i/o regions. Your NE2000 card is 0x20 wide in
  711.   i/o space, which makes it hit the parallel port at 0x378.  Other
  712.   devices that could be there are the second floppy controller (if
  713.   equipped) at 0x370 and the secondary IDE controller at 0x376--0x377.
  714.   If the port(s) are already registered by another driver, the kernel
  715.   will not let the probe happen.
  716.  
  717.   Solution: Either move your card to an address like 0x280, 0x340, 0x320
  718.   or compile without parallel printer support.
  719.  
  720.   Problem: Network `goes away' every time I print something (NE2000)
  721.  
  722.   Reason: Same problem as above, but you have an older kernel that
  723.   doesn't check for overlapping i/o regions. Use the same fix as above,
  724.   and get a new kernel while you are at it.
  725.  
  726.   Problem: NE*000 ethercard probe at 0xNNN: 00 00 C5 ... not found.
  727.   (invalid signature yy zz)
  728.  
  729.   Reason: First off, do you have a NE1000 or NE2000 card at the addr.
  730.   0xNNN?  And if so, does the hardware address reported look like a
  731.   valid one? If so, then you have a poor NE*000 clone. All NE*000 clones
  732.   are supposed to have the value 0x57 in bytes 14 and 15 of the SA PROM
  733.   on the card. Yours doesn't -- it has `yy zz' instead.
  734.  
  735.   Solution: There are two ways to get around this. The easiest is to use
  736.   an 0xbad mem_end value as described  above for the `no reset ack'
  737.   problem. This will bypass the signature check, as long as a non-zero
  738.   i/o base is also given. This way no recompilation of the kernel is
  739.   required.
  740.  
  741.   The second method involves changing the driver itself, and then
  742.   recompiling your kernel.  The driver (/usr/src/linux/drivers/net/ne.c)
  743.   has a "Hall of Shame" list at about line 42. This list is used to
  744.   detect poor clones.  For example, the DFI cards use `DFI' in the first
  745.   3 bytes of the prom, instead of using 0x57 in bytes 14 and 15, like
  746.   they are supposed to.
  747.  
  748.   You can determine what the first 3 bytes of your card PROM are by
  749.   adding a line like:
  750.  
  751.       printk("PROM prefix: %2.2x %2.2x %2.2x\n",SA_prom[0],SA_prom[1],SA_prom[2]);
  752.  
  753.   into the driver, right after the error message you got above, and just
  754.   before the "return ENXIO" at line 227.
  755.  
  756.   Reboot with this change in place, and after the detection fails, you
  757.   will get the three bytes from the PROM like the DFI example above.
  758.   Then you can add your card to the bad_clone_list[] at about line 43.
  759.   Say the above line printed out:
  760.  
  761.        PROM prefix: 0x3F 0x2D 0x1C
  762.  
  763.   after you rebooted. And say that the 8 bit version of your card was
  764.   called the "FOO-1k" and the 16 bit version the "FOO-2k". Then you
  765.   would add the following line to the bad_clone_list[]:
  766.  
  767.        {"FOO-1k", "FOO-2k", {0x3F, 0x2D, 0x1C,}},
  768.  
  769.   Note that the 2 name strings you add can be anything -- they are just
  770.   printed at boot, and not matched against anything on the card.  You
  771.   can also take out the "printk()" that you added above, if you want.
  772.   It shouldn't hit that line anymore anyway. Then recompile once more,
  773.   and your card should be detected.
  774.  
  775.   Problem: Errors like DMA address mismatch
  776.  
  777.   Is the chip a real NatSemi 8390? (DP8390, DP83901, DP83902 or
  778.   DP83905)?  If not, some clone chips don't correctly implement the
  779.   transfer verification register. MS-DOS drivers never do error
  780.   checking, so it doesn't matter to them. (Note: The DMA address check
  781.   is not done by default as of v1.2.4 for performance reasons. Enable it
  782.   with the `NE_SANITY' define in ne.c if you want the check done.)
  783.  
  784.   Are most of the messages off by a factor of 2?  If so:  Are you using
  785.   the NE2000 in a 16 bit slot?  Is it jumpered to use only 8 bit
  786.   transfers?
  787.  
  788.   The Linux driver expects a NE2000 to be in a 16 bit slot. A NE1000 can
  789.   be in either size slot. This problem can also occur with some clones,
  790.   notably older D-Link 16 bit cards, that don't have the correct ID
  791.   bytes in the station address PROM.
  792.  
  793.   Are you running the bus faster than 8Mhz?  If you can change the speed
  794.   (faster or slower), see if that makes a difference. Most NE2000 clones
  795.   will run at 16MHz, but some may not. Changing speed can also mask a
  796.   noisy bus.
  797.  
  798.   What other devices are on the bus?  If moving the devices around
  799.   changes the reliability, then you have a bus noise problem -- just
  800.   what that error message was designed to detect. Congratulations,
  801.   you've probably found the source of other problems as well.
  802.  
  803.   Problem: The machine hangs during boot right after the `8390...'  or
  804.   `WD....' message. Removing the NE2000 fixes the problem.
  805.  
  806.   Solution: Change your NE2000 base address to something like 0x340.
  807.   Alternatively, you can use the ``reserve='' boot argument in
  808.   conjunction with the ``ether='' argument to protect the card from
  809.   other device driver probes.
  810.  
  811.   Reason: Your NE2000 clone isn't a good enough clone. An active NE2000
  812.   is a bottomless pit that will trap any driver autoprobing in its
  813.   space.  Changing the NE2000 to a less-popular address will move it out
  814.   of the way of other autoprobes, allowing your machine to boot.
  815.  
  816.   Problem: The machine hangs during the SCSI probe at boot.
  817.  
  818.   Reason: It's the same problem as above, change the ethercard's
  819.   address, or use the reserve/ether boot arguments.
  820.  
  821.   Problem: The machine hangs during the soundcard probe at boot.
  822.  
  823.   Reason: No, that's really during the silent SCSI probe, and it's the
  824.   same problem as above.
  825.  
  826.   Problem: NE2000 not detected at boot - no boot messages at all
  827.  
  828.   Solution: There is no `magic solution' as there can be a number of
  829.   reasons why it wasn't detected. The following list should help you
  830.   walk through the possible problems.
  831.  
  832.   1) Build a new kernel with only the device drivers that you need.
  833.   Verify that you are indeed booting the fresh kernel. Forgetting to run
  834.   lilo, etc. can result in booting the old one. (Look closely at the
  835.   build time/date reported at boot.) Sounds obvious, but we have all
  836.   done it before. Make sure the driver is in fact included in the new
  837.   kernel, by checking the System.map file for names like ne_probe.
  838.  
  839.   2) Look at the boot messages carefully. Does it ever even mention
  840.   doing a ne2k probe such as `NE*000 probe at 0xNNN: not found (blah
  841.   blah)' or does it just fail silently. There is a big difference.  Use
  842.   dmesg|more to review the boot messages after logging in, or hit Shift-
  843.   PgUp to scroll the screen up after the boot has completed and the
  844.   login prompt appears.
  845.  
  846.   3) After booting, do a cat /proc/ioports and verify that the full
  847.   iospace that the card will require is vacant. If you are at 0x300 then
  848.   the ne2k driver will ask for 0x300-0x31f. If any other device driver
  849.   has registered even one port anywhere in that range, the probe will
  850.   not take place at that address and will silently continue to the next
  851.   of the probed addresses. A common case is having the lp driver reserve
  852.   0x378 or the second IDE channel reserve 0x376 which stops the ne
  853.   driver from probing 0x360-0x380.
  854.  
  855.   4) Same as above for cat /proc/interrupts. Make sure no other device
  856.   has registered the interrupt that you set the ethercard for. In this
  857.   case, the probe will happen, and the ether driver will complain loudly
  858.   at boot about not being able to get the desired IRQ line.
  859.  
  860.   5) If you are still stumped by the silent failure of the driver, then
  861.   edit it and add some printk() to the probe. For example, with the ne2k
  862.   you could add/remove lines (marked with a `+' or `-') in net/ne.c
  863.   like:
  864.  
  865.   ______________________________________________________________________
  866.       int reg0 = inb_p(ioaddr);
  867.  
  868.   +    printk("NE2k probe - now checking %x\n",ioaddr);
  869.   -    if (reg0 == 0xFF)
  870.   +    if (reg0 == 0xFF) {
  871.   +       printk("NE2k probe - got 0xFF (vacant i/o port)\n");
  872.           return ENODEV;
  873.   +    }
  874.   ______________________________________________________________________
  875.  
  876.   Then it will output messages for each port address that it checks, and
  877.   you will see if your card's address is being probed or not.
  878.  
  879.   6) You can also get the ne2k diagnostic from Don's ftp site (mentioned
  880.   in the howto as well) and see if it is able to detect your card after
  881.   you have booted into linux. Use the `-p 0xNNN' option to tell it where
  882.   to look for the card. (The default is 0x300 and it doesn't go looking
  883.   elsewhere, unlike the boot-time probe.)  The output from when it finds
  884.   a card will look something like:
  885.  
  886.   ______________________________________________________________________
  887.   Checking the ethercard at 0x300.
  888.     Register 0x0d (0x30d) is 00
  889.     Passed initial NE2000 probe, value 00.
  890.   8390 registers: 0a 00 00 00 63 00 00 00 01 00 30 01 00 00 00 00
  891.   SA PROM  0: 00 00 00 00 c0 c0 b0 b0 05 05 65 65 05 05 20 20
  892.   SA PROM 0x10: 00 00 07 07 0d 0d 01 01 14 14 02 02 57 57 57 57
  893.  
  894.           NE2000 found at 0x300, using start page 0x40 and end page 0x80.
  895.   ______________________________________________________________________
  896.  
  897.   Your register values and PROM values will probably be different.  Note
  898.   that all the PROM values are doubled for a 16 bit card, and that the
  899.   ethernet address (00:00:c0:b0:05:65) appears in the first row, and the
  900.   double 0x57 signature appears at the end of the PROM.
  901.  
  902.   The output from when there is no card installed at 0x300 will look
  903.   something like this:
  904.  
  905.   ______________________________________________________________________
  906.   Checking the ethercard at 0x300.
  907.     Register 0x0d (0x30d) is ff
  908.     Failed initial NE2000 probe, value ff.
  909.   8390 registers: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  910.   SA PROM        0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  911.   SA PROM 0x10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  912.  
  913.    Invalid signature found, wordlength 2.
  914.   ______________________________________________________________________
  915.  
  916.   The 0xff values  arise because that is the value that is returned when
  917.   one reads a vacant i/o port. If you happen to have some other hardware
  918.   in the region that is probed, you may see some non 0xff values as
  919.   well.
  920.  
  921.   7) Try warm booting into linux from a DOS boot floppy (via loadlin)
  922.   after running the supplied DOS driver or config program. It may be
  923.   doing some extra (i.e. non-standard) "magic" to initialize the card.
  924.  
  925.   8) Try Russ Nelson's ne2000.com packet driver to see if even it can
  926.   see your card -- if not, then things do not look good. Example:
  927.  
  928.        A:> ne2000 0x60 10 0x300
  929.  
  930.   The arguments are software interrupt vector, hardware IRQ, and  i/o
  931.   base.  You can get it from any msdos archive in pktdrv11.zip -- The
  932.   current version may be newer than 11.
  933.  
  934.   3.5.  Problems with SMC Ultra/EtherEZ and WD80*3 cards
  935.  
  936.   Problem: You get messages such as the following:
  937.  
  938.           eth0: bogus packet size: 65531, status=0xff, nxpg=0xff
  939.  
  940.   Reason: There is a shared memory problem.
  941.  
  942.   Solution: The most common reason for this is PCI machines that are not
  943.   configured to map in ISA memory devices. Hence you end up reading the
  944.   PC's RAM (all 0xff values) instead of the RAM on the card that
  945.   contains the data from the received packet.
  946.  
  947.   Other typical problems that are easy to fix are board conflicts,
  948.   having cache or `shadow ROM' enabled for that region, or running your
  949.   ISA bus faster than 8Mhz. There are also a surprising number of memory
  950.   failures on ethernet cards, so run a diagnostic program if you have
  951.   one for your ethercard.
  952.  
  953.   Problem: SMC EtherEZ doesn't work in non-shared memory (PIO) mode.
  954.  
  955.   Reason: Older versions of the Ultra driver only supported the card in
  956.   the shared memory mode of operation.
  957.  
  958.   Solution: The driver in kernel version 2.0 and above also supports the
  959.   programmed i/o mode of operation. Upgrade to v2.0, or get the drop-in
  960.   replacement for kernel v1.2.13 from Donald's ftp/www site.
  961.  
  962.   Problem: Old wd8003 and/or jumper-settable wd8013 always get the IRQ
  963.   wrong.
  964.  
  965.   Reason: The old wd8003 cards and jumper-settable wd8013 clones don't
  966.   have the EEPROM that the driver can read the IRQ setting from.  If the
  967.   driver can't read the IRQ, then it tries to auto-IRQ to find out what
  968.   it is. And if auto-IRQ returns zero, then the driver just assigns IRQ
  969.   5 for an 8 bit card or IRQ 10 for a 16 bit card.
  970.  
  971.   Solution: Avoid the auto-IRQ code, and tell the kernel what the IRQ
  972.   that you have jumpered the card to is via a boot time argument.  For
  973.   example, if you are using IRQ 9, using the following should work.
  974.  
  975.        LILO: linux ether=9,0,eth0
  976.  
  977.   Problem: SMC Ultra card is detected as wd8013, but the IRQ and shared
  978.   memory base is wrong.
  979.  
  980.   Reason: The Ultra card looks a lot like a wd8013, and if the Ultra
  981.   driver is not present in the kernel, the wd driver may mistake the
  982.   ultra as a wd8013. The ultra probe comes before the wd probe, so this
  983.   usually shouldn't happen. The ultra stores the IRQ and mem base in the
  984.   EEPROM differently than a wd8013, hence the bogus values reported.
  985.  
  986.   Solution: Recompile with only the drivers you need in the kernel. If
  987.   you have a mix of wd and ultra cards in one machine, and are using
  988.   modules, then load the ultra module first.
  989.  
  990.   3.6.  Problems with 3Com cards
  991.  
  992.   Problem: The 3c503 picks IRQ N, but this is needed for some other
  993.   device which needs IRQ N. (eg. CD ROM driver, modem, etc.)  Can this
  994.   be fixed without compiling this into the kernel?
  995.  
  996.   Solution: The 3c503 driver probes for a free IRQ line in the order {5,
  997.   9/2, 3, 4}, and it should pick a line which isn't being used. Very old
  998.   drivers used to pick the IRQ line at boot-time, and the current driver
  999.   (0.99pl12 and newer) chooses when the card is open()/ifconfig'ed.
  1000.  
  1001.   Alternately, you can fix the IRQ at boot by passing parameters via
  1002.   LILO. The following selects IRQ9, base location 0x300, <ignored
  1003.   value>, and if_port #1 (the external transceiver).
  1004.  
  1005.        LILO: linux ether=9,0x300,0,1,eth0
  1006.  
  1007.   The following selects IRQ3, probes for the base location, <ignored
  1008.   value>, and the default if_port #0 (the internal transceiver)
  1009.  
  1010.        LILO: linux ether=3,0,0,0,eth0
  1011.  
  1012.   Problem: 3c503: configured interrupt X invalid, will use autoIRQ.
  1013.  
  1014.   Reason: The 3c503 card can only use one of IRQ{5, 2/9, 3, 4} (These
  1015.   are the only lines that are connected to the card.)  If you pass in an
  1016.   IRQ value that is not in the above set, you will get the above
  1017.   message.  Usually, specifying an interrupt value for the 3c503 is not
  1018.   necessary. The 3c503 will autoIRQ when it gets ifconfig'ed, and pick
  1019.   one of IRQ{5, 2/9, 3, 4}.
  1020.  
  1021.   Solution: Use one of the valid IRQs listed above, or enable autoIRQ by
  1022.   not specifying the IRQ line at all.
  1023.  
  1024.   Problem: The supplied 3c503 drivers don't use the AUI (thicknet) port.
  1025.   How does one choose it over the default thinnet port?
  1026.  
  1027.   Solution: The 3c503 AUI port can be selected at boot-time with
  1028.   0.99pl12 and later. The selection is overloaded onto the low bit of
  1029.   the currently-unused dev->rmem_start variable, so a boot-time
  1030.   parameter of:
  1031.  
  1032.        LILO: linux ether=0,0,0,1,eth0
  1033.  
  1034.   should work. A boot line to force IRQ 5, port base 0x300, and use an
  1035.   external transceiver is:
  1036.  
  1037.        LILO: linux ether=5,0x300,0,1,eth0
  1038.  
  1039.   With kernels 1.3.42 and newer, you can specify the AUI port when
  1040.   loading as a module as well. Just append xcvr=1 to the insmod command
  1041.   line along with your i/o and irq values.
  1042.  
  1043.   3.7.  FAQs Not Specific to Any Card.
  1044.  
  1045.   3.7.1.  Ethercard is Not Detected at Boot.
  1046.  
  1047.   The usual reason for this is that people are using a kernel that does
  1048.   not have support for their particular card built in. If you are using
  1049.   a pre-compiled kernel that is part of a distribution set, then check
  1050.   the documentation to see which kernel you installed, and if it was
  1051.   built with support for your particular card. If it wasn't, then your
  1052.   options are to try and get one that has support for your card, or
  1053.   build your own.
  1054.  
  1055.   It is usually wise to build your own kernel with only the drivers you
  1056.   need, as this cuts down on the kernel size (saving your precious RAM
  1057.   for applications!) and reduces the number of device probes that can
  1058.   upset sensitive hardware. Building a kernel is not as complicated as
  1059.   it sounds. You just have to answer yes or no to a bunch of questions
  1060.   about what drivers you want, and it does the rest.
  1061.  
  1062.   The next main cause is having another device using part of the i/o
  1063.   space that your card needs. Most cards are 16 or 32 bytes wide in i/o
  1064.   space. If your card is set at 0x300 and 32 bytes wide, then the driver
  1065.   will ask for 0x300-0x31f. If any other device driver has registered
  1066.   even one port anywhere in that range, the probe will not take place at
  1067.   that address and  the driver will silently continue to the next of the
  1068.   probed addresses. So, after booting, do a cat /proc/ioports and verify
  1069.   that the full iospace that the card will require is vacant.
  1070.  
  1071.   Another problem is having your card jumpered to an i/o address that
  1072.   isn't probed by default. There is a list ``probed addresses'' for each
  1073.   card in this document. Even if the i/o setting of your card is not in
  1074.   the list of porbed addresses, you can supply it at boot with the
  1075.   ether= command as described in ``Passing Ethernet Arguments...''
  1076.   3.7.2.  ifconfig reports the wrong i/o address for the card.
  1077.  
  1078.   No it doesn't. You are just interpreting it incorrectly.  This is not
  1079.   a bug, and the numbers reported are correct. It just happens that some
  1080.   8390 based cards (wd80x3, smc-ultra, etc) have the actual 8390 chip
  1081.   living at an offset from the first assigned i/o port.  Try cd
  1082.   /usr/src/linux/drivers/net;grep NIC_OFFSET *.c|more to see what is
  1083.   going on. This is the value stored in dev->base_addr, and is what
  1084.   ifconfig reports. If you want to see the full range of ports that your
  1085.   card uses, then try cat /proc/ioports which will give the numbers you
  1086.   expect.
  1087.  
  1088.   3.7.3.  Shared Memory ISA cards in PCI Machine dont work (0xffff)
  1089.  
  1090.   This will usually show up as reads of lots of 0xffff values.  No
  1091.   shared memory cards of any type will work in a PCI machine unless you
  1092.   have the PCI ROM BIOS/CMOS SETUP configuration set properly. You have
  1093.   to set it to allow shared memory access from the ISA bus for the
  1094.   memory region that your card is trying to use. If you can't figure out
  1095.   which settings are applicable then ask your supplier or local computer
  1096.   guru. For AMI BIOS, there is usually a "Plug and Play" section where
  1097.   there will be an ``ISA Shared Memory Size'' and ``ISA Shared Memory
  1098.   Base'' settings. For cards like the wd8013 and SMC Ultra, change the
  1099.   size from the default of `Disabled' to 16kB, and change the base to
  1100.   the shared memory address of your card.
  1101.  
  1102.   3.7.4.  NexGen machine gets `mismatched read page pointers' errors.
  1103.  
  1104.   A quirk of the NexGen CPU caused all users with 8390 based cards
  1105.   (wd80x3, 3c503, SMC Ultra/EtherEZ, ne2000, etc.) to get these error
  1106.   messages. Kernel versions 2.0 and above do not have these problems.
  1107.   Upgrade your kernel.
  1108.  
  1109.   3.7.5.  Asynchronous Transfer Mode (ATM) Support
  1110.  
  1111.   Werner Almesberger has been playing around with ATM support for linux.
  1112.   He has been working with the Efficient Networks ENI155p board
  1113.   (Efficient Networks <http://www.efficient.com/>) and the Zeitnet
  1114.   ZN1221 board (Zeitnet <http://www.zeitnet.com/>).
  1115.  
  1116.   Werner says that the driver for the ENI155p is rather stable, while
  1117.   the driver for the ZN1221 is presently unfinished.
  1118.  
  1119.   Check the latest/updated status at the following URL:
  1120.  
  1121.   Linux ATM Support <http://lrcwww.epfl.ch/linux-atm/>
  1122.  
  1123.   3.7.6.  FDDI Support
  1124.  
  1125.   Is there FDDI support for Linux?
  1126.  
  1127.   Yes. Larry Stefani (stefani@lkg.dec.com) has written a driver for v2.0
  1128.   with DEC's DEFEA and DEFPA cards.  This was included into the v2.0.24
  1129.   kernel.  Currently no other cards are supported though.
  1130.  
  1131.   3.7.7.  Full Duplex Support
  1132.  
  1133.   Will Full Duplex give me 20MBps? Does Linux support it?
  1134.  
  1135.   Cameron Spitzer writes the following about full duplex 10Base-T cards:
  1136.   ``If you connect it to a full duplex switched hub, and your system is
  1137.   fast enough and not doing much else, it can keep the link busy in both
  1138.   directions.  There is no such thing as full duplex 10BASE-2 or
  1139.   10BASE-5 (thin and thick coax).  Full Duplex works by disabling
  1140.   collision detection in the adapter.  That's why you can't do it with
  1141.   coax; the LAN won't run that way.  10BASE-T (RJ45 interface) uses
  1142.   separate wires for send and receive, so it's possible to run both ways
  1143.   at the same time.  The switching hub takes care of the collision
  1144.   problem.  The signalling rate is 10 Mbps.''
  1145.  
  1146.   So as you can see, you still will only be able to receive or transmit
  1147.   at 10Mbps, and hence don't expect a 2x performance increase. As to
  1148.   whether it is supported or not, that depends on the card and possibly
  1149.   the driver. Some cards may do auto-negotiation, some may need driver
  1150.   support, and some may need the user to select an option in a card's
  1151.   EEPROM configuration.
  1152.  
  1153.   3.7.8.  Ethernet Cards for Linux on Alpha/AXP PCI Boards
  1154.  
  1155.   As of v2.0, only the 3c509, depca, de4x5 lance32, and all the 8390
  1156.   drivers (wd, smc-ultra, ne, 3c503, etc.) have been made `architecture
  1157.   independent' so as to work on the DEC Alpha CPU based systems.
  1158.  
  1159.   Note that the changes that are required aren't that complicated.  You
  1160.   only need to do the following:
  1161.  
  1162.   -multiply all jiffies related values by HZ/100 to account for the
  1163.   different HZ value that the Alpha uses.  (i.e timeout=2; becomes
  1164.   timeout=2*HZ/100;)
  1165.  
  1166.   -replace any i/o memory (640k to 1MB) pointer dereferences with the
  1167.   appropriate readb() writeb() readl() writel() calls, as shown in this
  1168.   example.
  1169.  
  1170.   ______________________________________________________________________
  1171.   -       int *mem_base = (int *)dev->mem_start;
  1172.   -       mem_base[0] = 0xba5eba5e;
  1173.   +       unsigned long mem_base = dev->mem_start;
  1174.   +       writel(0xba5eba5e, mem_base);
  1175.   ______________________________________________________________________
  1176.  
  1177.   -replace all memcpy() calls that have i/o memory as source or target
  1178.   destinations with the appropriate one of memcpy_fromio() or
  1179.   memcpy_toio().
  1180.  
  1181.   Details on handling memory accesses in an architecture independent
  1182.   fashion are documented in the file linux/Documentation/IO-mapping.txt
  1183.   that comes with recent kernels.
  1184.  
  1185.   3.7.9.  Linking 10BaseT without a Hub
  1186.  
  1187.   Can I link 10BaseT (RJ45) based systems together without a hub?
  1188.  
  1189.   You can link 2 machines easily, but no more than that, without extra
  1190.   devices/gizmos. See ``Twisted Pair'' -- it explains how to do it. And
  1191.   no, you can't hack together a hub just by crossing a few wires and
  1192.   stuff. It's pretty much impossible to do the collision signal right
  1193.   without duplicating a hub.
  1194.  
  1195.   3.7.10.  SIOCSIFxxx: No such device
  1196.  
  1197.   I get a bunch of `SIOCSIFxxx: No such device' messages at boot,
  1198.   followed by a `SIOCADDRT: Network is unreachable' What is wrong?
  1199.  
  1200.   Your ethernet device was not detected at boot, and when ifconfig and
  1201.   route are run, they have no device to work with. Use dmesg | more to
  1202.   review the boot messages and see if there are any messages about
  1203.   detecting an ethernet card.
  1204.  
  1205.   3.7.11.  SIOCSFFLAGS: Try again
  1206.  
  1207.   I get `SIOCSFFLAGS: Try again' when I run `ifconfig' -- Huh?
  1208.  
  1209.   Some other device has taken the IRQ that your ethercard is trying to
  1210.   use, and so the ethercard can't use the IRQ.  You don't necessairly
  1211.   need to reboot to resolve this, as some devices only grab the IRQs
  1212.   when they need them and then release them when they are done. Examples
  1213.   are some sound cards, serial ports, floppy disk driver, etc. You can
  1214.   type cat /proc/interrupts to see which interrupts are presently in
  1215.   use. Most of the Linux ethercard drivers only grab the IRQ when they
  1216.   are opened for use via `ifconfig'. If you can get the other device to
  1217.   `let go' of the required IRQ line, then you should be able to `Try
  1218.   again' with ifconfig.
  1219.  
  1220.   3.7.12.  Link UNSPEC and HW-addr of 00:00:00:00:00:00
  1221.  
  1222.   When I run ifconfig with no arguments, it reports that LINK is UNSPEC
  1223.   (instead of 10Mbs Ethernet) and it also says that my hardware address
  1224.   is all zeros.
  1225.  
  1226.   This is because people are running a newer version of the `ifconfig'
  1227.   program than their kernel version. This new version of ifconfig is not
  1228.   able to report these properties when used in conjunction with an older
  1229.   kernel. You can either upgrade your kernel, `downgrade' ifconfig, or
  1230.   simply ignore it. The kernel knows your hardware address, so it really
  1231.   doesn't matter if ifconfig can't read it.
  1232.  
  1233.   3.7.13.  Huge Number of RX and TX Errors
  1234.  
  1235.   When I run ifconfig with no arguments, it reports that I have a huge
  1236.   error count in both rec'd and transmitted packets. It all seems to
  1237.   work ok -- What is wrong?
  1238.  
  1239.   Look again. It says RX packets big number PAUSE errors 0 PAUSE dropped
  1240.   0 PAUSE overrun 0.  And the same for the TX column.  Hence the big
  1241.   numbers you are seeing are the total number of packets that your
  1242.   machine has rec'd and transmitted.  If you still find it confusing,
  1243.   try typing cat /proc/net/dev instead.
  1244.  
  1245.   3.7.14.  Entries in /dev/ for Ethercards
  1246.  
  1247.   I have /dev/eth0 as a link to /dev/xxx. Is this right?
  1248.  
  1249.   Contrary to what you have heard, the files in /dev/* are not used.
  1250.   You can delete any /dev/wd0, /dev/ne0 and similar entries.
  1251.  
  1252.   3.7.15.  Linux and ``trailers''
  1253.  
  1254.   Should I disable trailers when I `ifconfig' my ethercard?
  1255.  
  1256.   You can't disable trailers, and you shouldn't want to. `Trailers' are
  1257.   a hack to avoid data copying in the networking layers. The idea was to
  1258.   use a trivial fixed-size header of size `H', put the variable-size
  1259.   header info at the end of the packet, and allocate all packets `H'
  1260.   bytes before the start of a page. While it was a good idea, it turned
  1261.   out to not work well in practice.  If someone suggests the use of
  1262.   `-trailers', note that it is the equivalent of sacrificial goats
  1263.   blood. It won't do anything to solve the problem, but if problem fixes
  1264.   itself then someone can claim deep magical knowledge.
  1265.  
  1266.   3.7.16.  Access to the raw Ethernet Device
  1267.  
  1268.   How do I get access to the raw ethernet device in linux, without going
  1269.   through TCP/IP and friends?
  1270.  
  1271.   ______________________________________________________________________
  1272.           int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));
  1273.   ______________________________________________________________________
  1274.  
  1275.   This gives you a socket receiving every protocol type.  Do recvfrom()
  1276.   calls to it and it will fill the sockaddr with device type in
  1277.   sa_family and the device name in the sa_data array. I don't know who
  1278.   originally invented SOCK_PACKET for Linux (its been in for ages) but
  1279.   its superb stuff.  You can use it to send stuff raw too via sendto()
  1280.   calls.  You have to have root access to do either of course.
  1281.  
  1282.   4.  Performance Tips
  1283.  
  1284.   Here are some tips that you can use if you are suffering from low
  1285.   ethernet throughput, or to gain a bit more speed on those ftp
  1286.   transfers.
  1287.  
  1288.   The ttcp.c program is a good test for measuring raw throughput speed.
  1289.   Another common trick is to do a ftp> get large_file /dev/null where
  1290.   large_file is > 1MB and residing in the buffer cache on the Tx'ing
  1291.   machine. (Do the `get' at least twice, as the first time will be
  1292.   priming the buffer cache on the Tx'ing machine.) You want the file in
  1293.   the buffer cache because you are not interested in combining the file
  1294.   access speed from the disk into your measurement. Which is also why
  1295.   you send the incoming data to /dev/null instead of onto the disk.
  1296.  
  1297.   4.1.  General Concepts
  1298.  
  1299.   Even an 8 bit card is able to receive back-to-back packets without any
  1300.   problems. The difficulty arises when the computer doesn't get the Rx'd
  1301.   packets off the card quick enough to make room for more incoming
  1302.   packets. If the computer does not quickly clear the card's memory of
  1303.   the packets already received, the card will have no place to put the
  1304.   new packet.
  1305.  
  1306.   In this case the card either drops the new packet, or writes over top
  1307.   of a previously received packet. Either one seriously interrupts the
  1308.   smooth flow of traffic by causing/requesting re-transmissions and can
  1309.   seriously degrade performance by up to a factor of 5!
  1310.  
  1311.   Cards with more onboard memory are able to ``buffer'' more packets,
  1312.   and thus can handle larger bursts of back-to-back packets without
  1313.   dropping packets.  This in turn means that the card does not require
  1314.   as low a latency from the the host computer with respect to pulling
  1315.   the packets out of the buffer to avoid dropping packets.
  1316.  
  1317.   Most 8 bit cards have an 8kB buffer, and most 16 bit cards have a 16kB
  1318.   buffer. Most Linux drivers will reserve 3kB of that buffer (for two Tx
  1319.   buffers), leaving only 5kB of receive space for an 8 bit card. This is
  1320.   room enough for only three full sized (1500 bytes) ethernet packets.
  1321.  
  1322.   4.2.  ISA Bus Speed
  1323.  
  1324.   As mentioned above, if the packets are removed from the card fast
  1325.   enough, then a drop/overrun condition won't occur even when the amount
  1326.   of Rx packet buffer memory is small. The factor that sets the rate at
  1327.   which packets are removed from the card to the computer's memory is
  1328.   the speed of the data path that joins the two -- that being the ISA
  1329.   bus speed. (If the CPU is a dog-slow 386sx-16, then this will also
  1330.   play a role.)
  1331.  
  1332.   The recommended ISA bus clock is about 8MHz, but many motherboards and
  1333.   peripheral devices can be run at higher frequencies. The clock
  1334.   frequency for the ISA bus can usually be set in the CMOS setup, by
  1335.   selecting a divisor of the mainboard/CPU clock frequency.
  1336.  
  1337.   For example, here are some receive speeds as measured by the TTCP
  1338.   program on a 40MHz 486, with an  8 bit WD8003EP card, for different
  1339.   ISA bus speeds.
  1340.  
  1341.   ______________________________________________________________________
  1342.           ISA Bus Speed (MHz)     Rx TTCP (kB/s)
  1343.           -------------------     --------------
  1344.           6.7                     740
  1345.           13.4                    970
  1346.           20.0                    1030
  1347.           26.7                    1075
  1348.   ______________________________________________________________________
  1349.  
  1350.   You would be hard pressed to do better than 1075kB/s with any 10Mb/s
  1351.   ethernet card, using TCP/IP. However, don't expect every system to
  1352.   work at fast ISA bus speeds. Most systems will not function properly
  1353.   at speeds above 13MHz. (Also, most PCI systems have the ISA bus speed
  1354.   fixed at 8MHz, so that the end user does not have the option of
  1355.   increasing it.)
  1356.  
  1357.   In addition to faster transfer speeds, one will usually also benefit
  1358.   from a reduction in CPU usage due to the shorter duration memory and
  1359.   i/o cycles. (Note that hard disks and video cards located on the ISA
  1360.   bus will also usually experience a performance increase from an
  1361.   increased ISA bus speed.)
  1362.  
  1363.   Be sure to back up your data prior to experimenting with ISA bus
  1364.   speeds in excess of 8MHz, and thouroughly test that all ISA
  1365.   peripherals are operating properly after making any speed increases.
  1366.  
  1367.   4.3.  Setting the TCP Rx Window
  1368.  
  1369.   Once again, cards with small amounts of onboard RAM and relatively
  1370.   slow data paths between the card and the computer's memory run into
  1371.   trouble. The default TCP Rx window setting is 32kB, which means that a
  1372.   fast computer on the same subnet as you can dump 32k of data on you
  1373.   without stopping to see if you received any of it okay.
  1374.  
  1375.   Recent versions of the route command have the ability to set the size
  1376.   of this window on the fly. Usually it is only for the local net that
  1377.   this window must be reduced, as computers that are behind a couple of
  1378.   routers or gateways are `buffered' enough to not pose a problem. An
  1379.   example usage would be:
  1380.  
  1381.   ______________________________________________________________________
  1382.           route add <whatever> ... window <win_size>
  1383.   ______________________________________________________________________
  1384.  
  1385.   where win_size is the size of the window you wish to use (in bytes).
  1386.   An 8 bit 3c503 card on an ISA bus operating at a speed of 8MHz or less
  1387.   would work well with a window size of about 4kB. Too large a window
  1388.   will cause overruns and dropped packets, and a drastic reduction in
  1389.   ethernet throughput. You can check the operating status by doing a cat
  1390.   /proc/net/dev which will display any dropped or overrun conditions
  1391.   that occurred.
  1392.  
  1393.   4.4.  Increasing NFS performance
  1394.  
  1395.   Some people have found that using 8 bit cards in NFS clients causes
  1396.   poorer than expected performance, when using 8kB (native Sun) NFS
  1397.   packet size.
  1398.  
  1399.   The possible reason for this could be due to the difference in on
  1400.   board buffer size between the 8 bit and the 16 bit cards.  The maximum
  1401.   ethernet packet size is about 1500 bytes. Now that 8kB NFS packet will
  1402.   arrive as about 6 back to back maximum size ethernet packets. Both the
  1403.   8 and 16 bit cards have no problem Rx'ing back to back packets. The
  1404.   problem arises when the machine doesn't remove the packets from the
  1405.   cards buffer in time, and the buffer overflows. The fact that 8 bit
  1406.   cards take an extra ISA bus cycle per transfer doesn't help either.
  1407.   What you can do if you have an 8 bit card is either set the NFS
  1408.   transfer size to 2kB (or even 1kB), or try increasing the ISA bus
  1409.   speed in order to get the card's buffer cleared out faster.  I have
  1410.   found that an old WD8003E card at 8MHz (with no other system load) can
  1411.   keep up with a large receive at 2kB NFS size, but not at 4kB, where
  1412.   performance was degraded by a factor of three.
  1413.  
  1414.   5.  Vendor/Manufacturer/Model Specific Information
  1415.  
  1416.   The following lists many cards in alphabetical order by vendor name
  1417.   and then product identifier. Beside each product ID, you will see
  1418.   either `Supported', `Semi-Supported' or `Not Supported'.
  1419.  
  1420.   Supported means that a driver for that card exists, and many people
  1421.   are happily using it and it seems quite reliable.
  1422.  
  1423.   Semi-Supported means that a driver exists, but at least one of the
  1424.   following descriptions is true: (1) The driver and/or hardware are
  1425.   buggy, which may cause poor performance, failing connections or even
  1426.   crashes.  (2) The card is fairly uncommon, and hence the driver has
  1427.   seen very little use/testing and the driver author has had very little
  1428.   feedback. Obviously (2) is preferable to (1), and the individual
  1429.   description of the card/driver should make it clear which one holds
  1430.   true. In either case, you will probably have to answer `Y' when asked
  1431.   ``Prompt for development and/or incomplete code/drivers?'' when
  1432.   running make config.  For the older v1.2 kernels, the option was known
  1433.   as CONFIG_NET_ALPHA. It was changed to avoid confusion with the Alpha-
  1434.   AXP line of processors made by Digital, and to encompass all
  1435.   experimental drivers, not just net drivers.
  1436.  
  1437.   Not Supported means there is not a driver currently available for that
  1438.   card. This could be due to a lack of interest in hardware that is
  1439.   rare/uncommon, or because the vendors won't release the hardware
  1440.   documentation required to write a driver.
  1441.  
  1442.   Note that the difference between `Supported' and `Semi-Supported' is
  1443.   rather subjective, and is based on user feedback observed in newsgroup
  1444.   postings and mailing list messages. (After all, it is impossible for
  1445.   one person to test all drivers with all cards for each kernel
  1446.   version!!!) So be warned that you may find a card listed as semi-
  1447.   supported works perfectly for you (which is great), or that a card
  1448.   listed as supported gives you no end of troubles and problems (which
  1449.   is not so great).
  1450.  
  1451.   5.1.  3Com
  1452.  
  1453.   If you are not sure what your card is, but you think it is a 3Com
  1454.   card, you can probably figure it out from the assembly number. 3Com
  1455.   has a document `Identifying 3Com Adapters By Assembly Number' (ref
  1456.   24500002) that would most likely clear things up. See ``Technical
  1457.   Information from 3Com'' for info on how to get documents from 3Com.
  1458.  
  1459.   Also note that 3Com has a FTP site with various goodies: ftp.3Com.com
  1460.   that you may want to check out.
  1461.  
  1462.   For those of you browsing this document by a WWW browser, you can try
  1463.   3Com's WWW site as well.
  1464.  
  1465.   5.1.1.  3c501
  1466.  
  1467.   Status -- Semi-Supported
  1468.  
  1469.   Too brain-damaged to use. Available surplus from many places. Avoid it
  1470.   like the plague. Again, do not purchase this card, even as a joke.
  1471.   It's performance is horrible, and it breaks in many ways.
  1472.  
  1473.   Cameron L. Spitzer of 3Com said: ``I'm speaking only for myself here,
  1474.   of course, but I believe 3Com advises against installing a 3C501 in a
  1475.   new system, mostly for the same reasons Donald has discussed. You
  1476.   probably won't be happy with the 3C501 in your Linux box. The data
  1477.   sheet is marked `(obsolete)' on 3Com's Developers' Order Form, and the
  1478.   board is not part of 3Com's program for sending free Technical
  1479.   Reference Manuals to people who need them. The decade-old things are
  1480.   nearly indestructible, but that's about all they've got going for them
  1481.   any more.''
  1482.  
  1483.   For those not yet convinced, the 3c501 can only do one thing at a time
  1484.   -- while you are removing one packet from the single-packet buffer it
  1485.   cannot receive another packet, nor can it receive a packet while
  1486.   loading a transmit packet. This was fine for a network between two
  1487.   8088-based computers where processing each packet and replying took
  1488.   10's of msecs, but modern networks send back-to-back packets for
  1489.   almost every transaction.
  1490.  
  1491.   AutoIRQ works, DMA isn't used, the autoprobe only looks at 0x280 and
  1492.   0x300, and the debug level is set with the third boot-time argument.
  1493.  
  1494.   Once again, the use of a 3c501 is strongly discouraged!  Even more so
  1495.   with a IP multicast kernel, as you will grind to a halt while
  1496.   listening to all multicast packets. See the comments at the top of the
  1497.   source code for more details.
  1498.  
  1499.   5.1.2.  3c503, 3c503/16
  1500.  
  1501.   Status -- Supported
  1502.  
  1503.   If you have a 3c503/16 you may be interested to know that as of 1.3.37
  1504.   the driver has the facility to use the full 16kB RAM on your card.
  1505.   Previous versions treated the 16bit cards as 8bit cards, and only used
  1506.   half of the available RAM. This update also detects the newer 3Com
  1507.   prefix found on newly manufactured cards mentioned below.
  1508.  
  1509.   Recently made 3c503/16 cards have a new base hardware address because
  1510.   3Com ran out of numbers (they made too many cards!) The cards used to
  1511.   start with 02 60 8C and the newer ones use 00 20 AF. Up to 1.3.37, the
  1512.   driver will only check for the old address, and skip over the newer
  1513.   cards.  You can upgrade to a kernel newer than 1.3.37, or change the
  1514.   numbers in 3c503.c for older kernels.
  1515.  
  1516.   These cards should be about the same speed as the same bus width
  1517.   WD80x3, but turn out to be actually a bit slower.  The 3c503 does not
  1518.   have ``EEPROM setup'', so a diagnostic/setup program isn't needed
  1519.   before running the card with Linux. The shared memory address of the
  1520.   3c503 is set using jumpers that are shared with the boot PROM address.
  1521.   This is confusing to people familiar with other ISA cards, where you
  1522.   always leave the jumper set to ``disable'' unless you have a boot
  1523.   PROM.
  1524.  
  1525.   These shared-memory ethercards also have a programmed I/O mode that
  1526.   doesn't use the 8390 facilities (their engineers found too many bugs!)
  1527.   The Linux 3c503 driver can also work with the 3c503 in programmed-I/O
  1528.   mode, but this is slower and less reliable than shared memory mode.
  1529.   Also, programmed-I/O mode is not as well tested when updating the
  1530.   drivers.  You shouldn't use the programmed-I/O mode unless you need it
  1531.   for MS-DOS compatibility.
  1532.  
  1533.   The 3c503's IRQ line is set in software, with no hints from an EEPROM.
  1534.   Unlike the MS-DOS drivers, the Linux driver has capability to autoIRQ:
  1535.   it uses the first available IRQ line in {5,2/9,3,4}, selected each
  1536.   time the card is ifconfig'ed. (Older driver versions selected the IRQ
  1537.   at boot time.) The ioctl() call in `ifconfig' will return EAGAIN if no
  1538.   IRQ line is available at that time.
  1539.  
  1540.   Some common problems that people have with the 503 are discussed in
  1541.   ``Problems with...''.
  1542.  
  1543.   If you intend on using this driver as a loadable module you should
  1544.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  1545.   Based Cards as Modules'' for module specific information.
  1546.  
  1547.   5.1.3.  3c505
  1548.  
  1549.   Status -- Semi-Supported
  1550.  
  1551.   This is a driver that was written by Craig Southeren
  1552.   geoffw@extro.ucc.su.oz.au. These cards also use the i82586 chip.
  1553.   There are not that many of these cards about.  It is included in the
  1554.   standard kernel, but it is classed as an alpha driver. See ``Alpha
  1555.   Drivers'' for important information on using alpha-test ethernet
  1556.   drivers with Linux.
  1557.  
  1558.   There is also the file /usr/src/linux/drivers/net/README.3c505 that
  1559.   you should read if you are going to use one of these cards.  It
  1560.   contains various options that you can enable/disable.  Technical
  1561.   information is available in ``Programming the Intel chips''.
  1562.  
  1563.   5.1.4.  3c507
  1564.  
  1565.   Status -- Semi-Supported
  1566.  
  1567.   This card uses one of the Intel chips, and the development of the
  1568.   driver is closely related to the development of the Intel Ether
  1569.   Express driver.  The driver is included in the standard kernel
  1570.   release, but as an alpha driver.
  1571.  
  1572.   See ``Alpha Drivers'' for important information on using alpha-test
  1573.   ethernet drivers with Linux. Technical information is available in
  1574.   ``Programming the Intel chips''.
  1575.  
  1576.   5.1.5.  3c509 / 3c509B
  1577.  
  1578.   Status -- Supported
  1579.  
  1580.   This card is fairly inexpensive and has good performance for a non-
  1581.   bus-master design.  The drawbacks are that the original 3c509 requires
  1582.   very low interrupt latency. The 3c509B shouldn't suffer from the same
  1583.   problem, due to having a larger buffer. (See below.) These cards use
  1584.   PIO transfers, similar to a ne2000 card, and so a shared memory card
  1585.   such as a wd8013 will be more efficient in comparison.
  1586.  
  1587.   The original 3c509 has a small packet buffer (4kB total, 2kB Rx, 2kB
  1588.   Tx), causing the driver to occasionally drop a packet if interrupts
  1589.   are masked for too long. To minimize this problem, you can try
  1590.   unmasking interrupts during IDE disk transfers (see hdparm(8)) and/or
  1591.   increasing your ISA bus speed so IDE transfers finish sooner.
  1592.  
  1593.   The newer model 3c509B has 8kB on board, and the buffer can be split
  1594.   4/4, 5/3 or 6/2 for Rx/Tx. This setting is changed with the DOS
  1595.   configuration utility, and is stored on the EEPROM. This should
  1596.   alleviate the above problem with the original 3c509. At this point in
  1597.   time, the Linux driver is not aware of this, and treats the 3c509B as
  1598.   an older 3c509.
  1599.  
  1600.   3c509B users should use the supplied DOS utility to disable the plug
  1601.   and play support, and to set the output media to what they require.
  1602.   The linux driver currently does not support the Autodetect media
  1603.   setting, so you have to select 10Base-T or 10Base-2 or AUI.  With
  1604.   regards to the media detection features, Cameron said: ``Autoselect is
  1605.   a feature of the commercial drivers for 3C509(B).  AFAIK nobody ever
  1606.   claimed the Linux driver attempts it.  When drivers/net/3c509.c
  1607.   recognizes my 3C509B at boot time, it says: eth0: 3c509 at 0x300 tag
  1608.   1, 10baseT port, ...  revealing that the card is configured for
  1609.   10BASE-T.  It finds that out by reading the little EEPROM, which IMHO
  1610.   is the Right Way To Do It.''
  1611.  
  1612.   As for the plug-and-pray stuff, Cameron adds: ``The 3C509B has 3Com's
  1613.   relocatable I/O port scheme, and Microsofttm Plug-and-play ("PnP").
  1614.   You can't use them both at the same time.  Some (broken, IMHO) BIOSes
  1615.   begin a PnP sequence by writing to the PnP address (0x279 ?), which
  1616.   causes PnP adapters like 3C509B to enter the PnP state, but then they
  1617.   (these funny BIOSes) never come back to finish the job.  The 3C509Bs
  1618.   hang there in the middle of the PnP ID Sequence, where they have no
  1619.   idea you didn't mean it and you're going to use the 3Com ID sequence
  1620.   after all.  3C5X9CFG /PNPRST clears this hang.  Disable PnP if your
  1621.   drivers (eg., Linux) don't use it.
  1622.  
  1623.   It was a marketing decision to turn PnP on as a factory default
  1624.   setting.  If it caused you a hassle, or not, please take the time to
  1625.   say so when you mail in your warranty card.  The more info they have,
  1626.   the better decisions they can make.  Also, check with your motherboard
  1627.   supplier to see if you need a BIOS upgrade.''
  1628.  
  1629.   It has been reported that you have to do a hard reset after doing the
  1630.   `3C5X9CFG /PNPRST' for the change to take effect.
  1631.  
  1632.   Some people ask about the ``Server or Workstation'' and ``Highest
  1633.   Modem Speed'' settings presented in the DOS configuration utility.
  1634.   Donald writes ``These are only hints to the drivers, and the Linux
  1635.   driver does not use these parameters: it always optimizes for high
  1636.   throughput rather than low latency (`Server'). Low latency was
  1637.   critically important for old, non-windowed, IPX throughput.  To reduce
  1638.   the latency the MS-DOS driver for the 3c509 disables interrupts for
  1639.   some operations, blocking serial port interrupts.  Thus the need for
  1640.   the `modem speed' setting.  The Linux driver avoids the need to
  1641.   disable interrupts for long periods by operating only on whole packets
  1642.   e.g. by not starting to transmit a packet until it is completely
  1643.   transferred to the card.''
  1644.  
  1645.   Note that the ISA card detection uses a different method than most
  1646.   cards. Basically, you ask the cards to respond by sending data to an
  1647.   ID_PORT (port 0x100).  This detection method means that a particular
  1648.   card will always get detected first in a multiple ISA 3c509
  1649.   configuration.  The card with the lowest hardware ethernet address
  1650.   will always end up being eth0. This shouldn't matter to anyone, except
  1651.   for those people who want to assign a 6 byte hardware address to a
  1652.   particular interface.  If you have multiple 3c509 cards, it is best to
  1653.   append ether=0,0,ethN commands without the i/o port specified (i.e.
  1654.   use i/o=zero) and allow the probe to sort out which card is first,
  1655.   otherwise it may not detect all your cards.
  1656.  
  1657.   5.1.6.  3c515
  1658.  
  1659.   Status -- Not Supported
  1660.  
  1661.   This is 3Com's farily recent ISA 100Mbps offering, codenamed
  1662.   ``CorkScrew''. Donald is working on support for these cards, and it
  1663.   will probably appear in the near future on his WWW driver page. The
  1664.   driver will be incorporated into the 3c59x/3c90x driver, so you should
  1665.   probably expect to look for it on the Vortex page:
  1666.  
  1667.   Vortex <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1668.  
  1669.   5.1.7.  3c523
  1670.  
  1671.   Status -- Semi-Supported
  1672.  
  1673.   This MCA bus card uses the i82586, and now that people are actually
  1674.   running Linux on MCA machines, people have recycled parts of other
  1675.   i82586 drivers into a working driver for this card. Expect a driver
  1676.   for it to appear in v2.1.x along with a multitude of other MCA
  1677.   support.
  1678.  
  1679.   More details can be found on the MCA-Linux page at
  1680.   http://glycerine.cetmm.uni.edu/mca/
  1681.  
  1682.   5.1.8.  3c527
  1683.  
  1684.   Status -- Not Supported
  1685.  
  1686.   Yes, another MCA card. No, not too much interest in it.  Better
  1687.   chances with the 3c529 if you are stuck with MCA.
  1688.  
  1689.   5.1.9.  3c529
  1690.  
  1691.   Status -- Semi-Supported
  1692.  
  1693.   This card actually uses the same chipset as the 3c509.  Donald
  1694.   actually put hooks into the 3c509 driver to check for MCA cards after
  1695.   probing for EISA cards, and before probing for ISA cards. But it
  1696.   hasn't evolved much further than that. Donald writes:
  1697.  
  1698.   ``I don't have access to a MCA machine (nor do I fully understand the
  1699.   probing code) so I never wrote the mca_adaptor_select_mode() or
  1700.   mca_adaptor_id() routines. If you can find a way to get the adaptor
  1701.   I/O address that assigned at boot time, you can just hard-wire that in
  1702.   place of the commented-out probe. Be sure to keep the code that reads
  1703.   the IRQ, if_port, and ethernet address.''
  1704.  
  1705.   Darrell Frappier (aa822@detroit.freenet.org) reports that you can get
  1706.   the i/o address from running the PS/2 reference diskette, and once you
  1707.   put that directly into the driver, it does actually work.
  1708.  
  1709.   The required MCA probe code will probably appear in v2.1 sometime
  1710.   shortly after all the other MCA patches go in.
  1711.  
  1712.   5.1.10.  3c562
  1713.  
  1714.   Status -- Supported
  1715.  
  1716.   This PCMCIA card is the combination of a 3c589B ethernet card with a
  1717.   modem. The modem appears as a standard modem to the end user. The only
  1718.   difficulty is getting the two separate linux drivers to share one
  1719.   interrupt. There are a couple of new registers and some hardware
  1720.   interrupt sharing support.  You need to use a v2.0 or newer kernel
  1721.   that has the support for interrupt sharing.
  1722.  
  1723.   As a side note, the modem part of the card has been reported to be not
  1724.   well documented for the end user (the manual just says `supports the
  1725.   AT command set') and it may not connect as well as other name brand
  1726.   modems. The recommendation is to buy a 3c589B instead, and then get a
  1727.   PCMCIA modem card from a company that specializes in modems.
  1728.  
  1729.   Thanks again to Cameron for getting a sample unit and documentation
  1730.   sent off to David Hinds. Look for support in David's PCMCIA package
  1731.   release.
  1732.  
  1733.   5.1.11.  3c579
  1734.  
  1735.   Status -- Supported
  1736.  
  1737.   The EISA version of the 509. The current EISA version uses the same 16
  1738.   bit wide chip rather than a 32 bit interface, so the performance
  1739.   increase isn't stunning.  The EISA probe code was added to 3c509.c for
  1740.   0.99pl14.  We would be interested in hearing progress reports from any
  1741.   3c579 users. (Read the above 3c509 section for info on the driver.)
  1742.  
  1743.   Cameron Spitzer writes: ``The 3C579 (Etherlink III EISA) should be
  1744.   configured as an EISA card. The IO Base Address (window 0 register 6
  1745.   bits 4:0) should be 1f, which selects EISA addressing mode. Logic
  1746.   outside the ASIC decodes the IO address s000, where s is the slot
  1747.   number. I don't think it was documented real well. Except for its IO
  1748.   Base Address, the '579 should behave EXACTLY like the'509 (EL3 ISA),
  1749.   and if it doesn't, I want to hear about it (at my work address).''
  1750.  
  1751.   5.1.12.  3c589 / 3c589B
  1752.  
  1753.   Status -- Semi-Supported
  1754.  
  1755.   Many people have been using this PCMCIA card for quite some time now.
  1756.   Note that support for it is not (at present) included in the default
  1757.   kernel source tree. You will also need a supported PCMCIA controller
  1758.   chipset. There are drivers available on Donald's ftp site:
  1759.  
  1760.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/README.3c589
  1761.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/3c589.c
  1762.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/dbether.c
  1763.  
  1764.   Or for those that are net-surfing you can try:
  1765.  
  1766.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  1767.  
  1768.   You will still need a PCMCIA socket enabler as well.
  1769.  
  1770.   See ``PCMCIA Support'' for more info on PCMCIA chipsets, socket
  1771.   enablers, etc.
  1772.  
  1773.   The "B" in the name means the same here as it does for the 3c509 case.
  1774.  
  1775.   5.1.13.  3c590 / 3c595
  1776.  
  1777.   Status -- Supported
  1778.  
  1779.   These ``Vortex'' cards are for PCI bus machines, with the '590 being
  1780.   10Mbps and the '595 being 3Com's 100Mbs offering.  Also note that you
  1781.   can run the '595 as a '590 (i.e. in a 10Mbps mode).  The driver is
  1782.   included in the v2.0 kernel source, but is also continually being
  1783.   updated. If you have problems with the driver in the v2.0 kernel, you
  1784.   can get an updated driver from the following URL:
  1785.  
  1786.   Vortex <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1787.  
  1788.   Note that there are two different 3c590 cards out there, early models
  1789.   that had 32kB of on-board memory, and later models that only have 8kB
  1790.   (eeccch!) of memory. Chances are you won't be able to buy a new 3c59x
  1791.   for much longer, as it is being replaced with the 3c90x card. If you
  1792.   are buying a used one off somebody, try and get the 32kB version. The
  1793.   3c595 cards have 64kB, as you can't get away with only 8kB RAM at
  1794.   100Mbps!
  1795.  
  1796.   A thanks to Cameron Spitzer and Terry Murphy of 3Com for sending cards
  1797.   and documentation to Donald so he could write the driver.
  1798.  
  1799.   Donald has set up a mailing list for Vortex driver support.  To join
  1800.   the list, just do:
  1801.  
  1802.   echo subscribe | /bin/mail linux-vortex-request@cesdis.gsfc.nasa.gov
  1803.  
  1804.   5.1.14.  3c592 / 3c597
  1805.  
  1806.   Status -- Supported
  1807.  
  1808.   These are  the EISA versions of the 3c59x series of cards. The
  1809.   3c592/3c597 (aka Demon) should work with the vortex driver discussed
  1810.   above.
  1811.  
  1812.   5.1.15.  3c900 / 3c905
  1813.  
  1814.   Status -- Supported
  1815.  
  1816.   These cards (aka `Boomerang', aka EtherLink III XL) have been recently
  1817.   released to take over the place of the 3c590/3c595 cards.  Cameron
  1818.   Spitzer of 3Com writes that the ``3C900 has a scatter gather bus
  1819.   master controlled by a descriptor ring in main memory.  Aside from
  1820.   that, it's a lot like 3C590.''
  1821.  
  1822.   You may still be able to get a couple of these cards at a reduced
  1823.   price through one of 3Com's evaluation deals, if you are quick.
  1824.  
  1825.   To use this card with v2.0 kernels, you must obtain the updated
  1826.   3c59x.c driver from Donald's site at:
  1827.  
  1828.   Vortex-Page <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1829.  
  1830.   This updated 3c59x driver allows you to use the 3c900 in a 3c59x
  1831.   compatible mode, and has been reported to be quite stable. Note that
  1832.   this updated driver may be snuck into the v2.0 source tree at a later
  1833.   date.)
  1834.  
  1835.   On the same WWW page, you will also find the experimental boomerang.c
  1836.   driver which uses some of the enhancements of the 3c900 over that
  1837.   which is available on the 3c59x cards. Since this is a
  1838.   new/experimental driver, you may be better off in using the updated
  1839.   3c59x.c if system stability is a primary concern.
  1840.  
  1841.   Donald has set up a mailing list for Vortex driver support
  1842.   announcements and etc.  To join the list, just do:
  1843.  
  1844.   echo subscribe | /bin/mail linux-vortex-request@cesdis.gsfc.nasa.gov
  1845.  
  1846.   5.2.  Accton
  1847.  
  1848.   5.2.1.  Accton MPX
  1849.  
  1850.   Status -- Supported
  1851.  
  1852.   Don't let the name fool you. This is still supposed to be a NE2000
  1853.   compatible card. The MPX is supposed to stand for MultiPacket
  1854.   Accelerator, which, according to Accton, increases throughput
  1855.   substantially. But if you are already sending back-to-back packets,
  1856.   how can you get any faster...
  1857.  
  1858.   5.2.2.  Accton EN1203, EN1207, EtherDuo-PCI
  1859.  
  1860.   Status -- Supported
  1861.  
  1862.   This is another implementation of the DEC 21040 PCI chip.  The EN1207
  1863.   card has the 21140, and also has a 10Base-2 connector, which has
  1864.   proved troublesome for some people in terms of selecting that media.
  1865.   Using the card with 10Base-T and 100Base-T media have worked for
  1866.   others though.  So as with all purchases, you should try and make sure
  1867.   you can return it if it doesn't work for you.
  1868.  
  1869.   See ``DEC 21040'' for more information on these cards, and the present
  1870.   driver situation.
  1871.  
  1872.   5.2.3.  Accton EN2212 PCMCIA Card
  1873.  
  1874.   Status -- Semi-Supported
  1875.  
  1876.   David Hinds has been working on a driver for this card, and you are
  1877.   best to check the latest release of his PCMCIA package to see what the
  1878.   present status is.
  1879.  
  1880.   5.3.  Allied Telesyn/Telesis
  1881.  
  1882.   5.3.1.  AT1500
  1883.  
  1884.   Status --Supported
  1885.  
  1886.   These are a series of low-cost ethercards using the 79C960 version of
  1887.   the AMD LANCE. These are bus-master cards, and hence one of the faster
  1888.   ISA bus ethercards available.
  1889.   DMA selection and chip numbering information can be found in ``AMD
  1890.   LANCE''.
  1891.  
  1892.   More technical information on AMD LANCE based Ethernet cards can be
  1893.   found in ``Notes on AMD...''.
  1894.  
  1895.   5.3.2.  AT1700
  1896.  
  1897.   Status -- Supported
  1898.  
  1899.   Note that to access this driver during make config you still have to
  1900.   answer `Y' when asked ``Prompt for development and/or incomplete
  1901.   code/drivers?'' at the first. This is simply due to lack of feedback
  1902.   on the driver stability due to it being a relatively rare card.  This
  1903.   will probably be changed for v2.1 kernels.
  1904.  
  1905.   The Allied Telesis AT1700 series ethercards are based on the Fujitsu
  1906.   MB86965. This chip uses a programmed I/O interface, and a pair of
  1907.   fixed-size transmit buffers. This allows small groups of packets to be
  1908.   sent back-to-back, with a short pause while switching buffers.
  1909.  
  1910.   A unique feature is the ability to drive 150ohm STP (Shielded Twisted
  1911.   Pair) cable commonly installed for Token Ring, in addition to 10baseT
  1912.   100ohm UTP (unshielded twisted pair). A fibre optic version of the
  1913.   card (AT1700FT) exists as well.
  1914.  
  1915.   The Fujitsu chip used on the AT1700 has a design flaw: it can only be
  1916.   fully reset by doing a power cycle of the machine.  Pressing the reset
  1917.   button doesn't reset the bus interface. This wouldn't be so bad,
  1918.   except that it can only be reliably detected when it has been freshly
  1919.   reset. The solution/work-around is to power-cycle the machine if the
  1920.   kernel has a problem detecting the AT1700.
  1921.  
  1922.   Some production runs of the AT1700 had another problem: they are
  1923.   permanently wired to DMA channel 5.  This is undocumented, there are
  1924.   no jumpers to disable the "feature", and no driver dares use the DMA
  1925.   capability because of compatibility problems. No device driver will be
  1926.   written using DMA if installing a second card into the machine breaks
  1927.   both, and the only way to disable the DMA is with a knife.
  1928.  
  1929.   5.3.3.  AT2450
  1930.  
  1931.   Status -- Supported
  1932.  
  1933.   This is the PCI version of the AT1500, and it doesn't suffer from the
  1934.   problems that the Boca 79c970 PCI card does.  Allied Telsyn was still
  1935.   `beta testing' the card in early/mid 1995, so it may not have spread
  1936.   to various retailers yet (but it doesn't hurt to ask.)
  1937.  
  1938.   DMA selection and chip numbering information can be found in ``AMD
  1939.   LANCE''.
  1940.  
  1941.   More technical information on AMD LANCE based Ethernet cards can be
  1942.   found in ``Notes on AMD...''.
  1943.  
  1944.   5.4.  AMD / Advanced Micro Devices
  1945.  
  1946.   5.4.1.  AMD LANCE (7990, 79C960, PCnet-ISA)
  1947.  
  1948.   Status -- Supported
  1949.  
  1950.   There really is no AMD ethernet card. You are probably reading this
  1951.   because the only markings you could find on your card said AMD and the
  1952.   above number. The 7990 is the original `LANCE' chip, but most stuff
  1953.   (including this document) refer to all these similar chips as `LANCE'
  1954.   chips. (...incorrectly, I might add.)
  1955.  
  1956.   These above numbers refer to chips from AMD that are the heart of many
  1957.   ethernet cards.  For example, the Allied Telesis AT1500 (see
  1958.   ``AT1500'') the NE1500/2100 (see ``NE1500'') and the Boca-VLB/PCI
  1959.   cards (see ``Boca-VLB/PCI'')
  1960.  
  1961.   The 79C960 (a.k.a. PCnet-ISA) contains enhancements and bug fixes over
  1962.   the original 7990 LANCE design.
  1963.  
  1964.   One common problem people have is the `busmaster arbitration failure'
  1965.   message. This is printed out when the LANCE driver can't get access to
  1966.   the bus after a reasonable amount of time has elapsed (50us). This
  1967.   usually indicates that the motherboard implementation of bus-mastering
  1968.   DMA is broken, or some other device is hogging the bus, or there is a
  1969.   DMA channel conflict. If your BIOS setup has the `GAT option' (for
  1970.   Guaranteed Access Time) then try toggling/altering that setting to see
  1971.   if it helps.
  1972.  
  1973.   Chances are that the existing LANCE driver will work with all AMD
  1974.   LANCE based cards. (except perhaps some of the original 7990 designs
  1975.   with shared memory.)  This driver should also work with NE1500 and
  1976.   NE2100 clones.
  1977.  
  1978.   For the ISA bus master mode all structures used directly by the LANCE,
  1979.   the initialization block, Rx and Tx rings, and data buffers, must be
  1980.   accessible from the ISA bus, i.e. in the lower 16M of real memory.  If
  1981.   more than 16MB of memory is installed, low-memory `bounce-buffers' are
  1982.   used when needed.
  1983.  
  1984.   The DMA channel can be set with the low bits of the otherwise-unused
  1985.   dev->mem_start value (a.k.a. PARAM_1).  (see ``PARAM_1'') If unset it
  1986.   is probed for by enabling each free DMA channel in turn and checking
  1987.   if initialization succeeds.
  1988.  
  1989.   The HP-J2405A board is an exception: with this board it's easy to read
  1990.   the EEPROM-set values for the IRQ, and DMA.
  1991.  
  1992.   See ``Notes on AMD...''  for more info on these chips.
  1993.  
  1994.   5.4.2.  AMD 79C961 (PCnet-ISA+)
  1995.  
  1996.   Status -- Supported
  1997.  
  1998.   This is the PCnet-ISA+  -- an enhanced version of the 79C960.  It has
  1999.   support for jumper-less configuration and Plug and Play.  Also see the
  2000.   info in the above section.
  2001.  
  2002.   Dave Platt writes: ``The Lance driver may report recent versions of
  2003.   this chip as `PCnet (unknown)', as the ID number in newer '961s seems
  2004.   to have been revised (it's now 0x2261 rather than 0x2260).  This
  2005.   misidentification shouldn't prevent the driver from working with it,
  2006.   though.  I've been told of a problem with the '961 - it will work
  2007.   correctly the first time you boot Linux after a hard reset, but will
  2008.   not work correctly after a soft reboot.  From the data sheet, it looks
  2009.   as if the '961 disables itself upon reset, and won't "talk" again
  2010.   until the motherboard BIOS goes through the Plug+Play probe-and-enable
  2011.   sequence, and this might not be happening during a soft reboot.  I do
  2012.   not yet know of a good workaround for this problem.''
  2013.  
  2014.   5.4.3.  AMD 79C965 (PCnet-32)
  2015.  
  2016.   Status -- Supported
  2017.  
  2018.   This is the PCnet-32 -- a 32 bit bus-master version of the original
  2019.   LANCE chip for VL-bus and local bus systems.  Minor cleanups were
  2020.   added to the original lance driver around v1.1.50 to support these 32
  2021.   bit versions of the LANCE chip.  The main problem was that the current
  2022.   versions of the '965 and '970 chips have a minor bug.  They clear the
  2023.   Rx buffer length field in the Rx ring when they are explicitly
  2024.   documented not to. Again, see the above info.
  2025.  
  2026.   5.4.4.  AMD 79C970 (PCnet-PCI)
  2027.  
  2028.   Status -- Supported
  2029.  
  2030.   This is the PCnet-PCI -- similar to the PCnet-32, but designed for PCI
  2031.   bus based systems. Again, see the above info.  Donald has modified the
  2032.   LANCE driver to use the PCI BIOS structure that was introduced by Drew
  2033.   Eckhardt for the PCI-NCR SCSI driver. This means that you need to
  2034.   build a kernel with PCI BIOS support enabled.
  2035.  
  2036.   Note that the Boca implementation of the 79C970 fails on fast Pentium
  2037.   machines. This is a hardware problem, as it affects DOS users as well.
  2038.   See the Boca section for more details.
  2039.  
  2040.   5.4.5.  AMD 79C974 (PCnet-SCSI)
  2041.  
  2042.   Status -- Supported
  2043.  
  2044.   This is the PCnet-SCSI --  which is basically treated like a '970 from
  2045.   an Ethernet point of view. A minor '974 specific fix was added to the
  2046.   1.1.8x kernels, so get a 1.1.90 or newer kernel. Also see the above
  2047.   info. Don't ask if the SCSI half of the chip is supported -- this is
  2048.   the Ethernet-Howto, not the SCSI-Howto.
  2049.  
  2050.   5.5.  Ansel Communications
  2051.  
  2052.   5.5.1.  AC3200 EISA
  2053.  
  2054.   Status -- Semi-Supported
  2055.  
  2056.   Note that to access this driver during make config you still have to
  2057.   answer `Y' when asked ``Prompt for development and/or incomplete
  2058.   code/drivers?'' at the first. This is simply due to lack of feedback
  2059.   on the driver stability due to it being a relatively rare card.
  2060.  
  2061.   This driver is included in the present kernel as an alpha test driver.
  2062.   It is based on the common NS8390 chip used in the ne2000 and wd80x3
  2063.   cards.  Please see ``Alpha Drivers'' in this document for important
  2064.   information regarding alpha drivers.
  2065.  
  2066.   If you use it, let one of us know how things work out, as feedback has
  2067.   been low, even though the driver has been in the kernel since v1.1.25.
  2068.  
  2069.   If you intend on using this driver as a loadable module you should
  2070.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2071.   Based Cards as Modules'' for module specific information.
  2072.  
  2073.   5.6.  Apricot
  2074.  
  2075.   5.6.1.  Apricot Xen-II On Board Ethernet
  2076.  
  2077.   Status -- Supported
  2078.  
  2079.   This on board ethernet uses an i82596 bus-master chip.  It can only be
  2080.   at i/o address 0x300. The author of this driver is Mark Evans. By
  2081.   looking at the driver source, it appears that the IRQ is hardwired to
  2082.   10.
  2083.  
  2084.   Earlier versions of the driver had a tendency to think that anything
  2085.   living at 0x300 was an apricot NIC.  Since then the hardware address
  2086.   is checked to avoid these false detections.
  2087.  
  2088.   5.7.  Arcnet
  2089.  
  2090.   Status -- Supported
  2091.  
  2092.   With the very low cost and better performance of ethernet, chances are
  2093.   that most places will be giving away their Arcnet hardware for free,
  2094.   resulting in a lot of home systems with Arcnet.
  2095.  
  2096.   An advantage of Arcnet is that all of the cards have identical
  2097.   interfaces, so one driver will work for everyone. It also has built in
  2098.   error handling so that it supposedly never loses a packet.  (Great for
  2099.   UDP traffic!)
  2100.  
  2101.   Avery Pennarun's arcnet driver has been in the default kernel sources
  2102.   since 1.1.80. The arcnet driver uses `arc0' as its name instead of the
  2103.   usual `eth0' for ethernet devices.  Bug reports and success stories
  2104.   can be mailed to:
  2105.  
  2106.   apenwarr@foxnet.net
  2107.  
  2108.   There are information files contained in the standard kernel for
  2109.   setting jumpers and general hints.
  2110.  
  2111.   Supposedly the driver also works with the 100Mbs ARCnet cards as well!
  2112.  
  2113.   5.8.  AT&T
  2114.  
  2115.   Note that AT&T's StarLAN is an orphaned technology, like SynOptics
  2116.   LattisNet, and can't be used in a standard 10Base-T environment,
  2117.   without a hub that `speaks' both.
  2118.  
  2119.   5.8.1.  AT&T T7231 (LanPACER+)
  2120.  
  2121.   Status -- Not Supported
  2122.  
  2123.   These StarLAN cards use an interface similar to the i82586 chip. At
  2124.   one point, Matthijs Melchior (matthijs.n.melchior@att.com) was playing
  2125.   with the 3c507 driver, and almost had something useable working.
  2126.   Haven't heard much since that.
  2127.  
  2128.   5.9.  AT-Lan-Tec / RealTek
  2129.  
  2130.   5.9.1.  AT-Lan-Tec / RealTek Pocket adaptor
  2131.  
  2132.   Status -- Supported
  2133.  
  2134.   This is a generic, low-cost OEM pocket adaptor being sold by AT-Lan-
  2135.   Tec, and (likely) a number of other suppliers. A driver for it is
  2136.   included in the standard kernel.  Note that there is substantial
  2137.   information contained in the driver source file `atp.c'.  BTW, the
  2138.   adaptor (AEP-100L) has both 10baseT and BNC connections!  You can
  2139.   reach AT-Lan-Tec at 1-301-948-7070. Ask for the model that works with
  2140.   Linux, or ask for tech support.  Apparently there are various clones
  2141.   of this adaptor being sold here and there throughout Europe as well.
  2142.  
  2143.   The adaptor is `normal size' for the product class, about 57mm wide,
  2144.   22mm high tapering to 15mm high at the DB25 connector, and 105mm long
  2145.   (120mm including the BNC socket). It's switchable between the RJ45 and
  2146.   BNC jacks with a small slide switch positioned between the two: a very
  2147.   intuitive design.
  2148.  
  2149.   Donald performed some power draw measurements, and determined that the
  2150.   average current draw was only about 100mA @ 5V.  This power draw is
  2151.   low enough that you could buy or build a cable to take the 5V directly
  2152.   from the keyboard/mouse port available on many laptops. (Bonus points
  2153.   here for using a standardized power connector instead of a proprietary
  2154.   one.)
  2155.  
  2156.   Note that the device name that you pass to ifconfig is not eth0 but
  2157.   atp0 for this device.
  2158.  
  2159.   5.9.2.  RealTek 8029
  2160.  
  2161.   Status -- Supported
  2162.  
  2163.   This is a PCI single chip implementation of a NE2000 clone.  Various
  2164.   vendors are now selling cards with this chip. See ``NE2000-PCI'' for
  2165.   information on using any of these cards.
  2166.  
  2167.   5.10.  Boca Research
  2168.  
  2169.   Yes, they make more than just multi-port serial cards.  :-)
  2170.  
  2171.   5.10.1.  Boca BEN (PCI, VLB)
  2172.  
  2173.   Status -- Supported
  2174.  
  2175.   These cards are based on AMD's PCnet chips, used in the AT1500 and the
  2176.   like. You can pick up a combo (10BaseT and 10Base2) PCI card for under
  2177.   $70 at the moment.
  2178.  
  2179.   Perspective buyers should be warned that many users have had endless
  2180.   problems with these cards. Owners of fast Pentium systems have been
  2181.   especially hit. Note that this is not a driver problem, as it hits
  2182.   DOS/Win/NT users as well.  Boca's technical support number is (407)
  2183.   241-8088, and you can also reach them at 75300.2672@compuserve.com.
  2184.  
  2185.   Donald did a comparitive test with the above Boca PCI card and a
  2186.   similar Allied Telsyn PCnet/PCI implementation, which showed that the
  2187.   problem lies in Boca's implementation of the PCnet/PCI chip. These
  2188.   test results can be accessed on Don's www server.
  2189.  
  2190.   Linux at CESDIS <http://cesdis.gsfc.nasa.gov/linux/>
  2191.  
  2192.   Also, Dave Platt has compared the recommended implementation given on
  2193.   the AMD data sheet with the Boca implementation, and has determined
  2194.   that Boca has left out a substantial number of important filtering
  2195.   capacitors. At the risk of being verbose, here is a quote from Dave,
  2196.   which will allow you to assess if the problem has been addressed yet,
  2197.   given a card for visual inspection.
  2198.  
  2199.   ``I just reviewed Appendix B in the 79c970 data sheet.  It recommends
  2200.   a _minimum_ of 8 high-frequency bypassing caps (.1 uF multilayer
  2201.   ceramic) around the chip, to keep ground and power bounce from causing
  2202.   unreliable operation.  Looking at the card I have here, I see a total
  2203.   of 5 such caps on the entire card - only a couple of them are close
  2204.   enough to the chip to do a decent job of high-frequency bypassing.
  2205.  
  2206.   If you hold the card with chips facing up, and the PCI pins pointed
  2207.   towards you, the lower-left corner of the '970 has the positioning
  2208.   dimple.  The upper-left corner of the chip is the `analog corner',
  2209.   where the analog power and ground pins are.  Appendix B calls these
  2210.   `the most cricical pins in the layout of a PCnet-PCI card'.  There are
  2211.   4 analog power pins, and 2 analog ground pins... all of them are
  2212.   supposed to be connected, and properly bypassed.
  2213.  
  2214.   On the left side of the chip, the uppermost pin is AVSS1 (analog
  2215.   ground 1).  On the top edge, the fourth pin from the left is AVDD3
  2216.   (analog power 3).  The Appendix specifically recommends having a .1 uF
  2217.   bypass cap tied directly to these two pins (not going through the
  2218.   common ground plane).  On the card I have, there is no such cap - the
  2219.   nearest bypass cap is about half-an-inch away over by the crystal, and
  2220.   is tied to the ground plane.
  2221.  
  2222.   The Appendix also specifically recommends `low-frequency bulk
  2223.   capacitors' (by which I assume that they mean multi-uF tantalum or
  2224.   aluminum electrolytics) as well as high-frequency bypass caps.  I see
  2225.   only two bulk capacitors (one 10 uF in the AVSS2/AVDD2 filter circuit,
  2226.   and one 4.7 uF up above the chip which also appears to be part of a
  2227.   filter circuit).  The Appendix recommends `at least one low-frequency
  2228.   bulk (e.g. 22 uF) bypass capactor...  connected directly to the power
  2229.   and ground planes.'  There is no capacitor on the board which matches
  2230.   this description.
  2231.  
  2232.   It appears that Boca ignored _several_ of AMD's recommendations,
  2233.   regarding the number, size, placement, and wiring of the power supply
  2234.   bypass capacitors.''
  2235.  
  2236.   (Thanks Dave.) Boca is offering a `warranty repair' for affected
  2237.   owners, which involves adding one of the missing capacitors, but it
  2238.   appears that this fix doesn't work 100 percent for most people,
  2239.   although it helps some.
  2240.  
  2241.   If you are still thinking of buying one of these cards, then at least
  2242.   try and get a 7 day unconditional return policy, so that if it doesn't
  2243.   work properly in your system, you can return it.
  2244.  
  2245.   More general information on the AMD chips can be found in ``AMD
  2246.   LANCE''.
  2247.  
  2248.   More technical information on AMD LANCE based Ethernet cards can be
  2249.   found in ``Notes on AMD...''.
  2250.  
  2251.   5.11.  Cabletron
  2252.  
  2253.   Donald writes: `Yes, another one of these companies that won't release
  2254.   its programming information. They waited for months before actually
  2255.   confirming that all their information was proprietary, deliberately
  2256.   wasting my time. Avoid their cards like the plague if you can.  Also
  2257.   note that some people have phoned Cabletron, and have been told things
  2258.   like `a D. Becker is working on a driver for linux' -- making it sound
  2259.   like I work for them. This is NOT the case.'
  2260.  
  2261.   If you feel like asking them why they don't want to release their low
  2262.   level programming info so that people can use their cards, write to
  2263.   support@ctron.com.  Tell them that you are using Linux, and are
  2264.   disappointed that they don't support open systems. And no, the usual
  2265.   driver development kit they supply is useless. It is just a DOS object
  2266.   file that you are supposed to link against. Which you aren't allowed
  2267.   to even reverse engineer.
  2268.  
  2269.   5.11.1.  E10**, E10**-x, E20**, E20**-x
  2270.  
  2271.   Status -- Semi-Supported
  2272.  
  2273.   These are NEx000 almost-clones that are reported to work with the
  2274.   standard NEx000 drivers, thanks to a ctron-specific check during the
  2275.   probe. If there are any problems, they are unlikely to be fixed, as
  2276.   the programming information is unavailable.
  2277.  
  2278.   5.11.2.  E2100
  2279.  
  2280.   Status -- Semi-Supported
  2281.  
  2282.   Again, there is not much one can do when the programming information
  2283.   is proprietary.  The E2100 is a poor design. Whenever it maps its
  2284.   shared memory in during a packet transfer, it maps it into the whole
  2285.   128K region! That means you can't safely use another interrupt-driven
  2286.   shared memory device in that region, including another E2100.  It will
  2287.   work most of the time, but every once in a while it will bite you.
  2288.   (Yes, this problem can be avoided by turning off interrupts while
  2289.   transferring packets, but that will almost certainly lose clock
  2290.   ticks.) Also, if you mis-program the board, or halt the machine at
  2291.   just the wrong moment, even the reset button won't bring it back. You
  2292.   will have to turn it off and leave it off for about 30 seconds.
  2293.  
  2294.   Media selection is automatic, but you can override this with the low
  2295.   bits of the dev->mem_end parameter.  See ``PARAM_2''. Module users can
  2296.   specify an xcvr=N value on the insmod command line to do the same.
  2297.  
  2298.   Also, don't confuse the E2100 for a NE2100 clone.  The E2100 is a
  2299.   shared memory NatSemi DP8390 design, roughly similar to a brain-
  2300.   damaged WD8013, whereas the NE2100 (and NE1500) use a bus-mastering
  2301.   AMD LANCE design.
  2302.  
  2303.   There is an E2100 driver included in the standard kernel.  However,
  2304.   seeing as programming info isn't available, don't expect bug-fixes.
  2305.   Don't use one unless you are already stuck with the card.
  2306.  
  2307.   If you intend on using this driver as a loadable module you should
  2308.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2309.   Based Cards as Modules'' for module specific information.
  2310.  
  2311.   5.12.  Cogent
  2312.  
  2313.   Here is where and how to reach them:
  2314.  
  2315.           Cogent Data Technologies, Inc.
  2316.           175 West Street, P.O. Box 926
  2317.           Friday Harbour, WA 98250, USA.
  2318.  
  2319.           Cogent Sales
  2320.           15375 S.E. 30th Place, Suite 310
  2321.           Bellevue, WA 98007, USA.
  2322.  
  2323.           Technical Support:
  2324.           Phone (360) 378-2929 between 8am and 5pm PST
  2325.           Fax (360) 378-2882
  2326.           Compuserve GO COGENT
  2327.           Bulletin Board Service (360) 378-5405
  2328.           Internet: support@cogentdata.com
  2329.  
  2330.   5.12.1.  EM100-ISA/EISA
  2331.  
  2332.   Status -- Semi-Supported
  2333.  
  2334.   These cards use the SMC 91c100 chip and may work with the SMC 91c92
  2335.   driver, but this has yet to be verified.
  2336.  
  2337.   5.12.2.  Cogent eMASTER+, EM100-PCI, EM400, EM960, EM964
  2338.  
  2339.   Status -- Supported
  2340.  
  2341.   These are yet another DEC 21040 implementation that should hopefully
  2342.   work fine with the standard 21040 driver.
  2343.  
  2344.   The EM400 and the EM964 are four port cards using a DEC 21050 bridge
  2345.   and 4 21040 chips.
  2346.  
  2347.   See ``DEC 21040'' for more information on these cards, and the present
  2348.   driver situation.
  2349.  
  2350.   5.13.  Compaq
  2351.  
  2352.   Compaq aren't really in the business of making ethernet cards, but a
  2353.   lot of their systems have embedded ethernet controllers on the
  2354.   motherboard.
  2355.  
  2356.   5.13.1.  Compaq Deskpro / Compaq XL (Embedded AMD Chip)
  2357.  
  2358.   Status -- Supported
  2359.  
  2360.   Machines such as the XL series have an AMD 79c97x PCI chip on the
  2361.   mainboard that can be used with the standard LANCE driver. But before
  2362.   you can use it, you have to do some trickery to get the PCI BIOS to a
  2363.   place where Linux can see it. Frank Maas was kind enough to provide
  2364.   the details:
  2365.  
  2366.   `` The problem with this Compaq machine however is that the PCI
  2367.   directory is loaded in high memory, at a spot where the Linux kernel
  2368.   can't (won't) reach. Result: the card is never detected nor is it
  2369.   usable (sideline: the mouse won't work either) The workaround (as
  2370.   described thoroughly in http://www-c724.uibk.ac.at/XL/) is to load MS-
  2371.   DOS, launch a little driver Compaq wrote and then load the Linux
  2372.   kernel using LOADLIN. Ok, I'll give you time to say `yuck, yuck', but
  2373.   for now this is the only working solution I know of. The little driver
  2374.   simply moves the PCI directory to a place where it is normally stored
  2375.   (and where Linux can find it).''
  2376.  
  2377.   More general information on the AMD chips can be found in ``AMD
  2378.   LANCE''.
  2379.  
  2380.   5.14.  Danpex
  2381.  
  2382.   5.14.1.  Danpex EN9400
  2383.  
  2384.   Status -- Supported
  2385.  
  2386.   Yet another card based on the DEC 21040 chip, reported to work fine,
  2387.   and at a relatively cheap price.
  2388.  
  2389.   See ``DEC 21040'' for more information on these cards, and the present
  2390.   driver situation.
  2391.  
  2392.   5.15.  D-Link
  2393.  
  2394.   Some people have had difficulty in finding vendors that carry D-link
  2395.   stuff. This should help.
  2396.  
  2397.                   (714) 455-1688  in the US
  2398.                   (081) 203-9900  in the UK
  2399.                   (416) 828-0260  in Canada
  2400.                   (02) 916-1600   in Taiwan
  2401.  
  2402.   5.15.1.  DE-100, DE-200, DE-220-T, DE-250
  2403.  
  2404.   Status -- Supported
  2405.  
  2406.   Some of the early D-Link cards didn't have the 0x57 PROM signature,
  2407.   but the ne2000 driver knows about them.  For the software configurable
  2408.   cards, you can get the config program from www.dlink.com.  The DE2**
  2409.   cards were the most widely reported as having the spurious transfer
  2410.   address mismatch errors with early versions of linux.  Note that there
  2411.   are also cards from Digital (DEC) that are also named DE100 and DE200,
  2412.   but the similarity stops there.
  2413.  
  2414.   5.15.2.  DE-520
  2415.  
  2416.   Status -- Supported
  2417.  
  2418.   This is a PCI card using the PCI version of AMD's LANCE chip.  DMA
  2419.   selection and chip numbering information can be found in ``AMD
  2420.   LANCE''.
  2421.  
  2422.   More technical information on AMD LANCE based Ethernet cards can be
  2423.   found in ``Notes on AMD...''.
  2424.  
  2425.   5.15.3.  DE-530
  2426.  
  2427.   Status -- Supported
  2428.  
  2429.   This is a generic DEC 21040 PCI chip implementation, and is reported
  2430.   to work with the generic 21040 tulip driver.
  2431.  
  2432.   See ``DEC 21040'' for more information on these cards, and the present
  2433.   driver situation.
  2434.  
  2435.   5.15.4.  DE-600
  2436.  
  2437.   Status -- Supported
  2438.  
  2439.   Laptop users and other folk who might want a quick way to put their
  2440.   computer onto the ethernet may want to use this. The driver is
  2441.   included with the default kernel source tree.  Bjorn Ekwall
  2442.   bj0rn@blox.se wrote the driver.  Expect about 180kb/s transfer speed
  2443.   from this via the parallel port. You should read the README.DLINK file
  2444.   in the kernel source tree.
  2445.  
  2446.   Note that the device name that you pass to ifconfig is now eth0 and
  2447.   not the previously used dl0.
  2448.  
  2449.   If your parallel port is not at the standard 0x378 then you will have
  2450.   to recompile. Bjorn writes: ``Since the DE-620 driver tries to sqeeze
  2451.   the last microsecond from the loops, I made the irq and port address
  2452.   constants instead of variables. This makes for a usable speed, but it
  2453.   also means that you can't change these assignements from e.g. lilo;
  2454.   you _have_ to recompile...'' Also note that some laptops implement the
  2455.   on-board parallel port at 0x3bc which is where the parallel ports on
  2456.   monochrome cards were/are.
  2457.  
  2458.   5.15.5.  DE-620
  2459.  
  2460.   Status -- Supported
  2461.  
  2462.   Same as the DE-600, only with two output formats.  Bjorn has written a
  2463.   driver for this model, for kernel versions 1.1 and above. See the
  2464.   above information on the DE-600.
  2465.  
  2466.   5.15.6.  DE-650
  2467.  
  2468.   Status -- Semi-Supported
  2469.  
  2470.   Some people have been using this PCMCIA card for some time now with
  2471.   their notebooks. It is a basic 8390 design, much like a NE2000. The
  2472.   LinkSys PCMCIA card and the IC-Card Ethernet (available from Midwest
  2473.   Micro) are supposedly DE-650 clones as well.  Note that at present,
  2474.   this driver is not part of the standard kernel, and so you will have
  2475.   to do some patching.
  2476.  
  2477.   See ``PCMCIA Support'' in this document, and if you can, have a look
  2478.   at:
  2479.  
  2480.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  2481.  
  2482.   5.16.  DFI
  2483.  
  2484.   5.16.1.  DFINET-300 and DFINET-400
  2485.  
  2486.   Status -- Supported
  2487.  
  2488.   These cards are now detected (as of 0.99pl15) thanks to Eberhard
  2489.   Moenkeberg emoenke@gwdg.de who noted that they use `DFI' in the first
  2490.   3 bytes of the prom, instead of using 0x57 in bytes 14 and 15, which
  2491.   is what all the NE1000 and NE2000 cards use. (The 300 is an 8 bit
  2492.   pseudo NE1000 clone, and the 400 is a pseudo NE2000 clone.)
  2493.  
  2494.   5.17.  Digital / DEC
  2495.  
  2496.   5.17.1.  DEPCA, DE100/1, DE200/1/2, DE210, DE422
  2497.  
  2498.   Status -- Supported
  2499.  
  2500.   As of linux v1.0, there is a driver included as standard for these
  2501.   cards. It was written by David C. Davies.  There is documentation
  2502.   included in the source file `depca.c', which includes info on how to
  2503.   use more than one of these cards in a machine. Note that the DE422 is
  2504.   an EISA card. These cards are all based on the AMD LANCE chip.  See
  2505.   ``AMD LANCE'' for more info.  A maximum of two of the ISA cards can be
  2506.   used, because they can only be set for 0x300 and 0x200 base I/O
  2507.   address.  If you are intending to do this, please read the notes in
  2508.   the driver source file depca.c in the standard kernel source tree.
  2509.  
  2510.   This driver will also work on Alpha CPU based machines, and there are
  2511.   various ioctl()s that the user can play with.
  2512.   5.17.2.  Digital EtherWorks 3 (DE203, DE204, DE205)
  2513.  
  2514.   Status -- Supported
  2515.  
  2516.   Included into kernels v1.1.62 and above is this driver, also by David
  2517.   C. Davies of DEC. These cards use a proprietary chip from DEC, as
  2518.   opposed to the LANCE chip used in the earlier cards like the DE200.
  2519.   These cards support both shared memory or programmed I/O, although you
  2520.   take about a 50%performance hit if you use PIO mode. The shared memory
  2521.   size can be set to 2kB, 32kB or 64kB, but only 2 and 32 have been
  2522.   tested with this driver. David says that the performance is virtually
  2523.   identical between the 2kB and 32kB mode. There is more information
  2524.   (including using the driver as a loadable module) at the top of the
  2525.   driver file ewrk3.c and also in README.ewrk3.  Both of these files
  2526.   come with the standard kernel distribution.
  2527.  
  2528.   The standard driver has a number of interesting ioctl() calls that can
  2529.   be used to get or clear packet statistics, read/write the EEPROM,
  2530.   change the hardware address, and the like. Hackers can see the source
  2531.   code for more info on that one.
  2532.  
  2533.   David has also written a configuration utility for this card (along
  2534.   the lines of the DOS program NICSETUP.EXE) along with other tools.
  2535.   These can be found on sunsite.unc.edu in the directory
  2536.   /pub/Linux/system/Network/management -- look for the file ewrk3tools-
  2537.   X.XX.tar.gz.
  2538.  
  2539.   The next release of this driver (v0.40) will have Alpha CPU support
  2540.   like depca.c does and is available from David now if you require it.
  2541.  
  2542.   5.17.3.  DE425 (EISA), DE434, DE435, DE500
  2543.  
  2544.   Status -- Supported
  2545.  
  2546.   These cards are based on the 21040 chip mentioned below.  Included
  2547.   into kernels v1.1.86 and above is this driver, also by David C. Davies
  2548.   of DEC. It sure is nice to have support from someone on the inside
  2549.   ;-) The DE500 uses the newer 21140 chip to provide 10/100Mbs ethernet
  2550.   connections.  Have a read of the 21040 section below for extra info.
  2551.  
  2552.   Note that as of 1.1.91, David has added a compile time option that
  2553.   will allow non-DEC cards to work with this driver. Have a look at
  2554.   README.de4x5 for details.
  2555.  
  2556.   All the Digital cards will autoprobe for their media (except,
  2557.   temporarily, the DE500 due to a patent issue).
  2558.  
  2559.   This driver is also ALPHA CPU ready and supports being loaded as a
  2560.   module.  Users can access the driver internals through ioctl() calls -
  2561.   see the 'ewrk3' tools and the de4x5.c sources for information about
  2562.   how to do this.
  2563.  
  2564.   5.17.4.  DEC 21040, 21041, 2114x, Tulip
  2565.  
  2566.   Status -- Supported
  2567.  
  2568.   The DEC 21040 is a bus-mastering single chip ethernet solution from
  2569.   Digital, similar to AMD's PCnet chip. The 21040 is specifically
  2570.   designed for the PCI bus architecture.  SMC's new EtherPower PCI card
  2571.   uses this chip.
  2572.  
  2573.   You have a choice of two drivers for cards based on this chip. There
  2574.   is the DE425 driver discussed above, and the generic 21040 driver that
  2575.   Donald has written.
  2576.  
  2577.   Warning: Even though your card may be based upon this chip, the
  2578.   drivers may not work for you. David C. Davies writes ``There are no
  2579.   guarantees that either `tulip.c' OR `de4x5.c' will run any DC2114x
  2580.   based card other than those they've been written to support.  WHY??
  2581.   You ask.  Because there is a register, the General Purpose Register
  2582.   (CSR12) that (1) in the DC21140A is programmable by each vendor and
  2583.   they all do it differently (2) in the DC211423 this is now an SIA
  2584.   control register (a la DC21041). The only small ray of hope is that we
  2585.   can decode the SROM to help set up the driver. However, this is not a
  2586.   guaranteed solution since some vendors (e.g. SMC 9332 card) don't
  2587.   follow the Digital Semiconductor recommended SROM programming format."
  2588.  
  2589.   The updated 21041 chip is also found in place of the 21040 on newly
  2590.   produced SMC EtherPower cards.  The 21140 is for supporting 100Base-?
  2591.   and works with the Linux drivers for the 21040 chip.  To use David's
  2592.   de4x5 driver with non-DEC cards, have a look at README.de4x5 for
  2593.   details.
  2594.  
  2595.   Donald has used SMC EtherPower-10/100 cards to develop the `tulip'
  2596.   driver. Note that the driver that is in the standard kernel tree at
  2597.   the moment is not the most up to date version. If you are having
  2598.   trouble with this driver, you should get the newest version from
  2599.   Donald's ftp/WWW site.
  2600.  
  2601.   Tulip Driver <http://cesdis.gsfc.nasa.gov/linux/drivers/tulip.html>
  2602.  
  2603.   The above URL also contains a (non-exhaustive) list of various
  2604.   cards/vendors that use the 21040 chip.
  2605.  
  2606.   Also note that the tulip driver is still considered an alpha driver
  2607.   (see ``Alpha Drivers'') at the moment, and should be treated as such.
  2608.   To use it, you will have to edit arch/i386/config.in and uncomment the
  2609.   line for CONFIG_DEC_ELCP support.
  2610.  
  2611.   Donald has even set up a mailing list for tulip driver support
  2612.   announcements, etc.  To join it just type:
  2613.  
  2614.   echo subscribe | /bin/mail linux-tulip-request@cesdis.gsfc.nasa.gov
  2615.  
  2616.   5.18.  Farallon
  2617.  
  2618.   Farallon sells EtherWave adaptors and transceivers. This device allows
  2619.   multiple 10baseT devices to be daisy-chained.
  2620.  
  2621.   5.18.1.  Farallon Etherwave
  2622.  
  2623.   Status -- Supported
  2624.  
  2625.   This is reported to be a 3c509 clone that includes the EtherWave
  2626.   transceiver. People have used these successfully with Linux and the
  2627.   present 3c509 driver. They are too expensive for general use, but are
  2628.   a great option for special cases.  Hublet prices start at $125, and
  2629.   Etherwave adds $75-$100 to the price of the board -- worth it if you
  2630.   have pulled one wire too few, but not if you are two network drops
  2631.   short.
  2632.  
  2633.   5.19.  Hewlett Packard
  2634.  
  2635.   The 272** cards use programmed I/O, similar to the NE*000 boards, but
  2636.   the data transfer port can be `turned off' when you aren't accessing
  2637.   it, avoiding problems with autoprobing drivers.
  2638.  
  2639.   Thanks to Glenn Talbott for helping clean up the confusion in this
  2640.   section regarding the version numbers of the HP hardware.
  2641.  
  2642.   5.19.1.  27245A
  2643.  
  2644.   Status -- Supported
  2645.  
  2646.   8 Bit 8390 based 10BaseT, not recommended for all the 8 bit reasons.
  2647.   It was re-designed a couple years ago to be highly integrated which
  2648.   caused some changes in initialization timing which only affected
  2649.   testing programs, not LAN drivers. (The new card is not `ready' as
  2650.   soon after switching into and out of loopback mode.)
  2651.  
  2652.   If you intend on using this driver as a loadable module you should
  2653.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2654.   Based Cards as Modules'' for module specific information.
  2655.  
  2656.   5.19.2.  HP PC Lan+ (27247, 27252A)
  2657.  
  2658.   Status -- Supported
  2659.  
  2660.   The HP PC Lan+ is different to the standard HP PC Lan card. This
  2661.   driver was added to the list of drivers in the standard kernel during
  2662.   the v1.1.x development cycle. It can be operated in either a PIO mode
  2663.   like a ne2000, or a shared memory mode like a wd8013.
  2664.  
  2665.   The 47B is a 16 Bit 8390 based 10BaseT w/AUI, and the 52A is a 16 Bit
  2666.   8390 based ThinLAN w/AUI.  These cards have 32K onboard RAM for Tx/Rx
  2667.   packet buffering instead of the usual 16KB, and they both offer LAN
  2668.   connector autosense.
  2669.  
  2670.   If you intend on using this driver as a loadable module you should
  2671.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2672.   Based Cards as Modules'' for module specific information.
  2673.  
  2674.   5.19.3.  HP-J2405A
  2675.  
  2676.   Status -- Supported
  2677.  
  2678.   These are lower priced, and slightly faster than the 27247/27252A, but
  2679.   are missing some features, such as AUI, ThinLAN connectivity, and boot
  2680.   PROM socket.  This is a fairly generic LANCE design, but a minor
  2681.   design decision makes it incompatible with a generic `NE2100' driver.
  2682.   Special support for it (including reading the DMA channel from the
  2683.   board) is included thanks to information provided by HP's Glenn
  2684.   Talbott.
  2685.  
  2686.   More technical information on LANCE based cards can be found in
  2687.   ``Notes on AMD...''
  2688.  
  2689.   5.19.4.  HP-Vectra On Board Ethernet
  2690.  
  2691.   Status -- Supported
  2692.  
  2693.   The HP-Vectra has an AMD PCnet chip on the motherboard.  Earlier
  2694.   kernel versions would detect it as the HP-J2405A but that would fail,
  2695.   as the Vectra doesn't report the IRQ and DMA channel like the J2405A.
  2696.   Get a kernel newer than v1.1.53 to avoid this problem.
  2697.  
  2698.   DMA selection and chip numbering information can be found in ``AMD
  2699.   LANCE''.
  2700.  
  2701.   More technical information on LANCE based cards can be found in
  2702.   ``Notes on AMD...''
  2703.  
  2704.   5.19.5.  HP 10/100 VG Any Lan Cards (27248B, J2573, J2577, J2585)
  2705.  
  2706.   Status -- Supported
  2707.  
  2708.   As of early 1.3.x kernels, this driver was made available by Jaroslav
  2709.   Kysela, (perex@pf.jcu.cz). Due to the newness of the driver and the
  2710.   relatively small number of VG cards in use, feedback on this driver
  2711.   has been low.
  2712.  
  2713.   Donald has also written a driver for these cards. Unlike the above, it
  2714.   is not presently in the standard kernel source tree.  Check out the
  2715.   following URL for more information on Donald's 100VG work.
  2716.  
  2717.   Donald's 100VG Page
  2718.   <http://cesdis.gsfc.nasa.gov/linux/drivers/100vg.html>
  2719.  
  2720.   5.20.  IBM / International Business Machines
  2721.  
  2722.   5.20.1.  IBM Thinkpad 300
  2723.  
  2724.   Status -- Supported
  2725.  
  2726.   This is compatible with the Intel based Zenith Z-note.  See ``Z-note''
  2727.   for more info.
  2728.  
  2729.   Supposedly this site has a comprehensive database of useful stuff for
  2730.   newer versions of the Thinkpad. I haven't checked it out myself yet.
  2731.  
  2732.   Thinkpad-info <http://peipa.essex.ac.uk/html/linux-thinkpad.html>
  2733.  
  2734.   For those without a WWW browser handy, try
  2735.   peipa.essex.ac.uk:/pub/tp750/
  2736.  
  2737.   5.20.2.  IBM Credit Card Adaptor for Ethernet
  2738.  
  2739.   Status -- Semi-Supported
  2740.  
  2741.   People have been using this PCMCIA card with Linux as well.  Similar
  2742.   points apply, those being that you need a supported PCMCIA chipset on
  2743.   your notebook, and that you will have to patch the PCMCIA support into
  2744.   the standard kernel.
  2745.   See ``PCMCIA Support'' in this document, and if you can, have a look
  2746.   at:
  2747.  
  2748.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  2749.  
  2750.   5.20.3.  IBM Token Ring
  2751.  
  2752.   Status -- Semi-Supported
  2753.  
  2754.   To support token ring requires more than only writing a device driver,
  2755.   it also requires writing the source routing routines for token ring.
  2756.   It is the source routing that would be the most time comsuming to
  2757.   write.
  2758.  
  2759.   Peter De Schrijver has been spending some time on Token Ring lately.
  2760.   and has worked with IBM ISA and MCA token ring cards.
  2761.  
  2762.   The present token ring code has been included into the first of the
  2763.   1.3.x series kernels.
  2764.  
  2765.   Peter says that it was originally tested on an MCA 16/4 Megabit Token
  2766.   Ring board, but it should work with other Tropic based boards.
  2767.  
  2768.   5.21.  ICL Ethernet Cards
  2769.  
  2770.   5.21.1.  ICL EtherTeam 16i/32
  2771.  
  2772.   Status -- Supported
  2773.  
  2774.   Mika Kuoppala (miku@pupu.elt.icl.fi) wrote this driver, and it was
  2775.   included into early 1.3.4x kernels. It uses the Fujitsu MB86965 chip
  2776.   that is also used on the at1700 cards.
  2777.  
  2778.   5.22.  Intel Ethernet Cards
  2779.  
  2780.   5.22.1.  Ether Express
  2781.  
  2782.   Status -- Supported
  2783.  
  2784.   This card uses the intel i82586. (Surprise, huh?)  Earlier versions of
  2785.   this driver (in v1.2 kernels) were classed as alpha-test, as it didn't
  2786.   work well for most people.  The driver in the v2.0 kernel seems to
  2787.   work much better for those who have tried it. The comments at the top
  2788.   of the driver source list some of the problems associated with these
  2789.   cards.
  2790.  
  2791.   There is also some technical information available on the i82586 in
  2792.   ``Programming the Intel Chips'' and also in the source code for the
  2793.   driver `eexpress.c'. Don't be afraid to read it. ;-)
  2794.  
  2795.   5.22.2.  Ether Express PRO/10
  2796.  
  2797.   Status -- Supported
  2798.  
  2799.   Bao Chau Ha has written a driver for these cards that has been
  2800.   included into early 1.3.x kernels. It may also work with some of the
  2801.   Compaq built-in ethernet systems that are based on the i82595 chip.
  2802.  
  2803.   5.22.3.  Ether Express PRO/10 PCI (EISA)
  2804.  
  2805.   Status -- Semi-Supported
  2806.  
  2807.   John Stalba (stalba@ultranet.com) has written a driver for the PCI
  2808.   version. These cards the PLX9036 PCI interface chip with the Intel
  2809.   i82596 LAN controller chip. If your card has the i82557 chip, then you
  2810.   don't have this card, but rather the ``+'' version discussed next, and
  2811.   hence want the EEPro100 driver instead.
  2812.  
  2813.   You can get the alpha driver for the PRO/10 PCI card, along with
  2814.   instructions on how to use it at:
  2815.  
  2816.   EEPro10 Driver <http://www.ultranet.com/~stalba/eep10pci.html>
  2817.  
  2818.   If you have the EISA card, you will probably have to hack the driver a
  2819.   bit to account for the different (PCI vs. EISA) detection mechanisms
  2820.   that are used in each case.
  2821.  
  2822.   5.22.4.  Ether Express PRO/10+
  2823.  
  2824.   Status -- Supported
  2825.  
  2826.   A slight change in name (from the above) but a different design.  This
  2827.   card uses the i82557 chip, and hence uses the eepro100 driver
  2828.   described below.
  2829.  
  2830.   5.22.5.  Ether Express PRO 10/100B
  2831.  
  2832.   Status -- Supported
  2833.  
  2834.   A driver for this card is available on Donald's www/ftp site for v2.0
  2835.   kernels. It is not included in the v2.0 kernel source tree, so you
  2836.   have to get it separately.  Note that this driver will not work with
  2837.   the older 100A cards.
  2838.  
  2839.   Drivers-Page <http://cesdis.gsfc.nasa.gov/linux/drivers/>
  2840.  
  2841.   Apparently Donald had to sign a non-disclosure agreement that stated
  2842.   he could actually disclose the driver source code! How is that for
  2843.   sillyness on intel's part?
  2844.  
  2845.   This driver will be included into the v2.1 source tree sometime in the
  2846.   future. There is also a mailing list for driver announcements. To join
  2847.   it, just do:
  2848.  
  2849.   echo subscribe | /bin/mail linux-eepro100-request@cesdis.gsfc.nasa.gov
  2850.  
  2851.   5.23.  LinkSys
  2852.  
  2853.   5.23.1.  LinkSys Pocket Ethernet Adapter Plus (PEAEPP)
  2854.  
  2855.   Status -- Supported
  2856.  
  2857.   This is supposedly a DE-620 clone, and is reported to work well with
  2858.   that driver. See ``DE-620'' for more information.
  2859.  
  2860.   5.23.2.  LinkSys PCMCIA Adaptor
  2861.  
  2862.   Status -- Supported
  2863.  
  2864.   This is supposed to be a re-badged DE-650. See ``DE-650'' for more
  2865.   information.
  2866.  
  2867.   5.24.  Microdyne
  2868.  
  2869.   5.24.1.  Microdyne Exos 205T
  2870.  
  2871.   Status -- Semi-Supported
  2872.  
  2873.   Another i82586 based card. Dirk Niggemann dabn100@hermes.cam.ac.uk has
  2874.   written a driver that he classes as ``pre-alpha'' that he would like
  2875.   people to test. Mail him for more details.
  2876.  
  2877.   5.25.  Mylex
  2878.  
  2879.   Mylex can be reached at the following numbers, in case anyone wants to
  2880.   ask them anything.
  2881.  
  2882.           MYLEX CORPORATION, Fremont
  2883.           Sales:  800-77-MYLEX, (510) 796-6100
  2884.           FAX:    (510) 745-8016.
  2885.  
  2886.   They also have a web site: Mylex WWW Site <http://www.mylex.com>
  2887.  
  2888.   5.25.1.  Mylex LNE390A, LNE390B
  2889.  
  2890.   Status -- Semi-Supported
  2891.  
  2892.   These are fairly old EISA cards that make use of a shared memory
  2893.   implementation similar to the wd80x3. If you are interested in testing
  2894.   a driver for this card, contact me (pg).
  2895.  
  2896.   5.25.2.  Mylex LNP101
  2897.  
  2898.   Status -- Supported
  2899.  
  2900.   This is a PCI card that is based on DEC's 21040 chip.  It is
  2901.   selectable between 10BaseT, 10Base2 and 10Base5 output.  The LNP101
  2902.   card has been verified to work with the generic 21040 driver.
  2903.   See the section on the 21040 chip (``DEC 21040'') for more
  2904.   information.
  2905.  
  2906.   5.25.3.  Mylex LNP104
  2907.  
  2908.   Status -- Semi-Supported
  2909.  
  2910.   The LNP104 uses the DEC 21050 chip to deliver four independent 10BaseT
  2911.   ports. It should work with recent 21040 drivers that know how to share
  2912.   IRQs, but nobody has reported trying it yet (that I am aware of).
  2913.  
  2914.   5.26.  Novell Ethernet, NExxxx and associated clones.
  2915.  
  2916.   The prefix `NE' came from Novell Ethernet. Novell followed the
  2917.   cheapest NatSemi databook design and sold the manufacturing rights
  2918.   (spun off?) Eagle, just to get reasonably-priced ethercards into the
  2919.   market. (The now ubiquitous NE2000 card.)
  2920.  
  2921.   5.26.1.  NE1000, NE2000
  2922.  
  2923.   Status -- Supported
  2924.  
  2925.   NOTE: If you are using a kernel that is older than v1.2.9, it is
  2926.   strongly recommended that you upgrade to a newer version. There was an
  2927.   important bugfix made to the ne driver in 1.2.7, and another important
  2928.   bugfix made to the upper layers (dev.c) in 1.2.9. Both of these bugs
  2929.   can cause a ne2000 card to hang your computer.
  2930.  
  2931.   The ne2000 is now a generic name for a bare-bones design around the
  2932.   NatSemi 8390 chip. They use programmed I/O rather than shared memory,
  2933.   leading to easier installation but slightly lower performance and a
  2934.   few problems. Again, the savings of using an 8 bit NE1000 over the
  2935.   NE2000 are only warranted if you expect light use.  Some problems can
  2936.   arise with poor NE2000 clones. You should see ``Problems with...'',
  2937.   and ``Poor NE2000 Clones''
  2938.  
  2939.   Some recently introduced NE2000 clones use the National Semiconductor
  2940.   `AT/LANTic' 83905 chip, which offers a shared memory mode similar to
  2941.   the wd8013 and EEPROM software configuration. The shared memory mode
  2942.   will offer less CPU usage (i.e. more efficient) than the programmed
  2943.   i/o mode.
  2944.  
  2945.   In general it is not a good idea to put a NE2000 clone at I/O address
  2946.   0x300 because nearly every device driver probes there at boot. Some
  2947.   poor NE2000 clones don't take kindly to being prodded in the wrong
  2948.   areas, and will respond by locking your machine. Also 0x320 is bad
  2949.   because SCSI drivers probe into 0x330.
  2950.  
  2951.   Donald has written a NE2000 diagnostic program (ne2k.c) for all ne2000
  2952.   cards.  See ``Diagnostic Programs'' for more information.
  2953.  
  2954.   If you intend on using this driver as a loadable module you should
  2955.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2956.   Based Cards as Modules'' for module specific information.
  2957.  
  2958.   5.26.2.  NE2000-PCI (RealTek/Winbond/Compex)
  2959.  
  2960.   Status -- Supported
  2961.  
  2962.   Yes, believe it or not, people are making PCI cards based on the ten
  2963.   year old interface design of the ne2000. At the moment nearly all of
  2964.   these cards are based on the RealTek 8029 chip, and linux kernel v2.0
  2965.   has support to automatically detect these cards at boot and use them.
  2966.  
  2967.   Note that you have to say `Y'  to the `Other ISA cards' option when
  2968.   running make config as you are actually using the same NE2000 driver
  2969.   as the ISA cards use. (That should also give you a hint that these
  2970.   cards aren't anywhere as intelligent as say a DEC 21040 card...)
  2971.  
  2972.   Recently two other PCI NE2000 clones have appeared, those being cards
  2973.   based upon the Winbond 89C940 chip, and the Compex ReadyLink-2000
  2974.   cards. The ne2000 driver in v2.0.x doesn't know about the PCI ID's of
  2975.   these cards, and hence won't detect them without an explicit I/O
  2976.   address being given at boot. (See the FAQ section on NE2000 cards for
  2977.   more details on dealing with an undetected PCI card.)  Support for
  2978.   these additional cards has already been written and will appear in a
  2979.   v2.1.x kernel sometime in the near future, so that they will then be
  2980.   autodetected as well.
  2981.  
  2982.   If you have a NE2000 PCI card that is not a RealTek, Winbond, or
  2983.   Compex ReadyLink, please contact the maintainer of the NE2000 driver
  2984.   as listed in /usr/src/linux/MAINTAINERS. That way the ID of your card
  2985.   can also be added to the driver.
  2986.  
  2987.   If you are using the driver in v2.0 as a module, you will have to
  2988.   supply the i/o address of the card (obtained from doing a cat
  2989.   /proc/pci)  when loading the module.  Note that this will not be
  2990.   necessary for future v2.1 kernels.
  2991.  
  2992.   5.26.3.  NE-10/100
  2993.  
  2994.   Status -- Not Supported
  2995.  
  2996.   These are ISA 100Mbps cards based on the National Semiconductor
  2997.   DP83800 and DP83840 chips. There is currently no driver support, nor
  2998.   is anyone reported that they are working on a driver.
  2999.  
  3000.   5.26.4.  NE1500, NE2100
  3001.  
  3002.   Status -- Supported
  3003.  
  3004.   These cards use the original 7990 LANCE chip from AMD and are
  3005.   supported using the Linux lance driver. Newer NE2100 clones use the
  3006.   updated PCnet/ISA chip from AMD.
  3007.  
  3008.   Some earlier versions of the lance driver had problems with getting
  3009.   the IRQ line via autoIRQ from the original Novell/Eagle 7990 cards.
  3010.   Hopefully this is now fixed.  If not, then specify the IRQ via LILO,
  3011.   and let us know that it still has problems.
  3012.  
  3013.   DMA selection and chip numbering information can be found in ``AMD
  3014.   LANCE''.
  3015.  
  3016.   More technical information on LANCE based cards can be found in
  3017.   ``Notes on AMD...''
  3018.  
  3019.   5.26.5.  NE3200
  3020.  
  3021.   Status -- Not Supported
  3022.  
  3023.   This card uses a lowly 8MHz 80186, and hence you are better off using
  3024.   a cheap NE2000 clone. Even if a driver was available, the NE2000 card
  3025.   would most likely be faster.
  3026.  
  3027.   5.26.6.  NE5500
  3028.  
  3029.   Status -- Supported
  3030.  
  3031.   These are just AMD PCnet-PCI cards ('970A) chips. More information on
  3032.   LANCE/PCnet based cards can be found in ``AMD LANCE''.
  3033.  
  3034.   5.27.  Proteon
  3035.  
  3036.   5.27.1.  Proteon P1370-EA
  3037.  
  3038.   Status -- Supported
  3039.  
  3040.   Apparently this is a NE2000 clone, and works fine with Linux.
  3041.  
  3042.   5.27.2.  Proteon P1670-EA
  3043.  
  3044.   Status -- Supported
  3045.  
  3046.   This is yet another PCI card that is based on DEC's Tulip chip.  It
  3047.   has been reported to work fine with Linux.
  3048.  
  3049.   See the section on the 21040 chip (``DEC 21040'') for more driver
  3050.   information.
  3051.  
  3052.   5.28.  Pure Data
  3053.  
  3054.   5.28.1.  PDUC8028, PDI8023
  3055.  
  3056.   Status -- Supported
  3057.  
  3058.   The PureData PDUC8028 and PDI8023 series of cards are reported to
  3059.   work, thanks to special probe code contributed by Mike Jagdis
  3060.   jaggy@purplet.demon.co.uk. The support is integrated with the WD
  3061.   driver.
  3062.  
  3063.   5.29.  Racal-Interlan
  3064.  
  3065.   Racal Interlan can be reached via WWW at www.interlan.com. I believe
  3066.   they were also known as MiCom-Interlan at one point in the past.
  3067.  
  3068.   5.29.1.  ES3210
  3069.  
  3070.   Status -- Semi-Supported
  3071.  
  3072.   This is an EISA 8390 based shared memory card. An experimetal driver
  3073.   for v2.0 is available (from me, pg). It is reported to work fine, but
  3074.   the EISA IRQ and shared memory address detection appears not to work
  3075.   with (at least) the early revision cards.  In that case, you have to
  3076.   supply them at boot; e.g. ether=5,0,0xd0000,eth0 for IRQ 5 and shared
  3077.   memory at 0xd0000. The i/o base is automatically detected and hence a
  3078.   value of zero should be used.
  3079.  
  3080.   This driver will appear in the v2.1 kernels at some time in the near
  3081.   future.
  3082.  
  3083.   5.29.2.  NI5010
  3084.  
  3085.   Status -- Semi-Supported
  3086.  
  3087.   This driver, by Jan-Pascal van Best (jvbest@qv3pluto.leidenuniv.nl)
  3088.   supports the old 8 bit MiCom-Interlan cards. You can get the driver
  3089.   from:
  3090.  
  3091.   NI5010 Driver
  3092.   <http://qv3pluto.leidenuniv.nl/jvbest/ni5010/ni5010.html>
  3093.  
  3094.   Jan-Pascal has got very little feedback on this driver and would
  3095.   appreciate it if you dropped him a note saying if it worked or not.
  3096.  
  3097.   5.29.3.  NI5210
  3098.  
  3099.   Status -- Semi-Supported
  3100.  
  3101.   Michael Hipp has written a driver for this card. It is included in the
  3102.   standard kernel as an `alpha' driver. Michael would like to hear
  3103.   feedback from users that have this card. See ``Alpha Drivers'' for
  3104.   important information on using alpha-test ethernet drivers with Linux.
  3105.  
  3106.   Michael says that ``the internal sysbus seems to be slow.  So we often
  3107.   lose packets because of overruns while receiving from a fast remote
  3108.   host.''
  3109.  
  3110.   This card also uses one of the Intel chips. See ``Programming the
  3111.   Intel Chips'' for more technical information.
  3112.  
  3113.   5.29.4.  NI6510 (not EB)
  3114.  
  3115.   Status -- Semi-Supported
  3116.  
  3117.   There is also a driver for the LANCE based NI6510, and it is also
  3118.   written by Michael Hipp. Again, it is also an `alpha' driver. For some
  3119.   reason, this card is not compatible with the generic LANCE driver. See
  3120.   ``Alpha Drivers'' for important information on using alpha-test
  3121.   ethernet drivers with Linux.
  3122.  
  3123.   5.29.5.  EtherBlaster (aka NI6510EB)
  3124.  
  3125.   Status -- Supported
  3126.  
  3127.   As of kernel 1.3.23, the generic LANCE driver had a check added to it
  3128.   for the 0x52, 0x44 NI6510EB specific signature.  Others have reported
  3129.   that this signature is not the same for all NI6510EB cards however,
  3130.   which will cause the lance driver to not detect your card. If this
  3131.   happens to you, you can change the probe (at about line 322 in
  3132.   lance.c) to printk() out what the values are for your card and then
  3133.   use them instead of the 0x52, 0x44 defaults.
  3134.  
  3135.   The cards should probably be run in `high-performance' mode and not in
  3136.   the NI6510 compatible mode when using the lance driver.
  3137.  
  3138.   5.30.  Sager
  3139.  
  3140.   5.30.1.  Sager NP943
  3141.  
  3142.   Status -- Semi-Supported
  3143.  
  3144.   This is just a 3c501 clone, with a different S.A. PROM prefix. I
  3145.   assume it is equally as brain dead as the original 3c501 as well.
  3146.   Kernels 1.1.53 and up check for the NP943 I.D. and then just treat it
  3147.   as a 3c501 after that. See ``3Com 3c501'' for all the reasons as to
  3148.   why you really don't want to use one of these cards.
  3149.  
  3150.   5.31.  Schneider & Koch
  3151.  
  3152.   5.31.1.  SK G16
  3153.  
  3154.   Status -- Supported
  3155.  
  3156.   This driver was included into the v1.1 kernels, and it was written by
  3157.   PJD Weichmann and SWS Bern. It appears that the SK G16 is similar to
  3158.   the NI6510, in that it is based on the first edition LANCE chip (the
  3159.   7990). Once again, it appears as though this card won't work with the
  3160.   generic LANCE driver.
  3161.  
  3162.   5.32.  SEEQ
  3163.  
  3164.   5.32.1.  SEEQ 8005
  3165.  
  3166.   Status -- Supported
  3167.  
  3168.   This driver was included into early 1.3.x kernels, and was written by
  3169.   Hamish Coleman.  There is little information about the card included
  3170.   in the driver, and hence little information to be put here. If you
  3171.   have a question, you are probably best off e-mailing
  3172.   hamish@zot.apana.org.au
  3173.  
  3174.   5.33.  SMC (Standard Microsystems Corp.)
  3175.  
  3176.   Please see ``Western Digital'' for information on SMC cards. (SMC
  3177.   bought out Western Digital's network card section quite a while ago.)
  3178.  
  3179.   5.34.  Thomas Conrad
  3180.  
  3181.   5.34.1.  Thomas Conrad TC-5048
  3182.  
  3183.   This is yet another PCI card that is based on DEC's 21040 chip.
  3184.  
  3185.   See the section on the 21040 chip (``DEC 21040'') for more
  3186.   information.
  3187.  
  3188.   5.35.  Western Digital / SMC
  3189.  
  3190.   The ethernet part of Western Digital has been bought out by SMC.  One
  3191.   common mistake people make is that the relatively new SMC Elite Ultra
  3192.   is the same as the older SMC Elite16 models -- this is not the case.
  3193.   They have separate drivers.
  3194.  
  3195.   Here is how to contact SMC (not that you should need to.)
  3196.  
  3197.        SMC / Standard Microsystems Corp., 80 Arkay Drive, Hauppage,
  3198.        New York, 11788, USA.
  3199.  
  3200.   Technical Support via phone:
  3201.  
  3202.           800-992-4762 (USA)
  3203.           800-433-5345 (Canada)
  3204.           516-435-6250 (Other Countries)
  3205.  
  3206.   Literature requests:
  3207.  
  3208.           800-SMC-4-YOU (USA)
  3209.           800-833-4-SMC (Canada)
  3210.           516-435-6255  (Other Countries)
  3211.  
  3212.   Technical Support via E-mail:
  3213.  
  3214.           techsupt@ccmail.west.smc.com
  3215.  
  3216.   FTP Site:
  3217.  
  3218.           ftp.smc.com
  3219.  
  3220.   WWW Site: SMC <http://www.smc.com>
  3221.  
  3222.   5.35.1.  WD8003, SMC Elite
  3223.  
  3224.   Status -- Supported
  3225.  
  3226.   These are the 8-bit versions of the card. The 8 bit 8003 is slightly
  3227.   less expensive, but only worth the savings for light use. Note that
  3228.   some of the non-EEPROM cards (clones with jumpers, or old old old
  3229.   wd8003 cards) have no way of reporting the IRQ line used. In this
  3230.   case, auto-irq is used, and if that fails, the driver silently assings
  3231.   IRQ 5.  You can get the SMC setup/driver disks from SMC's ftp site.
  3232.   Note that some of the newer SMC `SuperDisk' programs will fail to
  3233.   detect the real old EEPROM-less cards. The file SMCDSK46.EXE seems to
  3234.   be a good all-round choice. Also the jumper settings for all their
  3235.   cards are in an ascii text file in the aforementioned archive. The
  3236.   latest (greatest?) version can be obtained from ftp.smc.com.
  3237.  
  3238.   As these are basically the same as their 16 bit counterparts (WD8013 /
  3239.   SMC Elite16), you should see the next section for more information.
  3240.  
  3241.   5.35.2.  WD8013, SMC Elite16
  3242.  
  3243.   Status -- Supported
  3244.  
  3245.   Over the years the design has added more registers and an EEPROM. (The
  3246.   first wd8003 cards appeared about ten years ago!)  Clones usually go
  3247.   by the `8013' name, and usually use a non-EEPROM (jumpered) design.
  3248.   Late model SMC cards will have the SMC 83c690 chip instead of the
  3249.   original Nat Semi DP8390 found on earlier cards.  The shared memory
  3250.   design makes the cards a bit faster than PIO cards, especially with
  3251.   larger packets.  More importantly, from the driver's point of view, it
  3252.   avoids a few bugs in the programmed-I/O mode of the 8390, allows safe
  3253.   multi-threaded access to the packet buffer, and it doesn't have a
  3254.   programmed-I/O data register that hangs your machine during warm-boot
  3255.   probes.
  3256.  
  3257.   Non-EEPROM cards that can't just read the selected IRQ will attempt
  3258.   auto-irq, and if that fails, they will silently assign IRQ 10. (8 bit
  3259.   versions will assign IRQ 5)
  3260.  
  3261.   Cards with a non standard amount of memory on board can have the
  3262.   memory size specified at boot (or at `insmod' time if using modules).
  3263.   The standard memory size is 8kB for an 8bit card and 16kB for a 16bit
  3264.   card.  For example, the older WD8003EBT cards could be jumpered for
  3265.   32kB memory. To make full use of that RAM, you would use something
  3266.   like (for i/o=0x280 and IRQ 9):
  3267.  
  3268.   ______________________________________________________________________
  3269.           LILO: linux ether=9,0x280,0xd0000,0xd8000,eth0
  3270.   ______________________________________________________________________
  3271.  
  3272.   Also see ``8013 problems'' for some of the more common problems and
  3273.   frequently asked questions that pop up often.
  3274.  
  3275.   If you intend on using this driver as a loadable module you should
  3276.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  3277.   Based Cards as Modules'' for module specific information.
  3278.  
  3279.   5.35.3.  SMC Elite Ultra
  3280.  
  3281.   Status -- Supported
  3282.  
  3283.   This ethercard is based on a new chip from SMC, the 83c790, which has
  3284.   a few new features. While it has a mode that is similar to the older
  3285.   SMC ethercards, it's not entirely compatible with the old WD80*3
  3286.   drivers. However, in this mode it shares most of its code with the
  3287.   other 8390 drivers, while operating slightly faster than a WD8013
  3288.   clone.
  3289.  
  3290.   Since part of the Ultra looks like an 8013, the Ultra probe is
  3291.   supposed to find an Ultra before the wd8013 probe has a chance to
  3292.   mistakenly identify it.
  3293.  
  3294.   Donald mentioned that it is possible to write a separate driver for
  3295.   the Ultra's `Altego' mode which allows chaining transmits at the cost
  3296.   of inefficient use of receive buffers, but that will probably not
  3297.   happen.
  3298.  
  3299.   Bus-Master SCSI host adaptor users take note: In the manual that ships
  3300.   with Interactive UNIX, it mentions that a bug in the SMC Ultra will
  3301.   cause data corruption with SCSI disks being run from an aha-154X host
  3302.   adaptor.  This will probably bite aha-154X compatible cards, such as
  3303.   the BusLogic boards, and the AMI-FastDisk SCSI host adaptors as well.
  3304.  
  3305.   SMC has acknowledged the problem occurs with Interactive, and older
  3306.   Windows NT drivers. It is a hardware conflict with early revisions of
  3307.   the card that can be worked around in the driver design. The current
  3308.   Ultra driver protects against this by only enabling the shared memory
  3309.   during data transfers with the card. Make sure your kernel version is
  3310.   at least 1.1.84, or that the driver version reported at boot is at
  3311.   least smc-ultra.c:v1.12 otherwise you are vulnerable.
  3312.  
  3313.   If you intend on using this driver as a loadable module you should
  3314.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  3315.   Based Cards as Modules'' for module specific information.
  3316.  
  3317.   5.35.4.  SMC EtherEZ (8416)
  3318.  
  3319.   Status -- Supported
  3320.  
  3321.   This card uses SMC's 83c795 chip and supports the Plug 'n Play
  3322.   specification. It also has an SMC Ultra compatible mode, which allows
  3323.   it to be used with the Linux Ultra driver.  Be sure to set your card
  3324.   for this compatibility mode.  See the above information for notes on
  3325.   the Ultra driver.
  3326.  
  3327.   For v1.2 kernels, the card had to be configured for shared memory
  3328.   operation. However v2.0 kernels can use the card in shared memory or
  3329.   programmed i/o mode. Shared memory mode will be slightly faster, and
  3330.   use considerably less CPU resources as well.
  3331.  
  3332.   Note that the EtherEZ specific checks were added to the SMC Ultra
  3333.   driver in 1.1.84, and hence earlier kernel versions will not detect or
  3334.   handle these cards correctly.
  3335.  
  3336.   5.35.5.  SMC EtherPower PCI (8432)
  3337.  
  3338.   Status -- Supported
  3339.  
  3340.   These cards are a basic DEC 21040 implementation, i.e. one big chip
  3341.   and a couple of transceivers. Donald has used one of these cards for
  3342.   his development of the generic 21040 driver (aka tulip.c). Thanks to
  3343.   Duke Kamstra, once again, for supplying a card to do development on.
  3344.  
  3345.   Some of the newer revisons of this card use the newer DEC 21041 chip,
  3346.   which may cause problems with older versions of the tulip driver. If
  3347.   you have problems, make sure you are using the latest driver release,
  3348.   which may not yet be included in the current kernel source tree.
  3349.  
  3350.   See ``DEC 21040'' for more details on using one of these cards, and
  3351.   the current status of the driver.
  3352.  
  3353.   5.35.6.  SMC 3008
  3354.  
  3355.   Status -- Not Supported
  3356.  
  3357.   These 8 bit cards are based on the Fujitsu MB86950, which is an
  3358.   ancient version of the MB86965 used in the Linux at1700 driver. Russ
  3359.   says that you could probably hack up a driver by looking at the
  3360.   at1700.c code and his DOS packet driver for the Tiara card
  3361.   (tiara.asm). They are not very common.
  3362.  
  3363.   5.35.7.  SMC 3016
  3364.  
  3365.   Status -- Not Supported
  3366.  
  3367.   These are 16bit i/o mapped 8390 cards, much similar to a generic
  3368.   NE2000 card. If you can get the specifications from SMC, then porting
  3369.   the NE2000 driver would probably be quite easy.  They are not very
  3370.   common.
  3371.  
  3372.   5.35.8.  SMC-9000 / SMC 91c92/4
  3373.  
  3374.   Status -- Supported
  3375.  
  3376.   The SMC9000 is a VLB card based on the 91c92 chip.  The 91c92 appears
  3377.   on a few other brand cards as well, but is fairly uncommon.  Erik
  3378.   Stahlman (erik@vt.edu) has written this driver which is in v2.0
  3379.   kernels, but not in the older v1.2 kernels. You may be able to drop
  3380.   the driver into a v1.2 kernel source tree with minimal difficulty.
  3381.  
  3382.   5.35.9.  SMC 91c100
  3383.  
  3384.   Status -- Semi-Supported
  3385.  
  3386.   The SMC 91c92 driver is supposed to work for cards based on this
  3387.   100Base-T chip, but at the moment this is unverified.
  3388.  
  3389.   5.36.  Xircom
  3390.  
  3391.   For the longest time, Xircom wouldn't release the programming
  3392.   information required to write a driver, unless you signed your life
  3393.   away. Apparently enough linux users have pestered them for driver
  3394.   support (they claim to support all popular networking operating
  3395.   systems...) so that they have changed their policy to allow
  3396.   documentation to be released without having to sign a non-disclosure
  3397.   agreement, and apparently they will release the source code to the SCO
  3398.   driver as well.  If you want to verify that this is the case, you can
  3399.   reach Xircom at 1-800-874-7875, 1-800-438-4526 or +1-818-878-7600.
  3400.  
  3401.   However, at the moment nobody has rushed forth offering to write any
  3402.   drivers, so all their products are still unsupported.
  3403.  
  3404.   5.36.1.  PE1, PE2, PE3-10B*
  3405.  
  3406.   Status -- Not Supported
  3407.  
  3408.   Not to get your hopes up, but if you have one of these parallel port
  3409.   adaptors, you may be able to use it in the DOS emulator with the
  3410.   Xircom-supplied DOS drivers. You will have to allow DOSEMU access to
  3411.   your parallel port, and will probably have to play with SIG (DOSEMU's
  3412.   Silly Interrupt Generator).
  3413.  
  3414.   5.37.  Zenith
  3415.  
  3416.   5.37.1.  Z-Note
  3417.  
  3418.   Status -- Supported
  3419.  
  3420.   The built-in Z-Note network adaptor is based on the Intel i82593 using
  3421.   two DMA channels. There is an (alpha?) driver available in the present
  3422.   kernel version. As with all notebook and pocket adaptors, it is under
  3423.   the `Pocket and portable adaptors' section when running make config.
  3424.   See ``Programming the Intel chips'' for more technical information.
  3425.   Also note that the IBM ThinkPad 300 is compatible with the Z-Note.
  3426.  
  3427.   5.38.  Znyx
  3428.  
  3429.   5.38.1.  Znyx ZX342 (DEC 21040 based)
  3430.  
  3431.   Status -- Supported
  3432.  
  3433.   You have a choice of two drivers for cards based on this chip. There
  3434.   is the DE425 driver written by David, and the generic 21040 driver
  3435.   that Donald has written.
  3436.  
  3437.   Note that as of 1.1.91, David has added a compile time option that may
  3438.   allow non-DEC cards (such as the Znyx cards) to work with this driver.
  3439.   Have a look at README.de4x5 for details.
  3440.  
  3441.   See ``DEC 21040'' for more information on these cards, and the present
  3442.   driver situation.
  3443.  
  3444.   5.39.  Identifying an Unknown Card
  3445.  
  3446.   Okay, so your uncle's cousin's neighbour's friend had a brother who
  3447.   found an old ISA ethernet card in the AT case he was using as a cage
  3448.   for his son's pet hampster. Somehow you ended up with the card and
  3449.   want to try and use it with linux, but nobody has a clue what the card
  3450.   is and there isn't any documentation.
  3451.  
  3452.   First of all, look for any obvious model numbers that might give a
  3453.   clue. Any model number that contains 2000 will most likely be a NE2000
  3454.   clone. Any cards with 8003 or 8013 on them somewhere will be
  3455.   Western/Digital WD80x3 cards or SMC Elite cards or clones of them.
  3456.  
  3457.   5.39.1.  Identifying the Network Interface Controller
  3458.  
  3459.   Look for the biggest chip on the card. This will be the network
  3460.   controller (NIC) itself, and most can be identified by the part
  3461.   number. If you know which NIC is on the card, the following might be
  3462.   able to help you figure out what card it is.
  3463.  
  3464.   Probably still the most common NIC is the National Semiconductor
  3465.   DP8390 aka NS32490 aka DP83901 aka DP83902 aka DP83905 aka DP83907.
  3466.   And those are just the ones made by National! Other companies such as
  3467.   Winbond and UMC make DP8390 and DP83905 clone parts, such as the
  3468.   Winbond 89c904 (DP83905 clone) and the UMC 9090.  If the card has some
  3469.   form of 8390 on it, then chances are it is a ne1000 or ne2000 clone
  3470.   card. The second most common 8390 based card are wd80x3 cards and
  3471.   clones. Cards with a DP83905 can be configured to be an ne2000 or a
  3472.   wd8013. Never versions of the genuine wd80x3 and SMC Elite cards have
  3473.   an 83c690 in place of the original DP8390. The SMC Ultra cards have an
  3474.   83c790, and use a slightly different driver than the wd80x3 cards.
  3475.   The SMC EtherEZ cards have an 83c795, and use the same driver as the
  3476.   SMC Ultra. All BNC cards based on some sort of 8390 or 8390 clone will
  3477.   usually have an 8392 (or 83c692, or XXX392) 16 pin DIP chip very close
  3478.   to the BNC connector.
  3479.  
  3480.   Another common NIC found on older cards is the Intel i82586.  Cards
  3481.   having this NIC include the 3c505, 3c507, 3c523, Intel EtherExpress-
  3482.   ISA, Microdyne Exos-205T, and the Racal-Interlan NI5210.
  3483.  
  3484.   The original AMD LANCE NIC was numbered AM7990, and newer revisions
  3485.   include the 79c960, 79c961, 79c965, 79c970, and 79c974.  Most cards
  3486.   with one of the above will work with the Linux LANCE driver, with the
  3487.   exception of the old Racal-Interlan NI6510 cards that have their own
  3488.   driver.
  3489.  
  3490.   Newer PCI cards having a DEC 21040, 21041, 21140, or similar number on
  3491.   the NIC should be able to use the linux tulip or de4x5 driver.
  3492.  
  3493.   Other PCI cards having a big chip marked RTL8029 are ne2000 clone
  3494.   cards, and the ne driver in linux version v2.0 and up should
  3495.   automatically detect these cards at boot.
  3496.  
  3497.   5.39.2.  Identifying the Ethernet Address
  3498.  
  3499.   Each ethernet card has its own six byte address that is unique to that
  3500.   card. The first three bytes of that address are the same for each card
  3501.   made by that particular manufacturer.  For example all SMC cards start
  3502.   with 00:00:c0.  The last three are assigned by the manufacturer
  3503.   uniquely to each individual card as they are produced.
  3504.  
  3505.   If your card has a sticker on it giving all six bits of its address,
  3506.   you can look up the vendor from the first three.  However it is more
  3507.   common to see only the last three bytes printed onto a sticker
  3508.   attached to a socketed PROM, which tells you nothing.
  3509.  
  3510.   You can determine which vendors have which assigned addresses from
  3511.   RFC-1340. Apparently there is a more up to date listing available in
  3512.   various places as well. Try a WWW or FTP search for EtherNet-codes or
  3513.   Ethernet-codes and you will find something.
  3514.  
  3515.   5.39.3.  Tips on Trying to Use an Unknown Card
  3516.  
  3517.   If you are still not sure what the card is, but have at least narrowed
  3518.   it down some, then you can build a kernel with a whole bunch of
  3519.   drivers included, and see if any of them autodetect the card at boot.
  3520.  
  3521.   If the kernel doesn't detect the card, it may be that the card is not
  3522.   configured to one of the addresses that the driver probes when looking
  3523.   for a card. In this case, you might want to try getting
  3524.   scanport.tar.gz from your local linux ftp site, and see if that can
  3525.   locate where your card is jumpered for. It scans ISA i/o space from
  3526.   0x100 to 0x3ff looking for devices that aren't registered in
  3527.   /proc/ioports. If it finds an unknown device starting at some
  3528.   particular address, you can then explicity point the ethernet probes
  3529.   at that address with an ether= boot argument.
  3530.  
  3531.   If you manage to get the card detected, you can then usually figure
  3532.   out the unknown jumpers by changing them one at a time and seeing at
  3533.   what i/o base and IRQ that the card is detected at. The IRQ settings
  3534.   can also usually be determined by following the traces on the back of
  3535.   the card to where the jumpers are soldered through. Counting the `gold
  3536.   fingers' on the backside, from the end of the card with the metal
  3537.   bracket, you have IRQ 9, 7, 6, 5, 4, 3, 10, 11, 12, 15, 14 at fingers
  3538.   4, 21, 22, 23, 24, 25, 34, 35, 36, 37, 38 respectively.  Eight bit
  3539.   cards only have up to finger 31.
  3540.  
  3541.   Jumpers that appear to do nothing usually are for selecting the memory
  3542.   address of an optional boot ROM. Other jumpers that are located near
  3543.   the BNC or RJ-45 or AUI connectors are usually to select the output
  3544.   media. These are also typically near the `black box' voltage
  3545.   converters marked YCL, Valor, or Fil-Mag.
  3546.  
  3547.   A nice collection of jumper settings for various cards can be found at
  3548.   the following URL:
  3549.  
  3550.   Ethercard Settings <ftp://ftp.syd.dit.csiro.au/pub/ken/NIC/index.html>
  3551.  
  3552.   5.40.  Drivers for Non-Ethernet Devices
  3553.  
  3554.   There are a few other drivers that are in the linux source, that
  3555.   present an ethernet-like device to network programs, while not really
  3556.   being ethernet. These are briefly listed here for completeness.
  3557.  
  3558.   dummy.c - The purpose of this driver is to provide a device to point a
  3559.   route through, but not to actually transmit packets.
  3560.  
  3561.   eql.c - Load Equalizer, enslaves multiple devices (usually modems) and
  3562.   balances the Tx load across them while presenting a single device to
  3563.   the network programs.
  3564.  
  3565.   ibmtr.c - IBM Token Ring, which is not really ethernet.  Broken-Ring
  3566.   requires source routing and other uglies.
  3567.  
  3568.   loopback.c - Loopback device, for which all packets from you machine
  3569.   and destined for your own machine go.  It essentially just moves the
  3570.   packet off the Tx queue and onto the Rx queue.
  3571.  
  3572.   pi2.c - Ottawa Amateur Radio Club PI and PI2 interface.
  3573.  
  3574.   plip.c - Parallel Line Internet Protocol, allows two computers to send
  3575.   packets to each other over two joined parallel ports in a point-to-
  3576.   point fashion.
  3577.  
  3578.   ppp.c - Point-to-Point Protocol (RFC1331), for the Transmission of
  3579.   Multi-protocol Datagrams over a Point-to-Point Link (again usually
  3580.   modems).
  3581.  
  3582.   slip.c - Serial Line Internet Protocol, allows two computers to send
  3583.   packets to each other over two joined serial ports (usually via
  3584.   modems) in a point-to-point fashion.
  3585.  
  3586.   tunnel.c - Provides an IP tunnel through which you can tunnel network
  3587.   traffic transparently across subnets
  3588.  
  3589.   wavelan.c - An Ethernet-like radio transceiver controlled by the Intel
  3590.   82586 coprocessor which is used on other ethercards such as the Intel
  3591.   EtherExpress.
  3592.  
  3593.   6.  Cables, Coax, Twisted Pair
  3594.  
  3595.   If you are starting a network from scratch, it's considerably less
  3596.   expensive to use thin ethernet, RG58 co-ax cable with BNC connectors,
  3597.   than old-fashioned thick ethernet, RG-5 cable with N connectors, or
  3598.   10baseT, twisted pair telco-style cables with RJ-45 eight wire `phone'
  3599.   connectors. See ``Type of cable...'' for an introductory look at
  3600.   cables.
  3601.  
  3602.   Also note that the FAQ from comp.dcom.lans.ethernet has a lot of
  3603.   useful information on cables and such. Look in Usenet FAQs
  3604.   <ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/> for the FAQ for that
  3605.   newsgroup.
  3606.  
  3607.   6.1.  Thin Ethernet (thinnet)
  3608.  
  3609.   Thin ethernet is the `ether of choice'. The cable is inexpensive. If
  3610.   you are making your own cables solid-core RG58A is $0.27/m. and
  3611.   stranded RG58AU is $0.45/m. Twist-on BNC connectors are < $2 ea., and
  3612.   other misc. pieces are similarly inexpensive. It is essential that you
  3613.   properly terminate each end of the cable with 50 ohm terminators, so
  3614.   budget $2 ea. for a pair. It's also vital that your cable have no
  3615.   `stubs' -- the `T' connectors must be attached directly to the
  3616.   ethercards.
  3617.  
  3618.   The only drawback is that if you have a big loop of machines connected
  3619.   together, and some bonehead breaks the loop by taking one cable off
  3620.   the side of his tee, the whole network goes down because it sees an
  3621.   infinite impedance (open circuit) instead of the required 50 ohm
  3622.   termination. Note that you can remove the tee piece from the card
  3623.   itself without killing the whole subnet, as long as you don't remove
  3624.   the cables from the tee itself. Of course this will disturb the
  3625.   machine that you pull the actual tee off of. 8-) And if you are doing
  3626.   a small network of two machines, you still need the tees and the 50
  3627.   ohm terminators -- you can't just cable them together!
  3628.   Note that there are a few cards out there with `on-board termination'.
  3629.   These cards have a jumper which when closed, puts a 50 ohm resistor
  3630.   across the BNC input. With these cards, you can use a BNC T and
  3631.   terminator like normal, or put the cable directly onto the card and
  3632.   close the jumper to enable the on-board termination.
  3633.  
  3634.   There are also some fancy cable systems which look like a single lead
  3635.   going to the card, but the lead is actually a loop, with the two runs
  3636.   of cable laying side-by-side covered by an outer sheath, giving the
  3637.   lead an oval shaped cross-section. At the turnaround point of the
  3638.   loop, a BNC connector is spliced in which connects to your card. So
  3639.   you have the equivalent of two runs of cable and a BNC T, but in this
  3640.   case, it is impossible for the user to remove a cable from one side of
  3641.   the T and disturb the network.
  3642.  
  3643.   6.2.  Twisted Pair
  3644.  
  3645.   Twisted pair networks require active hubs, which start around $200,
  3646.   and the raw cable cost can actually be higher than thinnet. They are
  3647.   usually sold using the claim that you can use your existing telephone
  3648.   wiring, but it's a rare installation where that turns out to be the
  3649.   case. The claim that you can upgrade to higher speeds is also suspect,
  3650.   as most proposed schemes use higher-grade (read $$) cable and more
  3651.   sophisticated termination ($$$) than you would likely install on
  3652.   speculation.
  3653.  
  3654.   New gizmos are floating around which allow you to daisy-chain machines
  3655.   together, and the like. For example, Farallon sells EtherWave adaptors
  3656.   and transceivers. This device allows multiple 10baseT devices to be
  3657.   daisy-chained. They also sell a 3c509 clone that includes the
  3658.   EtherWave transceiver.  The drawback is that it's more expensive and
  3659.   less reliable than a cheap ($100-$150) mini-hub and another ethercard.
  3660.   You probably should either go for the hub approach or switch over to
  3661.   10base2 thinnet.
  3662.  
  3663.   On the other hand, hubs are rapidly dropping in price, all 100Mb/sec
  3664.   ethernet proposals use twisted pair, and most new business
  3665.   installations use twisted pair. (This is probably to avoid the problem
  3666.   with idiots messing with the BNC's as described above.)
  3667.  
  3668.   Also, Russ Nelson adds that `New installations should use Category 5
  3669.   wiring. Anything else is a waste of your installer's time, as 100Base-
  3670.   whatever is going to require Cat 5.'
  3671.  
  3672.   If you are only connecting two machines, it is possible to avoid using
  3673.   a hub, by swapping the Rx and Tx pairs (1-2 and 3-6).
  3674.  
  3675.   If you hold the RJ-45 connector facing you (as if you were going to
  3676.   plug it into your mouth) with the lock tab on the top, then the pins
  3677.   are numbered 1 to 8 from left to right. The pin usage is as follows:
  3678.  
  3679.           Pin Number              Assignment
  3680.           ----------              ----------
  3681.           1                       Output Data (+)
  3682.           2                       Output Data (-)
  3683.           3                       Input Data (+)
  3684.           4                       Reserved for Telephone use
  3685.           5                       Reserved for Telephone use
  3686.           6                       Input Data (-)
  3687.           7                       Reserved for Telephone use
  3688.           8                       Reserved for Telephone use
  3689.  
  3690.   If you want to make a cable, the following should spell it out for
  3691.   you.  Differential signal pairs must be on the same twisted pair to
  3692.   get the required minimal impedance/loss of a UTP cable.  If you look
  3693.   at the above table, you will see that 1+2 and 3+6 are the two sets of
  3694.   differential signal pairs. Not 1+3 and 2+6 !!!!!!  At 10MHz, with
  3695.   short lengths, you *may* get away with such errors, if it is only over
  3696.   a short length. Don't even think about it at 100MHz.
  3697.  
  3698.   For a normal patch cord, with ends `A' and `B', you want straight
  3699.   through pin-to-pin mapping, with the input and output each using a
  3700.   pair of twisted wires (for impedance issues). That means 1A goes to
  3701.   1B, 2A goes to 2B, 3A goes to 3B and 6A goes to 6B. The wires joining
  3702.   1A-1B and 2A-2B must be a twisted pair. Also the wires joining 3A-3B
  3703.   and 6A-6B must be another twisted pair.
  3704.  
  3705.   Now if you don't have a hub, and want to make a `null cable', what you
  3706.   want to do is make the input of `A' be the output of `B' and the
  3707.   output of `A' be the input of `B', without changing the polarity.  Tha
  3708.   means connecting 1A to 3B (out+ A to in+ B) and 2A to 6B (out- A to
  3709.   in- B). These two wires must be a twisted pair. They carry what
  3710.   card/plug `A' considers output, and what is seen as input for
  3711.   card/plug `B'. Then connect 3A to 1B (in+ A to out+ B) and also
  3712.   connect 6A to 2B (in- A to out- B). These second two must also be a
  3713.   twisted pair. They carry what card/plug `A' considers input, and what
  3714.   card/plug `B' considers output.
  3715.  
  3716.   So, if you consider a normal patch cord, chop one end off of it, swap
  3717.   the places of the Rx and Tx twisted pairs into the new plug, and crimp
  3718.   it down, you then have a `null' cable. Nothing complicated.  You just
  3719.   want to feed the Tx signal of one card into the Rx of the second and
  3720.   vice versa.
  3721.  
  3722.   Note that before 10BaseT was ratified as a standard, there existed
  3723.   other network formats using RJ-45 connectors, and the same wiring
  3724.   scheme as above. Examples are SynOptics's LattisNet, and AT&T's
  3725.   StarLAN.  In some cases, (as with early 3C503 cards) you could set
  3726.   jumpers to get the card to talk to hubs of different types, but in
  3727.   most cases cards designed for these older types of networks will not
  3728.   work with standard 10BaseT networks/hubs. (Note that if the cards also
  3729.   have an AUI port, then there is no reason as to why you can't use
  3730.   that, combined with an AUI to 10BaseT transceiver.)
  3731.  
  3732.   6.3.  Thick Ethernet
  3733.  
  3734.   Thick ethernet is mostly obsolete, and is usually used only to remain
  3735.   compatible with an existing implementation. You can stretch the rules
  3736.   and connect short spans of thick and thin ethernet together with a
  3737.   passive $3 N-to-BNC connector, and that's often the best solution to
  3738.   expanding an existing thicknet. A correct (but expensive) solution is
  3739.   to use a repeater in this case.
  3740.  
  3741.   7.  Software Configuration and Card Diagnostics
  3742.  
  3743.   In most cases, if the configuration is done by software, and stored in
  3744.   an EEPROM, you will usually have to boot DOS, and use the supplied DOS
  3745.   program to set the cards IRQ, I/O, mem_addr and whatnot. Besides,
  3746.   hopefully it is something you will only be setting once. If you don't
  3747.   have the DOS software for your card, try looking on the WWW site of
  3748.   your card manufacturer. If you don't know the site name, take a guess
  3749.   at it, i.e. `www.my_vendor.com' where `my_vendor' is the name of your
  3750.   card manufacturer. This works for SMC, 3Com, and many many other
  3751.   manufacturers.
  3752.  
  3753.   There are some cards for which Linux versions of the config utils
  3754.   exist, and they are listed here.  Donald has written a few small card
  3755.   diagnostic programs that run under Linux. Most of these are a result
  3756.   of debugging tools that he has created while writing the various
  3757.   drivers. Don't expect fancy menu-driven interfaces. You will have to
  3758.   read the source code to use most of these. Even if your particular
  3759.   card doesn't have a corresponding diagnostic, you can still get some
  3760.   information just by typing cat /proc/net/dev -- assuming that your
  3761.   card was at least detected at boot.
  3762.  
  3763.   In either case, you will have to run most of these programs as root
  3764.   (to allow I/O to the ports) and you probably want to shut down the
  3765.   ethercard before doing so by typing ifconfig eth0 down (Note: replace
  3766.   eth0 with atp0 or whatever when appropriate.)
  3767.  
  3768.   7.1.  Configuration Programs for Ethernet Cards
  3769.  
  3770.   7.1.1.  WD80x3 Cards
  3771.  
  3772.   For people with wd80x3 cards, there is the program wdsetup which can
  3773.   be found in wdsetup-0.6a.tar.gz on Linux ftp sites.  I am not sure if
  3774.   it is being actively maintained or not, as it has not been updated for
  3775.   quite a while. If it works fine for you then great, if not, use the
  3776.   DOS version that you should have got with your card. If you don't have
  3777.   the DOS version, you will be glad to know that the SMC setup/driver
  3778.   disks are available at SMC's ftp site.  Of course, you have to have an
  3779.   EEPROM card to use this utility.  Old, old wd8003 cards, and some
  3780.   wd8013 clones use jumpers to set up the card instead.
  3781.  
  3782.   7.1.2.  Digital / DEC Cards
  3783.  
  3784.   The Digital EtherWorks 3 card can be configured in a similar fashion
  3785.   to the DOS program NICSETUP.EXE. David C. Davies wrote this and other
  3786.   tools for the EtherWorks 3 in conjunction with the driver. Look on
  3787.   sunsite.unc.edu in the directory /pub/linux/system/Network/management
  3788.   for the file that is named ewrk3tools-X.XX.tar.gz.
  3789.  
  3790.   7.1.3.  NE2000+ or AT/LANTIC Cards
  3791.  
  3792.   Some Nat Semi DP83905 implementations (such as the AT/LANTIC and the
  3793.   NE2000+) are software configurable. (Note that these cards can also
  3794.   emulate a wd8013 card!) You can get the file
  3795.   /pub/linux/setup/atlantic.c from Donald's ftp server,
  3796.   cesdis.gsfc.nasa.gov to configure this card.  In addition, the
  3797.   configuration programs for the Kingston DP83905 cards seem to work
  3798.   with all cards, as they don't check for a vendor specific address
  3799.   before allowing you to use them. Follow the following URL: Kingston
  3800.   Software <http://www.kingston.com/download/etherx/etherx.htm> and get
  3801.   20XX12.EXE and INFOSET.EXE.
  3802.  
  3803.   Be careful when configuring NE2000+ cards, as you can give them bad
  3804.   setting values which can cause problems. A typical example is
  3805.   accidentally enabling the boot ROM in the EEPROM (even if no ROM is
  3806.   installed) to a setting that conflicts with the VGA card. The result
  3807.   is a computer that just beeps at you (AMI beep eight times for VGA
  3808.   failure) when you turn it on and nothing appears on the screen.
  3809.  
  3810.   You can typically recover from this by doing the following: Remove the
  3811.   card from the machine, and then boot and enter the CMOS setup.  Change
  3812.   the `Display Adapter' to `Not Installed' and change the default boot
  3813.   drive to `A:' (your floppy drive).  Also change the `Wait for F1 if
  3814.   any Error' to `Disabled'.  This way, the computer should boot without
  3815.   user intervention.  Now create a bootable DOS floppy (`format a: /s
  3816.   /u') and copy the program default.exe from the 20XX12.EXE archive
  3817.   above onto that floppy. Then type echo default > a:autoexec.bat so
  3818.   that the program to set the card back to sane defaults will be run
  3819.   automatically when you boot from this floppy.  Shut the machine off,
  3820.   re-install the ne2000+ card, insert your new boot floppy, and power it
  3821.   back up. It will still probably beep at you, but eventually you should
  3822.   see the floppy light come on as it boots from the floppy. Wait a
  3823.   minute or two for the floppy to stop, indicating that it has finished
  3824.   running the default.exe program, and then power down your computer.
  3825.   When you then turn it on again, you should hopefully have a working
  3826.   display again, allowing you to change your CMOS settings back, and to
  3827.   change the card's EEPROM settings back to the values you want.
  3828.  
  3829.   Note that if you don't have DOS handy, you can do the whole method
  3830.   above with a linux boot disk that automatically runs Donald's atlantic
  3831.   program (with the right command line switches) instead of a DOS boot
  3832.   disk that automatically runs the default.exe program.
  3833.  
  3834.   7.1.4.  3Com Cards
  3835.  
  3836.   The 3Com Etherlink III family of cards (i.e. 3c5x9) can be configured
  3837.   by using another config utility from Donald.  You can get the file
  3838.   /pub/linux/setup/3c5x9setup.c from Donald's ftp server,
  3839.   cesdis.gsfc.nasa.gov to configure these cards. (Note that the DOS
  3840.   3c5x9B config utility may have more options pertaining to the new
  3841.   ``B'' series of the Etherlink III family.)
  3842.  
  3843.   7.2.  Diagnostic Programs for Ethernet Cards
  3844.  
  3845.   Any of the diagnostic programs that Donald has written can be obtained
  3846.   from this URL.
  3847.  
  3848.   Ethercard Diagnostics
  3849.   <http://cesdis.gsfc.nasa.gov/pub/linux/diag/diagnostic.html>
  3850.  
  3851.   Allied Telesis AT1700 -- look for the file /pub/linux/diag/at1700.c on
  3852.   cesdis.gsfc.nasa.gov.
  3853.  
  3854.   Cabletron E21XX -- look for the file /pub/linux/diag/e21.c on
  3855.   cesdis.gsfc.nasa.gov.
  3856.  
  3857.   HP PCLAN+ -- look for the file /pub/linux/diag/hp+.c on
  3858.   cesdis.gsfc.nasa.gov.
  3859.  
  3860.   Intel EtherExpress -- look for the file /pub/linux/diag/eexpress.c on
  3861.   cesdis.gsfc.nasa.gov.
  3862.  
  3863.   NE2000 cards -- look for the file /pub/linux/diag/ne2k.c on
  3864.   cesdis.gsfc.nasa.gov.
  3865.  
  3866.   RealTek (ATP) Pocket adaptor -- look for the file /pub/linux/diag/atp-
  3867.   diag.c on cesdis.gsfc.nasa.gov.
  3868.  
  3869.   All Other Cards -- try typing cat /proc/net/dev and dmesg to see what
  3870.   useful info the kernel has on the card in question.
  3871.  
  3872.   8.  Technical Information
  3873.  
  3874.   For those who want to play with the present drivers, or try to make up
  3875.   their own driver for a card that is presently unsupported, this
  3876.   information should be useful. If you do not fall into this category,
  3877.   then perhaps you will want to skip this section.
  3878.  
  3879.   8.1.  Probed Addresses
  3880.  
  3881.   While trying to determine what ethernet card is there, the following
  3882.   addresses are autoprobed, assuming the type and specs of the card have
  3883.   not been set in the kernel. The file names below are in
  3884.   /usr/src/linux/drivers/net/
  3885.  
  3886.   ______________________________________________________________________
  3887.           3c501.c         0x280, 0x300
  3888.           3c503.c:        0x300, 0x310, 0x330, 0x350, 0x250, 0x280, 0x2a0, 0x2e0
  3889.           3c505.c:        0x300, 0x280, 0x310
  3890.           3c507.c:        0x300, 0x320, 0x340, 0x280
  3891.           3c509.c:        Special ID Port probe
  3892.           apricot.c       0x300
  3893.           at1700.c:       0x300, 0x280, 0x380, 0x320, 0x340, 0x260, 0x2a0, 0x240
  3894.           atp.c:          0x378, 0x278, 0x3bc
  3895.           depca.c         0x300, 0x200
  3896.           de600.c:        0x378
  3897.           de620.c:        0x378
  3898.           eexpress.c:     0x300, 0x270, 0x320, 0x340
  3899.           hp.c:           0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240
  3900.           hp-plus.c       0x200, 0x240, 0x280, 0x2C0, 0x300, 0x320, 0x340
  3901.           lance.c:        0x300, 0x320, 0x340, 0x360
  3902.           ne.c:           0x300, 0x280, 0x320, 0x340, 0x360
  3903.           ni52.c          0x300, 0x280, 0x360, 0x320, 0x340
  3904.           ni65.c          0x300, 0x320, 0x340, 0x360
  3905.           smc-ultra.c:    0x200, 0x220, 0x240, 0x280, 0x300, 0x340, 0x380
  3906.           wd.c:           0x300, 0x280, 0x380, 0x240
  3907.   ______________________________________________________________________
  3908.  
  3909.   There are some NE2000 clone ethercards out there that are waiting
  3910.   black holes for autoprobe drivers. While many NE2000 clones are safe
  3911.   until they are enabled, some can't be reset to a safe mode.  These
  3912.   dangerous ethercards will hang any I/O access to their `dataports'.
  3913.   The typical dangerous locations are:
  3914.  
  3915.   ______________________________________________________________________
  3916.           Ethercard jumpered base     Dangerous locations (base + 0x10 - 0x1f)
  3917.                   0x300 *                         0x310-0x317
  3918.                   0x320                           0x330-0x337
  3919.                   0x340                           0x350-0x357
  3920.                   0x360                           0x370-0x377
  3921.   ______________________________________________________________________
  3922.  
  3923.   * The 0x300 location is the traditional place to put an ethercard, but
  3924.   it's also a popular place to put other devices (often SCSI
  3925.   controllers). The 0x320 location is often the next one chosen, but
  3926.   that's bad for for the AHA1542 driver probe. The 0x360 location is
  3927.   bad, because it conflicts with the parallel port at 0x378.  If you
  3928.   have two IDE controllers, or two floppy controlers, then 0x360 is also
  3929.   a bad choice, as a NE2000 card will clobber them as well.
  3930.  
  3931.   Note that kernels > 1.1.7X keep a log of who uses which i/o ports, and
  3932.   will not let a driver use i/o ports registered by an earlier driver.
  3933.   This may result in probes silently failing.  You can view who is using
  3934.   what i/o ports by typing cat /proc/ioports if you have the proc
  3935.   filesystem enabled.
  3936.  
  3937.   To avoid these lurking ethercards, here are the things you can do:
  3938.  
  3939.   â•–  Probe for the device's BIOS in memory space. This is easy and
  3940.      always safe, but it only works for cards that always have BIOSes,
  3941.      like primary SCSI controllers.
  3942.  
  3943.   â•–  Avoid probing any of the above locations until you think you've
  3944.      located your device. The NE2000 clones have a reset range from
  3945.      <base>+0x18 to <base>+0x1f that will read as 0xff, so probe there
  3946.      first if possible. It's also safe to probe in the 8390 space at
  3947.      <base>+0x00 - <base>+0x0f, but that area will return quasi-random
  3948.      values
  3949.  
  3950.   â•–  If you must probe in the dangerous range, for instance if your
  3951.      target device has only a few port locations, first check that there
  3952.      isn't an NE2000 there. You can see how to do this by looking at the
  3953.      probe code in /usr/src/linux/net/inet/ne.c
  3954.  
  3955.   â•–  Use the `reserve' boot time argument to protect volatile areas from
  3956.      being probed. See the information on using boot time arguments with
  3957.      LILO in ``The reserve command''
  3958.  
  3959.   8.2.  Writing a Driver
  3960.  
  3961.   The only thing that one needs to use an ethernet card with Linux is
  3962.   the appropriate driver. For this, it is essential that the
  3963.   manufacturer will release the technical programming information to the
  3964.   general public without you (or anyone) having to sign your life away.
  3965.   A good guide for the likelihood of getting documentation (or, if you
  3966.   aren't writing code, the likelihood that someone else will write that
  3967.   driver you really, really need) is the availability of the Crynwr (nee
  3968.   Clarkson) packet driver. Russ Nelson runs this operation, and has been
  3969.   very helpful in supporting the development of drivers for Linux. Net-
  3970.   surfers can try this URL to look up Russ' software.
  3971.  
  3972.   Russ Nelson's Packet Drivers <http://www.crynwr.com/crynwr/home.html>
  3973.  
  3974.   Given the documentation, you can write a driver for your card and use
  3975.   it for Linux (at least in theory).  Keep in mind that some old
  3976.   hardware that was designed for XT type machines will not function very
  3977.   well in a multitasking environment such as Linux. Use of these will
  3978.   lead to major problems if your network sees a reasonable amount of
  3979.   traffic.
  3980.  
  3981.   Most cards come with drivers for MS-DOS interfaces such as NDIS and
  3982.   ODI, but these are useless for Linux. Many people have suggested
  3983.   directly linking them in or automatic translation, but this is nearly
  3984.   impossible. The MS-DOS drivers expect to be in 16 bit mode and hook
  3985.   into `software interrupts', both incompatible with the Linux kernel.
  3986.   This incompatibility is actually a feature, as some Linux drivers are
  3987.   considerably better than their MS-DOS counterparts. The `8390' series
  3988.   drivers, for instance, use ping-pong transmit buffers, which are only
  3989.   now being introduced in the MS-DOS world.
  3990.  
  3991.   (Ping-pong Tx buffers means using at least 2 max-size packet buffers
  3992.   for Tx packets. One is loaded while the card is transmitting the
  3993.   other. The second is then sent as soon as the first finished, and so
  3994.   on. In this way, most cards are able to continuously send back-to-back
  3995.   packets onto the wire.)
  3996.  
  3997.   OK. So you have decided that you want to write a driver for the Foobar
  3998.   Ethernet card, as you have the programming information, and it hasn't
  3999.   been done yet. (...these are the two main requirements ;-) You should
  4000.   start with the skeleton network driver that is provided with the Linux
  4001.   kernel source tree. It can be found in the file
  4002.   /usr/src/linux/drivers/net/skeleton.c in all recent kernels.  Also
  4003.   have a look at the Kernel Hackers Guide, at the following URL: KHG
  4004.   <http://www.redhat.com:8080/HyperNews/get/khg.html>
  4005.  
  4006.   8.3.  Driver interface to the kernel
  4007.  
  4008.   Here are some notes on the functions that you would have to write if
  4009.   creating a new driver. Reading this in conjunction with the above
  4010.   skeleton driver may help clear things up.
  4011.  
  4012.   8.3.1.  Probe
  4013.  
  4014.   Called at boot to check for existence of card. Best if it can check
  4015.   un-obtrsively by reading from memory, etc. Can also read from i/o
  4016.   ports. Initial writing to i/o ports in a probe is not good as it may
  4017.   kill another device.  Some device initialization is usually done here
  4018.   (allocating i/o space, IRQs,filling in the dev->??? fields etc.)  You
  4019.   need to know what io ports/mem the card can be configured to, how to
  4020.   enable shared memory (if used) and how to select/enable interrupt
  4021.   generation, etc.
  4022.  
  4023.   8.3.2.  Interrupt handler
  4024.  
  4025.   Called by the kernel when the card posts an interrupt.  This has the
  4026.   job of determining why the card posted an interrupt, and acting
  4027.   accordingly. Usual interrupt conditions are data to be rec'd, transmit
  4028.   completed, error conditions being reported. You need to know any
  4029.   relevant interrupt status bits so that you can act accordingly.
  4030.  
  4031.   8.3.3.  Transmit function
  4032.  
  4033.   Linked to dev->hard_start_xmit() and is called by the kernel when
  4034.   there is some data that the kernel wants to put out over the device.
  4035.   This puts the data onto the card and triggers the transmit. You need
  4036.   to know how to bundle the data and how to get it onto the card (shared
  4037.   memory copy, PIO transfer, DMA?) and in the right place on the card.
  4038.   Then you need to know how to tell the card to send the data down the
  4039.   wire, and (possibly) post an interrupt when done.  When the hardware
  4040.   can't accept additional packets it should set the dev->tbusy flag.
  4041.   When additional room is available, usually during a transmit-complete
  4042.   interrupt, dev->tbusy should be cleared and the higher levels informed
  4043.   with mark_bh(INET_BH).
  4044.  
  4045.   8.3.4.  Receive function
  4046.  
  4047.   Called by the kernel interrupt handler when the card reports that
  4048.   there is data on the card. It pulls the data off the card, packages it
  4049.   into a sk_buff and lets the kernel know the data is there for it by
  4050.   doing a netif_rx(sk_buff). You need to know how to enable interrupt
  4051.   generation upon Rx of data, how to check any relevant Rx status bits,
  4052.   and how to get that data off the card (again sh mem, PIO, DMA, etc.)
  4053.  
  4054.   8.3.5.  Open function
  4055.  
  4056.   linked to dev->open and called by the networking layers when somebody
  4057.   does ifconfig eth0 up - this puts the device on line and enables it
  4058.   for Rx/Tx of data. Any special initialization incantations that were
  4059.   not done in the probe sequence (enabling IRQ generation, etc.)  would
  4060.   go in here.
  4061.  
  4062.   8.3.6.  Close function (optional)
  4063.  
  4064.   This puts the card in a sane state when someone does ifconfig eth0
  4065.   down.  It should free the IRQs and DMA channels if the hardware
  4066.   permits, and turn off anything that will save power (like the
  4067.   transceiver).
  4068.  
  4069.   8.3.7.  Miscellaneous functions
  4070.  
  4071.   Things like a reset function, so that if things go south, the driver
  4072.   can try resetting the card as a last ditch effort.  Usually done when
  4073.   a Tx times out or similar. Also a function to read the statistics
  4074.   registers of the card if so equipped.
  4075.  
  4076.   8.4.  Interrupts and Linux
  4077.  
  4078.   There are two kinds of interrupt handlers in Linux: fast ones and slow
  4079.   ones. You decide what kind you are installing by the flags you pass to
  4080.   irqaction(). The fast ones, such as the serial interrupt handler, run
  4081.   with _all_ interrupts disabled. The normal interrupt handlers, such as
  4082.   the one for ethercard drivers, runs with other interrupts enabled.
  4083.  
  4084.   There is a two-level interrupt structure. The `fast' part handles the
  4085.   device register, removes the packets, and perhaps sets a flag.  After
  4086.   it is done, and interrupts are re-enabled, the slow part is run if the
  4087.   flag is set.
  4088.  
  4089.   The flag between the two parts is set by:
  4090.  
  4091.        mark_bh(INET_BH);
  4092.  
  4093.   Usually this flag is set within dev_rint() during a received-packet
  4094.   interrupt, and set directly by the device driver during a transmit-
  4095.   complete interrupt.
  4096.  
  4097.   You might wonder why all interrupt handlers cannot run in `normal
  4098.   mode' with other interrupts enabled. Ross Biro uses this scenario to
  4099.   illustrate the problem:
  4100.   â•–  You get a serial interrupt, and start processing it.  The serial
  4101.      interrupt is now masked.
  4102.  
  4103.   â•–  You get a network interrupt, and you start transferring a maximum-
  4104.      sized 1500 byte packet from the card.
  4105.  
  4106.   â•–  Another character comes in, but this time the interrupts are
  4107.      masked!
  4108.  
  4109.   The `fast' interrupt structure solves this problem by allowing
  4110.   bounded-time interrupt handlers to run without the risk of leaving
  4111.   their interrupt lines masked by another interrupt request.
  4112.  
  4113.   There is an additional distinction between fast and slow interrupt
  4114.   handlers -- the arguments passed to the handler. A `slow' handler is
  4115.   defined as
  4116.  
  4117.   ______________________________________________________________________
  4118.  
  4119.                   static void
  4120.                   handle_interrupt(int reg_ptr)
  4121.                   {
  4122.                       int irq = -(((struct pt_regs *)reg_ptr)->orig_eax+2);
  4123.                       struct device *dev = irq2dev_map[irq];
  4124.                   ...
  4125.   ______________________________________________________________________
  4126.  
  4127.   While a fast handler gets the interrupt number directly
  4128.  
  4129.   ______________________________________________________________________
  4130.  
  4131.                   static void
  4132.                   handle_fast_interrupt(int irq)
  4133.                   {
  4134.                   ...
  4135.   ______________________________________________________________________
  4136.  
  4137.   A final aspect of network performance is latency. The only board that
  4138.   really addresses this is the 3c509, which allows a predictive
  4139.   interrupt to be posted. It provides an interrupt response timer so
  4140.   that the driver can fine-tune how early an interrupt is generated.
  4141.  
  4142.   8.5.  Programming the Intel chips (i82586 and i82593)
  4143.  
  4144.   These chips are used on a number of cards, namely the 3c507 ('86), the
  4145.   Intel EtherExpress 16 ('86), Microdyne's exos205t ('86), the Z-Note
  4146.   ('93), and the Racal-Interlan ni5210 ('86).
  4147.  
  4148.   Russ Nelson writes: `Most boards based on the 82586 can reuse quite a
  4149.   bit of their code.  More, in fact, than the 8390-based adapters. There
  4150.   are only three differences between them:
  4151.  
  4152.   â•–  The code to get the Ethernet address,
  4153.  
  4154.   â•–  The code to trigger CA on the 82586, and
  4155.  
  4156.   â•–  The code to reset the 82586.
  4157.  
  4158.   The Intel EtherExpress 16 is an exception, as it I/O maps the 82586.
  4159.   Yes, I/O maps it. Fairly clunky, but it works.
  4160.  
  4161.   Garrett Wollman did an AT&T driver for BSD that uses the BSD
  4162.   copyright. The latest version I have (Sep '92) only uses a single
  4163.   transmit buffer. You can and should do better than this if you've got
  4164.   the memory. The AT&T and 3c507 adapters do; the ni5210 doesn't.
  4165.  
  4166.   The people at Intel gave me a very big clue on how you queue up
  4167.   multiple transmit packets. You set up a list of NOP-> XMIT-> NOP->
  4168.   XMIT-> NOP-> XMIT-> beginning) blocks, then you set the `next' pointer
  4169.   of all the NOP blocks to themselves. Now you start the command unit on
  4170.   this chain. It continually processes the first NOP block. To transmit
  4171.   a packet, you stuff it into the next transmit block, then point the
  4172.   NOP to it. To transmit the next packet, you stuff the next transmit
  4173.   block and point the previous NOP to it. In this way, you don't have to
  4174.   wait for the previous transmit to finish, you can queue up multiple
  4175.   packets without any ambiguity as to whether it got accepted, and you
  4176.   can avoid the command unit start-up delay.'
  4177.  
  4178.   8.6.  Technical information from 3Com
  4179.  
  4180.   If you are interested in working on drivers for 3Com cards, you can
  4181.   get technical documentation from 3Com. Cameron has been kind enough to
  4182.   tell us how to go about it below:
  4183.  
  4184.   3Com's Ethernet Adapters are documented for driver writers in our
  4185.   `Technical References' (TRs). These manuals describe the programmer
  4186.   interfaces to the boards but they don't talk about the diagnostics,
  4187.   installation programs, etc that end users can see.
  4188.  
  4189.   The Network Adapter Division marketing department has the TRs to give
  4190.   away. To keep this program efficient, we centralized it in a thing
  4191.   called `CardFacts.' CardFacts is an automated phone system. You call
  4192.   it with a touch-tone phone and it faxes you stuff. To get a TR, call
  4193.   CardFacts at 408-727-7021. Ask it for Developer's Order Form, document
  4194.   number 9070. Have your fax number ready when you call. Fill out the
  4195.   order form and fax it to 408-764-5004.  Manuals are shipped by Federal
  4196.   Express 2nd Day Service.
  4197.  
  4198.   After you get a manual, if you still can't figure out how to program
  4199.   the board, try our `CardBoard' BBS at 1-800-876-3266, and if you can't
  4200.   do that, write Andy_Chan@3Mail.3com.com and ask him for alternatives.
  4201.   If you have a real stumper that nobody has figured out yet, the fellow
  4202.   who needs to know about it is Steve_Lebus@3Mail.3com.com.
  4203.  
  4204.   There are people here who think we are too free with the manuals, and
  4205.   they are looking for evidence that the system is too expensive, or
  4206.   takes too much time and effort. That's why it's important to try to
  4207.   use CardFacts before you start calling and mailing the people I named
  4208.   here.
  4209.  
  4210.   There are even people who think we should be like Diamond and Xircom,
  4211.   requiring tight `partnership' with driver writers to prevent poorly
  4212.   performing drivers from getting written. So far, 3Com customers have
  4213.   been really good about this, and there's no problem with the level of
  4214.   requests we've been getting. We need your continued cooperation and
  4215.   restraint to keep it that way.
  4216.  
  4217.           Cameron Spitzer, 408-764-6339
  4218.           3Com NAD
  4219.           Santa Clara
  4220.           work: camerons@nad.3com.com
  4221.           home: cls@truffula.sj.ca.us
  4222.  
  4223.   8.7.  Notes on AMD PCnet / LANCE Based cards
  4224.  
  4225.   The AMD LANCE (Local Area Network Controller for Ethernet) was the
  4226.   original offering, and has since been replaced by the `PCnet-ISA'
  4227.   chip, otherwise known as the 79C960.  A relatively new chip from AMD,
  4228.   the 79C960, is the heart of many new cards being released at present.
  4229.   Note that the name `LANCE' has stuck, and some people will refer to
  4230.   the new chip by the old name. Dave Roberts of the Network Products
  4231.   Division of AMD was kind enough to contribute the following
  4232.   information regarding this chip:
  4233.  
  4234.   `As for the architecture itself, AMD developed it originally and
  4235.   reduced it to a single chip -- the PCnet(tm)-ISA -- over a year ago.
  4236.   It's been selling like hotcakes ever since.
  4237.  
  4238.   Functionally, it is equivalent to a NE1500. The register set is
  4239.   identical to the old LANCE with the 1500/2100 architecture additions.
  4240.   Older 1500/2100 drivers will work on the PCnet-ISA.  The NE1500 and
  4241.   NE2100 architecture is basically the same.  Initially Novell called it
  4242.   the 2100, but then tried to distinguish between coax and 10BASE-T
  4243.   cards. Anything that was 10BASE-T only was to be numbered in the 1500
  4244.   range. That's the only difference.
  4245.  
  4246.   Many companies offer PCnet-ISA based products, including HP, Racal-
  4247.   Datacom, Allied Telesis, Boca Research, Kingston Technology, etc.  The
  4248.   cards are basically the same except that some manufacturers have added
  4249.   `jumperless' features that allow the card to be configured in
  4250.   software. Most have not. AMD offers a standard design package for a
  4251.   card that uses the PCnet-ISA and many manufacturers use our design
  4252.   without change.  What this means is that anybody who wants to write
  4253.   drivers for most PCnet-ISA based cards can just get the data-sheet
  4254.   from AMD. Call our literature distribution center at (800)222-9323 and
  4255.   ask for the Am79C960, PCnet-ISA data sheet. It's free.
  4256.  
  4257.   A quick way to understand whether the card is a `stock' card is to
  4258.   just look at it. If it's stock, it should just have one large chip on
  4259.   it, a crystal, a small IEEE address PROM, possibly a socket for a boot
  4260.   ROM, and a connector (1, 2, or 3, depending on the media options
  4261.   offered). Note that if it's a coax card, it will have some transceiver
  4262.   stuff built onto it as well, but that should be near the connector and
  4263.   away from the PCnet-ISA.'
  4264.  
  4265.   There is also some info regarding the LANCE chip in the file lance.c
  4266.   which is included in the standard kernel.
  4267.  
  4268.   A note to would-be card hackers is that different LANCE
  4269.   implementations do `restart' in different ways. Some pick up where
  4270.   they left off in the ring, and others start right from the beginning
  4271.   of the ring, as if just initialised. This is a concern when setting
  4272.   the multicast list.
  4273.  
  4274.   8.8.  Multicast and Promiscuous Mode
  4275.  
  4276.   Another one of the things Donald has worked on is implementing
  4277.   multicast and promiscuous mode hooks.  All of the released (i.e. not
  4278.   ALPHA) ISA drivers now support promiscuous mode.
  4279.  
  4280.   Donald writes: `At first I was planning to do it while implementing
  4281.   either the /dev/* or DDI interface, but that's not really the correct
  4282.   way to do it. We should only enable multicast or promiscuous modes
  4283.   when something wants to look at the packets, and shut it down when
  4284.   that application is finished, neither of which is strongly related to
  4285.   when the hardware is opened or released.
  4286.  
  4287.   I'll start by discussing promiscuous mode, which is conceptually easy
  4288.   to implement. For most hardware you only have to set a register bit,
  4289.   and from then on you get every packet on the wire. Well, it's almost
  4290.   that easy; for some hardware you have to shut the board (potentially
  4291.   dropping a few packet), reconfigure it, and then re-enable the
  4292.   ethercard. This is grungy and risky, but the alternative seems to be
  4293.   to have every application register before you open the ethercard at
  4294.   boot-time.
  4295.  
  4296.   OK, so that's easy, so I'll move on something that's not quite so
  4297.   obvious: Multicast. It can be done two ways:
  4298.  
  4299.   1. Use promiscuous mode, and a packet filter like the Berkeley packet
  4300.      filter (BPF). The BPF is a pattern matching stack language, where
  4301.      you write a program that picks out the addresses you are interested
  4302.      in. Its advantage is that it's very general and programmable. Its
  4303.      disadvantage is that there is no general way for the kernel to
  4304.      avoid turning on promiscuous mode and running every packet on the
  4305.      wire through every registered packet filter. See ``The Berkeley
  4306.      Packet Filter'' for more info.
  4307.  
  4308.   2. Using the built-in multicast filter that most etherchips have.
  4309.  
  4310.   I guess I should list what a few ethercards/chips provide:
  4311.  
  4312.           Chip/card  Promiscuous  Multicast filter
  4313.           ----------------------------------------
  4314.           Seeq8001/3c501  Yes     Binary filter (1)
  4315.           3Com/3c509      Yes     Binary filter (1)
  4316.           8390            Yes     Autodin II six bit hash (2) (3)
  4317.           LANCE           Yes     Autodin II six bit hash (2) (3)
  4318.           i82586          Yes     Hidden Autodin II six bit hash (2) (4)
  4319.  
  4320.   1. These cards claim to have a filter, but it's a simple yes/no
  4321.      `accept all multicast packets', or `accept no multicast packets'.
  4322.  
  4323.   2. AUTODIN II is the standard ethernet CRC (checksum) polynomial. In
  4324.      this scheme multicast addresses are hashed and looked up in a hash
  4325.      table. If the corresponding bit is enabled, this packet is
  4326.      accepted. Ethernet packets are laid out so that the hardware to do
  4327.      this is trivial -- you just latch six (usually) bits from the CRC
  4328.      circuit (needed anyway for error checking) after the first six
  4329.      octets (the destination address), and use them as an index into the
  4330.      hash table (six bits -- a 64-bit table).
  4331.   3. These chips use the six bit hash, and must have the table computed
  4332.      and loaded by the host. This means the kernel must include the CRC
  4333.      code.
  4334.  
  4335.   4. The 82586 uses the six bit hash internally, but it computes the
  4336.      hash table itself from a list of multicast addresses to accept.
  4337.  
  4338.   Note that none of these chips do perfect filtering, and we still need
  4339.   a middle-level module to do the final filtering. Also note that in
  4340.   every case we must keep a complete list of accepted multicast
  4341.   addresses to recompute the hash table when it changes.
  4342.  
  4343.   My first pass at device-level support is detailed in the outline
  4344.   driver skeleton.c
  4345.  
  4346.   It looks like the following:
  4347.  
  4348.   ______________________________________________________________________
  4349.           #ifdef HAVE_MULTICAST
  4350.           static void set_multicast_list(struct device *dev, int num_addrs,
  4351.                            void *addrs);
  4352.           #endif
  4353.           .
  4354.           .
  4355.  
  4356.           ethercard_open() {
  4357.           ...
  4358.           #ifdef HAVE_MULTICAST
  4359.                   dev->set_multicast_list = &set_multicast_list;
  4360.           #endif
  4361.           ...
  4362.  
  4363.           #ifdef HAVE_MULTICAST
  4364.           /* Set or clear the multicast filter for this adaptor.
  4365.              num_addrs -- -1      Promiscuous mode, receive all packets
  4366.              num_addrs -- 0       Normal mode, clear multicast list
  4367.              num_addrs > 0        Multicast mode, receive normal and
  4368.                   MC packets, and do best-effort filtering.
  4369.            */
  4370.           static void
  4371.           set_multicast_list(struct device *dev, int num_addrs, void *addrs)
  4372.           {
  4373.           ...
  4374.   ______________________________________________________________________
  4375.  
  4376.   Any comments, criticism, etc. are welcome.'
  4377.  
  4378.   8.9.  The Berkeley Packet Filter (BPF)
  4379.  
  4380.   The general idea of the developers is that the BPF functionality
  4381.   should not be provided by the kernel, but should be in a (hopefully
  4382.   little-used) compatibility library.
  4383.  
  4384.   For those not in the know: BPF (the Berkeley Packet Filter) is an
  4385.   mechanism for specifying to the kernel networking layers what packets
  4386.   you are interested in. It's implemented as a specialized stack
  4387.   language interpreter built into a low level of the networking code. An
  4388.   application passes a program written in this language to the kernel,
  4389.   and the kernel runs the program on each incoming packet. If the kernel
  4390.   has multiple BPF applications, each program is run on each packet.
  4391.   The problem is that it's difficult to deduce what kind of packets the
  4392.   application is really interested in from the packet filter program, so
  4393.   the general solution is to always run the filter. Imagine a program
  4394.   that registers a BPF program to pick up a low data-rate stream sent to
  4395.   a multicast address.  Most ethernet cards have a hardware multicast
  4396.   address filter implemented as a 64 entry hash table that ignores most
  4397.   unwanted multicast packets, so the capability exists to make this a
  4398.   very inexpensive operation. But with the BFP the kernel must switch
  4399.   the interface to promiscuous mode, receive _all_ packets, and run them
  4400.   through this filter. This is work, BTW, that's very difficult to
  4401.   account back to the process requesting the packets.
  4402.  
  4403.   9.  Networking with a Laptop/Notebook Computer
  4404.  
  4405.   There are currently only a few ways to put your laptop on a network.
  4406.   You can use the SLIP code (and run at serial line speeds); you can buy
  4407.   one of the few laptops that come with a NE2000-compatible ethercard;
  4408.   you can get a notebook with a supported PCMCIA slot built-in; you can
  4409.   get a laptop with a docking station and plug in an ISA ethercard; or
  4410.   you can use a parallel port Ethernet adapter such as the D-Link
  4411.   DE-600.
  4412.  
  4413.   9.1.  Using SLIP
  4414.  
  4415.   This is the cheapest solution, but by far the most difficult. Also,
  4416.   you will not get very high transmission rates. Since SLIP is not
  4417.   really related to ethernet cards, it will not be discussed further
  4418.   here. See the NET-2 Howto.
  4419.  
  4420.   9.2.  Built in NE2000
  4421.  
  4422.   This solution severely limits your laptop choices and is fairly
  4423.   expensive. Be sure to read the specifications carefully, as you may
  4424.   find that you will have to buy an additional non-standard transceiver
  4425.   to actually put the machine on a network. A good idea might be to boot
  4426.   the notebook with a kernel that has ne2000 support, and make sure it
  4427.   gets detected and works before you lay down your cash.
  4428.  
  4429.   9.3.  PCMCIA Support
  4430.  
  4431.   As this area of Linux development is fairly young, I'd suggest that
  4432.   you join the LAPTOPS mailing channel. See ``Mailing lists...''  which
  4433.   describes how to join a mailing list channel.
  4434.  
  4435.   Try and determine exactly what hardware you have (ie. card
  4436.   manufacturer, PCMCIA chip controller manufacturer) and then ask on the
  4437.   LAPTOPS channel. Regardless, don't expect things to be all that
  4438.   simple.  Expect to have to fiddle around a bit, and patch kernels,
  4439.   etc.  Maybe someday you will be able to type `make config' 8-)
  4440.  
  4441.   At present, the two PCMCIA chipsets that are supported are the
  4442.   Databook TCIC/2 and the intel i82365.
  4443.  
  4444.   There is a number of programs on tsx-11.mit.edu in
  4445.   /pub/linux/packages/laptops/ that you may find useful. These range
  4446.   from PCMCIA Ethercard drivers to programs that communicate with the
  4447.   PCMCIA controller chip. Note that these drivers are usually tied to a
  4448.   specific PCMCIA chip (ie. the intel 82365 or the TCIC/2)
  4449.  
  4450.   For NE2000 compatible cards, some people have had success with just
  4451.   configuring the card under DOS, and then booting linux from the DOS
  4452.   command prompt via loadlin.
  4453.  
  4454.   For those that are net-surfing you can try:
  4455.  
  4456.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  4457.  
  4458.   Anyway, the PCMCIA driver problem isn't specific to the Linux world.
  4459.   It's been a real disaster in the MS-DOS world. In that world people
  4460.   expect the hardware to work if they just follow the manual.  They
  4461.   might not expect it to interoperate with any other hardware or
  4462.   software, or operate optimally, but they do expect that the software
  4463.   shipped with the product will function. Many PCMCIA adaptors don't
  4464.   even pass this test.
  4465.  
  4466.   Things are looking up for Linux users that want PCMCIA support, as
  4467.   substantial progress is being made. Pioneering this effort is David
  4468.   Hinds. His latest PCMCIA support package can be obtained from cb-
  4469.   iris.stanford.edu in the directory /pub/pcmcia/. Look for a file like
  4470.   pcmcia-cs-X.Y.Z.tgz where X.Y.Z will be the latest version number.
  4471.   This is most likely uploaded to tsx-11.mit.edu as well.
  4472.  
  4473.   Note that Donald's PCMCIA enabler works as a user-level process, and
  4474.   David Hinds' is a kernel-level solution.  You may be best served by
  4475.   David's package as it is much more widely used.
  4476.  
  4477.   9.4.  ISA Ethercard in the Docking Station.
  4478.  
  4479.   Docking stations for laptops typically cost about $250 and provide two
  4480.   full-size ISA slots, two serial and one parallel port. Most docking
  4481.   stations are powered off of the laptop's batteries, and a few allow
  4482.   adding extra batteries in the docking station if you use short ISA
  4483.   cards. You can add an inexpensive ethercard and enjoy full-speed
  4484.   ethernet performance.
  4485.  
  4486.   9.5.  Pocket / parallel port adaptors.
  4487.  
  4488.   The `pocket' ethernet adaptors may also fit your need.  Until recently
  4489.   they actually costed more than a docking station and cheap ethercard,
  4490.   and most tie you down with a wall-brick power supply.  At present, you
  4491.   can choose from the D-Link, or the RealTek adaptor.  Most other
  4492.   companies, especially Xircom, (see ``Xircom'') treat the programming
  4493.   information as a trade secret, so support will likely be slow in
  4494.   coming. (if ever!)
  4495.  
  4496.   Note that the transfer speed will not be all that great (perhaps
  4497.   100kB/s tops?) due to the limitations of the parallel port interface.
  4498.  
  4499.   See ``DE-600 / DE-620'' and ``RealTek'' for supported pocket adaptors.
  4500.  
  4501.   You can sometimes avoid the wall-brick with the adaptors by buying or
  4502.   making a cable that draws power from the laptop's keyboard port. (See
  4503.   ``keyboard power'')
  4504.  
  4505.   10.  Miscellaneous.
  4506.  
  4507.   Any other associated stuff that didn't fit in anywhere else gets
  4508.   dumped here. It may not be relevant, and it may not be of general
  4509.   interest but it is here anyway.
  4510.  
  4511.   10.1.  Passing Ethernet Arguments to the Kernel
  4512.  
  4513.   Here are two generic kernel commands  that can be passed to the kernel
  4514.   at boot time. This can be done with LILO, loadlin, or any other
  4515.   booting utility that accepts optional arguments.
  4516.  
  4517.   For example, if the command was `blah' and it expected 3 arguments
  4518.   (say 123, 456, and 789) then, with LILO, you would use:
  4519.  
  4520.   LILO: linux blah=123,456,789
  4521.  
  4522.   Note: PCI cards have their i/o and IRQ assigned by the BIOS at boot.
  4523.   This means that any boot time arguments for a PCI card's IRQ or i/o
  4524.   ports are usually ignored.
  4525.  
  4526.   For more information on (and a complete list of) boot time arguments,
  4527.   please see the BootPrompt-HOWTO
  4528.   <http://sunsite.unc.edu/mdw/HOWTO/BootPrompt-HOWTO.html>
  4529.  
  4530.   10.1.1.  The ether command
  4531.  
  4532.   In its most generic form, it looks something like this:
  4533.  
  4534.        ether=IRQ,BASE_ADDR,PARAM_1,PARAM_2,NAME
  4535.  
  4536.   All arguments are optional.  The first non-numeric argument is taken
  4537.   as the NAME.
  4538.  
  4539.   IRQ: Obvious.  An IRQ value of `0' (usually the default) means to
  4540.   autoIRQ.  It's a historical accident that the IRQ setting is first
  4541.   rather than the base_addr -- this will be fixed whenever something
  4542.   else changes.
  4543.  
  4544.   BASE_ADDR: Also obvious.  A value of `0' (usually the default) means
  4545.   to probe a card-type-specific address list for an ethercard.
  4546.  
  4547.   PARAM_1: It was orginally used as an override value for the memory
  4548.   start for a shared-memory ethercard, like the WD80*3.  Some drivers
  4549.   use the low four bits of this value to set the debug message level.  0
  4550.   -- default, 1-7 -- level 1..7, (7 is maximum verbosity)  8 -- level 0
  4551.   (no messages). Also, the LANCE driver uses the low four bits of this
  4552.   value to select the DMA channel.  Otherwise it uses auto-DMA.
  4553.  
  4554.   PARAM_2: The 3c503 driver uses this to select between the internal and
  4555.   external transceivers.  0 -- default/internal, 1 -- AUI external.  The
  4556.   Cabletron E21XX card also uses the low 4 bits of PARAM_2 to select the
  4557.   output media. Otherwise it detects automatically.
  4558.  
  4559.   NAME: Selects the network device the values refer to.  The standard
  4560.   kernel uses the names `eth0', `eth1', `eth2' and `eth3' for bus-
  4561.   attached ethercards, and `atp0' for the parallel port `pocket'
  4562.   ethernet adaptor. The arcnet driver uses `arc0' as its name.  The
  4563.   default setting is for a single ethercard to be probed for as `eth0'.
  4564.   Multiple cards can only be enabled by explicitly setting up their base
  4565.   address using these LILO parameters.  The 1.0 kernel has LANCE-based
  4566.   ethercards as a special case.  LILO arguments are ignored, and LANCE
  4567.   cards are always assigned `eth<n>' names starting at `eth0'.
  4568.   Additional non-LANCE ethercards must be explicitly assigned to
  4569.   `eth<n+1>', and the usual `eth0' probe disabled with something like
  4570.   `ether=0,-1,eth0'.  ( Yes, this is bug. )
  4571.  
  4572.   10.1.2.  The reserve command
  4573.  
  4574.   This next lilo command is used just like `ether=' above, ie. it is
  4575.   appended to the name of the boot select specified in lilo.conf
  4576.  
  4577.        reserve=IO-base,extent{,IO-base,extent...}
  4578.  
  4579.   In some machines it may be necessary to prevent device drivers from
  4580.   checking for devices (auto-probing) in a specific region. This may be
  4581.   because of poorly designed hardware that causes the boot to freeze
  4582.   (such as some ethercards), hardware that is mistakenly identified,
  4583.   hardware whose state is changed by an earlier probe, or merely
  4584.   hardware you don't want the kernel to initialize.
  4585.  
  4586.   The reserve boot-time argument addresses this problem by specifying an
  4587.   I/O port region that shouldn't be probed. That region is reserved in
  4588.   the kernel's port registration table as if a device has already been
  4589.   found in that region. Note that this mechanism shouldn't be necessary
  4590.   on most machines. Only when there is a problem or special case would
  4591.   it be necessary to use this.
  4592.  
  4593.   The I/O ports in the specified region are protected against device
  4594.   probes. This was put in to be used when some driver was hanging on a
  4595.   NE2000, or misidentifying some other device as its own.  A correct
  4596.   device driver shouldn't probe a reserved region, unless another boot
  4597.   argument explicitly specifies that it do so.  This implies that
  4598.   reserve will most often be used with some other boot argument. Hence
  4599.   if you specify a reserve region to protect a specific device, you must
  4600.   generally specify an explicit probe for that device. Most drivers
  4601.   ignore the port registration table if they are given an explicit
  4602.   address.
  4603.  
  4604.   For example, the boot line
  4605.  
  4606.        LILO: linux  reserve=0x300,32  ether=0,0x300,eth0
  4607.  
  4608.   keeps all device drivers except the ethercard drivers from probing
  4609.   0x300-0x31f.
  4610.  
  4611.   As usual with boot-time specifiers there is an 11 parameter limit,
  4612.   thus you can only specify 5 reserved regions per reserve keyword.
  4613.   Multiple reserve specifiers will work if you have an unusually
  4614.   complicated request.
  4615.  
  4616.   10.2.  Using the Ethernet Drivers as Modules
  4617.  
  4618.   See the insmod(8) manual page for information on passing arguments to
  4619.   the module as it is being loaded.  The command lsmod will show you
  4620.   what modules are loaded, and rmmod will remove them.
  4621.  
  4622.   At present, all the modules are put in the subdirectory modules in
  4623.   your Linux kernel source tree (usually in the form of symbolic links).
  4624.   To actually generate the modules, you have to type make modules after
  4625.   you have finished building the kernel proper. Earlier kernels built
  4626.   them automatically, which wasn't fair to those compiling on 4MB
  4627.   386sx-16 machines.
  4628.  
  4629.   Most modules accept parameters like io=0x340 and irq=12 on the insmod
  4630.   command line. It is STRONGLY ADVISED that you supply these parameters
  4631.   to avoid probing for the card. Unlike PCI and EISA devices, there is
  4632.   no real safe way to do auto-probing for ISA devices, and so it should
  4633.   be avoided when using drivers as modules.
  4634.  
  4635.   A list of all the parameters that each module accepts can be found in
  4636.   the file:
  4637.  
  4638.   /usr/src/linux/Documentation/networking/net-modules.txt
  4639.  
  4640.   It is recommended that you read that to find out what options you can
  4641.   use for your particular card.
  4642.  
  4643.   Once you have figured out the arguments/options you are going to use,
  4644.   you can insert the module by typing as root:
  4645.  
  4646.   ______________________________________________________________________
  4647.           insmod mod_name.o [io=val1[,val2,...]] [irq=val7[,val8,...]]
  4648.   ______________________________________________________________________
  4649.  
  4650.   The comma separated value lists are used for modules that have the
  4651.   capability to handle multiple devices from a single module, such as
  4652.   all the 8390 drivers, and the PLIP driver.
  4653.  
  4654.   Once a module is inserted, then you can use it just like normal, and
  4655.   give ifconfig commands. If you set up your networking at boot, then
  4656.   make sure your /etc/rc* files run the insmod command(s) before getting
  4657.   to the ifconfig command.
  4658.  
  4659.   Also note that a busy module can't be removed. That means that you
  4660.   will have to ifconfig eth0 down  (shut down the ethernet card) before
  4661.   you can remove the module(s).
  4662.  
  4663.   10.2.1.  8390 Based Cards as Modules
  4664.  
  4665.   The present list of 8390 based drivers is: 3c503, ac3200, e2100, hp,
  4666.   hp-plus, ne, smc-ultra and wd. These cards were not supported as
  4667.   modules for kernel versions prior to 1.3.42.  (This does not include
  4668.   some of the separately distributed PCMCIA drivers (e.g. de-650) that
  4669.   are also 8390 based, that have had module support for quite some time
  4670.   now.)
  4671.  
  4672.   If you have an 8390 based card, you may have to insert two modules,
  4673.   8390.o and then the module for your card.  If 8390 support has been
  4674.   built into your kernel, then you will not need to insert the 8390
  4675.   module. (8390 support is built in whenever an 8390 based card is
  4676.   selected to be built into the kernel.) Doing a cat /proc/ksyms | grep
  4677.   8390 will tell you if 8390 support is in your kernel.
  4678.  
  4679.   For an 8390 based card, you will have to remove the card module before
  4680.   removing the 8390 module, as the 8390 module is used by the card
  4681.   module, and thus marked as busy.
  4682.  
  4683.   The 8390 series of network drivers now support multiple card systems
  4684.   without reloading the same module multiple times (memory efficient!)
  4685.   This is done by specifying multiple comma separated values, such as:
  4686.  
  4687.   ______________________________________________________________________
  4688.           insmod 3c503.o io=0x280,0x300,0x330,0x350 xcvr=0,1,0,1
  4689.   ______________________________________________________________________
  4690.  
  4691.   The above would have the one module controlling four 3c503 cards, with
  4692.   card 2 and 4 using external transcievers.
  4693.  
  4694.   It is *STRONGLY RECOMMENDED* that you supply "io=" instead of
  4695.   autoprobing.  If an "io=" argument is not supplied, then the ISA 8390
  4696.   drivers will complain about autoprobing being not recommended, and
  4697.   begrudgingly autoprobe for a *SINGLE CARD ONLY* -- if you want to use
  4698.   multiple cards you *have* to supply an "io=0xNNN,0xQQQ,..." argument.
  4699.  
  4700.   The ne module is an exception to the above. A NE2000 is essentially an
  4701.   8390 chip, some bus glue and some RAM.  Because of this, the ne probe
  4702.   is more invasive than the rest, and so at boot we make sure the ne
  4703.   probe is done last of all the 8390 cards (so that it won't trip over
  4704.   other 8390 based cards) With modules we can't ensure that all other
  4705.   non-ne 8390 cards have already been found. Because of this, the ne
  4706.   module REQUIRES an io=0xNNN argument passed in via insmod. It will
  4707.   refuse to autoprobe.
  4708.  
  4709.   It is also worth noting that auto-IRQ probably isn't as reliable
  4710.   during the flurry of interrupt activity on a running machine. Cards
  4711.   such as the ne2000 that can't get the IRQ setting from an EEPROM or
  4712.   configuration register are probably best supplied with an irq=M
  4713.   argument as well. The file
  4714.  
  4715.   /usr/src/linux/Documentation/networking/net-modules.txt
  4716.  
  4717.   also lists how the interrupt settings are determined for the various
  4718.   cards if an irq=N value is not given.
  4719.  
  4720.   10.3.  Mailing Lists and the Linux Newsgroups
  4721.  
  4722.   If you have questions about your ethernet card, please READ this
  4723.   document first. You may also want to join the NET channel of the Linux
  4724.   mailing lists by sending mail to majordomo@vger.rutgers.edu to get
  4725.   help with what lists are available, and how to join them.
  4726.  
  4727.   Furthermore keep in mind that the NET channel is for development
  4728.   discussions only. General questions on how to configure your system
  4729.   should be directed to comp.os.linux.setup unless you are actively
  4730.   involved in the development of part of the networking for Linux.  We
  4731.   ask that you please respect this general guideline for content.
  4732.  
  4733.   Also, the news groups comp.sys.ibm.pc.hardware.networking and
  4734.   comp.dcom.lans.ethernet should be used for questions that are not
  4735.   Linux specific.
  4736.  
  4737.   10.4.  Related Documentation
  4738.  
  4739.   Much of this info came from saved postings from the comp.os.linux
  4740.   groups, which shows that it is a valuable resource of information.
  4741.   Other useful information came from a bunch of small files by Donald
  4742.   himself. Of course, if you are setting up an Ethernet card, then you
  4743.   will want to read the NET-2 Howto so that you can actually configure
  4744.   the software you will use.  Also, if you fancy yourself as a bit of a
  4745.   hacker, you can always scrounge some additional info from the driver
  4746.   source files as well. There is usually a paragraph or two in there
  4747.   describing any important points before any actual code starts..
  4748.  
  4749.   For those looking for information that is not specific in any way to
  4750.   Linux (i.e. what is 10BaseT, what is AUI, what does a hub do, etc.)  I
  4751.   strongly recommend the Ethernet-FAQ  that is posted regularly to the
  4752.   newsgroup comp.dcom.lans.ethernet.  You can grab it from RTFM which
  4753.   holds all the newsgroup FAQs at the following URL:
  4754.  
  4755.   Usenet FAQs <ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/>
  4756.  
  4757.   You can also have a look at the `Ethernet-HomePage' so to speak, which
  4758.   is at the following URL:
  4759.  
  4760.   Ethernet-HomePage <http://wwwhost.ots.utexas.edu/ethernet/ethernet-
  4761.   home.html>
  4762.  
  4763.   10.5.  Contributors
  4764.  
  4765.   Other people who have contributed (directly or indirectly) to the
  4766.   Ethernet-Howto are, in alphabetical order:
  4767.  
  4768.           Ross Biro               <bir7@leland.stanford.edu>
  4769.           Alan Cox                <iialan@www.linux.org.uk>
  4770.           David C. Davies         <davies@wanton.enet.dec.com>
  4771.           Bjorn Ekwall            <bj0rn@blox.se>
  4772.           David Hinds             <dhinds@allegro.stanford.edu>
  4773.           Michael Hipp            <mhipp@student.uni-tuebingen.de>
  4774.           Mike Jagdis             <jaggy@purplet.demon.co.uk>
  4775.           Duke Kamstra            <kamstra@ccmail.west.smc.com>
  4776.           Russell Nelson          <nelson@crynwr.com>
  4777.           Cameron Spitzer         <camerons@NAD.3Com.com>
  4778.           Dave Roberts            <david.roberts@amd.com>
  4779.           Glenn Talbott           <gt@hprnd.rose.hp.com>
  4780.  
  4781.   Many thanks to the above people, and all the other unmentioned testers
  4782.   out there.
  4783.  
  4784.   10.6.  Disclaimer and Copyright
  4785.  
  4786.   This document is not gospel. However, it is probably the most up to
  4787.   date info that you will be able to find. Nobody is responsible for
  4788.   what happens to your hardware but yourself. If your ethercard or any
  4789.   other hardware goes up in smoke (...nearly impossible!)  we take no
  4790.   responsibility. ie. THE AUTHORS ARE NOT RESPONSIBLE FOR ANY DAMAGES
  4791.   INCURRED DUE TO ACTIONS TAKEN BASED ON THE INFORMATION INCLUDED IN
  4792.   THIS DOCUMENT.
  4793.  
  4794.   This document is Copyright (c) 1993, 1994, 1995 1996 by Donald Becker
  4795.   and Paul Gortmaker. Permission is granted to make and distribute
  4796.   verbatim copies of this manual provided the copyright notice and this
  4797.   permission notice are preserved on all copies.
  4798.  
  4799.   Permission is granted to copy and distribute modified versions of this
  4800.   document under the conditions for verbatim copying, provided that this
  4801.   copyright notice is included exactly as in the original, and that the
  4802.   entire resulting derived work is distributed under the terms of a
  4803.   permission notice identical to this one.
  4804.  
  4805.   Permission is granted to copy and distribute translations of this
  4806.   document into another language, under the above conditions for
  4807.   modified versions.
  4808.  
  4809.   If you are intending to incorporate this document into a published
  4810.   work, please contact me, and I will make an effort to ensure that you
  4811.   have the most up to date information available. In the past, out of
  4812.   date versions of the Linux howto documents have been published, which
  4813.   caused the developers undue grief from being plagued with questions
  4814.   that were already answered in the up to date versions.
  4815.  
  4816.   10.7.  Closing
  4817.  
  4818.   If you have found any glaring typos, or outdated info in this
  4819.   document, please let one of us know. It's getting big, and it is easy
  4820.   to overlook stuff.
  4821.  
  4822.   Thanks,
  4823.  
  4824.   Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  4825.  
  4826.   Donald J. Becker, becker@cesdis.gsfc.nasa.gov
  4827.  
  4828.