home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 1: Linux / CD1.iso / doc / HOWTO / Ethernet-HOWTO < prev    next >
Text File  |  1998-10-14  |  229KB  |  6,073 lines

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