home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / HOWTO / ETHERNET < prev    next >
Encoding:
Text File  |  1995-04-20  |  139.7 KB  |  3,759 lines

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