home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 August / PCWorld_1999-08_cd.bin / doc / FAQ / txt / ATAPI-FAQ < prev    next >
Text File  |  1999-04-09  |  11KB  |  199 lines

  1. atapi.FAQ - Your most frequently asked questions about
  2.         ATAPI/IDE CDROM drives.
  3.  
  4.     Author:    Mathew E. Kirsch
  5.         Systems Manager - Computing Graphics Engineering Technology
  6.         SUNY at Alfred, Alfred NY 14802
  7.         kirschm@snyalfva.cc.alfredtech.edu
  8.  
  9. Revisions:
  10. 1.0 - First public posting, 951010
  11. 1.1 - Added Q5 and Q6, 951011
  12. 1.2 - Added Q7, courtesy Steve Clarke; renamed the ATAPI CDROM FAQ
  13. 1.3 - Added Q8, due to number of people with this problem
  14.  
  15. Q1: Is the <Insert your brand/model here> IDE CDROM drive supported?
  16.  
  17. A1: Yes, of course it is. It is an ATAPI/IDE CDROM drive, meaning it utilizes
  18.     the IDE hard drive interface that is present in most typical home PC's
  19.     today. It has been like this since kernel version 1.1.85. 
  20.  
  21. Q2: I already have two IDE hard drives. Will my ATAPI CDROM still work?
  22.  
  23. A2: Yes, but you need to have a second IDE interface card to make it work.
  24.     Unfortunately, not just any IDE card will work. The secondary interface
  25.     card that you choose must have jumper-selectable IRQs and base addresses,
  26.     or, you need to purchase a card that is specifically manufactured for
  27.     use as a secondary interface. One such card is the Data Technologies 
  28.     model 2183. Its typically only $15, so its not a big expenditure on your 
  29.     part. If you bought a Mitsumi with an interface card, use that one.
  30.     Another option is an EIDE card with dual IDE "ports", meaning it has
  31.     two IDE/EIDE interfaces on the same card. I've been out of circulation
  32.     for a while USENET-wise, but I heard that the 1.3.x kernels fully support
  33.     EIDE interfaces. 
  34.  
  35. Q3: I can't seem to find the driver for the FX400 in the kernel source,
  36.     what should I be looking for?
  37.  
  38. A3: There isn't a SPECIFIC driver for the Mitsumi FX400 (or for any other
  39.     ATAPI/IDE CDROM drive for that matter). What you need is the ATAPI 
  40.     CDROM driver that has been included in the kernel source officially
  41.     since at least kernel version 1.1.85. It can be enabled just like any
  42.     other driver when you "make config" and recompile the kernel. Recompiling
  43.     the kernel is an entire FAQ in itself, so I won't cover it here.
  44.  
  45. Q4: What options should I enable so I can use my new 
  46.     <insert brand name/model here> ATAPI CDROM?
  47.  
  48. A4: Here is an excerpt from the "make config" sequence:
  49.  
  50. *
  51. * Please see drivers/block/README.ide for help/info on IDE drives
  52. *
  53.    Use old disk-only driver for primary i/f (CONFIG_BLK_DEV_HD) [n] n
  54.    Use new IDE driver for primary/secondary i/f (CONFIG_BLK_DEV_IDE) [y] y
  55.    Include support for IDE/ATAPI CDROMs (CONFIG_BLK_DEV_IDECD) [n] y
  56.  
  57.     As you can see, you do NOT want to use the old disk-only driver, and you
  58.     DO want to use the new IDE driver and include support for ATAPI CDROMs.
  59.     Also, make sure you enable ISO9660 filesystem support (the standard 
  60.     CDROM filesystem type). Compile your kernel, and copy the compressed kernel,
  61.     vmlinuz, from /usr/src/linux/arch/i386/boot to / and do the same for 
  62.     System.map. If you are using an older version of Slackware (older than 2.2),
  63.     you also need to run a short script to create the device nodes (in /dev) 
  64.     for the two devices on that secondary interface. The script is located in
  65.     /usr/src/linux/drivers/block, and is called MAKEDEV.ide1.
  66.     Update LILO or loadlin (whichever you prefer to use) as needed,
  67.     reboot and away you (should) go. As long as you have your secondary IDE 
  68.     interface on IRQ 15, and at port address 170h-177h (the defaults for the
  69.     DTC 2183 interface, but always double-check factory jumper settings, and
  70.     as always: when in doubt, ask someone), things should work admirably. 
  71.     Linux should have no problem recognizing the secondary interface, and your 
  72.     bootup sequence should look something like this: 
  73.  
  74. hda: WDC AC1210F, 202MB w/64KB Cache, CHS=989/12/35, MaxMult=16
  75. hdb: Maxtor 7345 AT, 329MB w/64KB Cache, CHS=790/15/57, MaxMult=32
  76. hdc: FX400_02, ATAPI, CDROM drive
  77. ide1: secondary interface on irq 15
  78. ide0: primary interface on irq 14
  79.  
  80.     This may seem a bit confusing, so I'll translate. The first line indicates
  81.     that my first hard drive (/dev/hda) is a Western Digital 202MB hard drive.
  82.     The second is a Maxtor 329MB drive. hda is the first drive on the first
  83.     interface, and hdb is the second drive on the first interface. hdc is the 
  84.     first drive on the second interface, and hdd (not used on my system, yet :)
  85.     is the second drive on the second interfae. The third line, therefore, 
  86.     indicates that there is an FX400 ATAPI CDROM located on the first device 
  87.     of the second interface. The final two lines indicate that there are two
  88.     IDE interfaces, one on IRQ 15, one on IRQ 14. The drives you have will
  89.     show up differently, but the format will be the same. Remember where the
  90.     CDROM was recognized, as you will have to make a symbolic file link to the
  91.     /dev/cdrom device. Do this by typing (from anywhere):
  92.  
  93.     ln -s /dev/hdc /dev/cdrom
  94.  
  95.     Once booted, you should now be able to insert your favorite Slackware
  96.     distribution CDROM and mount it by typing:
  97.  
  98.     mount /dev/cdrom /mnt
  99.  
  100.     Pretty simple, eh?
  101.  
  102.     Note that in some cases you may have to add the following line to your
  103.     /etc/lilo.conf or to your loadlin script (whichever you use):
  104.  
  105.     append="hdc=cdrom"    <--- for lilo.conf
  106.     hdc=cdrom          <--- from the lilo "boot:" prompt
  107.  
  108. Q5: I've installed the drive as the only device on the secondary interface,
  109.     with the CDROM drive jumpered as SLAVE/SINGLE, and Linux won't 
  110.     see it. What am I missing?
  111.  
  112. A5: Well, quite a lot, to be frank. 99.99% of the ATAPI CDROM drives
  113.     are shipped jumpered as SLAVE or SINGLE, and this simply will
  114.     not work with Linux. By the IDE standard, a single
  115.     drive on an interface must be jumpered as MASTER. There isn't (or
  116.     shouldn't be) a specification for SINGLE in the IDE standard.
  117.     Change the jumper on the back of the CDROM drive to MASTER,
  118.     and follow the directions in Question 4, and you should be set to go.
  119.  
  120. Q6: I've heard that putting my ATAPI CDROM and my IDE hard drive on the same 
  121.     IDE channel slows down the hard drive. What is the story?
  122.  
  123. A6: From my personal experience (and the experience of several others who
  124.     commented on the subject), there is no truth to the rumor that putting
  125.     the CDROM and HDD on the same channel slows things down.
  126.     The rumor states that the MEDIA TRANSFER RATE is set to the speed of
  127.     the slowest device on the IDE channel. This is wrong.
  128.     The real rumor should be that the INSTRUCTION TRANSFER RATE is set
  129.     to the speed of the slower device on the IDE channel. Since the 
  130.     instructions are handled in firmware (the logic chips on the control
  131.     boards on the drives) rather than on the spinning media, the only
  132.     reason the INSTRUCTION TRANSFER RATE would be slower on one device
  133.     is due to a poor design by the manufacturer.
  134.     You mileage may vary here, because the rumor may actually be true
  135.     if you're using certain IDE/EIDE controller boards. If you are
  136.     experiencing the slowdown when your CDROM and HDD are on the same
  137.     IDE channel, send the brand and model of your controller to me,
  138.     and I'll list it here.
  139.  
  140. Q7: I just got kernel 1.3.(19-30), and my ATAPI CDROM quit working. Why?
  141.  
  142. A7: Somebody reworked the IDE/ATAPI drivers for kernel versions 
  143.     1.3.19 through 1.3.30, and they got broken in the process.
  144.     Don't ask me why, because as I see it, if it ain't broke, don't 
  145.     fix it! Another view on the subject is: If you don't want to be a
  146.     guinea pig, don't get the odd-numbered (1.1.x, 1.3.x, 1.n.x) kernels.
  147.     Stick to the even numbered, or production kernels, like 1.2.13.
  148.  
  149. Q8: Why does my Mitsumi FX401 drive perform badly?
  150.  
  151. A8: Mitsumi recently (about August '95) replaced the FX400 with the FX401.
  152. This model, although similar, has a few new minor features and a small speed
  153. increase. Unfortunately, the timing of this drive is slightly different and
  154. breaks the standard IDE/ATAPI controller in Linux 1.2.* - 1.3.26 with some
  155. EIDE controllers. The symptoms are break activity of the CDROM drive followed
  156. by about 10 seconds pause and an timeout/reset error message in a syslog
  157. file. The only known solution to this problem is to upgrade to a new
  158. development kernel 1.3.28 or later. The new code is stable in 1.3.30.
  159. Unfortunately, this new code doesn't work with several other drives. 
  160. <thanks to steven.clarke@keble.oxford.ac.uk for Q7/A7>
  161.  
  162. Q9: I just got finished wiring up my Sound Blaster 16 IDE, and the ATAPI drive
  163.     isn't detected! 
  164.  
  165. A9: The most likely result of your troubles has to do with the base addressing
  166.     of the IDE port on the Sound Blaster. This comes from the factory set to
  167.     use the TERTIARY (third. Yes, there is a third and fourth IDE port now, but
  168.     so far linux doesn't use them in the latest production kernel.) IDE port.
  169.     Remember that for linux to see a second IDE port, it has to be at the 
  170.     secondary address (0x170-0x177, IRQ 15). This is the only way production 
  171.     Linux will ever see your second interface and ATAPI CDROM. 
  172.     You can also change a couple of lines in ide.c in the kernel source
  173.     to probe for your secondary IDE card at the tertiary address/IRQ, but
  174.     that's only for the adventurous. 
  175.     A second cause of your problem may be the fact that when Creative Labs
  176.     manufactures a CDROM drive, they put the master/slave jumper on the
  177.     SLAVE pins. It is pretty likely that the CDROM drive is the only 
  178.     device on the SoundBlaster IDE interface, and by the definition
  179.     of the IDE standard, a single device on any given interface MUST
  180.     be jumpered as MASTER. This doesn't bother DOS or any of the other
  181.     inferior operating systems, because they are forgiving with regard
  182.     to the manufacturer and user screw-ups. Linux is an operating system
  183.     for someone that knows their computer fairly well, and it adheres
  184.     to standards STRICTLY. 
  185.     You will also have to reconfigure your ATAPI CDROM and SB16IDE in
  186.     DOS, Win 3.1x, Win 4.x, and OS/2, because the change of address won't
  187.     be realized by these inferior (IMHO) operating systems.
  188.  
  189. Epilogue: If you have any comments, questions, additions and/or corrections,
  190.     let me know. I can be reached at kirschm@snyalfva.cc.alfredtech.edu, 
  191.     at my brother's email vp24njcb@ubvms.cc.buffalo.edu, or at a new site
  192.     kirschm@london.cgt.alfredtech.edu (hopefully by late August, this will be
  193.     my main address).
  194.     I will periodically update this listing with new questions, and 
  195.     contributions, and I hope that it will eventually grow into a general
  196.     ATAPI FAQ.
  197.  
  198.     Cheers
  199.