home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 2 / CD ACTUAL VOL 2.iso / docs / ethernet < prev    next >
Encoding:
Text File  |  1995-09-10  |  144.8 KB  |  3,884 lines

  1.   Linux Ethernet-Howto
  2.   Paul Gortmaker, Editor.
  3.   v2.4, 27 May 1995
  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. See the NET2-Howto for that
  11.   stuff.
  12.  
  13.   1.  Introduction
  14.  
  15.  
  16.   The Ethernet-Howto covers what cards you should and shouldn't buy; how
  17.   to set them up, how to run more than one, and other common problems
  18.   and questions. It contains detailed information on the current level
  19.   of support for all of the most common ethernet cards available.  It
  20.   does not cover the software end of things, as that is covered in the
  21.   NET-2 Howto. Also note that general non-Linux specific questions about
  22.   Ethernet are not (or at least they should not be) answered here. For
  23.   those types of questions, see the excellent amount of information in
  24.   the comp.dcom.lans.ethernet FAQ. You can FTP it from dorm.rutgers.edu
  25.   in the directory /pub/novell/info_and_docs/
  26.  
  27.   This present revision covers kernels up to and including v1.2.8
  28.  
  29.   The Ethernet-Howto is edited and maintained by:
  30.  
  31.        Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  32.  
  33.  
  34.   The primary source of the information for the Ethernet-Howto is from:
  35.  
  36.        Donald J. Becker, becker@cesdis.gsfc.nasa.gov
  37.  
  38.  
  39.   who we have to thank for writing the vast majority of ethernet card
  40.   drivers that are presently available for Linux. He also is the
  41.   original author of the NFS server too. Thanks Donald! We owe ya one!
  42.   :-)
  43.  
  44.   Net-surfers may wish to check out the following URL:
  45.  
  46.   Donald Becker
  47.   <http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html>
  48.  
  49.  
  50.   1.1.  Using the Ethernet-Howto
  51.  
  52.  
  53.   As this guide is getting bigger and bigger, you probably don't want to
  54.   spend the rest of your afternoon reading the whole thing. And you
  55.   don't have to read it all. If you haven't got an ethernet card, then
  56.   you will want to start with ``What card should I buy...''  to see what
  57.   you should buy, and what you should avoid. If you have already got an
  58.   ethernet card, but are not sure if you can use it with Linux, then you
  59.   will want to read ``Vendor Specific...''  which contains specific
  60.   information on each manufacturer, and their cards. If you are having
  61.   trouble with your card, then you will want to read the specific
  62.   information about your card mentioned above, and the troubleshooting
  63.   information in ``the FAQ section''.  If you are interested in some of
  64.   the technical aspects of the device drivers, then you can find that
  65.   information in ``Technical Information''
  66.  
  67.   1.2.  Disclaimer and Copyright
  68.  
  69.  
  70.   This document is not gospel. However, it is probably the most up to
  71.   date info that you will be able to find. Nobody is responsible for
  72.   what happens to your hardware but yourself. If your ethercard or any
  73.   other hardware goes up in smoke (...nearly impossible!)  we take no
  74.   responsibility. ie. THE AUTHORS ARE NOT RESPONSIBLE FOR ANY DAMAGES
  75.   INCURRED DUE TO ACTIONS TAKEN BASED ON THE INFORMATION INCLUDED IN
  76.   THIS DOCUMENT.
  77.  
  78.   This document is Copyright (c) 1995 by Donald Becker and Paul
  79.   Gortmaker. Permission is granted to make and distribute verbatim
  80.   copies of this manual provided the copyright notice and this
  81.   permission notice are preserved on all copies.
  82.  
  83.   Permission is granted to copy and distribute modified versions of this
  84.   document under the conditions for verbatim copying, provided that this
  85.   copyright notice is included exactly as in the original, and that the
  86.   entire resulting derived work is distributed under the terms of a
  87.   permission notice identical to this one.
  88.  
  89.   Permission is granted to copy and distribute translations of this
  90.   document into another language, under the above conditions for
  91.   modified versions.
  92.  
  93.   If you are intending to incorporate this document into a published
  94.   work, please contact me, and I will make an effort to ensure that you
  95.   have the most up to date information available. In the past, out of
  96.   date versions of the Linux howto documents have been published, which
  97.   caused the developers undue grief from being plagued with questions
  98.   that were already answered in the up to date versions.
  99.  
  100.  
  101.   1.3.  Mailing Lists and the Linux Newsgroups
  102.  
  103.  
  104.   If you have questions about your ethernet card, please READ this
  105.   document first. You may also want to join the NET channel of the Linux
  106.   mailing lists by sending mail to majordomo@vger.rutgers.edu to get
  107.   help with what lists are available, and how to join them.
  108.  
  109.   Furthermore keep in mind that the NET channel is for development
  110.   discussions only. General questions on how to configure your system
  111.   should be directed to comp.os.linux.help unless you are actively
  112.   involved in the development of part of the networking for Linux.  We
  113.   ask that you please respect this general guideline for content.
  114.  
  115.   Also, the news groups comp.sys.ibm.pc.hardware.networking and
  116.   comp.dcom.lans.ethernet should be used for questions that are not
  117.   Linux specific.
  118.  
  119.  
  120.   1.4.  Related Documentation
  121.  
  122.  
  123.   Much of this info came from saved postings from the comp.os.linux
  124.   groups, which shows that it is a valuable resource of information.
  125.   Other useful information came from a bunch of small files by Donald
  126.   himself. Of course, if you are setting up an Ethernet card, then you
  127.   will want to read the NET-2 Howto so that you can actually configure
  128.   the software you will use.  And last but not least, the contributions
  129.   from the individuals and companies listed in ``Contributors'' is
  130.   greatly appreciated as well. Oh yeah, if you fancy yourself as a bit
  131.   of a hacker, you can always scrounge some additional info from the
  132.   driver source files as well. There is usually a paragraph in there
  133.   describing any important points.
  134.  
  135.   For those looking for information that is not specific in any way to
  136.   Linux (i.e. what is 10BaseT, what is AUI, what does a hub do, etc.)  I
  137.   strongly recommend the Ethernet-FAQ from the newsgroup
  138.   comp.dcom.lans.ethernet. Look on the FTP site dorm.rutgers.edu in the
  139.   directory /pub/novell/info_and_docs/ or grab it from the following
  140.   URL:
  141.  
  142.   Ethernet FAQ
  143.   <ftp://dorm.rutgers.edu/pub/novell/info_and_docs/Ethernet.FAQ>
  144.  
  145.   Don't let the fact that it was last revised in 1993 scare you, as not
  146.   much has happened to Ethernet since then. (Discounting the upcoming
  147.   100Base-whatever, of course.)
  148.  
  149.  
  150.   1.5.  New Versions of this Document
  151.  
  152.  
  153.   New versions of this document can be retrieved via anonymous FTP from
  154.   sunsite.unc.edu, in /pub/Linux/docs/HOWTO/* and various Linux ftp
  155.   mirror sites. Updates will be made as new information / drivers
  156.   becomes available. If this copy that you are reading is more than 2
  157.   months old, it is either out of date, or it means that I have been
  158.   lazy and haven't updated it.  This document was produced by using the
  159.   SGML system that was specifically set up for the Linux Howto project,
  160.   and there are various output formats available, including, postscript,
  161.   dvi, ascii, html, and soon TeXinfo.
  162.  
  163.   I would recommend viewing it in the html (via Mosaic) or the
  164.   Postscript/dvi format. Both of these contain cross-references that are
  165.   lost in the ascii translation.
  166.  
  167.   If you want to get the official copy off sunsite, here is URL.
  168.  
  169.   Ethernet-HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Ethernet-HOWTO.html>
  170.  
  171.   If minor additions and changes have been made, you can view the latest
  172.   working copy from this URL.
  173.  
  174.   Working Copy <http://rsphy1.anu.edu.au/~gpg109/Ethernet-HOWTO.html>
  175.  
  176.  
  177.   2.  What card should I buy for Linux?
  178.  
  179.  
  180.   For impatient users that just want a quick, cheap answer the summary
  181.   is: get 16 bit thinnet 8013 cards. For those who want the absolute
  182.   best performance, get an AMD PC-Net/Lance based card. For more detail
  183.   as to the who what where and why, read on.
  184.  
  185.  
  186.   2.1.  Eight bit vs 16 bit
  187.  
  188.  
  189.   Unless you are a light user, or are confined to using the smaller ISA
  190.   slot, the use of the 8 bit cards like the wd8003, the 3c503 and the
  191.   ne1000 is usually not worth the cost savings. Get the 8013 or the
  192.   3c503/16, or the ne2000 instead. (The 3c501 is not included in this
  193.   discussion, as it shouldn't be used under any circumstances.)
  194.  
  195.   However, so not to leave you with a bad taste in your mouth if you
  196.   happen to already have one, you can still expect to get about 500kB/s
  197.   ftp download speed to an 8 bit wd8003 card (on a 16MHz ISA bus) from a
  198.   fast host.  And if most of your net-traffic is going to remote sites,
  199.   then the bottleneck in the path will be elsewhere, and the only speed
  200.   difference you will notice is during net activity on your local
  201.   subnet.
  202.  
  203.   A note to NFS users: Some people have found that using 8 bit cards in
  204.   NFS clients causes poorer than expected performance, when using 8kB
  205.   (native Sun) NFS packet size.
  206.  
  207.   The possible reason for this could be due to the difference in on
  208.   board buffer size between the 8 bit and the 16 bit cards.  The 8 bit
  209.   cards have an 8kB buffer, and the 16 bit cards have a 16kB buffer. The
  210.   Linux driver will reserve 3kB of that buffer (for Tx ping-pong
  211.   buffers), leaving only 5kB for an 8 bit card. The maximum ethernet
  212.   packet size is about 1500 bytes. Now that 8kB NFS packet will arrive
  213.   as about 6 back to back maximum size ethernet packets. Both the 8 and
  214.   16 bit cards have no problem Rx'ing back to back packets. The problem
  215.   arises when the machine doesn't remove the packets from the cards
  216.   buffer in time, and the buffer overflows. The fact that 8 bit cards
  217.   take an extra ISA bus cycle per transfer doesn't help either. What you
  218.   can do if you have an 8 bit card is either set the NFS transfer size
  219.   to 4kB, or try increasing the ISA bus speed in order to get the card's
  220.   buffer cleared out faster.
  221.  
  222.  
  223.   2.2.  Low price Ethernet cards
  224.  
  225.  
  226.   The lowest price seen so far was in the March '94 edition of LAN
  227.   magazine. There was an ad for Addtron AE-200 cards (jumper settable
  228.   NE2000 clones) for a measly $19 ea!  Unfortunately this offer has
  229.   since expired. However, you might want to check to see what their
  230.   everyday price is.
  231.  
  232.   You can also call AT-LAN-TEC at 301-948-7070. Ask for their technical
  233.   support person. As with all purchases, you should indicate you are
  234.   buying this for a Linux system.  NB: Their current NE2000 clone is a
  235.   model that `traps' other drivers that probe into their address space.
  236.   AT-LAN-TEC also carries a clone, non-EEPROM 8013 board for somewhat
  237.   more, and a NE2100 clone.  Either is a better choice if the very
  238.   lowest price isn't essential.
  239.  
  240.   And a recent addition is the VLB and PCI cards offered by Boca
  241.   Research. These are selling for around the $70 mark, and these are
  242.   supported with the latest kernel. These use the new 32 bit versions of
  243.   the LANCE chip from AMD. See ``Boca Research'' for more info.
  244.  
  245.   If you require an ISA card, you can use the the Allied Telesis AT1500
  246.   which uses the ISA version of the LANCE chip from AMD.  It is offered
  247.   at a good price by many vendors.  Even Inmac, known for their premium
  248.   markup, has this card for under $100. See ``AT-1500'' for more info.
  249.  
  250.  
  251.  
  252.   2.3.  Vendors and Brands to Avoid
  253.  
  254.  
  255.   These vendors have decided not to release programming information
  256.   about their products, without signing a NDA (non-disclosure
  257.   agreement).  Hence it is strongly advised that you avoid buying
  258.   products offered from these companies.
  259.  
  260.   (1) Cabletron (see ``Cabletron'')
  261.  
  262.   (2) Xircom (see ``Xircom'')
  263.  
  264.  
  265.   These particular cards should be avoided, as they are obsolete.  The
  266.   reasons as to why they have been classified as such can be found in
  267.   their respective sections. For your particular application, these
  268.   reasons may not be a concern, so you should have a read of the reasons
  269.   listed.
  270.  
  271.   (1) 3c501 (see ``3Com 3c501'')
  272.  
  273.   (2) Arcnet based cards (see ``Arcnet'')
  274.  
  275.   (3) Any 8-bit cards (see ``Eight bit...'')
  276.  
  277.  
  278.   2.4.  Type of cable that your card should support
  279.  
  280.  
  281.   Unless you have to conform to an existing network, you will want to
  282.   use thinnet or thin ethernet cable. This is the style with the
  283.   standard BNC connectors. See ``Cables, Coax...''  for other concerns
  284.   with different types of ethernet cable.
  285.  
  286.   Most ethercards also come in a `Combo' version for only $10-$20 more.
  287.   These have both twisted pair and thinnet transceiver built-in,
  288.   allowing you to change your mind later.
  289.  
  290.   The twisted pair cables, with the RJ-45 (giant phone jack) connectors
  291.   is technically called 10BaseT. You may also hear it called UTP
  292.   (Unsheilded Twisted Pair).
  293.  
  294.   The thinnet, or thin ethernet cabling, (RG-58 coaxial cable) with the
  295.   BNC (metal push and turn-to-lock) connectors is technically called
  296.   10Base2.
  297.  
  298.   The older thick ethernet (10mm coaxial cable) which is only found in
  299.   older installations is called 10Base5.
  300.  
  301.   Large corporate installations will most likely use 10BaseT instead of
  302.   10Base2. 10Base2 does not offer an easy upgrade path to the new
  303.   upcoming 100Base-whatever.
  304.  
  305.  
  306.   3.  Vendor/Manufacturer/Model Specific Information
  307.  
  308.  
  309.   The only thing that one needs to use an ethernet card with Linux is
  310.   the appropriate driver. For this, it is essential that the
  311.   manufacturer will release the technical programming information to the
  312.   general public without you (or anyone) having to sign your life away.
  313.   A good guide for the likelihood of getting documentation (or, if you
  314.   aren't writing code, the likelihood that someone else will write that
  315.   driver you really, really need) is the availability of the Crynwr (nee
  316.   Clarkson) packet driver. Russ Nelson runs this operation, and has been
  317.   very helpful in supporting the development of drivers for Linux. Net-
  318.   surfers can try this URL to look up Russ' software.
  319.  
  320.   Russ Nelson's Packet Drivers <http://www.crynwr.com/crynwr/home.html>
  321.  
  322.   Given the documentation, you can write a driver for your card and use
  323.   it for Linux (at least in theory) and if you intend to write a driver,
  324.   have a look at ``Skeleton driver'' as well.  Keep in mind that some
  325.   old hardware that was designed for XT type machines will not function
  326.   very well in a multitasking environment such as Linux. Use of these
  327.   will lead to major problems if your network sees a reasonable amount
  328.   of traffic.
  329.  
  330.  
  331.   Most cards come with drivers for MS-DOS interfaces such as NDIS and
  332.   ODI, but these are useless for Linux. Many people have suggested
  333.   directly linking them in or automatic translation, but this is nearly
  334.   impossible. The MS-DOS drivers expect to be in 16 bit mode and hook
  335.   into `software interrupts', both incompatible with the Linux kernel.
  336.   This incompatibility is actually a feature, as some Linux drivers are
  337.   considerably better than their MS-DOS counterparts. The `8390' series
  338.   drivers, for instance, use ping-pong transmit buffers, which are only
  339.   now being introduced in the MS-DOS world.
  340.  
  341.   Keep in mind that PC ethercards have the widest variety of interfaces
  342.   (shared memory, programmed I/O, bus-master, or slave DMA) of any
  343.   computer hardware for anything, and supporting a new ethercard
  344.   sometimes requires re-thinking most of the lower-level networking
  345.   code. (If you are interested in learning more about these different
  346.   forms of interfaces, see ``Programmed I/O vs. ...''.)
  347.  
  348.   Also, similar product numbers don't always indicate similar products.
  349.   For instance, the 3c50* product line from 3Com varies wildly between
  350.   different members.
  351.  
  352.   Enough talk. Let's get down to the information you want.
  353.  
  354.  
  355.   3.1.  3Com
  356.  
  357.  
  358.   If you are not sure what your card is, but you think it is a 3Com
  359.   card, you can probably figure it out from the assembly number. 3Com
  360.   has a document `Identifying 3Com Adapters By Assembly Number' (ref
  361.   24500002) that would most likely clear things up. See ``Technical
  362.   Information from 3Com'' for info on how to get documents from 3Com.
  363.  
  364.   Also note that 3Com has a FTP site with various goodies: ftp.3Com.com
  365.   that you may want to check out.
  366.  
  367.  
  368.   3.1.1.  3c501
  369.  
  370.  
  371.   Status -- Semi-Supported
  372.  
  373.   Too brain-damaged to use. Available surplus from many places. Avoid it
  374.   like the plague. Again, do not purchase this card, even as a joke.
  375.   It's performance is horrible, and it breaks in many ways.
  376.  
  377.   Cameron L. Spitzer of 3Com said: ``I'm speaking only for myself here,
  378.   of course, but I believe 3Com advises against installing a 3C501 in a
  379.   new system, mostly for the same reasons Donald has discussed. You
  380.   probably won't be happy with the 3C501 in your Linux box. The data
  381.   sheet is marked `(obsolete)' on 3Com's Developers' Order Form, and the
  382.   board is not part of 3Com's program for sending free Technical
  383.   Reference Manuals to people who need them. The decade-old things are
  384.   nearly indestructible, but that's about all they've got going for them
  385.   any more.''
  386.  
  387.   For those not yet convinced, the 3c501 can only do one thing at a time
  388.   -- while you are removing one packet from the single-packet buffer it
  389.   cannot receive another packet, nor can it receive a packet while
  390.   loading a transmit packet. This was fine for a network between two
  391.   8088-based computers where processing each packet and replying took
  392.   10's of msecs, but modern networks send back-to-back packets for
  393.   almost every transaction.
  394.  
  395.   AutoIRQ works, DMA isn't used, the autoprobe only looks at 0x280 and
  396.   0x300, and the debug level is set with the third boot-time argument.
  397.   Once again, the use of a 3c501 is strongly discouraged!  Even more so
  398.   with a IP multicast kernel, as you will grind to a halt while
  399.   listening to all multicast packets. See the comments at the top of the
  400.   source code for more details.
  401.  
  402.  
  403.   3.1.2.  3c503, 3c503/16
  404.  
  405.  
  406.   Status -- Supported
  407.  
  408.   3Com shared-memory ethercards. They also have a programmed I/O mode
  409.   that doesn't use the 8390 facilities (their engineers found too many
  410.   bugs!)  It should be about the same speed as the same bus width
  411.   WD80x3, Unless you are a light user, spend the extra money and get the
  412.   16 bit model, as the price difference isn't significant. The 3c503
  413.   does not have ``EEPROM setup'', so the diagnostic/setup program isn't
  414.   needed before running the card with Linux. The shared memory address
  415.   of the 3c503 is set using jumpers that are shared with the boot PROM
  416.   address. This is confusing to people familiar with other ISA cards,
  417.   where you always leave the jumper set to ``disable'' unless you have a
  418.   boot PROM.
  419.  
  420.   Note that recently made 3c503/16 cards have a new base hardware
  421.   address because 3Com ran out of numbers (they made too many cards!)
  422.   The cards used to start with 02 60 8C and the newer ones use 00 20 AF.
  423.   The driver (as of 1.2.8) will only check for the old address, and skip
  424.   over the newer cards.  For now, just change the numbers in 3c503.c if
  425.   you have a newer card.
  426.  
  427.   The Linux 3c503 driver can also work with the 3c503 programmed-I/O
  428.   mode, but this is slower and less reliable than shared memory mode.
  429.   Also, programmed-I/O mode is not tested when updating the drivers, the
  430.   deadman (deadcard?) check code may falsely timeout on some machines,
  431.   and the probe for a 3c503 in programmed-I/O mode is turned off by
  432.   default in some versions of the kernel. This was a panic reaction to
  433.   the general device driver probe explosion; the 3c503 shared memory
  434.   probe is a safe read from memory, rather than an extensive scan
  435.   through I/O space. As of 0.99pl13, the kernel has an I/O port
  436.   registrar that makes I/O space probes safer, and the programmed-I/O
  437.   3c503 probe has been re-enabled.  You still shouldn't use the
  438.   programmed-I/O mode though, unless you need it for MS-DOS
  439.   compatibility.
  440.  
  441.   The 3c503's IRQ line is set in software, with no hints from an EEPROM.
  442.   Unlike the MS-DOS drivers, the Linux driver has capability to autoIRQ:
  443.   it uses the first available IRQ line in {5,2/9,3,4}, selected each
  444.   time the card is ifconfig'ed. (Older driver versions selected the IRQ
  445.   at boot time.) The ioctl() call in `ifconfig' will return EAGAIN if no
  446.   IRQ line is available at that time.
  447.  
  448.   Some common problems that people have with the 503 are discussed in
  449.   ``Problems with...''.
  450.  
  451.  
  452.  
  453.   3.1.3.  3c505
  454.  
  455.  
  456.   Status -- Semi-Supported
  457.  
  458.   This is a driver that was written by Craig Southeren
  459.   geoffw@extro.ucc.su.oz.au. These cards also use the i82586 chip.
  460.   There are not that many of these cards about.  It is included in the
  461.   standard kernel, but it is classed as an alpha driver. See ``Alpha
  462.   Drivers'' for important information on using alpha-test ethernet
  463.   drivers with Linux.
  464.  
  465.   There is also the file /usr/src/linux/drivers/net/README.3c505 that
  466.   you should read if you are going to use one of these cards.  It
  467.   contains various options that you can enable/disable.  Technical
  468.   information is available in ``Programming the Intel chips''.
  469.  
  470.  
  471.   3.1.4.  3c507
  472.  
  473.   Status -- Semi-Supported
  474.  
  475.   This card uses one of the Intel chips, and the development of the
  476.   driver is closely related to the development of the Intel Ether
  477.   Express driver.  The driver is included in the standard kernel
  478.   release, but as an alpha driver.
  479.  
  480.   See ``Alpha Drivers'' for important information on using alpha-test
  481.   ethernet drivers with Linux. Technical information is available in
  482.   ``Programming the Intel chips''.
  483.  
  484.  
  485.   3.1.5.  3c509 / 3c509B
  486.  
  487.  
  488.   Status -- Supported
  489.  
  490.   It's fairly inexpensive and has excellent performance for a non-bus-
  491.   master design.  The drawbacks are that the original 3c509 _requires_
  492.   very low interrupt latency. The 3c509B shouldn't suffer from the same
  493.   problem, due to having a larger buffer. (See below.)
  494.  
  495.   Note that the ISA card detection uses a different method than most
  496.   cards. Basically, you ask the cards to respond by sending data to an
  497.   ID_PORT (port 0x100). Note that if you have some other strange ISA
  498.   card using an I/O range that includes the ID_PORT of the 3c509, it
  499.   will probably not get detected. Note that you can change the ID_PORT
  500.   to 0x110 or 0x120 or... in 3c509.c if you have a conflicting ISA card,
  501.   and the 3c509 will still be happy.  Also note that this detection
  502.   method means that it is difficult to predict which card will get
  503.   detected first in a multiple ISA 3c509 configuration.  The card with
  504.   the lowest hardware ethernet address will end up being eth0. This
  505.   shouldn't matter to anyone, except for those people who want to assign
  506.   a 6 byte hardware address to a particular interface.
  507.  
  508.   A working 3c509 driver was first included as an alpha-test version in
  509.   the 0.99pl13 kernel sources.  It is now in the standard kernel.
  510.  
  511.   The original 3c509 has a tiny Rx buffer (2kB), causing the driver to
  512.   occasionally drop a packet if interrupts are masked for too long. To
  513.   minimize this problem, you can try unmasking interrupts during IDE
  514.   disk transfers (see hdparm(8)) and/or increasing your ISA bus speed so
  515.   IDE transfers finish sooner.  (Note that the driver could be
  516.   completely rewritten to use predictive interrupts, but performance re-
  517.   writes of working drivers are low priority unless there is some
  518.   particular incentive or need.)
  519.  
  520.   Cameron Spitzer writes: ``Beware that if you put a '509 in EISA
  521.   addressing mode by mistake and save that in the EEPROM, you'll have to
  522.   use an EISA machine or the infamous Test Via to get it back to normal,
  523.   and it will conflict at IO location 0 which may hang your ISA machine.
  524.   I believe this problem is corrected in the 3C509B version of the
  525.   board.''
  526.  
  527.   The newer model 3c509B has 8kB on board, and the driver can set 4, 5
  528.   or 6kB for an Rx buffer. This setting can also be stored on the
  529.   EEPROM. This should alleviate the above problem with the original
  530.   3c509. At this point in time, the Linux driver is not aware of this,
  531.   and treats the 3c509B as an older 3c509.
  532.  
  533.   3c509B users should use the supplied DOS utility to disable the plug
  534.   and play support, and to set the output media to what they require.
  535.   Cameron adds: ``The 3C509B has 3Com's relocatable I/O port scheme, and
  536.   Microsofttm Plug-and-play ("PnP").  You can't use them both at the
  537.   same time.  Some (broken, IMHO) BIOSes begin a PnP sequence by writing
  538.   to the PnP address (0x279 ?), which causes PnP adapters like 3C509B to
  539.   enter the PnP state, but then they (these funny BIOSes) never come
  540.   back to finish the job.  The 3C509Bs hang there in the middle of the
  541.   PnP ID Sequence, where they have no idea you didn't mean it and you're
  542.   going to use the 3Com ID sequence after all.  3C5X9CFG /PNPRST clears
  543.   this hang.  Disable PnP if your drivers (eg., Linux) don't use it.
  544.  
  545.   It was a marketing decision to turn PnP on as a factory default
  546.   setting.  If it caused you a hassle, or not, please take the time to
  547.   say so when you mail in your warranty card.  The more info they have,
  548.   the better decisions they can make.  Also, check with your motherboard
  549.   supplier to see if you need a BIOS upgrade.''
  550.  
  551.  
  552.   3.1.6.  3c523
  553.  
  554.  
  555.   Status -- Not Supported
  556.  
  557.   This MCA bus card uses the i82586, and now that people are actually
  558.   running Linux on MCA machines, someone may wish to try and recycle
  559.   parts of the 3c507 driver into a driver for this card.
  560.  
  561.  
  562.   3.1.7.  3c527
  563.  
  564.  
  565.   Status -- Not Supported
  566.  
  567.   Yes, another MCA card. No, not too much interest in it.  Better
  568.   chances with the 3c523 or the 3c529.
  569.  
  570.  
  571.   3.1.8.  3c529
  572.  
  573.  
  574.   Status -- Not Supported
  575.  
  576.   This card actually uses the same chipset as the 3c509.  Donald
  577.   actually put hooks into the 3c509 driver to check for MCA cards after
  578.   probing for EISA cards, and before probing for ISA cards. But it
  579.   hasn't evolved much further than that. Donald writes:
  580.  
  581.   ``I don't have access to a MCA machine (nor do I fully understand the
  582.   probing code) so I never wrote the mca_adaptor_select_mode() or
  583.   mca_adaptor_id() routines. If you can find a way to get the adaptor
  584.   I/O address that assigned at boot time, you can just hard-wire that in
  585.   place of the commented-out probe. Be sure to keep the code that reads
  586.   the IRQ, if_port, and ethernet address.''
  587.  
  588.  
  589.   3.1.9.  3c579
  590.  
  591.  
  592.   Status -- Supported
  593.  
  594.  
  595.   The EISA version of the 509. The current EISA version uses the same 16
  596.   bit wide chip rather than a 32 bit interface, so the performance
  597.   increase isn't stunning.  The EISA probe code was added to 3c509.c for
  598.   0.99pl14.  We would be interested in hearing progress reports from any
  599.   3c579 users. (Read the above 3c509 section for info on the driver.)
  600.  
  601.   Cameron Spitzer writes: ``The 3C579 (Etherlink III EISA) should be
  602.   configured as an EISA card. The IO Base Address (window 0 register 6
  603.   bits 4:0) should be 1f, which selects EISA addressing mode. Logic
  604.   outside the ASIC decodes the IO address s000, where s is the slot
  605.   number. I don't think it was documented real well. Except for its IO
  606.   Base Address, the '579 should behave EXACTLY like the'509 (EL3 ISA),
  607.   and if it doesn't, I want to hear about it (at my work address).''
  608.  
  609.  
  610.  
  611.   3.1.10.  3c589 / 3c589B
  612.  
  613.  
  614.   Status -- Semi-Supported
  615.  
  616.   Many people have been using this PCMCIA card for quite some time now.
  617.   Note that support for it is not (at present) included in the default
  618.   kernel source tree. You will also need a supported PCMCIA controller
  619.   chipset. There are drivers available on Donald's ftp site:
  620.  
  621.   cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/README.3c589
  622.   cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/3c589.c
  623.   cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/dbether.c
  624.  
  625.   Or for those that are net-surfing you can try:
  626.  
  627.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  628.  
  629.   You will still need a PCMCIA socket enabler as well.
  630.  
  631.   See ``PCMCIA Support'' for more info on PCMCIA chipsets, socket
  632.   enablers, etc.
  633.  
  634.   The "B" in the name means the same here as it does for the 3c509 case.
  635.  
  636.  
  637.   3.1.11.  3c590 / 3c595
  638.  
  639.  
  640.   Status -- Semi-Supported
  641.  
  642.   These ``Vortex'' cards are for PCI bus machines, with the '590 being
  643.   10Mbps and the '595 being 3Com's 100Mbs offering. As of 23/03/95
  644.   Donald had 2 of the '595 cards set up in a point to point link.
  645.   (Nobody is shipping 100Mbps hubs yet!)  The performance of the '595 is
  646.   far below the theoretical maximum at the moment, but hopefully that
  647.   will change with time. The driver should appear in the 1.3.x kernel,
  648.   when that appears, but you can have a look now at the following URL:
  649.  
  650.   Vortex <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  651.  
  652.   3Com is offering an evaluation deal where you get 2 '595 cards for a
  653.   total price of $250 at the moment. Also note that you can run the '595
  654.   as a '590 (i.e. in a 10Mbps mode).
  655.  
  656.   A thanks to Cameron Spitzer and Terry Murphy of 3Com for sending cards
  657.   and documentation to Donald so he could write the driver.
  658.  
  659.  
  660.  
  661.   3.2.  Accton
  662.  
  663.  
  664.  
  665.   3.2.1.  Accton MPX
  666.  
  667.  
  668.   Status -- Supported
  669.  
  670.   Don't let the name fool you. This is still supposed to be a NE2000
  671.   compatible card. The MPX is supposed to stand for MultiPacket
  672.   Accelerator, which, according to Accton, increases throughput
  673.   substantially. But if you are already sending back-to-back packets,
  674.   how can you get any faster...
  675.  
  676.  
  677.   3.2.2.  Accton EN1203 EtherDuo-PCI
  678.  
  679.  
  680.   Status -- Supported
  681.  
  682.   This is another implementation of the DEC 21040 PCI chip.
  683.  
  684.   See ``DEC 21040'' for more information on these cards, and the present
  685.   driver situation.
  686.  
  687.  
  688.  
  689.   3.2.3.  Accton EN2212 PCMCIA Card
  690.  
  691.  
  692.   Status -- Semi-Supported
  693.  
  694.   David Hinds has been working on a driver for this card, and you are
  695.   best to check the latest release of his PCMCIA package to see what the
  696.   present status is.
  697.  
  698.  
  699.   3.3.  Allied Telesyn/Telesis
  700.  
  701.  
  702.  
  703.   3.3.1.  AT1500
  704.  
  705.  
  706.   Status --Supported
  707.  
  708.   These are a series of low-cost ethercards using the 79C960 version of
  709.   the AMD LANCE. These are bus-master cards, and hence one of the faster
  710.   ISA bus ethercards available.
  711.  
  712.   DMA selection and chip numbering information can be found in ``AMD
  713.   LANCE''.
  714.  
  715.   More technical information on AMD LANCE based Ethernet cards can be
  716.   found in ``Notes on AMD...''.
  717.  
  718.  
  719.   3.3.2.  AT1700
  720.  
  721.  
  722.   Status -- Supported
  723.  
  724.   The Allied Telesis AT1700 series ethercards are based on the Fujitsu
  725.   MB86965. This chip uses a programmed I/O interface, and a pair of
  726.   fixed-size transmit buffers. This allows small groups of packets to be
  727.   sent back-to-back, with a short pause while switching buffers.
  728.  
  729.   A unique feature is the ability to drive 150ohm STP (Shielded Twisted
  730.   Pair) cable commonly installed for Token Ring, in addition to 10baseT
  731.   100ohm UTP (unshielded twisted pair).
  732.  
  733.   The Fujitsu chip used on the AT1700 has a design flaw: it can only be
  734.   fully reset by doing a power cycle of the machine.  Pressing the reset
  735.   button doesn't reset the bus interface. This wouldn't be so bad,
  736.   except that it can only be reliably detected when it has been freshly
  737.   reset. The solution/work-around is to power-cycle the machine if the
  738.   kernel has a problem detecting the AT1700.
  739.  
  740.   Some production runs of the AT1700 had another problem: they are
  741.   permanently wired to DMA channel 5.  This is undocumented, there are
  742.   no jumpers to disable the "feature", and no driver dares use the DMA
  743.   capability because of compatibility problems. No device driver will be
  744.   written using DMA if installing a second card into the machine breaks
  745.   both, and the only way to disable the DMA is with a knife.
  746.  
  747.   The at1700 driver is included in the standard kernel source tree.
  748.  
  749.  
  750.   3.3.3.  AT2450
  751.  
  752.  
  753.   Status -- Supported
  754.  
  755.   This is the PCI version of the AT1500, and it doesn't suffer from the
  756.   problems that the Boca 79c970 PCI card does.
  757.  
  758.   DMA selection and chip numbering information can be found in ``AMD
  759.   LANCE''.
  760.  
  761.   More technical information on AMD LANCE based Ethernet cards can be
  762.   found in ``Notes on AMD...''.
  763.  
  764.  
  765.   3.4.  AMD / Advanced Micro Devices
  766.  
  767.  
  768.  
  769.   3.4.1.  AMD LANCE (7990, 79C960, PCnet-ISA)
  770.  
  771.  
  772.   Status -- Supported
  773.  
  774.   There really is no AMD ethernet card. You are probably reading this
  775.   because the only markings you could find on your card said AMD and the
  776.   above number. The 7990 is the original `LANCE' chip, but most stuff
  777.   (including this document) refer to all these similar chips as `LANCE'
  778.   chips. (...incorrectly, I might add.)
  779.  
  780.   These above numbers refer to chips from AMD that are the heart of many
  781.   ethernet cards.  For example, the Allied Telesis AT1500 (see
  782.   ``AT1500'') the NE1500/2100 (see ``NE1500'') and the Boca-VLB/PCI
  783.   cards (see ``Boca-VLB/PCI'')
  784.  
  785.   The 79C960 (a.k.a. PCnet-ISA) contains enhancements and bug fixes over
  786.   the original 7990 LANCE design.
  787.  
  788.   Chances are that the existing LANCE driver will work with all AMD
  789.   LANCE based cards. (except perhaps the NI65XX - see ``NI65XX'' for
  790.   more info on that one.)  This driver should also work with NE1500 and
  791.   NE2100 clones.
  792.  
  793.   For the ISA bus master mode all structures used directly by the LANCE,
  794.   the initialization block, Rx and Tx rings, and data buffers, must be
  795.   accessible from the ISA bus, i.e. in the lower 16M of real memory.  If
  796.   more than 16MB of memory is installed, low-memory `bounce-buffers' are
  797.   used when needed.
  798.  
  799.   The DMA channel can be set with the low bits of the otherwise-unused
  800.   dev->mem_start value (a.k.a. PARAM_1).  (see ``PARAM_1'') If unset it
  801.   is probed for by enabling each free DMA channel in turn and checking
  802.   if initialization succeeds.
  803.  
  804.   The HP-J2405A board is an exception: with this board it's easy to read
  805.   the EEPROM-set values for the IRQ, and DMA.
  806.  
  807.   See ``Notes on AMD...''  for more info on these chips.
  808.  
  809.  
  810.   3.4.2.  AMD 79C961 (PCnet-ISA+)
  811.  
  812.  
  813.   Status -- Supported
  814.  
  815.   This is the PCnet-ISA+  -- an enhanced version of the 79C960.  It has
  816.   support for jumper-less configuration and Plug and Play.  See the info
  817.   in the above section.
  818.  
  819.  
  820.   3.4.3.  AMD 79C965 (PCnet-32)
  821.  
  822.  
  823.   Status -- Supported
  824.  
  825.   This is the PCnet-32 -- a 32 bit bus-master version of the original
  826.   LANCE chip for VL-bus and local bus systems.  Minor cleanups were
  827.   added to the original lance driver around v1.1.50 to support these 32
  828.   bit versions of the LANCE chip.  The main problem was that the current
  829.   versions of the '965 and '970 chips have a minor bug.  They clear the
  830.   Rx buffer length field in the Rx ring when they are explicitly
  831.   documented not to. Again, see the above info.
  832.  
  833.  
  834.   3.4.4.  AMD 79C970 (PCnet-PCI)
  835.  
  836.  
  837.   Status -- Supported
  838.  
  839.   This is the PCnet-PCI -- similar to the PCnet-32, but designed for PCI
  840.   bus based systems. Again, see the above info.  Donald has modified the
  841.   LANCE driver to use the PCI BIOS structure that was introduced by Drew
  842.   Eckhardt for the PCI-NCR SCSI driver. This means that you need to
  843.   build a kernel with PCI BIOS support enabled.
  844.  
  845.   Note that the Boca implementation of the 79C970 fails on fast Pentium
  846.   machines. This is a hardware problem, as it affects DOS users as well.
  847.   See the Boca section for more details.
  848.  
  849.  
  850.   3.4.5.  AMD 79C974 (PCnet-SCSI)
  851.  
  852.  
  853.   Status -- Supported
  854.  
  855.   This is the PCnet-SCSI --  which is basically treated like a '970 from
  856.   an Ethernet point of view. A minor '974 specific fix was added to the
  857.   1.1.8x kernels, so get a 1.1.90 or newer kernel. Also see the above
  858.   info. Don't ask if the SCSI half of the chip is supported -- this is
  859.   the Ethernet-Howto, not the SCSI-Howto.
  860.  
  861.  
  862.   3.5.  Ansel Communications
  863.  
  864.  
  865.  
  866.   3.5.1.  AC3200 EISA
  867.  
  868.  
  869.   Status -- Semi-Supported
  870.  
  871.   This driver is included in the present kernel as an alpha test driver.
  872.   Please see ``Alpha Drivers'' in this document for important
  873.   information regarding alpha drivers.  If you use it, let Donald know
  874.   how things work out, as not too many people have this card and
  875.   feedback has been low.
  876.  
  877.  
  878.   3.6.  Apricot
  879.  
  880.  
  881.  
  882.   3.6.1.  Apricot Xen-II On Board Ethernet
  883.  
  884.  
  885.   Status -- Supported
  886.  
  887.   This on board ethernet uses an i82596 bus-master chip.  It can only be
  888.   at i/o address 0x300. The author of this driver is Mark Evans. By
  889.   looking at the driver source, it appears that the IRQ is hardwired to
  890.   10.
  891.  
  892.   Earlier versions of the driver had a tendency to think that anything
  893.   living at 0x300 was an apricot NIC.  Since then the hardware address
  894.   is checked to avoid these false detections.
  895.  
  896.  
  897.   3.7.  Arcnet
  898.  
  899.  
  900.   Status -- Semi-Supported
  901.  
  902.   With the very low cost and better performance of ethernet, chances are
  903.   that most places will be giving away their Arcnet hardware for free,
  904.   resulting in a lot of home systems with Arcnet.
  905.  
  906.   An advantage of Arcnet is that all of the cards have identical
  907.   interfaces, so one driver will work for everyone.
  908.  
  909.   Recent interest in getting Arcnet going has picked up again and Avery
  910.   Pennarun's alpha driver has been put into the default kernel sources
  911.   for 1.1.80 and above. The arcnet driver uses `arc0' as its name
  912.   instead of the usual `eth0' for ethernet devices.  Bug reports and
  913.   success stories can be mailed to:
  914.  
  915.   apenwarr@tourism.807-city.on.ca
  916.  
  917.   There are information files contained in the standard kernel for
  918.   setting jumpers and general hints.
  919.  
  920.  
  921.   3.8.  AT&T
  922.  
  923.  
  924.  
  925.   Note that AT&T's StarLAN is an orphaned technology, like SynOptics
  926.   LattisNet, and can't be used in a standard 10Base-T environment.
  927.  
  928.  
  929.   3.8.1.  AT&T T7231 (LanPACER+)
  930.  
  931.  
  932.   Status -- Not Supported
  933.  
  934.   These StarLAN cards use an interface similar to the i82586 chip. At
  935.   one point, Matthijs Melchior (matthijs.n.melchior@att.com) was playing
  936.   with the 3c507 driver, and almost had something useable working.
  937.   Haven't heard much since that.
  938.  
  939.  
  940.   3.9.  AT-Lan-Tec / RealTek
  941.  
  942.  
  943.  
  944.   3.9.1.  AT-Lan-Tec / RealTek Pocket adaptor
  945.  
  946.  
  947.   Status -- Supported
  948.  
  949.   This is a generic, low-cost OEM pocket adaptor being sold by AT-Lan-
  950.   Tec, and (likely) a number of other suppliers. A driver for it is
  951.   included in the standard kernel.  Note that there is substantial
  952.   information contained in the driver source file `atp.c'.  BTW, the
  953.   adaptor (AEP-100L) has both 10baseT and BNC connections!  You can
  954.   reach AT-Lan-Tec at 1-301-948-7070. Ask for the model that works with
  955.   Linux, or ask for tech support.
  956.  
  957.   In the Netherlands a compatible adaptor is sold under the name SHI-TEC
  958.   PE-NET/CT, and sells for about $125. The vendor was Megasellers.  They
  959.   state that they do not sell to private persons, but this doesn't
  960.   appear to be strictly adhered to.  They are: Megasellers, Vianen, The
  961.   Netherlands. They always advertise in Dutch computer magazines.  Note
  962.   that the newer model EPP-NET/CT appears to be significantly different
  963.   than the PE-NET/CT, and will not work with the present driver.
  964.   Hopefully someone will come up with the programming information and
  965.   this will be fixed up.
  966.  
  967.   In Germany, a similar adaptor comes as a no-brand-name product. Prolan
  968.   890b, no brand on the casing, only a roman II. Resellers can get a
  969.   price of about $130, including a small wall transformer for the power.
  970.  
  971.   The adaptor is `normal size' for the product class, about 57mm wide,
  972.   22mm high tapering to 15mm high at the DB25 connector, and 105mm long
  973.   (120mm including the BNC socket). It's switchable between the RJ45 and
  974.   BNC jacks with a small slide switch positioned between the two: a very
  975.   intuitive design.
  976.  
  977.   Donald performed some power draw measurements, and determined that the
  978.   average current draw was only about 100mA @ 5V.  This power draw is
  979.   low enough that you could buy or build a cable to take the 5V directly
  980.   from the keyboard/mouse port available on many laptops. (Bonus points
  981.   here for using a standardized power connector instead of a proprietary
  982.   one.)
  983.  
  984.   Note that the device name that you pass to ifconfig is not eth0 but
  985.   atp0 for this device.
  986.  
  987.  
  988.  
  989.  
  990.  
  991.   3.10.  Boca Research
  992.  
  993.  
  994.   Yes, they make more than just multi-port serial cards.  :-)
  995.  
  996.  
  997.   3.10.1.  Boca BEN (PCI, VLB)
  998.  
  999.  
  1000.   Status -- Supported
  1001.  
  1002.   These cards are based on AMD's PCnet chips, used in the AT1500 and the
  1003.   like. You can pick up a combo (10BaseT and 10Base2) PCI card for under
  1004.   $70 at the moment.
  1005.  
  1006.   Boca PCI cards have trouble with Pentium systems that are operating
  1007.   faster than 66MHz. Note that this is not a driver problem, as it hits
  1008.   DOS/Win/NT users as well. Donald had this to add:
  1009.  
  1010.   ``Boca's technical support number is 407 241-8088.  When I called they
  1011.   claimed that they couldn't reveal what the hardware problem was, but
  1012.   that the fix was available from them.  That's not really a rational
  1013.   response, but people with Boca PCI ethercards should try it. BTW, tell
  1014.   them you are using the card with Linux, and that it works fine with
  1015.   486 and P5-60Mhz systems.''
  1016.  
  1017.   Donald also did a comparitive test with the above Boca PCI card and a
  1018.   similar Allied Telsyn PCnet/PCI implementation, which showed that the
  1019.   problem lies in Boca's implementation of the PCnet/PCI chip. These
  1020.   test results can be accessed on Don's www server.
  1021.  
  1022.   Linux at CESDIS <http://cesdis.gsfc.nasa.gov/linux/>
  1023.  
  1024.   Latest rumour is that they solder on a capacitor that they left out in
  1025.   their initial design to fix the problem.
  1026.  
  1027.   More general information can be found in ``AMD LANCE''.
  1028.  
  1029.   More technical information on AMD LANCE based Ethernet cards can be
  1030.   found in ``Notes on AMD...''.
  1031.  
  1032.  
  1033.   3.11.  Cabletron
  1034.  
  1035.  
  1036.   Donald writes: `Yes, another one of these companies that won't release
  1037.   its programming information. They waited for months before actually
  1038.   confirming that all their information was proprietary, deliberately
  1039.   wasting my time. Avoid their cards like the plague if you can.  Also
  1040.   note that some people have phoned Cabletron, and have been told things
  1041.   like `a D. Becker is working on a driver for linux' -- making it sound
  1042.   like I work for them. This is NOT the case.'
  1043.  
  1044.   If you feel like asking them why they don't want to release their low
  1045.   level programming info so that people can use their cards, write to
  1046.   support@ctron.com.  Tell them that you are using Linux, and are
  1047.   disappointed that they don't support open systems. And no, the usual
  1048.   driver development kit they supply is useless. It is just a DOS object
  1049.   file that you are supposed to link against. Which you aren't allowed
  1050.   to even reverse engineer.
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.   3.11.1.  E10**, E10**-x, E20**, E20**-x
  1058.  
  1059.  
  1060.   Status -- Semi-Supported
  1061.  
  1062.   These are NEx000 almost-clones that are reported to work with the
  1063.   standard NEx000 drivers, thanks to a ctron-specific check during the
  1064.   probe. If there are any problems, they are unlikely to be fixed, as
  1065.   the programming information is unavailable.
  1066.  
  1067.  
  1068.   3.11.2.  E2100
  1069.  
  1070.  
  1071.   Status -- Semi-Supported
  1072.  
  1073.   Again, there is not much one can do when the programming information
  1074.   is proprietary.  The E2100 is a poor design. Whenever it maps its
  1075.   shared memory in during a packet transfer, it maps it into the whole
  1076.   128K region! That means you can't safely use another interrupt-driven
  1077.   shared memory device in that region, including another E2100.  It will
  1078.   work most of the time, but every once in a while it will bite you.
  1079.   (Yes, this problem can be avoided by turning off interrupts while
  1080.   transferring packets, but that will almost certainly lose clock
  1081.   ticks.) Also, if you mis-program the board, or halt the machine at
  1082.   just the wrong moment, even the reset button won't bring it back. You
  1083.   will have to turn it off and leave it off for about 30 seconds.
  1084.  
  1085.   Media selection is automatic, but you can override this with the low
  1086.   bits of the dev->mem_end parameter.  See ``PARAM_2''
  1087.  
  1088.   Also, don't confuse the E2100 for a NE2100 clone.  The E2100 is a
  1089.   shared memory NatSemi DP8390 design, roughly similar to a brain-
  1090.   damaged WD8013, whereas the NE2100 (and NE1500) use a bus-mastering
  1091.   AMD LANCE design.
  1092.  
  1093.   There is an E2100 driver included in the standard kernel.  However,
  1094.   seeing as programming info isn't available, don't expect bug-fixes.
  1095.   Don't use one unless you are already stuck with the card.
  1096.  
  1097.  
  1098.  
  1099.   3.12.  D-Link
  1100.  
  1101.  
  1102.   Some people have had difficulty in finding vendors that carry D-link
  1103.   stuff. This should help.
  1104.  
  1105.  
  1106.                   (714) 455-1688  in the US
  1107.                   (081) 203-9900  in the UK
  1108.                   (416) 828-0260  in Canada
  1109.                   (02) 916-1600   in Taiwan
  1110.  
  1111.  
  1112.  
  1113.  
  1114.   3.12.1.  DE-100, DE-200, DE-220-T
  1115.  
  1116.  
  1117.   Status -- Supported
  1118.  
  1119.   The manual says that it is 100 % compatible with the NE2000. This is
  1120.   not true. You should call them and tell them you are using their card
  1121.   with Linux, and they should correct their documentation. Some
  1122.   pre-0.99pl12 driver versions may have trouble recognizing the DE2**
  1123.   series as 16 bit cards, and these cards are the most widely reported
  1124.   as having the spurious transfer address mismatch errors. Note that
  1125.   there are cards from Digital (DEC) that are also named DE100 and
  1126.   DE200, but the similarity stops there.
  1127.  
  1128.  
  1129.   3.12.2.  DE-520
  1130.  
  1131.  
  1132.   Status -- Supported
  1133.  
  1134.   This is a PCI card using the PCI version of AMD's LANCE chip.  DMA
  1135.   selection and chip numbering information can be found in ``AMD
  1136.   LANCE''.
  1137.  
  1138.   More technical information on AMD LANCE based Ethernet cards can be
  1139.   found in ``Notes on AMD...''.
  1140.  
  1141.  
  1142.   3.12.3.  DE-530
  1143.  
  1144.  
  1145.   Status -- Supported
  1146.  
  1147.   This is a generic DEC 21040 PCI chip implementation, and works with
  1148.   the generic 21040 driver.
  1149.  
  1150.   See ``DEC 21040'' for more information on these cards, and the present
  1151.   driver situation.
  1152.  
  1153.  
  1154.   3.12.4.  DE-600
  1155.  
  1156.  
  1157.   Status -- Supported
  1158.  
  1159.   Laptop users and other folk who might want a quick way to put their
  1160.   computer onto the ethernet may want to use this. The driver is
  1161.   included with the default kernel source tree.  Bjorn Ekwall
  1162.   bj0rn@blox.se wrote the driver.  Expect about 180kb/s transfer speed
  1163.   from this via the parallel port. You should read the README.DLINK file
  1164.   in the kernel source tree.
  1165.  
  1166.   Note that the device name that you pass to ifconfig is now eth0 and
  1167.   not the previously used dl0.
  1168.  
  1169.   If your parallel port is not at the standard 0x378 then you will have
  1170.   to recompile. Bjorn writes: ``Since the DE-620 driver tries to sqeeze
  1171.   the last microsecond from the loops, I made the irq and port address
  1172.   constants instead of variables. This makes for a usable speed, but it
  1173.   also means that you can't change these assignements from e.g. lilo;
  1174.   you _have_ to recompile...'' Also note that some laptops implement the
  1175.   on-board parallel port at 0x3bc which is where the parallel ports on
  1176.   monochrome cards were/are.
  1177.  
  1178.  
  1179.   3.12.5.  DE-620
  1180.  
  1181.  
  1182.   Status -- Supported
  1183.  
  1184.   Same as the DE-600, only with two output formats.  Bjorn has written a
  1185.   driver for this model, for kernel versions 1.1 and above. See the
  1186.   above information on the DE-600.
  1187.  
  1188.  
  1189.   3.12.6.  DE-650
  1190.  
  1191.  
  1192.   Status -- Semi-Supported
  1193.  
  1194.   Some people have been using this PCMCIA card for some time now with
  1195.   their notebooks. It is a basic 8390 design, much like a NE2000. The
  1196.   LinkSys PCMCIA card and the IC-Card Ethernet (available from Midwest
  1197.   Micro) are supposedly DE-650 clones as well.  Note that at present,
  1198.   this driver is not part of the standard kernel, and so you will have
  1199.   to do some patching.
  1200.  
  1201.   See ``PCMCIA Support'' in this document, and if you can, have a look
  1202.   at:
  1203.  
  1204.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  1205.  
  1206.  
  1207.   3.13.  DFI
  1208.  
  1209.  
  1210.  
  1211.   3.13.1.  DFINET-300 and DFINET-400
  1212.  
  1213.  
  1214.   Status -- Supported
  1215.  
  1216.   These cards are now detected (as of 0.99pl15) thanks to Eberhard
  1217.   Moenkeberg emoenke@gwdg.de who noted that they use `DFI' in the first
  1218.   3 bytes of the prom, instead of using 0x57 in bytes 14 and 15, which
  1219.   is what all the NE1000 and NE2000 cards use. (The 300 is an 8 bit
  1220.   pseudo NE1000 clone, and the 400 is a pseudo NE2000 clone.)
  1221.  
  1222.  
  1223.  
  1224.   3.14.  Digital / DEC
  1225.  
  1226.  
  1227.  
  1228.   3.14.1.  DEPCA, DE100, DE200/1/2, DE210, DE422
  1229.  
  1230.  
  1231.   Status -- Supported
  1232.  
  1233.   As of linux v1.0, there is a driver included as standard for these
  1234.   cards. It was written by David C. Davies.  There is documentation
  1235.   included in the source file `depca.c', which includes info on how to
  1236.   use more than one of these cards in a machine. Note that the DE422 is
  1237.   an EISA card. These cards are all based on the AMD LANCE chip.  See
  1238.   ``AMD LANCE'' for more info.  A maximum of two of the ISA cards can be
  1239.   used, because they can only be set for 0x300 and 0x200 base I/O
  1240.   address.  If you are intending to do this, please read the notes in
  1241.   the driver source file depca.c in the standard kernel source tree.
  1242.  
  1243.  
  1244.   3.14.2.  Digital EtherWorks 3 (DE203, DE204, DE205)
  1245.  
  1246.  
  1247.   Status -- Supported
  1248.  
  1249.   Included into kernels v1.1.62 and above is this driver, also by David
  1250.   C. Davies of DEC. These cards use a proprietary chip from DEC, as
  1251.   opposed to the LANCE chip used in the earlier cards like the DE200.
  1252.   These cards support both shared memory or programmed I/O, although you
  1253.   take about a 50%performance hit if you use PIO mode. The shared memory
  1254.   size can be set to 2kB, 32kB or 64kB, but only 2 and 32 have been
  1255.   tested with this driver. David says that the performance is virtually
  1256.   identical between the 2kB and 32kB mode. There is more information
  1257.   (including using the driver as a loadable module) at the top of the
  1258.   driver file ewrk3.c and also in README.ewrk3.  Both of these files
  1259.   come with the standard kernel distribution.
  1260.  
  1261.   Other interesting notes are that it appears that David is/was working
  1262.   on this driver for the unreleased version of Linux for the DEC Alpha
  1263.   AXP. And the standard driver has a number of interesting ioctl() calls
  1264.   that can be used to get or clear packet statistics, read/write the
  1265.   EEPROM, change the hardware address, and the like. Hackers can see the
  1266.   source code for more info on that one.
  1267.  
  1268.   David has also written a configuration utility for this card (along
  1269.   the lines of the DOS program NICSETUP.EXE) along with other tools.
  1270.   These can be found on sunsite.unc.edu in the directory
  1271.   /pub/Linux/system/Network/management -- look for the file ewrk3tools-
  1272.   X.XX.tar.gz.
  1273.  
  1274.  
  1275.   3.14.3.  DE425 (EISA), DE434, DE435
  1276.  
  1277.  
  1278.   Status -- Supported
  1279.  
  1280.   These cards are based on the 21040 chip mentioned below.  Included
  1281.   into kernels v1.1.86 and above is this driver, also by David C. Davies
  1282.   of DEC. It sure is nice to have support from someone on the inside
  1283.   ;-) Have a read of the 21040 section for extra info.
  1284.  
  1285.   Note that as of 1.1.91, David has added a compile time option that may
  1286.   allow non-DEC cards (such as the Znyx cards) to work with this driver.
  1287.   Have a look at README.de4x5 for details.
  1288.  
  1289.  
  1290.   3.14.4.  DEC 21040, 21140, Tulip
  1291.  
  1292.  
  1293.   Status -- Supported
  1294.  
  1295.   The DEC 21040 is a bus-mastering single chip ethernet solution from
  1296.   Digital, similar to AMD's PCnet chip. The 21040 is specifically
  1297.   designed for the PCI bus architecture.  SMC's new EtherPower PCI card
  1298.   uses this chip.  The new 21140 recently announced is for supporting
  1299.   100Base-? and is supposed to be able to work with drivers for the
  1300.   21040 chip.
  1301.  
  1302.   You have a choice of two drivers for cards based on this chip. There
  1303.   is the DE425 driver discussed above, and the generic 21040 driver that
  1304.   Donald has written.
  1305.  
  1306.   To use David's de4x5 driver with non-DEC cards, have a look at
  1307.   README.de4x5 for details.
  1308.  
  1309.   Donald is doing his generic 21040 driver development on a SMC
  1310.   EtherPower PCI card at the moment, and this driver is included in the
  1311.   standard kernel source as of 1.1.84.  Note that this driver is still
  1312.   considered an alpha driver (see ``Alpha Drivers'') at the moment, and
  1313.   should be treated as such. To use it, you will have to edit
  1314.   arch/i386/config.in and uncomment the line for CONFIG_DEC_ELCP
  1315.   support.
  1316.  
  1317.   Also note to change the output media from the default of 10BaseT to
  1318.   use 10Base2, you will have to change the `4' to a `d' at (or around
  1319.   line 325 in tulip.c) where it has:
  1320.  
  1321.   ______________________________________________________________________
  1322.           outl(0x00000004, ioaddr + CSR13);
  1323.   ______________________________________________________________________
  1324.  
  1325.  
  1326.  
  1327.   This will probably be made more elegant as the driver moves out of
  1328.   alpha testing.
  1329.  
  1330.  
  1331.   3.15.  Farallon
  1332.  
  1333.   Farallon sells EtherWave adaptors and transceivers. This device allows
  1334.   multiple 10baseT devices to be daisy-chained.
  1335.  
  1336.  
  1337.   3.15.1.  Farallon Etherwave
  1338.  
  1339.  
  1340.   Status -- Supported
  1341.  
  1342.   This is reported to be a 3c509 clone that includes the EtherWave
  1343.   transceiver. People have used these successfully with Linux and the
  1344.   present 3c509 driver. They are too expensive for general use, but are
  1345.   a great option for special cases.  Hublet prices start at $125, and
  1346.   Etherwave adds $75-$100 to the price of the board -- worth it if you
  1347.   have pulled one wire too few, but not if you are two network drops
  1348.   short.
  1349.  
  1350.  
  1351.   3.16.  Hewlett Packard
  1352.  
  1353.  
  1354.   The 272** cards use programmed I/O, similar to the NE*000 boards, but
  1355.   the data transfer port can be `turned off' when you aren't accessing
  1356.   it, avoiding problems with autoprobing drivers.
  1357.  
  1358.   Thanks to Glenn Talbott for helping clean up the confusion in this
  1359.   section regarding the version numbers of the HP hardware.
  1360.  
  1361.  
  1362.   3.16.1.  27245A
  1363.  
  1364.  
  1365.   Status -- Supported
  1366.  
  1367.   8 Bit 8390 based 10BaseT, not recommended for all the 8 bit reasons.
  1368.   It was re-designed a couple years ago to be highly integrated which
  1369.   caused some changes in initialization timing which only affected
  1370.   testing programs, not LAN drivers. (The new card is not `ready' as
  1371.   soon after switching into and out of loopback mode.)
  1372.  
  1373.  
  1374.   3.16.2.  HP PC Lan+ (27247A, 27247B, 27252A)
  1375.  
  1376.  
  1377.   Status -- Supported
  1378.  
  1379.   The HP PC Lan+ is different to the standard HP PC Lan card. This
  1380.   driver was added to the list of drivers in the standard kernel at
  1381.   about v1.1.3X. Note that even though the driver is included, the entry
  1382.   in `config.in' seems to have been omitted. If you want to use it, and
  1383.   it doesn't come up in `config.in' then add the following line to
  1384.   `config.in' under the  `HP PCLAN support' line:
  1385.  
  1386.  
  1387.           bool 'HP PCLAN Plus support' CONFIG_HPLAN_PLUS n
  1388.  
  1389.  
  1390.  
  1391.   Then run make config;make dep;make zlilo or whatever.
  1392.  
  1393.   The 47B is a 16 Bit 8390 based 10BaseT w/AUI, and the 52A is a 16 Bit
  1394.   8390 based ThinLAN w/AUI.  These cards are high performers (3c509
  1395.   speed) without the interrupt latency problems (32K onboard RAM for TX
  1396.   or RX packet buffering). They both offer LAN connector autosense, data
  1397.   I/O in I/O space (simpler) or memory mapped (faster), and soft
  1398.   configuration.
  1399.  
  1400.   The 47A is the older model that existed before the `B'.  Two versions
  1401.   27247-60001 or 27247-60002 have part numbers marked on the card.
  1402.   Functionally the same to the LAN driver, except bits in ROM to
  1403.   identify boards differ. -60002 has a jumper to allow operation in non-
  1404.   standard ISA busses (chipsets that expect IOCHRDY early.)
  1405.  
  1406.  
  1407.  
  1408.   3.16.3.  HP-J2405A
  1409.  
  1410.  
  1411.   Status -- Supported
  1412.  
  1413.   These are lower priced, and slightly faster than the 27247B/27252A,
  1414.   but are missing some features, such as AUI, ThinLAN connectivity, and
  1415.   boot PROM socket.  This is a fairly generic LANCE design, but a minor
  1416.   design decision makes it incompatible with a generic `NE2100' driver.
  1417.   Special support for it (including reading the DMA channel from the
  1418.   board) is included thanks to information provided by HP's Glenn
  1419.   Talbott.
  1420.  
  1421.   More technical information on LANCE based cards can be found in
  1422.   ``Notes on AMD...''
  1423.  
  1424.  
  1425.   3.16.4.  HP-Vectra On Board Ethernet
  1426.  
  1427.  
  1428.   Status -- Supported
  1429.  
  1430.   The HP-Vectra has an AMD PCnet chip on the motherboard.  Earlier
  1431.   kernel versions would detect it as the HP-J2405A but that would fail,
  1432.   as the Vectra doesn't report the IRQ and DMA channel like the J2405A.
  1433.   Get a kernel newer than v1.1.53 to avoid this problem.
  1434.  
  1435.   DMA selection and chip numbering information can be found in ``AMD
  1436.   LANCE''.
  1437.  
  1438.   More technical information on LANCE based cards can be found in
  1439.   ``Notes on AMD...''
  1440.  
  1441.  
  1442.   3.17.  IBM / International Business Machines
  1443.  
  1444.  
  1445.  
  1446.   3.17.1.  IBM Thinkpad 300
  1447.  
  1448.  
  1449.   Status -- Supported
  1450.  
  1451.   This is compatible with the Intel based Zenith Z-note.  See ``Z-note''
  1452.   for more info.
  1453.   Supposedly this site has a comprehensive database of useful stuff for
  1454.   newer versions of the Thinkpad. I haven't checked it out myself yet.
  1455.  
  1456.   Thinkpad-info <http://peipa.essex.ac.uk/html/linux-thinkpad.html>
  1457.  
  1458.   For those without a WWW browser handy, try
  1459.   peipa.essex.ac.uk:/pub/tp750/
  1460.  
  1461.  
  1462.   3.17.2.  IBM Credit Card Adaptor for Ethernet
  1463.  
  1464.  
  1465.   Status -- Semi-Supported
  1466.  
  1467.   People have been using this PCMCIA card with Linux as well.  Similar
  1468.   points apply, those being that you need a supported PCMCIA chipset on
  1469.   your notebook, and that you will have to patch the PCMCIA support into
  1470.   the standard kernel.
  1471.  
  1472.   See ``PCMCIA Support'' in this document, and if you can, have a look
  1473.   at:
  1474.  
  1475.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  1476.  
  1477.  
  1478.  
  1479.   3.18.  Intel Ethernet Cards
  1480.  
  1481.  
  1482.  
  1483.   3.18.1.  Ether Express
  1484.  
  1485.  
  1486.   Status -- Semi-Supported
  1487.  
  1488.   This card uses the intel i82586. (Surprise, huh?)  The driver is in
  1489.   the standard release of the kernel, as an alpha driver. See ``Alpha
  1490.   Drivers'' for important information on using alpha-test ethernet
  1491.   drivers with Linux.
  1492.  
  1493.   The reason is that the driver works well with slow machines, but the
  1494.   i82586 occasionally hangs from the packet buffer contention that a
  1495.   fast machine can cause.  One reported hack/fix is to change all of the
  1496.   outw() calls to outw_p(). Also, the driver is missing promiscuous and
  1497.   multicast modes. (See ``Multicast and...'')
  1498.  
  1499.   There is also the standard way of using the chip (read slower) that is
  1500.   described in the chip manual, and used in other i82586 drivers, but
  1501.   this would require a re-write of the entire driver.
  1502.  
  1503.   There is some technical information available on the i82586 in
  1504.   ``Programming the Intel Chips'' and also in the source code for the
  1505.   driver `eexpress.c'. Don't be afraid to read it. ;-)
  1506.  
  1507.  
  1508.   3.18.2.  Ether Express PRO/10
  1509.  
  1510.  
  1511.   Status -- Semi-Supported
  1512.  
  1513.   Bao Chau Ha has written a driver for these cards that is scheduled to
  1514.   go into the 1.3.x kernels. It may also work with some of the Compaq
  1515.   built-in ethernet systems that are based on the i82595 chip. If you
  1516.   want to try the driver out now, you can e-mail Bao on
  1517.   bao@saigon.async.com and ask for it.
  1518.  
  1519.   3.18.3.  Ether Express PRO/100
  1520.  
  1521.  
  1522.   Status -- Not Supported
  1523.  
  1524.   These PCI and EISA cards use a different chip that the PRO/10 cards
  1525.   do. Bao is currently trying to get a datasheet out of Intel without
  1526.   having to sign a NDA. Good Luck!
  1527.  
  1528.  
  1529.   3.19.  LinkSys
  1530.  
  1531.  
  1532.  
  1533.   3.19.1.  LinkSys PCMCIA Adaptor
  1534.  
  1535.  
  1536.   Status -- Supported
  1537.  
  1538.   This is supposed to be a re-badged DE-650. See the information on the
  1539.   DE-650 in ``DE-650''.
  1540.  
  1541.  
  1542.   3.20.  Microdyne
  1543.  
  1544.  
  1545.  
  1546.   3.20.1.  Microdyne Exos 205T
  1547.  
  1548.  
  1549.   Status -- Semi-Supported
  1550.  
  1551.   Another i82586 based card. Dirk Niggemann dabn100@hermes.cam.ac.uk has
  1552.   written a driver that he classes as ``pre-alpha'' that he would like
  1553.   people to test. Mail him for more details.
  1554.  
  1555.  
  1556.   3.21.  Mylex
  1557.  
  1558.  
  1559.   Mylex can be reached at the following numbers, in case anyone wants to
  1560.   ask them anything.
  1561.  
  1562.  
  1563.           MYLEX CORPORATION, Fremont
  1564.           Sales:  800-77-MYLEX, (510) 796-6100
  1565.           FAX:    (510) 745-8016.
  1566.  
  1567.  
  1568.  
  1569.  
  1570.   3.21.1.  Mylex LNP101
  1571.  
  1572.  
  1573.   Status -- Supported
  1574.  
  1575.   This is a PCI card that is based on DEC's 21040 chip.  It is
  1576.   selectable between 10BaseT, 10Base2 and 10Base5 output.  The LNP101
  1577.   card has been verified to work with the generic 21040 driver.
  1578.  
  1579.   See the section on the 21040 chip (``DEC 21040'') for more
  1580.   information.
  1581.  
  1582.  
  1583.  
  1584.  
  1585.   3.21.2.  Mylex LNP104
  1586.  
  1587.  
  1588.   Status -- Not Supported
  1589.  
  1590.   The LNP104 uses the DEC 21050 chip to deliver four independent 10BaseT
  1591.   ports. It may work with 21040 drivers, but nobody has tried yet.
  1592.  
  1593.  
  1594.   3.21.3.  Mylex M390B EISA
  1595.  
  1596.  
  1597.   Status -- Not Supported
  1598.  
  1599.   Russ writes that "...it's a fairly vanilla 8390-based adapter.  Only
  1600.   really tricky thing is that, like the Interlan es3210, you MUST do
  1601.   only 32-bit transfers to/from the board.  Look at the Crynwr packet
  1602.   driver and try making the changes yourself...''
  1603.  
  1604.  
  1605.   3.22.  Novell Ethernet, NExxxx and associated clones.
  1606.  
  1607.  
  1608.   The prefix `NE' came from Novell Ethernet. Novell followed the
  1609.   cheapest NatSemi databook design and sold the manufacturing rights
  1610.   (spun off?) Eagle, just to get reasonably-priced ethercards into the
  1611.   market. (The now ubiquitous NE2000 card.)
  1612.  
  1613.  
  1614.   3.22.1.  NE1000, NE2000
  1615.  
  1616.  
  1617.   Status -- Supported
  1618.  
  1619.   The now-generic name for a bare-bones design around the NatSemi 8390.
  1620.   They use programmed I/O rather than shared memory, leading to easier
  1621.   installation but slightly lower performance and a few problems. Again,
  1622.   the savings of using an 8 bit NE1000 over the NE2000 are only
  1623.   warranted if you expect light use. Some recently introduced NE2000
  1624.   clones use the National Semiconductor `AT/LANTic' 83905 chip, which
  1625.   offers a shared memory mode similar to the 8013 and EEPROM or software
  1626.   configuration. Some problems can arise with poor NE2000 clones. See
  1627.   ``Problems with...'', and ``Poor NE2000 Clones'' In general it is not
  1628.   a good idea to put a NE2000 clone at I/O address 0x300 because nearly
  1629.   every device driver probes there at boot. Some poor NE2000 clones
  1630.   don't take kindy to being prodded in the wrong areas, and will respond
  1631.   by locking your machine.
  1632.  
  1633.   Donald has written a NE2000 diagnostic program, but it is still
  1634.   presently in alpha test. (ne2k) See ``Diagnostic Programs'' for more
  1635.   information.
  1636.  
  1637.  
  1638.   3.22.2.  NE1500, NE2100
  1639.  
  1640.  
  1641.   Status -- Supported
  1642.  
  1643.   These cards use the original 7990 LANCE chip from AMD and are
  1644.   supported using the Linux lance driver. Newer NE2100 clones use the
  1645.   updated PCnet/ISA chip from AMD.
  1646.  
  1647.   Some earlier versions of the lance driver had problems with getting
  1648.   the IRQ line via autoIRQ from the original Novell/Eagle 7990 cards.
  1649.   Hopefully this is now fixed.  If not, then specify the IRQ via LILO,
  1650.   and let us know that it still has problems.
  1651.   DMA selection and chip numbering information can be found in ``AMD
  1652.   LANCE''.
  1653.  
  1654.   More technical information on LANCE based cards can be found in
  1655.   ``Notes on AMD...''
  1656.  
  1657.  
  1658.   3.22.3.  NE3200
  1659.  
  1660.  
  1661.   Status -- Not Supported
  1662.  
  1663.   This card uses a lowly 8MHz 80186, and hence you are better off using
  1664.   a cheap NE2000 clone. Even if a driver was available, the NE2000 card
  1665.   would most likely be faster.
  1666.  
  1667.  
  1668.   3.23.  Pure Data
  1669.  
  1670.  
  1671.  
  1672.   3.23.1.  PDUC8028, PDI8023
  1673.  
  1674.  
  1675.   Status -- Supported
  1676.  
  1677.   The PureData PDUC8028 and PDI8023 series of cards are reported to
  1678.   work, thanks to special probe code contributed by Mike Jagdis
  1679.   jaggy@purplet.demon.co.uk. The support is integrated with the WD
  1680.   driver.
  1681.  
  1682.  
  1683.   3.24.  Racal-Interlan
  1684.  
  1685.  
  1686.  
  1687.   3.24.1.  NI52**
  1688.  
  1689.  
  1690.   Status -- Semi-Supported
  1691.  
  1692.   Michael Hipp has written a driver for this card. It is included in the
  1693.   standard kernel as an `alpha' driver. Michael would like to hear
  1694.   feedback from users that have this card. See ``Alpha Drivers'' for
  1695.   important information on using alpha-test ethernet drivers with Linux.
  1696.  
  1697.   Michael says that ``the internal sysbus seems to be slow. So we often
  1698.   lose packets because of overruns while receiving from a fast remote
  1699.   host.''
  1700.  
  1701.   This card also uses one of the Intel chips. See ``Programming the
  1702.   Intel Chips'' for more technical information.
  1703.  
  1704.  
  1705.  
  1706.   3.24.2.  NI65**
  1707.  
  1708.  
  1709.   Status -- Semi-Supported
  1710.  
  1711.   There is also a driver for the LANCE based NI6510, and it is also
  1712.   written by Michael Hipp. Again, it is also an `alpha' driver. For some
  1713.   reason, this card is not compatible with the generic LANCE driver. See
  1714.   ``Alpha Drivers'' for important information on using alpha-test
  1715.   ethernet drivers with Linux.
  1716.  
  1717.   3.25.  Sager
  1718.  
  1719.  
  1720.  
  1721.   3.25.1.  Sager NP943
  1722.  
  1723.  
  1724.   Status -- Semi-Supported
  1725.  
  1726.   This is just a 3c501 clone, with a different S.A. PROM prefix. I
  1727.   assume it is equally as brain dead as the original 3c501 as well.
  1728.   Kernels 1.1.53 and up check for the NP943 i.d. and then just treat it
  1729.   as a 3c501 after that. See ``3Com 3c501'' for all the reasons as to
  1730.   why you really don't want to use one of these cards.
  1731.  
  1732.  
  1733.   3.26.  Schneider & Koch
  1734.  
  1735.  
  1736.  
  1737.   3.26.1.  SK G16
  1738.  
  1739.  
  1740.   Status -- Supported
  1741.  
  1742.   This driver was included into the v1.1 kernels, and it was written by
  1743.   PJD Weichmann and SWS Bern. It appears that the SK G16 is similar to
  1744.   the NI6510, in that it is based on the first edition LANCE chip (the
  1745.   7990). Once again, I have no idea as to why this card won't work with
  1746.   the generic LANCE driver.
  1747.  
  1748.  
  1749.   3.27.  Western Digital / SMC (Standard Microsystems Corp.)
  1750.  
  1751.  
  1752.   The ethernet part of Western Digital has been bought by SMC.  One
  1753.   common mistake people make is that the relatively new SMC Elite Ultra
  1754.   is the same as the older SMC Elite16 models -- this is not the case.
  1755.  
  1756.   Here is how to contact SMC (not that you should need to.)
  1757.  
  1758.        SMC / Standard Microsystems Corp., 80 Arkay Drive, Hauppage,
  1759.        New York, 11788, USA.
  1760.  
  1761.  
  1762.   Technical Support via phone:
  1763.  
  1764.           800-992-4762 (USA)
  1765.           800-433-5345 (Canada)
  1766.           516-435-6250 (Other Countries)
  1767.  
  1768.  
  1769.  
  1770.   Literature requests:
  1771.  
  1772.           800-SMC-4-YOU (USA)
  1773.           800-833-4-SMC (Canada)
  1774.           516-435-6255  (Other Countries)
  1775.  
  1776.  
  1777.  
  1778.   Technical Support via E-mail:
  1779.  
  1780.           techsupt@ccmail.west.smc.com
  1781.  
  1782.  
  1783.   FTP Site:
  1784.  
  1785.           ftp.smc.com
  1786.  
  1787.  
  1788.  
  1789.  
  1790.   3.27.1.  WD8003, SMC Elite
  1791.  
  1792.   Status -- Supported
  1793.  
  1794.   These are the 8-bit versions of the card. The 8 bit 8003 is slightly
  1795.   less expensive, but only worth the savings for light use. Note that
  1796.   some of the non-EEPROM cards (clones with jumpers, or old old old
  1797.   wd8003 cards) have no way of reporting the IRQ line used. In this
  1798.   case, auto-irq is used, and if that fails, the driver silently assings
  1799.   IRQ 5.  Information regarding what the jumpers on old non-EEPROM
  1800.   wd8003 cards do can be found in conjunction with the SMC setup/driver
  1801.   disks stored on dorm.rutgers.edu in the directory
  1802.   /pub/novell/nic_drvs/. Note that some of the newer SMC `SuperDisk'
  1803.   programs will fail to detect the old EEPROM-less cards. The file
  1804.   SMCDSK46.EXE seems to be a good all-round choice. Also the jumper
  1805.   settings for old cards are in an ascii text file in the aforementioned
  1806.   archive. The latest (greatest?) version can be obtained from
  1807.   ftp.smc.com.
  1808.  
  1809.   As these are basically the same as their 16 bit counterparts (WD8013 /
  1810.   SMC Elite16), you should see the next section for more information.
  1811.  
  1812.  
  1813.  
  1814.   3.27.2.  WD8013, SMC Elite16
  1815.  
  1816.  
  1817.   Status -- Supported
  1818.  
  1819.   Over the years the design has added more registers and an EEPROM.
  1820.   Clones usually go by the `8013' name, and usually use a non-EEPROM
  1821.   (jumpered) design. This part of WD has been sold to SMC, so you'll
  1822.   usually see something like SMC/WD8013 or SMC Elite16 Plus (WD8013).
  1823.   Late model SMC cards will have two main PLCC chips on board; the SMC
  1824.   83c690 and the SMC 83c694.  The shared memory design makes the cards
  1825.   10-20 % faster, especially with larger packets. More importantly, from
  1826.   the driver's point of view, it avoids a few bugs in the programmed-I/O
  1827.   mode of the 8390, allows safe multi-threaded access to the packet
  1828.   buffer, and it doesn't have a programmed-I/O data register that hangs
  1829.   your machine during warm-boot probes.
  1830.  
  1831.   Non-EEPROM cards that can't just read the selected IRQ will attempt
  1832.   auto-irq, and if that fails, they will silently assign IRQ 10. (8 bit
  1833.   versions will assign IRQ 5)
  1834.  
  1835.   Also see ``8013 clones'' and ``8013 problems''.
  1836.  
  1837.  
  1838.   3.27.3.  SMC Elite Ultra
  1839.  
  1840.  
  1841.   Status -- Supported
  1842.  
  1843.   This ethercard is based on a new chip from SMC, with a few new
  1844.   features. While it has a mode that is similar to the older SMC
  1845.   ethercards, it's not compatible with the old WD80*3 drivers. However,
  1846.   in this mode it shares most of its code with the other 8390 drivers,
  1847.   while operating somewhat faster than a WD8013 clone.
  1848.  
  1849.   Since part of the Ultra looks like an 8013, the Ultra probe is
  1850.   supposed to find an Ultra before the wd8013 probe has a chance to
  1851.   mistakenly identify it.
  1852.  
  1853.   Std. as of 0.99pl14, and made possible by documentation and ethercard
  1854.   loan from Duke Kamstra. If you plan on using an Ultra with Linux send
  1855.   him a note of thanks to let him know that there are Linux users out
  1856.   there!
  1857.  
  1858.   Donald mentioned that it is possible to write a separate driver for
  1859.   the Ultra's `Altego' mode which allows chaining transmits at the cost
  1860.   of inefficient use of receive buffers, but that will probably not
  1861.   happen.
  1862.  
  1863.   Bus-Master SCSI host adaptor users take note: In the manual that ships
  1864.   with Interactive UNIX, it mentions that a bug in the SMC Ultra will
  1865.   cause data corruption with SCSI disks being run from an aha-154X host
  1866.   adaptor.  This will probably bite aha-154X compatible cards, such as
  1867.   the BusLogic boards, and the AMI-FastDisk SCSI host adaptors as well.
  1868.  
  1869.   SMC has acknowledged the problem occurs with Interactive, and older
  1870.   Windows NT drivers. It is a hardware conflict with early revisions of
  1871.   the card that can be worked around in the driver design. The current
  1872.   Ultra driver protects against this by only enabling the shared memory
  1873.   during data transfers with the card. Make sure your kernel version is
  1874.   at least 1.1.84, or that the driver version reported at boot is at
  1875.   least smc-ultra.c:v1.12 otherwise you are vulnerable.
  1876.  
  1877.  
  1878.  
  1879.   3.27.4.  SMC 8416 (EtherEZ)
  1880.  
  1881.  
  1882.   Status -- Supported
  1883.  
  1884.   This card uses SMC's 83c795 chip and supports the Plug 'n Play
  1885.   specification. It also has an SMC Ultra compatible mode, which allows
  1886.   it to be used with the Linux Ultra driver.  In this compatibility
  1887.   mode, it uses shared memory instead of programmed i/o. Be sure to set
  1888.   your card for this compatibility mode.
  1889.  
  1890.   Note that the EtherEZ specific checks were added to the SMC Ultra
  1891.   driver in 1.1.84, and hence earlier kernel versions will not handle
  1892.   these cards correctly.
  1893.  
  1894.  
  1895.  
  1896.   3.27.5.  SMC 8432 PCI (EtherPower)
  1897.  
  1898.  
  1899.   Status -- Supported
  1900.  
  1901.   These cards appear to be a basic DEC 21040 implementation, i.e. one
  1902.   big chip and a couple of transceivers. Donald has used one of these
  1903.   cards for his development of the generic 21040 driver. Thanks to Duke
  1904.   Kamstra, once again, for supplying a card to do development on.  See
  1905.   ``DEC 21040'' for more details on using one of these cards, and the
  1906.   current status of the driver.
  1907.  
  1908.  
  1909.   3.27.6.  SMC 3008
  1910.  
  1911.  
  1912.   Status -- Not Supported
  1913.  
  1914.  
  1915.   These 8 bit cards are based on the Fujitsu MB86950, which is an
  1916.   ancient version of the MB86965 used in the Linux at1700 driver. Russ
  1917.   says that you could probably hack up a driver by looking at the
  1918.   at1700.c code and his DOS packet driver for the Tiara card (tiara.asm)
  1919.  
  1920.  
  1921.   3.27.7.  SMC 3016
  1922.  
  1923.  
  1924.   Status -- Not Supported
  1925.  
  1926.   These are 16bit i/o mapped 8390 cards, much similar to a generic
  1927.   NE2000 card. If you can get the specifications from SMC, then porting
  1928.   the NE2000 driver would probably be quite easy.
  1929.  
  1930.  
  1931.   3.27.8.  SMC 9000
  1932.  
  1933.  
  1934.   Status -- Not Supported
  1935.  
  1936.   These cards are VLB cards based on the 91c92 chip. They are fairly
  1937.   expensive, and hence the demand for a driver is pretty low at the
  1938.   moment.
  1939.  
  1940.  
  1941.   3.28.  Xircom
  1942.  
  1943.  
  1944.   Another group that won't release documentation. No cards supported.
  1945.   Don't look for any support in the future unless they release their
  1946.   programming information. And this is highly unlikely, as they forbid
  1947.   you from even reverse- engineering their drivers. If you are already
  1948.   stuck with one, see if you can trade it off on some DOS (l)user.
  1949.  
  1950.   And if you just want to verify that this is the case, you can reach
  1951.   Xircom at 1-800-874-7875, 1-800-438-4526 or +1-818-878-7600.  They
  1952.   used to advertise that their products "work with all network operating
  1953.   systems", but have since stopped. Wonder why...
  1954.  
  1955.  
  1956.   3.28.1.  PE1, PE2, PE3-10B*
  1957.  
  1958.  
  1959.   Status -- Not Supported
  1960.  
  1961.   Not to get your hopes up, but if you have one of these parallel port
  1962.   adaptors, you may be able to use it in the DOS emulator with the
  1963.   Xircom-supplied DOS drivers. You will have to allow DOSEMU access to
  1964.   your parallel port, and will probably have to play with SIG (DOSEMU's
  1965.   Silly Interrupt Generator). I have no idea if this will work, but if
  1966.   you have any success with it, let me know, and I will include it here.
  1967.  
  1968.  
  1969.   3.29.  Zenith
  1970.  
  1971.  
  1972.  
  1973.   3.29.1.  Z-Note
  1974.  
  1975.  
  1976.   Status -- Supported
  1977.  
  1978.   The built-in Z-Note network adaptor is based on the Intel i82593 using
  1979.   two DMA channels. There is an (alpha?) driver available in the present
  1980.   kernel version. As with all notebook and pocket adaptors, it is under
  1981.   the `Pocket and portable adaptors' section when running make config.
  1982.   See ``Programming the Intel chips'' for more technical information.
  1983.   Also note that the IBM ThinkPad 300 is compatible with the Z-Note.
  1984.  
  1985.  
  1986.   3.30.  Znyx
  1987.  
  1988.  
  1989.  
  1990.   3.30.1.  Znyx ZX342 (DEC 21040 based)
  1991.  
  1992.  
  1993.   Status -- Supported
  1994.  
  1995.   You have a choice of two drivers for cards based on this chip. There
  1996.   is the DE425 driver written by David, and the generic 21040 driver
  1997.   that Donald has written.
  1998.  
  1999.   Note that as of 1.1.91, David has added a compile time option that may
  2000.   allow non-DEC cards (such as the Znyx cards) to work with this driver.
  2001.   Have a look at README.de4x5 for details.
  2002.  
  2003.   See ``DEC 21040'' for more information on these cards, and the present
  2004.   driver situation.
  2005.  
  2006.  
  2007.   4.  Clones of popular Ethernet cards.
  2008.  
  2009.  
  2010.   Due to the popular design of some cards, different companies will make
  2011.   `clones' or replicas of the original card. However, one must be
  2012.   careful, as some of these clones are not 100 % compatible, and can be
  2013.   troublesome. Some common problems with `not-quite-clones' are noted in
  2014.   ``the FAQ section''.
  2015.  
  2016.   This section used to have a listing of a whole bunch of clones that
  2017.   were reported to work, but seeing as nearly all clones will work, it
  2018.   makes more sense to list the ones that don't work 100 % .
  2019.  
  2020.  
  2021.   4.1.  Poor NE2000 Clones
  2022.  
  2023.  
  2024.   Here is a list of some of the NE-2000 clones that are known to have
  2025.   various problems. Most of them aren't fatal. In the case of the ones
  2026.   listed as `bad clones' -- this usually indicates that the cards don't
  2027.   have the two NE2000 identifier bytes. NEx000-clones have a Station
  2028.   Address PROM (SAPROM) in the packet buffer memory space.  NE2000
  2029.   clones have 0x57,0x57 in bytes 0x0e,0x0f of the SAPROM, while other
  2030.   supposed NE2000 clones must be detected by their SA prefix.
  2031.  
  2032.   Accton NE2000 -- might not get detected at boot, see ``ne2000
  2033.   problems''.
  2034.  
  2035.   Aritsoft LANtastic AE-2 -- OK, but has flawed error-reporting
  2036.   registers.
  2037.  
  2038.   AT-LAN-TEC NE2000 -- clone uses Winbond chip that traps SCSI drivers
  2039.  
  2040.   ShineNet LCS-8634 -- clone uses Winbond chip that traps SCSI drivers
  2041.  
  2042.   Cabletron E10**, E20**, E10**-x, E20**-x -- bad clones, but the driver
  2043.   checks for them. See ``E10**''.
  2044.  
  2045.   D-Link Ethernet II -- bad clones, but the driver checks for them. See
  2046.   ``DE-100 / DE-200''.
  2047.   DFI DFINET-300, DFINET-400 -- bad clones, but the driver checks for
  2048.   them. See ``DFI-300 / DFI-400''
  2049.  
  2050.  
  2051.   4.2.  Poor WD8013 Clones
  2052.  
  2053.  
  2054.   I haven't heard of any bad clones of these cards, except perhaps for
  2055.   some chamelion-type cards that can be set to look like a ne2000 card
  2056.   or a wd8013 card. There is really no need to purchase one of these
  2057.   `double-identity' cards anyway.
  2058.  
  2059.  
  2060.   5.  Cables, Coax, Twisted Pair
  2061.  
  2062.   If you are starting a network from scratch, it's considerably less
  2063.   expensive to use thin ethernet, RG58 co-ax cable with BNC connectors,
  2064.   than old-fashioned thick ethernet, RG-5 cable with N connectors, or
  2065.   10baseT, twisted pair telco-style cables with RJ-45 eight wire `phone'
  2066.   connectors. See ``Type of cable...'' for an introductory look at
  2067.   cables.
  2068.  
  2069.   Also note that the FAQ from comp.dcom.lans.ethernet has a lot of
  2070.   useful information on cables and such. Look in dorm.rutgers.edu for
  2071.   the file /pub/novell/info_and_docs/Ethernet.FAQ
  2072.  
  2073.  
  2074.   5.1.  Thin Ethernet (thinnet)
  2075.  
  2076.  
  2077.   Thin ethernet is the `ether of choice'. The cable is inexpensive. If
  2078.   you are making your own cables solid-core RG58A is $0.27/m. and
  2079.   stranded RG58AU is $0.45/m. Twist-on BNC connectors are < $2 ea., and
  2080.   other misc. pieces are similarly inexpensive. It is essential that you
  2081.   properly terminate each end of the cable with 50 ohm terminators, so
  2082.   budget $2 ea. for a pair. It's also vital that your cable have no
  2083.   `stubs' -- the `T' connectors must be attached directly to the
  2084.   ethercards. The only drawback is that if you have a big loop of
  2085.   machines connected together, and some bonehead breaks the loop by
  2086.   taking one cable off the side of his tee, the whole network goes down
  2087.   because it sees an infinite impedance (open circuit) instead of the
  2088.   required 50 ohm termination. Note that you can remove the tee piece
  2089.   from the card itself without killing the whole subnet, as long as you
  2090.   don't remove the cables from the tee itself. Of course this will
  2091.   disturb the machine that you pull the actual tee off of. 8-) And if
  2092.   you are doing a small network of two machines, you still need the tees
  2093.   and the 50 ohm terminators -- you can't just cable them together!
  2094.  
  2095.  
  2096.  
  2097.   5.2.  Twisted Pair
  2098.  
  2099.  
  2100.   Twisted pair networks require active hubs, which start around $200,
  2101.   and the raw cable cost can actually be higher than thinnet. They are
  2102.   usually sold using the claim that you can use your existing telephone
  2103.   wiring, but it's a rare installation where that turns out to be the
  2104.   case. The claim that you can upgrade to higher speeds is also suspect,
  2105.   as most proposed schemes use higher-grade (read $$) cable and more
  2106.   sophisticated termination ($$$) than you would likely install on
  2107.   speculation. New gizmos are floating around which allow you to daisy-
  2108.   chain machines together, and the like. For example, Farallon sells
  2109.   EtherWave adaptors and transceivers. This device allows multiple
  2110.   10baseT devices to be daisy-chained. They also sell a 3c509 clone that
  2111.   includes the EtherWave transceiver.  The drawback is that it's more
  2112.   expensive and less reliable than a cheap ($100-$150) mini-hub and
  2113.   another ethercard.  You probably should either go for the hub approach
  2114.   or switch over to 10base2 thinnet.
  2115.  
  2116.   On the other hand, hubs are rapidly dropping in price, all 100Mb/sec
  2117.   ethernet proposals use twisted pair, and most new business
  2118.   installations use twisted pair. (This is probably to avoid the problem
  2119.   with idiots messing with the BNC's as described above.)
  2120.  
  2121.   Also, Russ Nelson adds that `New installations should use Category 5
  2122.   wiring. Anything else is a waste of your installer's time, as 100Base-
  2123.   whatever is going to require Cat 5.'
  2124.  
  2125.   If you are only connecting two machines, it is possible to avoid using
  2126.   a hub, by swapping the Rx and Tx pairs (1-2 and 3-6).
  2127.  
  2128.   If you hold the RJ-45 connector facing you (as if you were going to
  2129.   plug it into your mouth) with the lock tab on the top, then the pins
  2130.   are numbered 1 to 8 from left to right. The pin usage is as follows:
  2131.  
  2132.  
  2133.           Pin Number              Assignment
  2134.           ----------              ----------
  2135.           1                       Output Data (+)
  2136.           2                       Output Data (-)
  2137.           3                       Input Data (+)
  2138.           4                       Reserved for Telephone use
  2139.           5                       Reserved for Telephone use
  2140.           6                       Input Data (-)
  2141.           7                       Reserved for Telephone use
  2142.           8                       Reserved for Telephone use
  2143.  
  2144.  
  2145.  
  2146.   Some cards, like the wd8013 can sense reversed polarity, and will
  2147.   adjust accordingly. Also note that 3 and 6 must be a twisted pair. If
  2148.   you make 3-4 a twisted pair, and 5-6 the other twisted pair, your
  2149.   cable may work for lengths less than a metre, but will fail miserably
  2150.   for longer lengths.
  2151.  
  2152.   Note that before 10BaseT was ratified as a standard, there existed
  2153.   other network formats using RJ-45 connectors, and the same wiring
  2154.   scheme as above. Examples are SynOptics's LattisNet, and AT&T's
  2155.   StarLAN.  In some cases, (as with early 3C503 cards) you could set
  2156.   jumpers to get the card to talk to hubs of different types, but in
  2157.   most cases cards designed for these older types of networks will not
  2158.   work with standard 10BaseT networks/hubs. (Note that if the cards also
  2159.   have an AUI port, then there is no reason as to why you can't use
  2160.   that, combined with an AUI to 10BaseT transceiver.)
  2161.  
  2162.  
  2163.   5.3.  Thick Ethernet
  2164.  
  2165.   Thick ethernet is mostly obsolete, and is usually used only to remain
  2166.   compatible with an existing implementation. You can stretch the rules
  2167.   and connect short spans of thick and thin ethernet together with a
  2168.   passive $3 N-to-BNC connector, and that's often the best solution to
  2169.   expanding an existing thicknet. A correct (but expensive) solution is
  2170.   to use a repeater in this case.
  2171.  
  2172.   6.  Software Configuration and Card Diagnostics
  2173.  
  2174.  
  2175.   In most cases, if the configuration is done by software, and stored in
  2176.   an EEPROM, you will usually have to boot DOS, and use the supplied DOS
  2177.   program to set the cards IRQ, I/O, mem_addr and whatnot. Besides,
  2178.   hopefully it is something you will only be setting once. For those
  2179.   that don't have the DOS utility available, note that a fair number of
  2180.   NIC setup/driver disks (e.g. 3Com, SMC/WD and Allied Telesis NIC's)
  2181.   are available from dorm.rutgers.edu in the directory
  2182.   /pub/novell/nic_drvs/ However, there are some cards for which Linux
  2183.   versions of the config utils exist, and they are listed here.
  2184.  
  2185.   Also, Donald has written a few small card diagnostic programs that run
  2186.   under Linux. Most of these are a result of debugging tools that he has
  2187.   created while writing the various drivers. Don't expect fancy menu-
  2188.   driven interfaces. You will have to read the source code to use most
  2189.   of these. Even if your particular card doesn't have a corresponding
  2190.   diagnostic, you can still get lots of information just by typing cat
  2191.   /proc/net/dev -- assuming that your card was at least detected at
  2192.   boot.
  2193.  
  2194.   In either case, you will have to run most of these programs as root
  2195.   (to allow I/O to the ports) and you probably want to shut down the
  2196.   ethercard before doing so by typing ifconfig eth0 down (Note: replace
  2197.   eth0 with atp0 or whatever when appropriate.)
  2198.  
  2199.  
  2200.   6.1.  Configuration Programs for Ethernet Cards
  2201.  
  2202.  
  2203.   For people with wd80x3 cards, there is the program wdsetup which can
  2204.   be found in wdsetup-0.6a.tar.gz on Linux ftp sites.  I am not sure if
  2205.   it is being actively maintained or not, as it has not been updated for
  2206.   quite a while. If it works fine for you then great, if not, use the
  2207.   DOS version that you should have got with your card. If you don't have
  2208.   the DOS version, you will be glad to know that the SMC setup/driver
  2209.   disks are available at the dorm.rutgers.edu site mentioned above.  Of
  2210.   course, you have to have an EEPROM card to use this utility.  Old, old
  2211.   wd8003 cards, and some wd8013 clones use jumpers to set up the card
  2212.   instead.
  2213.  
  2214.   The Digital EtherWorks 3 card can be configured in a similar fashion
  2215.   to the DOS program NICSETUP.EXE. David C. Davies wrote this and other
  2216.   tools for the EtherWorks 3 in conjunction with the driver. Look on
  2217.   sunsite.unc.edu in the directory /pub/linux/system/Network/management
  2218.   for the file that is named ewrk3tools-X.XX.tar.gz.
  2219.  
  2220.   Some Nat Semi DP83905 implementations (such as the AT/LANTIC and the
  2221.   NE2000+) are software configurable. (Note that this card can also
  2222.   emulate a wd8013!) You can get the file /pub/linux/setup/atlantic.c
  2223.   from Donald's ftp server, cesdis.gsfc.nasa.gov to configure this card.
  2224.   Be careful when configuring NE2000+ cards, as you can give them bad
  2225.   setting values which will require you to open the case and switch a
  2226.   jumper to force it back to sane settings.
  2227.  
  2228.   The 3Com Etherlink III family of cards (i.e. 3c5x9) can be configured
  2229.   by using another config utility from Donald.  You can get the file
  2230.   /pub/linux/setup/3c5x9setup.c from Donald's ftp server,
  2231.   cesdis.gsfc.nasa.gov to configure these cards. (Note that the DOS
  2232.   3c5x9B config utility may have more options pertaining to the new
  2233.   ``B'' series of the Etherlink III family.)
  2234.  
  2235.  
  2236.  
  2237.  
  2238.   6.2.  Diagnostic Programs for Ethernet Cards
  2239.  
  2240.  
  2241.   Any of the diagnostic programs that Donald has written can be obtained
  2242.   from this URL.
  2243.  
  2244.  
  2245.   Ethercard Diagnostics
  2246.   <http://cesdis.gsfc.nasa.gov/pub/linux/diag/diagnostic.html>
  2247.  
  2248.   Allied Telesis AT1700 -- look for the file /pub/linux/diag/at1700.c on
  2249.   cesdis.gsfc.nasa.gov.
  2250.  
  2251.   Cabletron E21XX -- look for the file /pub/linux/diag/e21.c on
  2252.   cesdis.gsfc.nasa.gov.
  2253.  
  2254.   HP PCLAN+ -- look for the file /pub/linux/diag/hp+.c on
  2255.   cesdis.gsfc.nasa.gov.
  2256.  
  2257.   Intel EtherExpress -- look for the file /pub/linux/diag/eexpress.c on
  2258.   cesdis.gsfc.nasa.gov.
  2259.  
  2260.   NE2000 cards -- look for the file /pub/linux/diag/ne2k.c on
  2261.   cesdis.gsfc.nasa.gov.
  2262.  
  2263.   RealTek (ATP) Pocket adaptor -- look for the file /pub/linux/diag/atp-
  2264.   diag.c on cesdis.gsfc.nasa.gov.
  2265.  
  2266.   All Other Cards -- try typing cat /proc/net/dev and see what useful
  2267.   info the kernel has on the card in question.
  2268.  
  2269.  
  2270.   7.  Technical Information
  2271.  
  2272.  
  2273.   For those who want to play with the present drivers, or try to make up
  2274.   their own driver for a card that is presently unsupported, this
  2275.   information should be useful. If you do not fall into this category,
  2276.   then perhaps you will want to skip this section.
  2277.  
  2278.  
  2279.   7.1.  Probed Addresses
  2280.  
  2281.  
  2282.   While trying to determine what ethernet card is there, the following
  2283.   addresses are autoprobed, assuming the type and specs of the card have
  2284.   not been set in the kernel. The file names below are in
  2285.   /usr/src/linux/drivers/net/
  2286.  
  2287.  
  2288.   ______________________________________________________________________
  2289.           3c501.c         0x280, 0x300
  2290.           3c503.c:        0x300, 0x310, 0x330, 0x350, 0x250, 0x280, 0x2a0, 0x2e0
  2291.           3c505.c:        0x300, 0x280, 0x310
  2292.           3c507.c:        0x300, 0x320, 0x340, 0x280
  2293.           3c509.c:        Special ID Port probe
  2294.           apricot.c       0x300
  2295.           at1700.c:       0x300, 0x280, 0x380, 0x320, 0x340, 0x260, 0x2a0, 0x240
  2296.           atp.c:          0x378, 0x278, 0x3bc
  2297.           depca.c         0x300, 0x200
  2298.           de600.c:        0x378
  2299.           de620.c:        0x378
  2300.           eexpress.c:     0x300, 0x270, 0x320, 0x340
  2301.           hp.c:           0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240
  2302.           hp-plus.c       0x200, 0x240, 0x280, 0x2C0, 0x300, 0x320, 0x340
  2303.           lance.c:        0x300, 0x320, 0x340, 0x360
  2304.           ne.c:           0x300, 0x280, 0x320, 0x340, 0x360
  2305.           ni52.c          0x300, 0x280, 0x360, 0x320, 0x340
  2306.           ni65.c          0x300, 0x320, 0x340, 0x360
  2307.           smc-ultra.c:    0x200, 0x220, 0x240, 0x280, 0x300, 0x340, 0x380
  2308.           wd.c:           0x300, 0x280, 0x380, 0x240
  2309.   ______________________________________________________________________
  2310.  
  2311.   There are some NE2000 clone ethercards out there that are waiting
  2312.   black holes for autoprobe drivers. While many NE2000 clones are safe
  2313.   until they are enabled, some can't be reset to a safe mode.  These
  2314.   dangerous ethercards will hang any I/O access to their `dataports'.
  2315.   The typical dangerous locations are:
  2316.  
  2317.   ______________________________________________________________________
  2318.           Ethercard jumpered base     Dangerous locations (base + 0x10 - 0x1f)
  2319.                   0x300 *                         0x310-0x317
  2320.                   0x320                           0x330-0x337
  2321.                   0x340                           0x350-0x357
  2322.                   0x360                           0x370-0x377
  2323.   ______________________________________________________________________
  2324.  
  2325.  
  2326.  
  2327.   * The 0x300 location is the traditional place to put an ethercard, but
  2328.   it's also a popular place to put other devices (often SCSI
  2329.   controllers). The 0x320 location is often the next one chosen, but
  2330.   that's bad for for the AHA1542 driver probe. The 0x360 location is
  2331.   bad, because it conflicts with the parallel port at 0x378.  If you
  2332.   have two IDE controllers, or two floppy controlers, then 0x360 is also
  2333.   a bad choice, as a NE2000 card will clobber them as well.
  2334.  
  2335.   Note that kernels > 1.1.7X keep a log of who uses which i/o ports, and
  2336.   will not let a driver use i/o ports registered by an earlier driver.
  2337.   This may result in probes silently failing.  You can view who is using
  2338.   what i/o ports by typing cat /proc/ioports if you have the proc
  2339.   filesystem enabled.
  2340.  
  2341.   To avoid these lurking ethercards, here are the things you can do:
  2342.  
  2343.  
  2344.   o  Probe for the device's BIOS in memory space. This is easy and
  2345.      always safe, but it only works for cards that always have BIOSes,
  2346.      like primary SCSI controllers.
  2347.  
  2348.   o  Avoid probing any of the above locations until you think you've
  2349.      located your device. The NE2000 clones have a reset range from
  2350.      <base>+0x18 to <base>+0x1f that will read as 0xff, so probe there
  2351.      first if possible. It's also safe to probe in the 8390 space at
  2352.      <base>+0x00 - <base>+0x0f, but that area will return quasi-random
  2353.      values
  2354.  
  2355.   o  If you must probe in the dangerous range, for instance if your
  2356.      target device has only a few port locations, first check that there
  2357.      isn't an NE2000 there. You can see how to do this by looking at the
  2358.      probe code in /usr/src/linux/net/inet/ne.c
  2359.  
  2360.   o  Use the `reserve' boot time argument to protect volatile areas from
  2361.      being probed. See the information on using boot time arguments with
  2362.      LILO in ``The reserve command''
  2363.  
  2364.  
  2365.   7.2.  Skeleton / prototype driver
  2366.  
  2367.  
  2368.  
  2369.   OK. So you have decided that you want to write a driver for the Foobar
  2370.   Ethernet card, as you have the programming information, and it hasn't
  2371.   been done yet. (...these are the two main requirements ;-) You can use
  2372.   the skeleton network driver that is provided with the Linux kernel
  2373.   source tree. It can be found in the file
  2374.   /usr/src/linux/drivers/net/skeleton.c as of 0.99pl15, and later.
  2375.  
  2376.  
  2377.   It's also very useful to look at the Crynwr (nee Clarkson) driver for
  2378.   your target ethercard, if it's available. Russ Nelson
  2379.   nelson@crynwr.com has been actively updating and writing these, and he
  2380.   has been very helpful with his code reviews of the current Linux
  2381.   drivers.
  2382.  
  2383.  
  2384.   7.3.  Driver interface to the kernel
  2385.  
  2386.  
  2387.   Here are some notes that may help when trying to figure out what the
  2388.   code in the driver segments is doing, or perhaps what it is supposed
  2389.   to be doing.
  2390.  
  2391.  
  2392.   ______________________________________________________________________
  2393.           int ethif_init(struct device *dev)
  2394.           {
  2395.               ...
  2396.                   dev->send_packet = &ei_send_packet;
  2397.                   dev->open = &ei_open;
  2398.                   dev->stop = &ei_close;
  2399.                   dev->hard_start_xmit = &ei_start_xmit;
  2400.                   ...
  2401.           }
  2402.  
  2403.           int ethif_init(struct device *dev)
  2404.   ______________________________________________________________________
  2405.  
  2406.  
  2407.  
  2408.   This function is put into the device structure in Space.c. It is
  2409.   called only at boot time, and returns `0' iff the ethercard `dev'
  2410.   exists.
  2411.  
  2412.  
  2413.   ______________________________________________________________________
  2414.           static int ei_open(struct device *dev)
  2415.           static int ei_close(struct device *dev)
  2416.   ______________________________________________________________________
  2417.  
  2418.  
  2419.  
  2420.   This routine opens and initializes the board in response to a socket
  2421.   ioctl() usually called by `ifconfig'. It is commonly stuffed into the
  2422.   `struct device' by ethif_init().
  2423.  
  2424.   The inverse routine is ei_close(), which should shut down the
  2425.   ethercard, free the IRQs and DMA channels if the hardware permits, and
  2426.   turn off anything that will save power (like the transceiver).
  2427.  
  2428.  
  2429.   ______________________________________________________________________
  2430.           static int ei_start_xmit(struct sk_buff *skb, struct device *dev)
  2431.                   dev->hard_start_xmit = &ei_start_xmit;
  2432.   ______________________________________________________________________
  2433.  
  2434.  
  2435.  
  2436.   This routine puts packets to be transmitted into the hardware. It is
  2437.   usually stuffed into the `struct device' by ethif_init().
  2438.  
  2439.   When the hardware can't accept additional packets it should set the
  2440.   dev->tbusy flag. When additional room is available, usually during a
  2441.   transmit-complete interrupt, dev->tbusy should be cleared and the
  2442.   higher levels informed with mark_bh(INET_BH).
  2443.   ______________________________________________________________________
  2444.               if (dev_rint(buffer, length, is_skb ? IN_SKBUFF : 0, dev))
  2445.                      stats->rx_dropped++;
  2446.   ______________________________________________________________________
  2447.  
  2448.  
  2449.  
  2450.   A received packet is passed to the higher levels using dev_rint().  If
  2451.   the unadorned packet data is in a memory buffer, dev_rint will copy it
  2452.   into a `skbuff' for you. Otherwise a new skbuff should be kmalloc()ed,
  2453.   filled, and passed to dev_rint() with the IN_SKBUFF flag.
  2454.  
  2455.  
  2456.   ______________________________________________________________________
  2457.           int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));
  2458.   ______________________________________________________________________
  2459.  
  2460.  
  2461.  
  2462.   Gives you a socket recieving every protocol type. Do recvfrom() calls
  2463.   to it and it will fill the sockaddr with device type in sa_family and
  2464.   the device name in the sa_data array. I don't know who originally
  2465.   invented SOCK_PACKET for Linux (its been in for ages) but its superb
  2466.   stuff.  You can use it to send stuff raw too (both only as root).
  2467.  
  2468.  
  2469.  
  2470.   7.4.  Interrupts and Linux
  2471.  
  2472.  
  2473.   There are two kinds of interrupt handlers in Linux: fast ones and slow
  2474.   ones. You decide what kind you are installing by the flags you pass to
  2475.   irqaction(). The fast ones, such as the serial interrupt handler, run
  2476.   with _all_ interrupts disabled. The normal interrupt handlers, such as
  2477.   the one for ethercard drivers, runs with other interrupts enabled.
  2478.  
  2479.   There is a two-level interrupt structure. The `fast' part handles the
  2480.   device register, removes the packets, and perhaps sets a flag.  After
  2481.   it is done, and interrupts are re-enabled, the slow part is run if the
  2482.   flag is set.
  2483.  
  2484.   The flag between the two parts is set by:
  2485.  
  2486.  
  2487.        mark_bh(INET_BH);
  2488.  
  2489.  
  2490.   Usually this flag is set within dev_rint() during a received-packet
  2491.   interrupt, and set directly by the device driver during a transmit-
  2492.   complete interrupt.
  2493.  
  2494.   You might wonder why all interrupt handlers cannot run in `normal
  2495.   mode' with other interrupts enabled. Ross Biro uses this scenario to
  2496.   illustrate the problem:
  2497.  
  2498.  
  2499.   o  You get a serial interrupt, and start processing it.  The serial
  2500.      interrupt is now masked.
  2501.  
  2502.   o  You get a network interrupt, and you start transferring a maximum-
  2503.      sized 1500 byte packet from the card.
  2504.  
  2505.   o  Another character comes in, but this time the interrupts are
  2506.      masked!
  2507.  
  2508.  
  2509.   The `fast' interrupt structure solves this problem by allowing
  2510.   bounded-time interrupt handlers to run without the risk of leaving
  2511.   their interrupt lines masked by another interrupt request.
  2512.  
  2513.   There is an additional distinction between fast and slow interrupt
  2514.   handlers -- the arguments passed to the handler. A `slow' handler is
  2515.   defined as
  2516.  
  2517.  
  2518.   ______________________________________________________________________
  2519.  
  2520.                   static void
  2521.                   handle_interrupt(int reg_ptr)
  2522.                   {
  2523.                       int irq = -(((struct pt_regs *)reg_ptr)->orig_eax+2);
  2524.                       struct device *dev = irq2dev_map[irq];
  2525.                   ...
  2526.   ______________________________________________________________________
  2527.  
  2528.  
  2529.  
  2530.   While a fast handler gets the interrupt number directly
  2531.  
  2532.  
  2533.   ______________________________________________________________________
  2534.  
  2535.                   static void
  2536.                   handle_fast_interrupt(int irq)
  2537.                   {
  2538.                   ...
  2539.   ______________________________________________________________________
  2540.  
  2541.  
  2542.  
  2543.   A final aspect of network performance is latency. The only board that
  2544.   really addresses this is the 3c509, which allows a predictive
  2545.   interrupt to be posted. It provides an interrupt response timer so
  2546.   that the driver can fine-tune how early an interrupt is generated.
  2547.  
  2548.   Alan Cox has some advice for anyone wanting to write drivers that are
  2549.   to be used with 0.99pl14 kernels and newer. He says:
  2550.  
  2551.   `Any driver intended for 0.99pl14 should use the new alloc_skb() and
  2552.   kfree_skbmem() functions rather than using kmalloc() to obtain a
  2553.   sk_buff. The new 0.99pl14 skeleton does this correctly. For drivers
  2554.   wishing to remain compatible with both sets the define
  2555.   `HAVE_ALLOC_SKB' indicates these functions must be used.
  2556.  
  2557.   In essence replace
  2558.  
  2559.  
  2560.        skb=(struct sk_buff *)kmalloc(size)
  2561.  
  2562.  
  2563.   with
  2564.  
  2565.  
  2566.        skb=alloc_skb(size)
  2567.  
  2568.  
  2569.   and
  2570.  
  2571.  
  2572.        kfree_s(skb,size)
  2573.  
  2574.  
  2575.   with
  2576.  
  2577.  
  2578.        kfree_skbmem(skb,size)  /* Only sk_buff memory though */
  2579.  
  2580.  
  2581.   Any questions should I guess be directed to me (Alan Cox) since I made
  2582.   the change.  This is a change to allow tracking of sk_buff's and
  2583.   sanity checks on buffers and stack behaviour. If a driver produces the
  2584.   message'File: ??? Line: ??? passed a non skb!' then it is probable the
  2585.   driver is not using the new sk_buff allocators.'
  2586.  
  2587.  
  2588.  
  2589.   7.5.  Programmed I/O vs. Shared Memory vs. DMA
  2590.  
  2591.  
  2592.   Ethernet is 10Mbs. (Don't be pedantic, 3Mbs and 100Mbs don't count.)
  2593.   If you can already send and receive back-to-back packets, you just
  2594.   can't put more bits over the wire. Every modern ethercard can receive
  2595.   back-to-back packets. The Linux DP8390 drivers come pretty close to
  2596.   sending back-to-back packets (depending on the current interrupt
  2597.   latency) and the 3c509 and AT1500 hardware has no problem at all
  2598.   automatically sending back-to-back packets.
  2599.  
  2600.   The ISA bus can do 5.3MB/sec (42Mb/sec), which sounds like more than
  2601.   enough. You can use that bandwidth in several ways:
  2602.  
  2603.  
  2604.   7.5.1.  Programmed I/O
  2605.  
  2606.  
  2607.   Pro: Doesn't use any constrained system resources, just a few I/O
  2608.   registers, and has no 16M limit.
  2609.  
  2610.   Con: Usually the slowest transfer rate, the CPU is waiting the whole
  2611.   time, and interleaved packet access is usually difficult to
  2612.   impossible.
  2613.  
  2614.  
  2615.   7.5.2.  Shared memory
  2616.  
  2617.  
  2618.   Pro: Simple, faster than programmed I/O, and allows random access to
  2619.   packets.
  2620.  
  2621.   Con: Uses up memory space (a big one for DOS users, only a minor issue
  2622.   under Linux), and it still ties up the CPU.
  2623.  
  2624.  
  2625.   7.5.3.  Slave (normal) Direct Memory Access
  2626.  
  2627.  
  2628.   Pro: Frees up the CPU during the actual data transfer.
  2629.  
  2630.   Con: Checking boundary conditions, allocating contiguous buffers, and
  2631.   programming the DMA registers makes it the slowest of all techniques.
  2632.   It also uses up a scarce DMA channel, and requires aligned low memory
  2633.   buffers.
  2634.  
  2635.  
  2636.   7.5.4.  Master Direct Memory Access (bus-master)
  2637.  
  2638.  
  2639.   Pro: Frees up the CPU during the data transfer, can string together
  2640.   buffers, can require little or no CPU time lost on the ISA bus.
  2641.   Con: Requires low-memory buffers and a DMA channel. Any bus-master
  2642.   will have problems with other bus-masters that are bus-hogs, such as
  2643.   some primitive SCSI adaptors. A few badly-designed motherboard
  2644.   chipsets have problems with bus-masters. And a reason for not using
  2645.   any type of DMA device is using a Cyrix 486 processor designed for
  2646.   plug-in replacement of a 386: these processors must flush their cache
  2647.   with each DMA cycle. (This includes the Cx486DLC, Ti486DLC, Cx486SLC,
  2648.   Ti486SLC, etc.)
  2649.  
  2650.  
  2651.   7.6.  Programming the Intel chips (i82586 and i82593)
  2652.  
  2653.  
  2654.   These chips are used on a number of cards, namely the 3c507 ('86), the
  2655.   Intel EtherExpress 16 ('86), Microdyne's exos205t ('86), the Z-Note
  2656.   ('93), and the Racal-Interlan ni5210 ('86).
  2657.  
  2658.   Russ Nelson writes: `Most boards based on the 82586 can reuse quite a
  2659.   bit of their code.  More, in fact, than the 8390-based adapters. There
  2660.   are only three differences between them:
  2661.  
  2662.  
  2663.   o  The code to get the Ethernet address,
  2664.  
  2665.   o  The code to trigger CA on the 82586, and
  2666.  
  2667.   o  The code to reset the 82586.
  2668.  
  2669.   The Intel EtherExpress 16 is an exception, as it I/O maps the 82586.
  2670.   Yes, I/O maps it. Fairly clunky, but it works.
  2671.  
  2672.   Garrett Wollman did an AT&T driver for BSD that uses the BSD
  2673.   copyright. The latest version I have (Sep '92) only uses a single
  2674.   transmit buffer. You can and should do better than this if you've got
  2675.   the memory. The AT&T and 3c507 adapters do; the ni5210 doesn't.
  2676.  
  2677.   The people at Intel gave me a very big clue on how you queue up
  2678.   multiple transmit packets. You set up a list of NOP-> XMIT-> NOP->
  2679.   XMIT-> NOP-> XMIT-> beginning) blocks, then you set the `next' pointer
  2680.   of all the NOP blocks to themselves. Now you start the command unit on
  2681.   this chain. It continually processes the first NOP block. To transmit
  2682.   a packet, you stuff it into the next transmit block, then point the
  2683.   NOP to it. To transmit the next packet, you stuff the next transmit
  2684.   block and point the previous NOP to it. In this way, you don't have to
  2685.   wait for the previous transmit to finish, you can queue up multiple
  2686.   packets without any ambiguity as to whether it got accepted, and you
  2687.   can avoid the command unit start-up delay.'
  2688.  
  2689.  
  2690.   7.7.  Technical information from 3Com
  2691.  
  2692.  
  2693.   If you are interested in working on drivers for 3Com cards, you can
  2694.   get technical documentation from 3Com. Cameron has been kind enough to
  2695.   tell us how to go about it below:
  2696.  
  2697.   3Com's Ethernet Adapters are documented for driver writers in our
  2698.   `Technical References' (TRs). These manuals describe the programmer
  2699.   interfaces to the boards but they don't talk about the diagnostics,
  2700.   installation programs, etc that end users can see.
  2701.  
  2702.   The Network Adapter Division marketing department has the TRs to give
  2703.   away. To keep this program efficient, we centralized it in a thing
  2704.   called `CardFacts.' CardFacts is an automated phone system. You call
  2705.   it with a touch-tone phone and it faxes you stuff. To get a TR, call
  2706.   CardFacts at 408-727-7021. Ask it for Developer's Order Form, document
  2707.   number 9070. Have your fax number ready when you call. Fill out the
  2708.   order form and fax it to 408-764-5004.  Manuals are shipped by Federal
  2709.   Express 2nd Day Service.
  2710.  
  2711.   If you don't have a fax and nobody you know has a fax, really and
  2712.   truly, then send mail to Terry_Murphy@3Mail.3Com.com and tell her
  2713.   about your problem.  PLEASE use the fax thing if you possibly can.
  2714.  
  2715.   After you get a manual, if you still can't figure out how to program
  2716.   the board, try our `CardBoard' BBS at 1-800-876-3266, and if you can't
  2717.   do that, write Andy_Chan@3Mail.3com.com and ask him for alternatives.
  2718.   If you have a real stumper that nobody has figured out yet, the fellow
  2719.   who needs to know about it is Steve_Lebus@3Mail.3com.com.
  2720.  
  2721.   There are people here who think we are too free with the manuals, and
  2722.   they are looking for evidence that the system is too expensive, or
  2723.   takes too much time and effort. That's why it's important to try to
  2724.   use CardFacts before you start calling and mailing the people I named
  2725.   here.
  2726.  
  2727.   There are even people who think we should be like Diamond and Xircom,
  2728.   requiring tight `partnership' with driver writers to prevent poorly
  2729.   performing drivers from getting written. So far, 3Com customers have
  2730.   been really good about this, and there's no problem with the level of
  2731.   requests we've been getting. We need your continued cooperation and
  2732.   restraint to keep it that way.
  2733.  
  2734.   Cameron Spitzer, 408-764-6339 3Com NAD Santa Clara work:
  2735.   camerons@nad.3com.com home: cls@truffula.sj.ca.us
  2736.  
  2737.  
  2738.  
  2739.   7.8.  Notes on AMD PCnet / LANCE Based cards
  2740.  
  2741.  
  2742.   The AMD LANCE (Local Area Network Controller for Ethernet) was the
  2743.   original offering, and has since been replaced by the `PCnet-ISA'
  2744.   chip, otherwise known as the 79C960.  A relatively new chip from AMD,
  2745.   the 79C960, is the heart of many new cards being released at present.
  2746.   Note that the name `LANCE' has stuck, and some people will refer to
  2747.   the new chip by the old name. Dave Roberts of the Network Products
  2748.   Division of AMD was kind enough to contribute the following
  2749.   information regarding this chip:
  2750.  
  2751.   `As for the architecture itself, AMD developed it originally and
  2752.   reduced it to a single chip -- the PCnet(tm)-ISA -- over a year ago.
  2753.   It's been selling like hotcakes ever since.
  2754.  
  2755.   Functionally, it is equivalent to a NE1500. The register set is
  2756.   identical to the old LANCE with the 1500/2100 architecture additions.
  2757.   Older 1500/2100 drivers will work on the PCnet-ISA.  The NE1500 and
  2758.   NE2100 architecture is basically the same.  Initially Novell called it
  2759.   the 2100, but then tried to distinguish between coax and 10BASE-T
  2760.   cards. Anything that was 10BASE-T only was to be numbered in the 1500
  2761.   range. That's the only difference.
  2762.  
  2763.   Many companies offer PCnet-ISA based products, including HP, Racal-
  2764.   Datacom, Allied Telesis, Boca Research, Kingston Technology, etc.  The
  2765.   cards are basically the same except that some manufacturers have added
  2766.   `jumperless' features that allow the card to be configured in
  2767.   software. Most have not. AMD offers a standard design package for a
  2768.   card that uses the PCnet-ISA and many manufacturers use our design
  2769.   without change.  What this means is that anybody who wants to write
  2770.   drivers for most PCnet-ISA based cards can just get the data-sheet
  2771.   from AMD. Call our literature distribution center at (800)222-9323 and
  2772.   ask for the Am79C960, PCnet-ISA data sheet. It's free.
  2773.   A quick way to understand whether the card is a `stock' card is to
  2774.   just look at it. If it's stock, it should just have one large chip on
  2775.   it, a crystal, a small IEEE address PROM, possibly a socket for a boot
  2776.   ROM, and a connector (1, 2, or 3, depending on the media options
  2777.   offered). Note that if it's a coax card, it will have some transceiver
  2778.   stuff built onto it as well, but that should be near the connector and
  2779.   away from the PCnet-ISA.'
  2780.  
  2781.   There is also some info regarding the LANCE chip in the file lance.c
  2782.   which is included in the standard kernel.
  2783.  
  2784.   A note to would-be card hackers is that different LANCE
  2785.   implementations do `restart' in different ways. Some pick up where
  2786.   they left off in the ring, and others start right from the beginning
  2787.   of the ring, as if just initialised. This is a concern when setting
  2788.   the multicast list.
  2789.  
  2790.  
  2791.   7.9.  Multicast and Promiscuous Mode
  2792.  
  2793.  
  2794.   Another one of the things Donald has worked on is implementing
  2795.   multicast and promiscuous mode hooks.  All of the released (i.e. not
  2796.   ALPHA) ISA drivers now support promiscuous mode. There was a minor
  2797.   problem with 8390 based cards with capturing multicast packets, in
  2798.   that the promiscuous mode setting in 8390.c around line 574 should be
  2799.   0x18 and not 0x10. If you have an up to date kernel, this will already
  2800.   be fixed.
  2801.  
  2802.   Donald writes: `At first I was planning to do it while implementing
  2803.   either the /dev/* or DDI interface, but that's not really the correct
  2804.   way to do it. We should only enable multicast or promiscuous modes
  2805.   when something wants to look at the packets, and shut it down when
  2806.   that application is finished, neither of which is strongly related to
  2807.   when the hardware is opened or released.
  2808.  
  2809.   I'll start by discussing promiscuous mode, which is conceptually easy
  2810.   to implement. For most hardware you only have to set a register bit,
  2811.   and from then on you get every packet on the wire. Well, it's almost
  2812.   that easy; for some hardware you have to shut the board (potentially
  2813.   dropping a few packet), reconfigure it, and then re-enable the
  2814.   ethercard. This is grungy and risky, but the alternative seems to be
  2815.   to have every application register before you open the ethercard at
  2816.   boot-time.
  2817.  
  2818.   OK, so that's easy, so I'll move on something that's not quite so
  2819.   obvious: Multicast. It can be done two ways:
  2820.  
  2821.  
  2822.   1. Use promiscuous mode, and a packet filter like the Berkeley packet
  2823.      filter (BPF). The BPF is a pattern matching stack language, where
  2824.      you write a program that picks out the addresses you are interested
  2825.      in. Its advantage is that it's very general and programmable. Its
  2826.      disadvantage is that there is no general way for the kernel to
  2827.      avoid turning on promiscuous mode and running every packet on the
  2828.      wire through every registered packet filter. See ``The Berkeley
  2829.      Packet Filter'' for more info.
  2830.  
  2831.  
  2832.   2. Using the built-in multicast filter that most etherchips have.
  2833.  
  2834.   I guess I should list what a few ethercards/chips provide:
  2835.  
  2836.  
  2837.  
  2838.  
  2839.           Chip/card  Promiscuous  Multicast filter
  2840.           ----------------------------------------
  2841.           Seeq8001/3c501  Yes     Binary filter (1)
  2842.           3Com/3c509      Yes     Binary filter (1)
  2843.           8390            Yes     Autodin II six bit hash (2) (3)
  2844.           LANCE           Yes     Autodin II six bit hash (2) (3)
  2845.           i82586          Yes     Hidden Autodin II six bit hash (2) (4)
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.   1. These cards claim to have a filter, but it's a simple yes/no
  2852.      `accept all multicast packets', or `accept no multicast packets'.
  2853.  
  2854.   2. AUTODIN II is the standard ethernet CRC (checksum) polynomial. In
  2855.      this scheme multicast addresses are hashed and looked up in a hash
  2856.      table. If the corresponding bit is enabled, this packet is
  2857.      accepted. Ethernet packets are laid out so that the hardware to do
  2858.      this is trivial -- you just latch six (usually) bits from the CRC
  2859.      circuit (needed anyway for error checking) after the first six
  2860.      octets (the destination address), and use them as an index into the
  2861.      hash table (six bits -- a 64-bit table).
  2862.  
  2863.  
  2864.   3. These chips use the six bit hash, and must have the table computed
  2865.      and loaded by the host. This means the kernel must include the CRC
  2866.      code.
  2867.  
  2868.  
  2869.   4. The 82586 uses the six bit hash internally, but it computes the
  2870.      hash table itself from a list of multicast addresses to accept.
  2871.  
  2872.   Note that none of these chips do perfect filtering, and we still need
  2873.   a middle-level module to do the final filtering. Also note that in
  2874.   every case we must keep a complete list of accepted multicast
  2875.   addresses to recompute the hash table when it changes.
  2876.  
  2877.   My first pass at device-level support is detailed in the new outline
  2878.   driver skeleton.c
  2879.  
  2880.   It looks like the following:
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.   ______________________________________________________________________
  2906.           #ifdef HAVE_MULTICAST
  2907.           static void set_multicast_list(struct device *dev, int num_addrs,
  2908.                            void *addrs);
  2909.           #endif
  2910.           .
  2911.           .
  2912.  
  2913.           ethercard_open() {
  2914.           ...
  2915.           #ifdef HAVE_MULTICAST
  2916.                   dev->set_multicast_list = &set_multicast_list;
  2917.           #endif
  2918.           ...
  2919.  
  2920.           #ifdef HAVE_MULTICAST
  2921.           /* Set or clear the multicast filter for this adaptor.
  2922.              num_addrs -- -1      Promiscuous mode, receive all packets
  2923.              num_addrs -- 0       Normal mode, clear multicast list
  2924.              num_addrs > 0        Multicast mode, receive normal and
  2925.                   MC packets, and do best-effort filtering.
  2926.            */
  2927.           static void
  2928.           set_multicast_list(struct device *dev, int num_addrs, void *addrs)
  2929.           {
  2930.           ...
  2931.   ______________________________________________________________________
  2932.  
  2933.  
  2934.  
  2935.   Any comments, criticism, etc. are welcome.'
  2936.  
  2937.  
  2938.   7.10.  The Berkeley Packet Filter (BPF)
  2939.  
  2940.  
  2941.   The general idea of the developers is that the BPF functionality
  2942.   should not be provided by the kernel, but should be in a (hopefully
  2943.   little-used) compatibility library.
  2944.  
  2945.   For those not in the know: BPF (the Berkeley Packet Filter) is an
  2946.   mechanism for specifying to the kernel networking layers what packets
  2947.   you are interested in. It's implemented as a specialized stack
  2948.   language interpreter built into a low level of the networking code. An
  2949.   application passes a program written in this language to the kernel,
  2950.   and the kernel runs the program on each incoming packet. If the kernel
  2951.   has multiple BPF applications, each program is run on each packet.
  2952.  
  2953.   The problem is that it's difficult to deduce what kind of packets the
  2954.   application is really interested in from the packet filter program, so
  2955.   the general solution is to always run the filter. Imagine a program
  2956.   that registers a BPF program to pick up a low data-rate stream sent to
  2957.   a multicast address.  Most ethernet cards have a hardware multicast
  2958.   address filter implemented as a 64 entry hash table that ignores most
  2959.   unwanted multicast packets, so the capability exists to make this a
  2960.   very inexpensive operation. But with the BFP the kernel must switch
  2961.   the interface to promiscuous mode, receive _all_ packets, and run them
  2962.   through this filter. This is work, BTW, that's very difficult to
  2963.   account back to the process requesting the packets.
  2964.  
  2965.  
  2966.   8.  Networking with a Laptop/Notebook Computer
  2967.  
  2968.  
  2969.   There are currently only a few ways to put your laptop on a network.
  2970.   You can use the SLIP code (and run at serial line speeds); you can buy
  2971.   one of the few laptops that come with a NE2000-compatible ethercard;
  2972.   you can get a notebook with a supported PCMCIA slot built-in; you can
  2973.   get a laptop with a docking station and plug in an ISA ethercard; or
  2974.   you can use a parallel port Ethernet adapter such as the D-Link
  2975.   DE-600.
  2976.  
  2977.  
  2978.   8.1.  Using SLIP
  2979.  
  2980.  
  2981.   This is the cheapest solution, but by far the most difficult. Also,
  2982.   you will not get very high transmission rates. Since SLIP is not
  2983.   really related to ethernet cards, it will not be discussed further
  2984.   here. See the NET-2 Howto.
  2985.  
  2986.  
  2987.   8.2.  Built in NE2000
  2988.  
  2989.  
  2990.   This solution severely limits your laptop choices and is fairly
  2991.   expensive. Be sure to read the specifications carefully, as you may
  2992.   find that you will have to buy an additional non-standard transceiver
  2993.   to actually put the machine on a network. A good idea might be to boot
  2994.   the notebook with a kernel that has ne2000 support, and make sure it
  2995.   gets detected and works before you lay down your cash.
  2996.  
  2997.  
  2998.  
  2999.   8.3.  PCMCIA Support
  3000.  
  3001.  
  3002.   As this area of Linux development is fairly young, I'd suggest that
  3003.   you join the LAPTOPS mailing channel. See ``Mailing lists...''  which
  3004.   describes how to join a mailing list channel.
  3005.  
  3006.   Try and determine exactly what hardware you have (ie. card
  3007.   manufacturer, PCMCIA chip controller manufacturer) and then ask on the
  3008.   LAPTOPS channel. Regardless, don't expect things to be all that
  3009.   simple.  Expect to have to fiddle around a bit, and patch kernels,
  3010.   etc.  Maybe someday you will be able to type `make config' 8-)
  3011.  
  3012.   At present, the two PCMCIA chipsets that are supported are the
  3013.   Databook TCIC/2 and the intel i82365.
  3014.  
  3015.   There is a number of programs on tsx-11.mit.edu in
  3016.   /pub/linux/packages/laptops/ that you may find useful. These range
  3017.   from PCMCIA Ethercard drivers to programs that communicate with the
  3018.   PCMCIA controller chip. Note that these drivers are usually tied to a
  3019.   specific PCMCIA chip (ie. the intel 82365 or the TCIC/2)
  3020.  
  3021.   For NE2000 compatible cards, some people have had success with just
  3022.   configuring the card under DOS, and then booting linux from the DOS
  3023.   command prompt via loadlin.
  3024.  
  3025.   For those that are net-surfing you can try:
  3026.  
  3027.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  3028.  
  3029.   Anyway, the PCMCIA driver problem isn't specific to the Linux world.
  3030.   It's been a real disaster in the MS-DOS world. In that world people
  3031.   expect the hardware to work if they just follow the manual.  They
  3032.   might not expect it to interoperate with any other hardware or
  3033.   software, or operate optimally, but they do expect that the software
  3034.   shipped with the product will function. Many PCMCIA adaptors don't
  3035.   even pass this test.
  3036.  
  3037.   Things are looking up for Linux users that want PCMCIA support, as
  3038.   substantial progress is being made. Pioneering this effort is David
  3039.   Hinds. His latest PCMCIA support package can be obtained from cb-
  3040.   iris.stanford.edu in the directory /pub/pcmcia/. Look for a file like
  3041.   pcmcia-cs-X.Y.Z.tgz where X.Y.Z will be the latest version number.
  3042.   This is most likely uploaded to tsx-11.mit.edu as well.
  3043.  
  3044.   Note that Donald's PCMCIA enabler works as a user-level process, and
  3045.   David Hinds' is a kernel-level solution.  You may be best served by
  3046.   David's package as it is much more widely used.
  3047.  
  3048.  
  3049.   8.4.  ISA Ethercard in the Docking Station.
  3050.  
  3051.  
  3052.   Docking stations for laptops typically cost about $250 and provide two
  3053.   full-size ISA slots, two serial and one parallel port. Most docking
  3054.   stations are powered off of the laptop's batteries, and a few allow
  3055.   adding extra batteries in the docking station if you use short ISA
  3056.   cards. You can add an inexpensive ethercard and enjoy full-speed
  3057.   ethernet performance.
  3058.  
  3059.  
  3060.   8.5.  Pocket / parallel port adaptors.
  3061.  
  3062.  
  3063.   The `pocket' ethernet adaptors may also fit your need.  Until recently
  3064.   they actually costed more than a docking station and cheap ethercard,
  3065.   and most tie you down with a wall-brick power supply.  At present, you
  3066.   can choose from the D-Link, or the RealTek adaptor.  Most other
  3067.   companies, especially Xircom, (see ``Xircom'') treat the programming
  3068.   information as a trade secret, so support will likely be slow in
  3069.   coming. (if ever!)
  3070.  
  3071.   Note that the transfer speed will not be all that great (perhaps
  3072.   100kB/s tops?) due to the limitations of the parallel port interface.
  3073.  
  3074.   See ``DE-600 / DE-620'' and ``RealTek'' for supported pocket adaptors.
  3075.  
  3076.   You can sometimes avoid the wall-brick with the adaptors by buying or
  3077.   making a cable that draws power from the laptop's keyboard port. (See
  3078.   ``keyboard power'')
  3079.  
  3080.  
  3081.   9.  Frequently Asked Questions
  3082.  
  3083.  
  3084.   Here are some of the more frequently asked questions about using Linux
  3085.   with an Ethernet connection. Some of the more specific questions are
  3086.   sorted on a `per manufacturer basis'.  However, since this document is
  3087.   basically `old' by the time you get it, any `new' problems will not
  3088.   appear here instantly. For these, I suggest that you make efficient
  3089.   use of your newsreader. For example, nn users would type
  3090.  
  3091.  
  3092.        nn -xX -s'3c'
  3093.  
  3094.  
  3095.   to get all the news articles in your subscribed list that have `3c' in
  3096.   the subject. (ie. 3com, 3c509, 3c503, etc.)  The moral: Read the man
  3097.   page for your newsreader.
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.   9.1.  Alpha Drivers -- Getting and Using them
  3104.  
  3105.  
  3106.   I heard that there is an alpha driver available for my card.  Where
  3107.   can I get it?
  3108.  
  3109.   The newest of the `new' drivers can be found on Donald's new ftp site:
  3110.   cesdis.gsfc.nasa.gov in the /pub/linux/ area. Things change here quite
  3111.   frequently, so just look around for it.  There is still all the stuff
  3112.   on the old ftp site ftp.super.org in /pub/linux, but this is not being
  3113.   actively maintained, and hence will be of limited value to most
  3114.   people.
  3115.  
  3116.   As of recent v1.1 kernels, the `useable' alpha drivers have been
  3117.   included in the standard kernel source tree. When running make config
  3118.   you will be asked if you want to be offered ALPHA test drivers.
  3119.  
  3120.   Now, if it really is an alpha, or pre-alpha driver, then please treat
  3121.   it as such. In other words, don't complain because you can't figure
  3122.   out what to do with it. If you can't figure out how to install it,
  3123.   then you probably shouldn't be testing it.  Also, if it brings your
  3124.   machine down, don't complain. Instead, send us a well documented bug
  3125.   report, or even better, a patch!
  3126.  
  3127.   People reading this while net-surfing may want to check out:
  3128.  
  3129.   Don's Linux Home Page
  3130.   <http://cesdis.gsfc.nasa.gov/pub/linux/linux.html>
  3131.  
  3132.   for the latest dirt on what is new and upcoming.
  3133.  
  3134.  
  3135.   9.2.  Using More than one Ethernet Card per Machine
  3136.  
  3137.  
  3138.   What needs to be done so that Linux can run two ethernet cards?
  3139.  
  3140.   The hooks for multiple ethercards are all there.  However, note that
  3141.   only one ethercard is auto-probed for by default.  This avoids a lot
  3142.   of possible boot time hangs caused by probing sensitive cards.
  3143.  
  3144.   There are two ways that you can enable auto-probing for the second
  3145.   (and third, and...) card. The easiest method is to pass boot-time
  3146.   arguments to the kernel, which is usually done by LILO.Probing for the
  3147.   second card can be achieved by using a boot-time argument as simple as
  3148.   ether=0,0,eth1. In this case eth0 and eth1 will be assigned in the
  3149.   order that the cards are found at boot.  Say if you want the card at
  3150.   0x300 to be eth0 and the card at 0x280 to be eth1 then you could use
  3151.  
  3152.  
  3153.        LILO: linux ether=5,0x300,eth0 ether=15,0x280,eth1
  3154.  
  3155.  
  3156.   The ether= command accepts more than the IRQ + i/o + name shown above.
  3157.   Please have a look at ``Passing Ethernet Arguments...''  for the full
  3158.   syntax, card specific parameters, and LILO tips.
  3159.  
  3160.   These boot time arguments can be made permanent so that you don't have
  3161.   to re-enter them every time. See the LILO configuration option
  3162.   `append' in the LILO manual.
  3163.  
  3164.   The second way (not recommended) is to edit the file Space.c and
  3165.   replace the 0xffe0 entry for the i/o address with a zero. The 0xffe0
  3166.   entry tells it not to probe for that device -- replacing it with a
  3167.   zero will enable autoprobing for that device.  If you really need more
  3168.   than four ethernet cards in one machine, then you can clone the eth3
  3169.   entry and change eth3 to eth4.
  3170.  
  3171.   Note that if you are intending to use Linux as a gateway between two
  3172.   networks, you will have to re-compile a kernel with IP forwarding
  3173.   enabled. Usually using an old AT/286 with something like the `kbridge'
  3174.   software is a better solution.
  3175.  
  3176.   If you are viewing this while net-surfing, you may wish to look at a
  3177.   mini-howto Donald has on his WWW site. Check out Multiple Ethercards
  3178.   <http://cesdis.gsfc.nasa.gov/linux/misc/multicard.html>.
  3179.  
  3180.  
  3181.   9.3.  Problems with NE1000 / NE2000 cards (and clones)
  3182.  
  3183.  
  3184.   Problem: NE*000 ethercard at 0x360 doesn't get detected anymore.
  3185.  
  3186.   Reason: Recent kernels ( > 1.1.7X) have more sanity checks with
  3187.   respect to overlapping i/o regions. Your NE2000 card is 0x20 wide in
  3188.   i/o space, which makes it hit the parallel port at 0x378.  Other
  3189.   devices that could be there are the second floppy controller (if
  3190.   equipped) at 0x370 and the secondary IDE controller at 0x376--0x377.
  3191.   If the port(s) are already registered by another driver, the kernel
  3192.   will not let the probe happen.
  3193.  
  3194.   Solution: Either move your card to an address like 0x280, 0x340, 0x320
  3195.   or compile without parallel printer support.
  3196.  
  3197.   Problem: Network `goes away' every time I print something (NE2000)
  3198.  
  3199.   Reason: Same problem as above, but you have an older kernel that
  3200.   doesn't check for overlapping i/o regions. Use the same fix as above,
  3201.   and get a new kernel while you are at it.
  3202.  
  3203.   Problem: NE*000 ethercard probe at 0xNNN: 00 00 C5 ... not found.
  3204.   (invalid signature yy zz)
  3205.  
  3206.   Reason: First off, do you have a NE1000 or NE2000 card at the addr.
  3207.   0xNNN?  And if so, does the hardware address reported look like a
  3208.   valid one? If so, then you have a poor NE*000 clone. All NE*000 clones
  3209.   are supposed to have the value 0x57 in bytes 14 and 15 of the SA PROM
  3210.   on the card. Yours doesn't -- it has `yy zz' instead.
  3211.  
  3212.   Solution: The driver (/usr/src/linux/drivers/net/ne.c) has a "Hall of
  3213.   Shame" list at about line 42. This list is used to detect poor clones.
  3214.   For example, the DFI cards use `DFI' in the first 3 bytes of the prom,
  3215.   instead of using 0x57 in bytes 14 and 15, like they are supposed to.
  3216.  
  3217.   You can determine what the first 3 bytes of your card PROM are by
  3218.   adding a line like:
  3219.  
  3220.  
  3221.       printk("PROM prefix: %#2x %#2x %#2x\n",SA_prom[0],SA_prom[1],SA_prom[2]);
  3222.  
  3223.  
  3224.  
  3225.   into the driver, right after the error message you got above, and just
  3226.   before the "return ENXIO" at line 227.
  3227.  
  3228.   Reboot with this change in place, and after the detection fails, you
  3229.   will get the three bytes from the PROM like the DFI example above.
  3230.   Then you can add your card to the bad_clone_list[] at about line 43.
  3231.   Say the above line printed out:
  3232.  
  3233.  
  3234.  
  3235.   PROM prefix: 0x3F 0x2D 0x1C
  3236.  
  3237.  
  3238.   after you rebooted. And say that the 8 bit version of your card was
  3239.   called the "FOO-1k" and the 16 bit version the "FOO-2k". Then you
  3240.   would add the following line to the bad_clone_list[]:
  3241.  
  3242.  
  3243.        {"FOO-1k", "FOO-2k", {0x3F, 0x2D, 0x1C,}},
  3244.  
  3245.  
  3246.   Note that the 2 name strings you add can be anything -- they are just
  3247.   printed at boot, and not matched against anything on the card.  You
  3248.   can also take out the "printk()" that you added above, if you want.
  3249.   It shouldn't hit that line anymore anyway. Then recompile once more,
  3250.   and your card should be detected.
  3251.  
  3252.   Problem: Errors like DMA address mismatch
  3253.  
  3254.   Is the chip a real NatSemi 8390? (DP8390, DP83901, DP83902 or
  3255.   DP83905)?  If not, some clone chips don't correctly implement the
  3256.   transfer verification register. MS-DOS drivers never do error
  3257.   checking, so it doesn't matter to them.
  3258.  
  3259.   Are most of the messages off by a factor of 2?  If so:  Are you using
  3260.   the NE2000 in a 16 bit slot?  Is it jumpered to use only 8 bit
  3261.   transfers?
  3262.  
  3263.   The Linux driver expects a NE2000 to be in a 16 bit slot. A NE1000 can
  3264.   be in either size slot. This problem can also occur with some clones,
  3265.   notably D-Link 16 bit cards, that don't have the correct ID bytes in
  3266.   the station address PROM.
  3267.  
  3268.   Are you running the bus faster than 8Mhz?  If you can change the speed
  3269.   (faster or slower), see if that makes a difference. Most NE2000 clones
  3270.   will run at 16MHz, but some may not. Changing speed can also mask a
  3271.   noisy bus.
  3272.  
  3273.   What other devices are on the bus?  If moving the devices around
  3274.   changes the reliability, then you have a bus noise problem -- just
  3275.   what that error message was designed to detect. Congratulations,
  3276.   you've probably found the source of other problems as well.
  3277.  
  3278.   Problem: The machine hangs during boot right after the `8390...'  or
  3279.   `WD....' message. Removing the NE2000 fixes the problem.
  3280.  
  3281.   Solution: Change your NE2000 base address to 0x340. Alternatively, you
  3282.   can use the device registrar implemented in 0.99pl13 and later
  3283.   kernels.
  3284.  
  3285.   Reason: Your NE2000 clone isn't a good enough clone. An active NE2000
  3286.   is a bottomless pit that will trap any driver autoprobing in its
  3287.   space. The other ethercard drivers take great pain to reset the NE2000
  3288.   so that it's safe, but some clones cannot be reset. Clone chips to
  3289.   watch out for: Winbond 83C901. Changing the NE2000 to a less-popular
  3290.   address will move it out of the way of other autoprobes, allowing your
  3291.   machine to boot.
  3292.  
  3293.  
  3294.   Problem: The machine hangs during the SCSI probe at boot.
  3295.  
  3296.   Reason: It's the same problem as above, change the ethercard's
  3297.   address, or use the device registrar.
  3298.  
  3299.   Problem: The machine hangs during the soundcard probe at boot.
  3300.  
  3301.   Reason: No, that's really during the silent SCSI probe, and it's the
  3302.   same problem as above.
  3303.  
  3304.   Problem: Errors like eth0: DMAing conflict in ne_block_input
  3305.  
  3306.   This bug came from timer-based packet retransmissions. If you got a
  3307.   timer tick _during_ a ethercard RX interrupt, and timer tick tried to
  3308.   retransmit a timed-out packet, you could get a conflict. Because of
  3309.   the design of the NE2000 you would have the machine hang (exactly the
  3310.   same the NE2000-clone boot hangs).
  3311.  
  3312.   Early versions of the driver disabled interrupts for a long time, and
  3313.   didn't have this problem. Later versions are fixed. (ie. kernels after
  3314.   0.99p9 should be OK.)
  3315.  
  3316.   Problem: NE2000 not detected at boot - no boot messages at all
  3317.  
  3318.   Donald writes: `A few people have reported a problem with detecting
  3319.   the Accton NE2000.  This problem occurs only at boot-time, and the
  3320.   card is later detected at run-time by the identical code my (alpha-
  3321.   test) ne2k diagnostic program. Accton has been very responsive, but I
  3322.   still haven't tracked down what is going on. I've been unable to
  3323.   reproduce this problem with the Accton cards we purchased. If you are
  3324.   having this problem, please send me an immediate bug report. For that
  3325.   matter, if you have an Accton card send me a success report, including
  3326.   the type of the motherboard. I'm especially interested in finding out
  3327.   if this problem moves with the particular ethercard, or stays with the
  3328.   motherboard.'
  3329.  
  3330.   Here are some things to try, as they have fixed it for some people:
  3331.  
  3332.  
  3333.   o  Change the bus speed, or just move the card to a different slot.
  3334.  
  3335.   o  Change the `I/O recovery time' parameter in the BIOS chipset
  3336.      configuration.
  3337.  
  3338.  
  3339.   9.4.  Problems with WD80*3 cards
  3340.  
  3341.  
  3342.   Problem: A WD80*3 is falsely detected. Removing the sound or MIDI card
  3343.   eliminates the `detected' message.
  3344.  
  3345.   Reason: Some MIDI ports happen to produce the same checksum as a WD
  3346.   ethercard.
  3347.  
  3348.   Solution: Update your ethercard driver: new versions include an
  3349.   additional sanity check. If it is the midi chip at 0x388 that is
  3350.   getting detected as a WD living at 0x380, then you could also use:
  3351.  
  3352.           LILO: linux reserve=0x380,8
  3353.  
  3354.  
  3355.  
  3356.   Problem: You get messages such as the following with your 80*3:
  3357.  
  3358.  
  3359.        eth0: bogus packet size, status = ........  kmalloc called with impos-
  3360.        sibly large argument (65400) eth0: Couldn't allocate sk_buff of size
  3361.        65400 eth0: receiver overrun
  3362.  
  3363.  
  3364.   Reason: There is a shared memory problem.
  3365.  
  3366.  
  3367.   Solution: If the problem is sporadic, you have hardware problems.
  3368.   Typical problems that are easy to fix are board conflicts, having
  3369.   cache or `shadow ROM' enabled for that region, or running your bus
  3370.   faster than 8Mhz. There are also a surprising number of memory
  3371.   failures on ethernet cards, so run a diagnostic program if you have
  3372.   one for your ethercard.
  3373.  
  3374.   If the problem is continual, and you have have to reboot to fix the
  3375.   problem, record the boot-time probe message and mail it to
  3376.   becker@cesdis.gsfc.nasa.gov - Take particular note of the shared
  3377.   memory location.
  3378.  
  3379.   Problem: WD80*3 will not get detected at boot.
  3380.  
  3381.   Reason: Earlier versions of the Mitsumi CD-ROM (mcd) driver probe at
  3382.   0x300 will succeed if just about anything is that I/O location.  This
  3383.   is bad news and needs to be a bit more robust.  Once another driver
  3384.   registers that it `owns' an I/O location, other drivers (incl. the
  3385.   wd80x3) are `locked out' and can not probe that addr for a card.
  3386.  
  3387.   Solution: Recompile a new kernel without any excess drivers that you
  3388.   aren't using, including the above mcd driver.  Or try moving your
  3389.   ethercard to a new I/O addr. Valid I/O addr. for all the cards are
  3390.   listed in ``Probed Addresses'' You can also point the mcd driver off
  3391.   in another direction by a boot-time parameter (via LILO) such as:
  3392.  
  3393.        mcd=0x200,12
  3394.  
  3395.  
  3396.   Problem: Old wd8003 and/or jumper-settable wd8013 always get the IRQ
  3397.   wrong.
  3398.  
  3399.   Reason: The old wd8003 cards and jumper-settable wd8013 clones don't
  3400.   have the EEPROM that the driver can read the IRQ setting from.  If the
  3401.   driver can't read the IRQ, then it tries to auto-IRQ to find out what
  3402.   it is. And if auto-IRQ returns zero, then the driver just assigns IRQ
  3403.   5 for an 8 bit card or IRQ 10 for a 16 bit card.
  3404.  
  3405.   Solution: Avoid the auto-IRQ code, and tell the kernel what the IRQ
  3406.   that you have jumpered the card to is via a boot time argument.  For
  3407.   example, if you are using IRQ 9, using the following should work.
  3408.  
  3409.  
  3410.        LILO: linux ether=9,0,eth0
  3411.  
  3412.  
  3413.  
  3414.   9.5.  Problems with 3Com cards
  3415.  
  3416.   Problem: The 3c503 picks IRQ N, but this is needed for some other
  3417.   device which needs IRQ N. (eg. CD ROM driver, modem, etc.)  Can this
  3418.   be fixed without compiling this into the kernel?
  3419.  
  3420.   Solution: The 3c503 driver probes for a free IRQ line in the order {5,
  3421.   9/2, 3, 4}, and it should pick a line which isn't being used. Very old
  3422.   drivers used to pick the IRQ line at boot-time, and the current driver
  3423.   (0.99pl12 and newer) chooses when the card is open()/ifconfig'ed.
  3424.  
  3425.   Alternately, you can fix the IRQ at boot by passing parameters via
  3426.   LILO. The following selects IRQ9, base location 0x300, <ignored
  3427.   value>, and if_port #1 (the external transceiver).
  3428.  
  3429.  
  3430.        LILO: linux ether=9,0x300,0,1,eth0
  3431.  
  3432.  
  3433.   The following selects IRQ3, probes for the base location, <ignored
  3434.   value>, and the default if_port #0 (the internal transceiver)
  3435.  
  3436.  
  3437.        LILO: linux ether=3,0,0,0,eth0
  3438.  
  3439.  
  3440.   Problem: 3c503: Configured interrupt number XX is out of range.
  3441.  
  3442.   Reason: Whoever built your kernel fixed the ethercard IRQ at XX.  The
  3443.   above is truly evil, and worse than that, it is not necessary. The
  3444.   3c503 will autoIRQ when it gets ifconfig'ed, and pick one of IRQ{5,
  3445.   2/9, 3, 4}.
  3446.  
  3447.   Solution: Use LILO as described above, or rebuild the kernel, enabling
  3448.   autoIRQ by not specifying the IRQ line.
  3449.  
  3450.   Problem: The supplied 3c503 drivers don't use the AUI (thicknet) port.
  3451.   How does one choose it over the default thinnet port?
  3452.  
  3453.   Solution: The 3c503 AUI port can be selected at boot-time with
  3454.   0.99pl12 and later. The selection is overloaded onto the low bit of
  3455.   the currently-unused dev->rmem_start variable, so a boot-time
  3456.   parameter of:
  3457.  
  3458.  
  3459.        LILO: linux ether=0,0,0,1,eth0
  3460.  
  3461.  
  3462.   should work. A boot line to force IRQ 5, port base 0x300, and use an
  3463.   external transceiver is:
  3464.  
  3465.  
  3466.        LILO: linux ether=5,0x300,0,1,eth0
  3467.  
  3468.  
  3469.   Also note that kernel revisions 1.00 to 1.03 had an interesting
  3470.   `feature'. They would switch to the AUI port when the internal
  3471.   transceiver failed. This is a problem, as it will never switch back if
  3472.   for example you momentarily disconnect the cable. Kernel versions 1.04
  3473.   and newer only switch if the very first Tx attempt fails.
  3474.  
  3475.  
  3476.   9.6.  Problems with Hewlett Packard Cards
  3477.  
  3478.  
  3479.   Problem: HP Vectra using built in AMD LANCE chip gets IRQ and DMA
  3480.   wrong.
  3481.  
  3482.   Solution: The HP Vectra uses a different implementation to the
  3483.   standard HP-J2405A. The `lance.c' driver used to always use the value
  3484.   in the setup register of an HP Lance implementation.  In the Vectra
  3485.   case it's reading an invalid 0xff value. Kernel versions newer than
  3486.   about 1.1.50 now handle the Vectra in an appropriate fashion.
  3487.  
  3488.   Problem: HP Card is not detected at boot, even though kernel was
  3489.   compiled with `HP PCLAN support'.
  3490.  
  3491.   Solution: You probably have a HP PCLAN+  -- note the `plus'. Support
  3492.   for the PCLAN+ was added to mid/late versions of 1.1.  Recompile a
  3493.   (possibly newer) kernel with support for the HP PCLAN+ and you should
  3494.   be in business.
  3495.  
  3496.  
  3497.  
  3498.  
  3499.   9.7.  FAQs Not Specific to Any Card.
  3500.  
  3501.  
  3502.  
  3503.   9.7.1.  ifconfig reports the wrong i/o address for the card.
  3504.  
  3505.  
  3506.   No it doesn't. You are just interpreting it incorrectly.  This is not
  3507.   a bug, and the numbers reported are correct. It just happens that some
  3508.   8390 based cards (wd80x3, smc-ultra, etc) have the actual 8390 chip
  3509.   living at an offset from the first assigned i/o port.  Try cd
  3510.   /usr/src/linux/drivers/net;grep NIC_OFFSET *.c|more to see what is
  3511.   going on. This is the value stored in dev->base_addr, and is what
  3512.   ifconfig reports. If you want to see the full range of ports that your
  3513.   card uses, then try cat /proc/ioports which will give the numbers you
  3514.   expect.
  3515.  
  3516.  
  3517.   9.7.2.  Shared Memory ISA cards in PCI Machine
  3518.  
  3519.  
  3520.   No shared memory cards of any type will work in a PCI machine unless
  3521.   you have the PCI ROM BIOS setup configuration set properly. If you
  3522.   can't figure out which settings are applicable then ask your supplier
  3523.   or local computer guru.
  3524.  
  3525.  
  3526.   9.7.3.  Token Ring
  3527.  
  3528.   Is there token ring support for Linux?
  3529.  
  3530.   To support token ring requires more than only writing a device driver,
  3531.   it also requires writing the source routing routines for token ring.
  3532.   It is the source routing that would be the most time comsuming to
  3533.   write.
  3534.  
  3535.   Alan Cox adds: `It will require (...) changes to the bottom socket
  3536.   layer to support 802.2 and 802.2 based TCP/IP. Don't expect anything
  3537.   soon.'
  3538.  
  3539.   Peter De Schrijver has been spending some time on Token Ring lately,
  3540.   and has patches that are available for IBM ISA and MCA token ring
  3541.   cards. Don't expect miracles here, as he has just started on this as
  3542.   of 1.1.42. You can get the patch from:
  3543.  
  3544.   aix13ps2.cc.kuleuven.ac.be:/pub/Linux/TokenRing.patch-1.1.xx.gz
  3545.  
  3546.   He says that it is only tested on an MCA 16/4 Megabit Token Ring
  3547.   board, but it should work with other Tropic based boards.
  3548.  
  3549.  
  3550.  
  3551.   9.7.4.  32 Bit / VLB / PCI Ethernet Cards
  3552.  
  3553.  
  3554.   What is the selection for 32 bit ethernet cards?
  3555.  
  3556.   There aren't many 32 bit ethercard device drivers because there aren't
  3557.   that many 32 bit ethercards.
  3558.  
  3559.   There aren't many 32 bit ethercards out there because a 10Mbs network
  3560.   doesn't justify spending the 5x price increment for the 32 bit
  3561.   interface.  See ``Programmed I/O vs. ...'' as to why having an
  3562.   ethercard on an 8MHz ISA bus is really not a bottleneck.
  3563.  
  3564.  
  3565.   This might change now that AMD has introduced the 32 bit PCnet-VLB and
  3566.   PCnet-PCI chips.  The street price of the Boca PCnet-VLB board should
  3567.   be under $70 from a place like CMO (see Computer Shopper).  See ``Boca
  3568.   PCI/VLB'' for info on these cards.
  3569.  
  3570.   See ``AMD PCnet-32'' for info on the 32 bit versions of the LANCE /
  3571.   PCnet-ISA chip.
  3572.  
  3573.   The DEC 21040 PCI chip is another option (see ``DEC 21040'') for
  3574.   power-users.  The 21140 100Base-? chip could prove interesting as
  3575.   well, as it is supposedly driver compatible with the 21040. Should be
  3576.   good for uncovering any race-conditions, if nothing else...
  3577.  
  3578.  
  3579.   9.7.5.  FDDI
  3580.  
  3581.   Is there FDDI support for Linux?
  3582.  
  3583.   Donald writes: `No, there is no Linux driver for any FDDI boards.  I
  3584.   come from a place with supercomputers, so an external observer might
  3585.   think FDDI would be high on my list. But FDDI never delivered end-to-
  3586.   end throughput that would justify its cost, and it seems to be a
  3587.   nearly abandoned technology now that 100base{X,Anynet} seems imminent.
  3588.   (And yes, I know you can now get FDDI boards for <$1K. That seems to
  3589.   be a last-ditch effort to get some return on the development
  3590.   investment. Where is the next generation of FDDI going to come from?)'
  3591.  
  3592.  
  3593.   9.7.6.  Linking 10BaseT without a Hub
  3594.  
  3595.  
  3596.   Can I link 10BaseT (RJ45) based systems together without a hub?
  3597.  
  3598.   You can link 2 machines easily, but no more than that, without extra
  3599.   devices/gizmos. See ``Twisted Pair'' -- it explains how to do it. And
  3600.   no, you can't hack together a hub just by crossing a few wires and
  3601.   stuff. It's pretty much impossible to do the collision signal right
  3602.   without duplicating a hub.
  3603.  
  3604.  
  3605.   9.7.7.  SIOCSFFLAGS: Try again
  3606.  
  3607.  
  3608.   I get `SIOCSFFLAGS: Try again' when I run `ifconfig' -- Huh?
  3609.  
  3610.   Some other device has taken the IRQ that your ethercard is trying to
  3611.   use, and so the ethercard can't use the IRQ.  You don't necessairly
  3612.   need to reboot to resolve this, as some devices only grab the IRQs
  3613.   when they need them and then release them when they are done. Examples
  3614.   are some sound cards, serial ports, floppy disk driver, etc. You can
  3615.   type cat /proc/interrupts to see which interrupts are presently in
  3616.   use. Most of the Linux ethercard drivers only grab the IRQ when they
  3617.   are opened for use via `ifconfig'. If you can get the other device to
  3618.   `let go' of the required IRQ line, then you should be able to `Try
  3619.   again' with ifconfig.
  3620.  
  3621.  
  3622.   9.7.8.  Link UNSPEC and HW-addr of 00:00:00:00:00:00
  3623.  
  3624.  
  3625.   When I run ifconfig with no arguments, it reports that LINK is UNSPEC
  3626.   (instead of 10Mbs Ethernet) and it also says that my hardware address
  3627.   is all zeros.
  3628.  
  3629.   This is because people are running a newer version of the `ifconfig'
  3630.   program than their kernel version. This new version of ifconfig is not
  3631.   able to report these properties when used in conjunction with an older
  3632.   kernel. You can either upgrade your kernel, `downgrade' ifconfig, or
  3633.   simply ignore it. The kernel knows your hardware address, so it really
  3634.   doesn't matter if ifconfig can't read it.
  3635.  
  3636.  
  3637.   9.7.9.  Huge Number of RX and TX Errors
  3638.  
  3639.  
  3640.   When I run ifconfig with no arguments, it reports that I have a huge
  3641.   error count in both rec'd and transmitted packets. It all seems to
  3642.   work ok -- What is wrong?
  3643.  
  3644.   Look again. It says RX packets big number PAUSE errors 0 PAUSE dropped
  3645.   0 PAUSE overrun 0.  And the same for the TX column.  Hence the big
  3646.   numbers you are seeing are the total number of packets that your
  3647.   machine has rec'd and transmitted.  If you still find it confusing,
  3648.   try typing cat /proc/net/dev instead.
  3649.  
  3650.  
  3651.   9.7.10.  Entries in /dev/ for Ethercards
  3652.  
  3653.  
  3654.   I have /dev/eth0 as a link to /dev/xxx. Is this right?
  3655.  
  3656.   Contrary to what you have heard, the files in /dev/* are not used.
  3657.   You can delete any /dev/wd0, /dev/ne0 and similar entries.
  3658.  
  3659.  
  3660.   9.7.11.  Linux and ``trailers''
  3661.  
  3662.  
  3663.   Should I disable trailers when I `ifconfig' my ethercard?
  3664.  
  3665.   You can't disable trailers, and you shouldn't want to. `Trailers' are
  3666.   a hack to avoid data copying in the networking layers. The idea was to
  3667.   use a trivial fixed-size header of size `H', put the variable-size
  3668.   header info at the end of the packet, and allocate all packets `H'
  3669.   bytes before the start of a page. While it was a good idea, it turned
  3670.   out to not work well in practice.  If someone suggests the use of
  3671.   `-trailers', note that it is the equivalent of sacrificial goats
  3672.   blood. It won't do anything to solve the problem, but if problem fixes
  3673.   itself then someone can claim deep magical knowledge.
  3674.  
  3675.  
  3676.   9.7.12.  Non-existent Apricot NIC is detected
  3677.  
  3678.  
  3679.   I get eth0: Apricot 82596 at 0x300, 00 00 00 00 00 00 IRQ 10 and
  3680.   apricot.c:v.0.02 19/05/94 when I boot, but I don't have an
  3681.   ``Apricot''. And then the card I do have isn't detected.
  3682.  
  3683.   A few kernel releases had a version of the Apricot driver which only
  3684.   used a simple checksum to detect if an Apricot is present. This would
  3685.   mistakenly think that almost everything was an Apricot NIC. It really
  3686.   should look at the vendor prefix instead. However there is now a check
  3687.   to see if the hardware address is all zeros, so this shouldn't happen.
  3688.   Your choices are to move your card off of 0x300 (the only place the
  3689.   Apricot driver probes), or better yet, get a new kernel.
  3690.  
  3691.  
  3692.   10.  Miscellaneous.
  3693.  
  3694.  
  3695.   Any other associated stuff that didn't fit in anywhere else gets
  3696.   dumped here. It may not be relevant, and it may not be of general
  3697.   interest but it is here anyway.
  3698.  
  3699.  
  3700.   10.1.  Passing Ethernet Arguments to the Kernel
  3701.  
  3702.  
  3703.   Here are two generic kernel commands  that can be passed to the kernel
  3704.   at boot time. This can be done with LILO, loadlin, or any other
  3705.   booting utility that accepts optional arguments.
  3706.  
  3707.   For example, if the command was `blah' and it expected 3 arguments
  3708.   (say 123, 456, and 789) then, with LILO, you would use:
  3709.  
  3710.   LILO: linux blah=123,456,789
  3711.  
  3712.   Note: PCI cards have their i/o and IRQ assigned by the BIOS at boot.
  3713.   This means that any boot time arguments for a PCI card's IRQ or i/o
  3714.   ports are ignored.
  3715.  
  3716.  
  3717.   10.1.1.  The ether command
  3718.  
  3719.  
  3720.   In its most generic form, it looks something like this:
  3721.  
  3722.  
  3723.        ether=IRQ,BASE_ADDR,PARAM_1,PARAM_2,NAME
  3724.  
  3725.  
  3726.   All arguments are optional.  The first non-numeric argument is taken
  3727.   as the NAME.
  3728.  
  3729.   IRQ: Obvious.  An IRQ value of `0' (usually the default) means to
  3730.   autoIRQ.  It's a historical accident that the IRQ setting is first
  3731.   rather than the base_addr -- this will be fixed whenever something
  3732.   else changes.
  3733.  
  3734.   BASE_ADDR: Also obvious.  A value of `0' (usually the default) means
  3735.   to probe a card-type-specific address list for an ethercard.
  3736.  
  3737.   PARAM_1: It was orginally used as an override value for the memory
  3738.   start for a shared-memory ethercard, like the WD80*3.  Some drivers
  3739.   use the low four bits of this value to set the debug message level.  0
  3740.   -- default, 1-7 -- level 1..7, (7 is maximum verbosity)  8 -- level 0
  3741.   (no messages). Also, the LANCE driver uses the low four bits of this
  3742.   value to select the DMA channel.  Otherwise it uses auto-DMA.
  3743.  
  3744.   PARAM_2: The 3c503 driver uses this to select between the internal and
  3745.   external transceivers.  0 -- default/internal, 1 -- AUI external.  The
  3746.   Cabletron E21XX card also uses the low 4 bits of PARAM_2 to select the
  3747.   output media. Otherwise it detects automatically.
  3748.  
  3749.   NAME: Selects the network device the values refer to.  The standard
  3750.   kernel uses the names `eth0', `eth1', `eth2' and `eth3' for bus-
  3751.   attached ethercards, and `atp0' for the parallel port `pocket'
  3752.   ethernet adaptor. The arcnet driver uses `arc0' as its name.  The
  3753.   default setting is for a single ethercard to be probed for as `eth0'.
  3754.   Multiple cards can only be enabled by explicitly setting up their base
  3755.   address using these LILO parameters.  The 1.0 kernel has LANCE-based
  3756.   ethercards as a special case.  LILO arguments are ignored, and LANCE
  3757.   cards are always assigned `eth<n>' names starting at `eth0'.
  3758.   Additional non-LANCE ethercards must be explicitly assigned to
  3759.   `eth<n+1>', and the usual `eth0' probe disabled with something like
  3760.   `ether=0,-1,eth0'.  ( Yes, this is bug. )
  3761.  
  3762.  
  3763.   10.1.2.  The reserve command
  3764.  
  3765.  
  3766.   This next lilo command is used just like `ether=' above, ie. it is
  3767.   appended to the name of the boot select specified in lilo.conf
  3768.  
  3769.  
  3770.        reserve=IO-base,extent{,IO-base,extent...}
  3771.  
  3772.  
  3773.   In some machines it may be necessary to prevent device drivers from
  3774.   checking for devices (auto-probing) in a specific region. This may be
  3775.   because of poorly designed hardware that causes the boot to freeze
  3776.   (such as some ethercards), hardware that is mistakenly identified,
  3777.   hardware whose state is changed by an earlier probe, or merely
  3778.   hardware you don't want the kernel to initialize.
  3779.  
  3780.   The reserve boot-time argument addresses this problem by specifying an
  3781.   I/O port region that shouldn't be probed. That region is reserved in
  3782.   the kernel's port registration table as if a device has already been
  3783.   found in that region. Note that this mechanism shouldn't be necessary
  3784.   on most machines. Only when there is a problem or special case would
  3785.   it be necessary to use this.
  3786.  
  3787.   The I/O ports in the specified region are protected against device
  3788.   probes. This was put in to be used when some driver was hanging on a
  3789.   NE2000, or misidentifying some other device as its own.  A correct
  3790.   device driver shouldn't probe a reserved region, unless another boot
  3791.   argument explicitly specifies that it do so.  This implies that
  3792.   reserve will most often be used with some other boot argument. Hence
  3793.   if you specify a reserve region to protect a specific device, you must
  3794.   generally specify an explicit probe for that device. Most drivers
  3795.   ignore the port registration table if they are given an explicit
  3796.   address.
  3797.  
  3798.   For example, the boot line
  3799.  
  3800.  
  3801.        LILO: linux  reserve=0x300,32  ether=0,0x300,eth0
  3802.  
  3803.  
  3804.   keeps all device drivers except the ethercard drivers from probing
  3805.   0x300-0x31f.
  3806.  
  3807.   As usual with boot-time specifiers there is an 11 parameter limit,
  3808.   thus you can only specify 5 reserved regions per reserve keyword.
  3809.   Multiple reserve specifiers will work if you have an unusually
  3810.   complicated request.
  3811.  
  3812.  
  3813.   10.2.  Using the Ethernet Drivers as Modules
  3814.  
  3815.  
  3816.   At present, all the modules are put in the subdirectory modules in
  3817.   your Linux kernel source tree (usually in the form of symbolic links).
  3818.   To actually generate the modules, you have to type make modules after
  3819.   you have finished building the kernel proper. Earlier kernels built
  3820.   them automatically, which wasn't fair to those compiling on 4MB
  3821.   386sx-16 machines.
  3822.  
  3823.   If you have an 8390 based card, you will have to insert two modules,
  3824.   8390.o and then the module for your card.  You can find out if your
  3825.   card uses an 8390 chip by reading the above documentation for your
  3826.   card, or by just typing something like grep 8390 my_card_name.c in the
  3827.   drivers/net/ directory. If grep finds anything, then your card has an
  3828.   8390 (or compatible) chip.
  3829.   Once you have figured this out, you can insert the module(s) by typing
  3830.   insmod mod_name.o as root. The command lsmod will show you what
  3831.   modules are loaded, and rmmod will remove them.
  3832.  
  3833.   Once a module is inserted, then you can use it just like normal, and
  3834.   give ifconfig commands. If you set up your networking at boot, then
  3835.   make sure your /etc/rc* files run the insmod command(s) before getting
  3836.   to the ifconfig command.
  3837.  
  3838.   Also note that a busy module can't be removed. That means that you
  3839.   will have to ifconfig eth0 down  (shut down the ethernet card) before
  3840.   you can remove the modules. Also, if you use an 8390 based card, you
  3841.   will have to remove the card module before removing the 8390 module,
  3842.   as the 8390 module is used by the card module.
  3843.  
  3844.  
  3845.   10.3.  Contributors
  3846.  
  3847.  
  3848.   Other people who have contributed (directly or indirectly) to the
  3849.   Ethernet-Howto are, in alphabetical order:
  3850.  
  3851.  
  3852.           Ross Biro               <bir7@leland.stanford.edu>
  3853.           Alan Cox                <iialan@www.linux.org.uk>
  3854.           David C. Davies         <davies@wanton.enet.dec.com>
  3855.           Bjorn Ekwall            <bj0rn@blox.se>
  3856.           David Hinds             <dhinds@allegro.stanford.edu>
  3857.           Michael Hipp            <mhipp@student.uni-tuebingen.de>
  3858.           Mike Jagdis             <jaggy@purplet.demon.co.uk>
  3859.           Duke Kamstra            <kamstra@ccmail.west.smc.com>
  3860.           Russell Nelson          <nelson@crynwr.com>
  3861.           Cameron Spitzer         <camerons@NAD.3Com.com>
  3862.           Dave Roberts            <david.roberts@amd.com>
  3863.           Glenn Talbott           <gt@hprnd.rose.hp.com>
  3864.  
  3865.  
  3866.  
  3867.  
  3868.   Many thanks to the above people, and all the other unmentioned testers
  3869.   out there.
  3870.  
  3871.  
  3872.   10.4.  Closing
  3873.  
  3874.  
  3875.   If you have found any glaring typos, or outdated info in this
  3876.   document, please let one of us know. It's getting big, and it is easy
  3877.   to overlook stuff.
  3878.  
  3879.   Thanks,
  3880.  
  3881.   Paul Gortmaker, Paul.Gortmaker@anu.edu.au
  3882.  
  3883.   Donald J. Becker, becker@cesdis.gsfc.nasa.gov
  3884.