home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / misc / cnetdevice / readme < prev    next >
Encoding:
Text File  |  1997-12-22  |  7.6 KB  |  201 lines

  1.        --------------------------------------------------------------
  2.        "cnet.device" An Experimental Amiga PCMCIA Network Card Driver
  3.        --------------------------------------------------------------
  4.                 V0.6 By Bruce Abbott (bhabbott@inhb.co.nz)
  5.  
  6.  
  7. Introduction:
  8.  
  9.   Many A1200 owners have been asking the question "will a PC-CARD work
  10.   on my Amiga?". The usual reply to this is "No, because there are no
  11.   drivers for the Amiga". It has also been suggested that the A1200
  12.   PCMCIA port is incompatible with the PC-CARD standard.
  13.  
  14.   With PC-CARD Modems and Ethernet cards being so cheap, it was only a
  15.   matter of time before "Only the Amiga makes it possible". Thus I now
  16.   present "cnet.device", an Amiga driver for the CNet CN40BC and Accton
  17.   EN2216 PC-CARD ethernet adapters!
  18.  
  19.  
  20.  
  21. Requirements:
  22.  
  23.   - A CNet CN40BC or Accton EN2216 PCMCIA Ethernet card. (Some other
  24.     cards have also been reported to work - see the compatibility list).
  25.  
  26.   - An Amiga 1200 or Amiga 600.
  27.  
  28.   - Network software. Tested with AmiTCP 3.0b, Miami 2.0g and Envoy 2.0
  29.  
  30.   - A network :^)
  31.  
  32.  
  33.  
  34. Usage:
  35.  
  36.   Simply copy the file "cnet.device" to where you want it (usually
  37.   "DEVS:networks/") and set up your network software for an ethernet
  38.   driver. For AmiTCP 3.0 this would involve editing the "interfaces"
  39.   file and adding a line like "cnet dev = devs:networks/cnet.device".
  40.   Then you would start it up with "ifconfig cnet0 192.168.0.1".
  41.  
  42.  
  43.  
  44. Performance:
  45.  
  46.   My network consists of an A1200 030/40MHz conected via co-ax cable
  47.   to a 486DX-33 running Windoze 95. Software on the Amiga is AmiTCP3.0b
  48.   and ch_NFS, and the pecee is using MSTCP/IP and SOSNT. This gives me
  49.   access to the peecee drives on the Workbench. With this setup, file
  50.   transfer speeds reach about 200KBytes/Sec. FTP transfers between my
  51.   A1200 and an A600 with Viper630 (030/40MHz) have acheived 300KBytes/Sec.
  52.  
  53.  
  54.  
  55. Limitations:
  56.  
  57.   Some advanced SANA-II functions are not working in this version.
  58.   This should not affect normal operation.
  59.  
  60.   Do not try to run multiple protocol stacks on this driver, as the
  61.   device can only operate with a single opener.
  62.  
  63.   The only way to remove the device from memory is to re-boot!
  64.  
  65.   A1200s require an internal modification to the CreditCardReset line
  66.   to ensure correct card initialisation. If you haven't done this mod,
  67.   you may need to wait until after powering up your A1200 before plugging
  68.   the card in. If the 'Link' LED stays on but you are using co-ax cable,
  69.   this indicates that the card is NOT working properly. Also, sometimes
  70.   the card can appear to be OK but still doesn't work correctly.
  71.  
  72.   cnet.device v0.6 has more stringent testing than earlier versions, and
  73.   will not go online unless the PCMCIA attributes are correct (this is
  74.   required to enable hot-swapping and to be compatible with more cards).
  75.   In most cases if the card passes these tests then it is OK, but for best
  76.   results you should apply the reset modification!
  77.  
  78.  
  79. Hardware Modification Needed for A1200 PCMCIA port
  80.  
  81.   Cnet.device v0.5 used a config file to compensate for the Card Reset
  82.   problem with A1200s. In V0.6 this has been abolished, and replaced by
  83.   a more reliable hardware modification. This may also help with cards
  84.   that worked with v0.4, but not with v0.5. If for some reason you cannot
  85.   have the hardware modification done you can now remove and re-insert
  86.   the card to make sure that it is reset properly, even if the device has
  87.   already been opened (however this is not recommended).
  88.  
  89.  
  90. Surf Squirrel Problems
  91.  
  92.   The Surf Squirrel SCSI/Serial adapter is not a proper PCMCIA card, and
  93.   has no attribute memory. Unfortunately, its driver takes over the PCMCIA 
  94.   port and prevents other drivers from owning their cards. This will happen 
  95.   whenever squirrelscsi.device is opened, even if the Surf Squirrel card is 
  96.   never plugged in!
  97.  
  98.  
  99. Card_info Diagnostic Tool
  100.  
  101.   The 'card_info' program can be used to identify a PCMCIA card, and
  102.   will display a summary of its attributes. It also produces a binary
  103.   dump of the attribute and I/O memory, which can be analysed for more
  104.   detailed information. If you have an unknown card that doesn't seem
  105.   to work, run this program and send the 'card_info.bin' file to me -
  106.   after examining this I might be able to solve your problem.
  107.  
  108.  
  109. Example Network Files
  110.  
  111.  Because many people seem to have trouble setting up an Ethernet network,
  112.  I have included a copy of my own network configuration and startup script
  113.  files, which you can use as a template for your own installation. Please
  114.  change the username etc. However, you should use the same domain that I
  115.  have for your IP addresses ie. 192.168.0.x (where 'x' is between 1 and
  116.  254).
  117.  
  118.  
  119. History:
  120.  
  121.    V0.1 First Aminet Release
  122.  
  123.    - It worked, just.
  124.  
  125.  
  126.    V0.4 Second Aminet Release
  127.  
  128.    - Added several SANAII commands for compatibility with Miami.
  129.  
  130.    - Enabled interrupts during RemoteWrite. Should no longer cause
  131.      serial port overruns.
  132.  
  133.    - Improved error checking in case of card initialisation failure.
  134.      Now doesn't GURU if device is opened twice! Also tested it with
  135.      Enforcer, which did not detect any illegal memory accesses.
  136.  
  137.    - Relaxed hardware address verification to accept the Accton EN2216.
  138.      Now it might possibly work with other 'NE2000 compatible' cards.
  139.  
  140.    - Unrolled loops to improve data transfer speed. Now about 20% faster
  141.      on an unexpanded A600. Code size got bigger as a result :(
  142.  
  143.    - Hack to fix problem with missed interrupts. Now the device clears
  144.      the Gayle interrupt bits instead of letting card.resource do it.
  145.  
  146.  
  147.    V0.5  Third Aminet Release
  148.  
  149.    - Accepts 802.3 packets (probably, untested).
  150.  
  151.    - Sets BROADCAST bit in io_flags when appropriate.
  152.  
  153.    - Now examines PCMCIA attribute memory to determine the value to write
  154.      into the Card Configuration Register. This should work with all NE2000
  155.      compatible PCMCIA network cards, even those with different CCR offsets.
  156.  
  157.    - If attribute memory is not found, cnet.device tries to open the file
  158.      "s:cnetdev.config" and read from it the Card Configuration Register
  159.      offset, Configuration ID, and ROM Station Address. This often revives
  160.      a card that did not power up properly. The 'cnetconfig' program is
  161.      supplied for creating this file.
  162.  
  163.  
  164.    V0.6 Fourth Aminet Release
  165.  
  166.    - Removed cnet.config stuff, and replaced with a hardware mod. This
  167.      mod should be done on all A1200s (not required on the A600).
  168.  
  169.    - Now cards are hot-swappable. As a result, only proper network
  170.      cards will be accepted. Other types of cards are ignored so
  171.      that other drivers can access them.
  172.  
  173.    - I/O addressing now supports a 64KByte range. Previously this was
  174.      only 1KB, which may have prevented some cards from working.
  175.  
  176.    - Accepts all Card Configuration Register address sizes (previously
  177.      the address was assumed to be 16bit, but some cards are 24 bit!).
  178.  
  179.    - Tighter data transfer loops, which are slightly faster on a
  180.      machine with small CPU caches (eg. 68030).
  181.  
  182.    - Un-supported commands now return S2ERR_NOT_SUPPORTED.
  183.  
  184.    - 'card_info' program provided for viewing card attributes.
  185.  
  186.  
  187. Legal Mush:
  188.  
  189.   To encourage further development in PC-CARD devices for the Amiga, I am
  190.   placing the source code for this project into the Public Domain. You
  191.   can freely use or abuse it as you wish. I have also included some other
  192.   authors' code for reference purposes, please respect their copyrights.
  193.  
  194.   Please note that this driver is not a finished product, and is almost
  195.   certain to harbour a few bugs. Thus I will not be held responsible for
  196.   any loss or injury that you may incur while using it.
  197.  
  198.   I cannot guarantee compatibility with your system. All I can say is it
  199.   works for me.
  200.  
  201.