home *** CD-ROM | disk | FTP | other *** search
/ Linux 68k 2000 / Linux 68k 2000.iso / dokus / Ethernet-HOWTO < prev    next >
Encoding:
Text File  |  1997-11-15  |  219.9 KB  |  4,905 lines

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