sonycd535 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. README FOR LINUX SONY CDU-535/531 DRIVER
  2. ========================================
  3. This is the Sony CDU-535 (and 531) driver version 0.7 for Linux.
  4. I do not think I have the documentation to add features like DMA support
  5. so if anyone else wants to pursue it or help me with it, please do.
  6. (I need to see what was done for the CDU-31A driver -- perhaps I can
  7. steal some of that code.)
  8. This is a Linux device driver for the Sony CDU-535 CDROM drive. This is
  9. one of the older Sony drives with its own interface card (Sony bus).
  10. The DOS driver for this drive is named SONY_CDU.SYS - when you boot DOS
  11. your drive should be identified as a SONY CDU-535. The driver works
  12. with a CDU-531 also. One user reported that the driver worked on drives
  13. OEM'ed by Procomm, drive and interface board were labelled Procomm.
  14. The Linux driver is based on Corey Minyard's sonycd 0.3 driver for
  15. the CDU-31A. Ron Jeppesen just changed the commands that were sent
  16. to the drive to correspond to the CDU-535 commands and registers.
  17. There were enough changes to let bugs creep in but it seems to be stable.
  18. Ron was able to tar an entire CDROM (should read all blocks) and built
  19. ghostview and xfig off Walnut Creek's X11R5/GNU CDROM. xcdplayer and
  20. workman work with the driver. Others have used the driver without
  21. problems except those dealing with wait loops (fixed in third release).
  22. Like Minyard's original driver this one uses a polled interface (this
  23. is also the default setup for the DOS driver). It has not been tried
  24. with interrupts or DMA enabled on the board.
  25. REQUIREMENTS
  26. ============
  27. - Sony CDU-535 drive, preferably without interrupts and DMA
  28. enabled on the card.
  29. - Drive must be set up as unit 1. Only the first unit will be
  30. recognized
  31. - You must enter your interface address into
  32. /usr/src/linux/drivers/cdrom/sonycd535.h and build the
  33. appropriate kernel or use the "kernel command line" parameter
  34. sonycd535=0x320
  35. with the correct interface address.
  36. NOTES:
  37. ======
  38. 1) The drive MUST be turned on when booting or it will not be recognized!
  39. (but see comments on modularized version below)
  40. 2) when the cdrom device is opened the eject button is disabled to keep the
  41. user from ejecting a mounted disk and replacing it with another.
  42. Unfortunately xcdplayer and workman also open the cdrom device so you
  43. have to use the eject button in the software. Keep this in mind if your
  44. cdrom player refuses to give up its disk -- exit workman or xcdplayer, or
  45. umount the drive if it has been mounted.
  46. THANKS
  47. ======
  48. Many thanks to Ron Jeppesen (ronj.an@site007.saic.com) for getting
  49. this project off the ground. He wrote the initial release
  50. and the first two patches to this driver (0.1, 0.2, and 0.3).
  51. Thanks also to Eberhard Moenkeberg (emoenke@gwdg.de) for prodding
  52. me to place this code into the mainstream Linux source tree
  53. (as of Linux version 1.1.91), as well as some patches to make
  54. it a better device citizen. Further thanks to Joel Katz
  55. <joelkatz@webchat.org> for his MODULE patches (see details below),
  56. Porfiri Claudio <C.Porfiri@nisms.tei.ericsson.se> for patches
  57. to make the driver work with the older CDU-510/515 series, and
  58. Heiko Eissfeldt <heiko@colossus.escape.de> for pointing out that
  59. the verify_area() checks were ignoring the results of said checks
  60. (note: verify_area() has since been replaced by access_ok()).
  61. (Acknowledgments from Ron Jeppesen in the 0.3 release:)
  62. Thanks to Corey Minyard who wrote the original CDU-31A driver on which
  63. this driver is based. Thanks to Ken Pizzini and Bob Blair who provided
  64. patches and feedback on the first release of this driver.
  65. Ken Pizzini
  66. ken@halcyon.com
  67. ------------------------------------------------------------------------------
  68. (The following is from Joel Katz <joelkatz@webchat.org>.)
  69. To build a version of sony535.o that can be installed as a module,
  70. use the following command:
  71. gcc -c -D__KERNEL__ -DMODULE -O2 sonycd535.c -o sonycd535.o
  72. To install the module, simply type:
  73. insmod sony535.o
  74. or
  75. insmod sony535.o sonycd535=<address>
  76. And to remove it:
  77. rmmod sony535
  78. The code checks to see if MODULE is defined and behaves as it used
  79. to if MODULE is not defined. That means your patched file should behave
  80. exactly as it used to if compiled into the kernel.
  81. I have an external drive, and I usually leave it powered off. I used
  82. to have to reboot if I needed to use the CDROM drive. Now I don't.
  83. Even if you have an internal drive, why waste the 96K of memory
  84. (unswappable) that the driver uses if you use your CD-ROM drive infrequently?
  85. This driver will not install (whether compiled in or loaded as a
  86. module) if the CDROM drive is not available during its initialization. This
  87. means that you can have the driver compiled into the kernel and still load
  88. the module later (assuming the driver doesn't install itself during
  89. power-on). This only wastes 12K when you boot with the CDROM drive off.
  90. This is what I usually do; I leave the driver compiled into the
  91. kernel, but load it as a module if I powered the system up with the drive
  92. off and then later decided to use the CDROM drive.
  93. Since the driver only uses a single page to point to the chunks,
  94. attempting to set the buffer cache to more than 2 Megabytes would be very
  95. bad; don't do that.