home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / newcdrom.zip / readme.txt < prev   
Text File  |  1999-07-10  |  6KB  |  127 lines

  1.                           New OS2CDROM.DMD driver
  2.  
  3.                   Ernst Fueloep, IBM Austria, Dpt 00/833
  4.             Obere Donaustrasse 95, 1020 Wien - Austria / Europe
  5.  
  6. ---------------------------------------------------------------------------
  7.  
  8. On this page you will find a modified version of the OS2CDROM.DMD driver
  9. based on the source from the Developer Connection Device Driver Kit
  10. (http://service.software.ibm.com/ddk/).
  11. I have made the following modifications:
  12.  
  13.    * Added the option /I (for ignore) to tell the driver to ignore certain
  14.      CDROM drive(s)
  15.    * Fixed the slow CDROM audio initialization on Plextor drives (at least
  16.      it no longer occurs on my system with a Plextor PX-12/20TS)
  17.    * Added the display of the LUN number to /V verbose mode
  18.  
  19. Option /I (ignore unit)
  20.  
  21. This option is useful when you have more than one CDROM drive and you want
  22. to access some of them with another driver than OS2CDROM.DMD. I have found
  23. two examples where you may want to do this:
  24.  
  25.    * You have a CDROM changer device and want to drive it with Pegasus
  26.      Optical File System for OS/2 (http://www.pegasus-ofs.com/ofsforos2.htm).
  27.      This is the main reason why I added the ignore option to OS2CDROM.DMD.
  28.      I have a Nackamichi MJ-4.8s CDROM changer
  29.      (http://www.nakamichi.com/computer/index.html) installed. This is a
  30.      four slot CDROM changer. Normally OS2CDROM.DMD assigns to each CD slot
  31.      a drive letter. But you can only use one CD slot at a time anyway and
  32.      therefore this is simply a waste of drive letters. With Pegausus-OFS
  33.      for OS/2 I can access this changer with only one drive letter. When I
  34.      mount a CD into the changer device Pegasus-OFS creates one
  35.      subdirectory with the name of the volume label of the CD under the
  36.      drive letter assigned to Pegasus-OFS. From this subdirectory I can
  37.      access all data from the CD.
  38.    * You have a CD-Writer device and want to use Unite CD-Maker from Cirrus
  39.      Technology which uses its own CDROM device manager (CTCDROM.DMD) to
  40.      control the unit.
  41.      CTCDROM.DMD is based on an older level of OS2CDROM.DMD and does not
  42.      contain the latest enhancements. So, you may want to use it only for
  43.      the CD-Writer device and use OS2CDROM.DMD for your other CDROM
  44.      devices.
  45.      Note however, that when you want to use both drivers OS2CDROM.DMD and
  46.      CTCDROM.DMD together you have to patch CTCDROM.DMD to use other device
  47.      driver names as OS2CDROM.DMD does (CD-ROM1$ and CD-ROM2$). I have
  48.      patched CTCDROM.DMD to use CD-ROM3$ and CD-ROM4$. But that is not
  49.      enough. You have to patch the Unite-CD Maker DLLs with the new device
  50.      driver names too.
  51.  
  52. The syntax for option /I is:
  53.  
  54. DEVICE=C:\OS2\BOOT\CDROMNEW.DMD /I:2,3,4,5 /V
  55.  
  56. where the numbers after /I are the units which should be ignored. The
  57. counting starts at 0 for the first CDROM unit, 1 for the second and so on.
  58. If you don't know the unit numbers of your CDROM drives you can add option
  59. /V to the CDROM device driver and the reported list shows how the driver
  60. enumerates the drives. The first list entry is unit 0, the second entry is
  61. unit 1 and so on. I don't have IDE CDROM drives to test but I guess they
  62. are listed first.
  63. The above example ignores all four CD slots of my Nakamichi CDROM changer.
  64. My CDROM device list:
  65.  
  66.  Unit          CDROM drive
  67.   0    PIONEER DVD-ROM DVD-U02 1.06
  68.   1    PLEXTOR CD-ROM PX-20TS 1.02
  69.   2    NAKAMICH MJ-4.8S 1.05
  70.   3    NAKAMICH MJ-4.8S 1.05
  71.   4    NAKAMICH MJ-4.8S 1.05
  72.   5    NAKAMICH MJ-4.8S 1.05
  73.   6    HP C4324/C4325 1.27
  74.   7    YAMAHA CRW4416S 1.0e
  75. ---------------------------------------------------------------------------
  76.  
  77. Slow audio initialization on Plextor drives
  78.  
  79. When you have a Plextor drive then you may have noticed that when you want
  80. to play an audio CD and open the Compact Disc Player from MMOS2 it takes
  81. several seconds (15 to 20) until the contents are displayed. The same
  82. happens when you do a simple DIR d: on the CDROM drive when an audio CD is
  83. in the drive. It takes a long time until the "sector not found" error
  84. message pops up.
  85. The problem I found is that OS2CDROM.DMD treats any Plextor drive as a Sony
  86. CDU-561 drive. That may be ok for most of the functionality of a Plextor
  87. CDROM drive but OS2CDROM.DMD has some special Sony CDU-561 code which
  88. doesn't seem to be right for the Plextor. Especially for this case I have
  89. found the following code part in the CDSTRAT1.C routine:
  90.  
  91. /*
  92. ** Sony 561 can't read 2048 byte Mode 2 Form 2 XA sectors with the
  93. ** Read 6 command. We must issue the Read CD-XA command.
  94. */
  95. if ( (pUnitCB->DeviceInfo.product_id_code == SONY_561) &&
  96.      (rc == STDON + STERR + ERROR_I24_SECTOR_NOT_FOUND) )
  97. {
  98.      rc = Sony_Read_2048(pUnitCB, pRP->rba, pRP->NumSectors, pRP->XferAddr);
  99. }
  100.  
  101. I have simply made an entry for Plextor into the vendor_id_table and treat
  102. Plextor as a Sony CDU 561 except the above special call. And the slow audio
  103. initialization is gone on my Plextor PX-20TS drive.
  104. I admit I don't understand the full OS2CDROM.DMD code. All I did was simply
  105. a trial and error approach.
  106. I have forwarded this info to IBM OS/2 development and they have fixed it now in the official
  107. OS2CDROM.DMD driver. You can find the fixed official OS2CDROM.DMD driver on the
  108. OS/2 Device Driver Pak On-Line
  109. (http://service.software.ibm.com/os2ddpak/html/cdromdri/os_2cdro/index.htm).
  110. It is part of IDEDASD.EXE.
  111. ---------------------------------------------------------------------------
  112.  
  113. To avoid the replacement of the driver during an OS/2 FixPak installation I
  114. have renamed the driver to CDROMNEW.DMD. If you don't like this name you
  115. can rename it to whatever name you want.
  116. If you code option /V you will see that the driver still reports "IBM OS/2
  117. OS2CDROM.DMD (990208)". I have only changed the date.
  118.  
  119. You can download the modified driver from:
  120.  
  121. http://site.netscape.net/homepage/cdromnew/index.html
  122.  
  123. ---------------------------------------------------------------------------
  124. If you need more information drop me a note to fueloep@at.ibm.com.
  125. If you use Lotus Notes then you can send any questions to my GNA ID (IBM internal only):
  126. Ernst Fueloep/Austria/IBM @ IBMAT
  127.