home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / doc / HOWTO / mini / Boca < prev    next >
Text File  |  1995-02-16  |  8KB  |  179 lines

  1. BOCA-HOWTO
  2. Installing a Boca 16-port serial card (Boca 2016) with Linux
  3.  
  4. This HOWTO is being maintained by David H Dennis,
  5. david@amazing.cinenet.net, to try and help any other individuals who
  6. may have acquired a BocaBoard, stared at it and found out that it
  7. didn't seem to do anything.
  8.  
  9. A very high percentage of those interested in the BocaBoard are also
  10. interested in becoming Internet Service Providers (ISPs).  If you are
  11. one of them, please feel free to drop by my web site,
  12. http://amazing.cinenet.net , and check out my Inet-Access FAQ, over
  13. 5,000 lines detailing how to hook up to the net and how to make your 
  14. Internet provider business succeed in these most interesting times.
  15.  
  16. The information here was obtained by begging many people for help.  
  17. Unfortunately, I have forgotten their names due to a pressing need
  18. for disk space on my Netcom account.  :-(  Nonetheless, I thank them
  19. very much for their assistance when things looked blackest.  This is
  20. my way of paying some of that back.
  21.  
  22. At the end of this document, there is additional information on a special
  23. $ 80 piece of equipment you will need in addition to your BocaBoard, and
  24. some comments on Boca customer service and availability.
  25.  
  26. WHAT DO YOU NEED TO DO TO INSTALL A BOCABOARD?
  27.  
  28. In outline, the following:
  29.  
  30. 1 The board itself and its manuals
  31.  
  32. 2 Your Linux source tree
  33.  
  34. 3 Patience
  35.  
  36. Here's the basic procedure:
  37.  
  38. RECOMPILING THE KERNEL
  39.  
  40. The first step is to change your kernel so that it knows you have a BocaBoard.
  41. Unfortunately, this is not a part of the configure script; you must go in and
  42. modify the source by hand.  This consists of putting the following line at
  43. the beginning of linux/drivers/char/serial.c:
  44.  
  45.    #define CONFIG_BOCA  1
  46.  
  47. Well, it used to work that way.  As of some kernel version or another,
  48. this has changed.  To make it work with newer kernels, search for the
  49. "BOCA_FLAGS" #define in serial.c, and change the value to 
  50.  
  51.    #define BOCA_FLAGS  ASYNC_BOOT_AUTOCONF
  52.  
  53. You can then recompile your kernel using the instructions included with the
  54. source tree.  I recommend running the new kernel from a floppy until you're
  55. very sure it works; otherwise, the procedure for getting back your system
  56. is mind-numbing at best.
  57.  
  58. At least to me, digging into my kernel and re-compiling it was quite a 
  59. stressful venture!  Relax; as long as you copy it to a floppy, your new
  60. kernel is completely harmless.  It won't bite!  Honest!  :-)
  61.  
  62. INSTALLING THE CARD
  63.  
  64. The default address on both the card and the Linux software for the
  65. configuration is 0x100; leave that alone.  Set the IRQ on the card to
  66. Linux' default of 12.  If you want to change the IRQ, you will have to
  67. search for "BOCA_FLAGS" in the file.  You will find lines like this:
  68.  
  69.     { BASE_BAUD, 0x100, 12, BOCA_FLAGS },    /* ttyS16 */
  70.     { BASE_BAUD, 0x108, 12, BOCA_FLAGS },    /* ttyS17 */
  71.     ...
  72.  
  73. You can change the IRQ from 12 by changing the 12 to any valid IRQ.  I have
  74. not tried this, however.  
  75.  
  76. TELLING LINUX ABOUT YOUR CARD
  77.  
  78. Once you have compiled your new kernel, switch off the machine and install
  79. the card.  Then, turn your machine on with the new kernel floppy in the
  80. drive.  If the installation succeeded, you should see all sorts of 
  81. strange stuff about 16550 UARTS being connected to ttyS16-ttyS32.  The
  82. system will then come up normally.
  83.  
  84. The odds are pretty good that you don't actually have entries in /dev
  85. for those lines.  Remember that they start at 16 and go on to 32.  If
  86. you look at the source code, you'll see why; support for other cards
  87. is included in the code for lower line numbers.  Creating them is
  88. pretty simple, once you know the trick.
  89.  
  90. > To create entries for dial-out lines (where you call out), type:
  91.  
  92.     mknod /dev/cuaxx 4 N
  93.  
  94. n = 64 + <line number>
  95.  
  96. For example, to create the first couple of lines on your board, type:
  97.  
  98.     mknod /dev/cua16 4 80
  99.     mknod /dev/cua17 4 81
  100.      ...
  101.  
  102. > To create dial-in lines (where users call you), type
  103.  
  104.     mknod /dev/ttySxx 5 n
  105.  
  106. where N is the same as described above.  For example, to create the first
  107. couple of lines on your BocaBoard, type:
  108.  
  109.     mknod /dev/ttyS16 5 80
  110.     mknod /dev/ttyS17 5 81
  111.       ...
  112.   
  113. It is recommended that you create both dial in and dial out lines for
  114. each port, so that you have maximum flexibility.  It turns out to be
  115. very handy to call another line of your system by activating one of your
  116. lines as dial-out and calling your main number.  I've done this already
  117. and it works great!  It's most useful for checking how things look "on
  118. the other side of the fence"; I used it to find out how my software looked
  119. at 2400bps.  (It's slower than the Linux console.  A LOT slower, in fact).
  120.  
  121. Once you've finished with this, you can add entries to your inittab file
  122. in the same way as you would for a standard ttySx entry, and the modems
  123. or terminals should come up!
  124.  
  125. THE BIG GOTCHA: Something extra you will need, and service comments
  126.  
  127. If you want to use your new Boca card with any standard DB-25 RS232 connector,
  128. you will have to get a special breakout box, which costs about $ 80.  The 
  129. card itself comes with a breakout box that plugs into the card through a
  130. truly formidable cable.  It then supplies phone-like cables for the ports.  
  131. The special $ 80 box has phone-like cables that plug into the breakout
  132. box included with the Boca card; you can then plug your modems or terminals
  133. into standard RS-232 connectors on the box.  Unless you actually have a
  134. system that accepts the phone-like connectors, you should add the price
  135. of the box to the cost of the card when comparing it to other alternatives.
  136.  
  137. I got my Boca 2016 card through a special wholesale deal that I don't think
  138. many people will be able to reproduce.  It was available quickly.  However,
  139. the breakout box for RS-232 took about two weeks to ship.  You should be
  140. aware of your need for this box before you acquire the card.  The 2016 board
  141. was $ 235 and the additional box was $ 79.95.
  142.  
  143. Only one port of my first Boca 2016 worked.  I called Boca, expecting to
  144. hear a long string of questions and advice.  When they said, "Linux?
  145. What's that?" I feared the worst.  However, upon hearing my actual problem,
  146. they cheerfully told me that the card was defective and I should send it
  147. back; full 5-year factory warranty, 30-days exchange.  I was struck by how
  148. cheery the lady was.  It was as though they were expecting the worst, and
  149. very kindly making the most of it!  
  150.  
  151. I had my hardware guy exchange the card.  Unfortunately, the cards were
  152. back-ordered and they took about two more weeks to give me my new card.
  153. I have to say that I was quite annoyed at this, since I was anxiously
  154. chomping at the bit to get this thing up and running.
  155.  
  156. Some people have problems with ports past the first eight.  I have tested
  157. my card up to port 11 and all the ports appear to be working.  Boca Research
  158. quality control may be lacking; I would recommend that people with troubles
  159. with the card call Boca and deal with them directly.  I suspect that if I'd
  160. exchanged the card directly through the factory I would have had better
  161. service than through my dealer.  The factory people were all quite nice
  162. and eager to please.
  163.  
  164. Right now, I have only four phone lines. I bought the 16-port card for two
  165. reasons:  Because it has modem control, unlike the smaller ones, and in
  166. anticipation of future expansion.  
  167.  
  168. If you want to check out Linux performance with the card, or take a
  169. look at my original Internet-oriented BBS software, you can reach my
  170. BBS/Internet service provider at (818) 997-7500.  Equipment used to
  171. run the system: 486DX2/66; 20mb RAM; 2-1.8GB Quantum hard drives;
  172. Cirrus Logic video card; NEC 4FG monitor.
  173.  
  174. If you've found this FAQ helpful, or if you have more information to
  175. add, I'd enjoy hearing from you.  My current electronic mail address
  176. is david@amazing.cinenet.net.  My Internet Provider FAQ, over 4,100
  177. lines on how to become an Internet provider, is also available by
  178. writing to the same address.
  179.