cm206 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. This is the readme file for the driver for the Philips/LMS cdrom drive
  2. cm206 in combination with the cm260 host adapter card.
  3. (c) 1995 David A. van Leeuwen
  4. Changes since version 0.99
  5. --------------------------
  6. - Interfacing to the kernel is routed though an extra interface layer,
  7. cdrom.c. This allows runtime-configurable `behavior' of the cdrom-drive,
  8. independent of the driver.
  9. Features since version 0.33
  10. ---------------------------
  11. - Full audio support, that is, both workman, workbone and cdp work
  12. now reasonably. Reading TOC still takes some time. xmcd has been
  13. reported to run successfully.
  14. - Made auto-probe code a little better, I hope
  15. Features since version 0.28
  16. ---------------------------
  17. - Full speed transfer rate (300 kB/s).
  18. - Minimum kernel memory usage for buffering (less than 3 kB).
  19. - Multisession support.
  20. - Tray locking.
  21. - Statistics of driver accessible to the user.
  22. - Module support.
  23. - Auto-probing of adapter card's base port and irq line,
  24. also configurable at boot time or module load time.
  25. Decide how you are going to use the driver. There are two
  26. options:
  27. (a) installing the driver as a resident part of the kernel
  28. (b) compiling the driver as a loadable module
  29. Further, you must decide if you are going to specify the base port
  30. address and the interrupt request line of the adapter card cm260 as
  31. boot options for (a), module parameters for (b), use automatic
  32. probing of these values, or hard-wire your adaptor card's settings
  33. into the source code. If you don't care, you can choose
  34. autoprobing, which is the default. In that case you can move on to
  35. the next step.
  36. Compiling the kernel
  37. --------------------
  38. 1) move to /usr/src/linux and do a
  39. make config
  40. If you have chosen option (a), answer yes to CONFIG_CM206 and
  41. CONFIG_ISO9660_FS.
  42. If you have chosen option (b), answer yes to CONFIG_MODVERSIONS
  43. and no (!) to CONFIG_CM206 and CONFIG_ISO9660_FS.
  44. 2) then do a
  45. make clean; make zImage; make modules
  46. 3) do the usual things to install a new image (backup the old one, run
  47. `rdev -R zImage 1', copy the new image in place, run lilo). Might
  48. be `make zlilo'.
  49. Using the driver as a module
  50. ----------------------------
  51. If you will only occasionally use the cd-rom driver, you can choose
  52. option (b), install as a loadable module. You may have to re-compile
  53. the module when you upgrade the kernel to a new version.
  54. Since version 0.96, much of the functionality has been transferred to
  55. a generic cdrom interface in the file cdrom.c. The module cm206.o
  56. depends on cdrom.o. If the latter is not compiled into the kernel,
  57. you must explicitly load it before cm206.o:
  58. insmod /usr/src/linux/modules/cdrom.o
  59. To install the module, you use the command, as root
  60. insmod /usr/src/linux/modules/cm206.o
  61. You can specify the base address on the command line as well as the irq
  62. line to be used, e.g.
  63. insmod /usr/src/linux/modules/cm206.o cm206=0x300,11
  64. The order of base port and irq line doesn't matter; if you specify only
  65. one, the other will have the value of the compiled-in default. You
  66. may also have to install the file-system module `iso9660.o', if you
  67. didn't compile that into the kernel.
  68. Using the driver as part of the kernel
  69. --------------------------------------
  70. If you have chosen option (a), you can specify the base-port
  71. address and irq on the lilo boot command line, e.g.:
  72. LILO: linux cm206=0x340,11
  73. This assumes that your linux kernel image keyword is `linux'.
  74. If you specify either IRQ (3--11) or base port (0x300--0x370),
  75. auto probing is turned off for both settings, thus setting the
  76. other value to the compiled-in default.
  77. Note that you can also put these parameters in the lilo configuration file:
  78. # linux config
  79. image = /vmlinuz
  80. root = /dev/hda1
  81. label = Linux
  82. append = "cm206=0x340,11"
  83. read-only
  84. If module parameters and LILO config options don't work
  85. -------------------------------------------------------
  86. If autoprobing does not work, you can hard-wire the default values
  87. of the base port address (CM206_BASE) and interrupt request line
  88. (CM206_IRQ) into the file /usr/src/linux/drivers/cdrom/cm206.h. Change
  89. the defines of CM206_IRQ and CM206_BASE.
  90. Mounting the cdrom
  91. ------------------
  92. 1) Make sure that the right device is installed in /dev.
  93. mknod /dev/cm206cd b 32 0
  94. 2) Make sure there is a mount point, e.g., /cdrom
  95. mkdir /cdrom
  96. 3) mount using a command like this (run as root):
  97. mount -rt iso9660 /dev/cm206cd /cdrom
  98. 4) For user-mounts, add a line in /etc/fstab
  99. /dev/cm206cd /cdrom iso9660 ro,noauto,user
  100. This will allow users to give the commands
  101. mount /cdrom
  102. umount /cdrom
  103. If things don't work
  104. --------------------
  105. - Try to do a `dmesg' to find out if the driver said anything about
  106. what is going wrong during the initialization.
  107. - Try to do a `dd if=/dev/cm206cd | od -tc | less' to read from the
  108. CD.
  109. - Look in the /proc directory to see if `cm206' shows up under one of
  110. `interrupts', `ioports', `devices' or `modules' (if applicable).
  111. DISCLAIMER
  112. ----------
  113. I cannot guarantee that this driver works, or that the hardware will
  114. not be harmed, although I consider it most unlikely.
  115. I hope that you'll find this driver in some way useful.
  116. David van Leeuwen
  117. david@tm.tno.nl
  118. Note for Linux CDROM vendors
  119. -----------------------------
  120. You are encouraged to include this driver on your Linux CDROM. If
  121. you do, you might consider sending me a free copy of that cd-rom.
  122. You can contact me through my e-mail address, david@tm.tno.nl.
  123. If this driver is compiled into a kernel to boot off a cdrom,
  124. you should actually send me a free copy of that cd-rom.
  125. Copyright
  126. ---------
  127. The copyright of the cm206 driver for Linux is
  128. (c) 1995 David A. van Leeuwen
  129. The driver is released under the conditions of the GNU general public
  130. license, which can be found in the file COPYING in the root of this
  131. source tree.