NinjaSCSI.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. WorkBiT NinjaSCSI-3/32Bi driver for Linux
  2. 1. Comment
  3. This is Workbit corp.'s(http://www.workbit.co.jp/) NinjaSCSI-3
  4. (http://www.workbit.co.jp/ts/z_nj3r.html) and NinjaSCSI-32Bi
  5. (http://www.workbit.co.jp/ts/z_njsc32bi.html) PCMCIA card driver module
  6. for Linux.
  7. 2. My Linux environment
  8. Linux kernel: 2.4.7 / 2.2.19
  9. pcmcia-cs: 3.1.27
  10. gcc: gcc-2.95.4
  11. PC card: I-O data PCSC-F (NinjaSCSI-3)
  12. I-O data CBSC-II in 16 bit mode (NinjaSCSI-32Bi)
  13. SCSI device: I-O data CDPS-PX24 (CD-ROM drive)
  14. Media Intelligent MMO-640GT (Optical disk drive)
  15. 3. Install
  16. [1] Check your PC card is true "NinjaSCSI-3" card.
  17. If you installed pcmcia-cs already, pcmcia reports your card as UNKNOWN
  18. card, and write ["WBT", "NinjaSCSI-3", "R1.0"] or some other string to
  19. your console or log file.
  20. You can also use "cardctl" program (this program is in pcmcia-cs source
  21. code) to get more info.
  22. # cat /var/log/messages
  23. ...
  24. Jan 2 03:45:06 lindberg cardmgr[78]: unsupported card in socket 1
  25. Jan 2 03:45:06 lindberg cardmgr[78]: product info: "WBT", "NinjaSCSI-3", "R1.0"
  26. ...
  27. # cardctl ident
  28. Socket 0:
  29. no product info available
  30. Socket 1:
  31. product info: "IO DATA", "CBSC16 ", "1"
  32. [2] Get the Linux kernel source, and extract it to /usr/src.
  33. Because the NinjaSCSI driver requires some SCSI header files in Linux
  34. kernel source, I recommend rebuilding your kernel; this eliminates
  35. some versioning problems.
  36. $ cd /usr/src
  37. $ tar -zxvf linux-x.x.x.tar.gz
  38. $ cd linux
  39. $ make config
  40. ...
  41. [3] If you use this driver with Kernel 2.2, unpack pcmcia-cs in some directory
  42. and make & install. This driver requires the pcmcia-cs header file.
  43. $ cd /usr/src
  44. $ tar zxvf cs-pcmcia-cs-3.x.x.tar.gz
  45. ...
  46. [4] Extract this driver's archive somewhere, and edit Makefile, then do make.
  47. $ tar -zxvf nsp_cs-x.x.tar.gz
  48. $ cd nsp_cs-x.x
  49. $ emacs Makefile
  50. ...
  51. $ make
  52. [5] Copy nsp_cs.ko to suitable place, like /lib/modules/<Kernel version>/pcmcia/ .
  53. [6] Add these lines to /etc/pcmcia/config .
  54. If you use pcmcia-cs-3.1.8 or later, we can use "nsp_cs.conf" file.
  55. So, you don't need to edit file. Just copy to /etc/pcmcia/ .
  56. -------------------------------------
  57. device "nsp_cs"
  58. class "scsi" module "nsp_cs"
  59. card "WorkBit NinjaSCSI-3"
  60. version "WBT", "NinjaSCSI-3", "R1.0"
  61. bind "nsp_cs"
  62. card "WorkBit NinjaSCSI-32Bi (16bit)"
  63. version "WORKBIT", "UltraNinja-16", "1"
  64. bind "nsp_cs"
  65. # OEM
  66. card "WorkBit NinjaSCSI-32Bi (16bit) / IO-DATA"
  67. version "IO DATA", "CBSC16 ", "1"
  68. bind "nsp_cs"
  69. # OEM
  70. card "WorkBit NinjaSCSI-32Bi (16bit) / KME-1"
  71. version "KME ", "SCSI-CARD-001", "1"
  72. bind "nsp_cs"
  73. card "WorkBit NinjaSCSI-32Bi (16bit) / KME-2"
  74. version "KME ", "SCSI-CARD-002", "1"
  75. bind "nsp_cs"
  76. card "WorkBit NinjaSCSI-32Bi (16bit) / KME-3"
  77. version "KME ", "SCSI-CARD-003", "1"
  78. bind "nsp_cs"
  79. card "WorkBit NinjaSCSI-32Bi (16bit) / KME-4"
  80. version "KME ", "SCSI-CARD-004", "1"
  81. bind "nsp_cs"
  82. -------------------------------------
  83. [7] Start (or restart) pcmcia-cs.
  84. # /etc/rc.d/rc.pcmcia start (BSD style)
  85. or
  86. # /etc/init.d/pcmcia start (SYSV style)
  87. 4. History
  88. See README.nin_cs .
  89. 5. Caution
  90. If you eject card when doing some operation for your SCSI device or suspend
  91. your computer, you encount some *BAD* error like disk crash.
  92. It works good when I using this driver right way. But I'm not guarantee
  93. your data. Please backup your data when you use this driver.
  94. 6. Known Bugs
  95. In 2.4 kernel, you can't use 640MB Optical disk. This error comes from
  96. high level SCSI driver.
  97. 7. Testing
  98. Please send me some reports(bug reports etc..) of this software.
  99. When you send report, please tell me these or more.
  100. card name
  101. kernel version
  102. your SCSI device name(hard drive, CD-ROM, etc...)
  103. 8. Copyright
  104. See GPL.
  105. 2001/08/08 yokota@netlab.is.tsukuba.ac.jp <YOKOTA Hiroshi>