home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / sys / sun / 1077 < prev    next >
Encoding:
Text File  |  1992-11-15  |  8.7 KB  |  266 lines

  1. Path: sparky!uunet!ccut!sh.wide!wnoc-tyo-news!sranha!anprda!pmcgw!ds5200.personal-media.co.jp
  2. From: ishikawa@ds5200.personal-media.co.jp (Chiaki Ishikawa)
  3. Newsgroups: fj.sys.sun
  4. Subject: Summary -- Using non-SUN SCSI CDROM. It DOES work.
  5. Message-ID: <ISHIKAWA.92Nov16164246@ds5200.personal-media.co.jp>
  6. Date: 16 Nov 92 07:42:32 GMT
  7. Sender: news@pmcgw.personal-media.co.jp
  8. Reply-To: ishikawa@personal-media.co.jp
  9. Distribution: fj
  10. Organization: Personal Media Corp., Tokyo Japan
  11. Lines: 252
  12. Nntp-Posting-Host: ds5200
  13.  
  14.  
  15. $@@P@n!w(Jpersonal-media.co.jp$@$G$9!#(J
  16.  
  17. $@;0=54V$[$I$^$($K(JSUN$@$N%^%7%s$K(J SUN$@=c@5$G$J$$(JSCSI CD$@%I%i%$%V$r$D$J$0$3$H(J
  18. $@$O$G$-$J$$$@$m$&$+$H$$$&<ALd$rEj9F$7$?$H$3$m<!$NJ}!9$+$i0J2<(J$@$N$h$&$JJV(J
  19. $@;v$r$$$?$@$-$^$7$?!#(J
  20.  
  21. $@:G=*E*$K$O(J DENON DRD-253 $@$H$$$&%I%i%$%V$r!"(JSparcstation$@$K$D$J$$$G%^%&(J
  22. $@%s%H$7$F%U%!%$%k$rFI$`$3$H$,$G$-$^$7$?!#$I$&$b3'$5$s$"$j$,$H$&$4$6$$$^(J
  23. $@$9!#(J
  24.  
  25. $@0J2<$K$$$?$@$$$?JV;v$N%5(J$@%^%j!<$r$N$;$^$9!#(J
  26.  
  27. =======================================
  28. Guy Harris
  29. From: pmcgw!uunet!auspex.com!guy (Guy Harris)
  30.  
  31. SUN $@$N(J CD $@%I%i%$%V$O$I$&$b(J 512 byte/block $@E>Aw%b!<%I$rA0Ds$H$7$F$$$k$N(J
  32. $@$G(J CD $@%I%i%$%V(J$@$b!"$3$N%I%i%$%P$NA[Dj$7$F$$$k%V%m%C%/%5%$%:$K2q$o$;$FE>(J
  33. $@Aw$9$kI,MW$,$"$k$G$7$g$&!#(J
  34.  
  35. $@%7%9%F%`$N%3%s%U(J$@%#%.%e%l!<%7%g%s$r9T$J$&%*%V%8%'%/%H$NCf$N(Jhsfs_*.o $@$O(J 
  36. High Sierra/ISO 9660 file system $@$r%5%]!<%H$7$F(J$@$$$F(J4.1.2 $@0J9_$G$O(J 
  37. UNIX-style $@%U%!%$%kL>$r%5%]!<%H$9$k(J"Rock Ridge" $@3HD%$bF~$C$F$$$k$H;W$$(J
  38. $@$^$9!#(J
  39.  
  40. ========================================
  41. Clifton Liles
  42. Return-Path: <pmcgw!uunet!sweetpea.jsc.nasa.gov!liles>
  43.  
  44. SUN $@=c@5$G$J$/$F$b!"(J $@%V!<%H$G$-$J$$$3$H$r$N$>$1$P(J CD $@%I%i%$%V$O$D$J$,(J
  45. $@$k$O$:$G$"$k!#!J$^$?%V!<(J$@%H$G$-$J$$0J30$K%7%9%F%`$N:F%j%s%/$,(JSUN$@$N(J CD 
  46. $@G^BN$+$i$OD>@\$G$-$^$;$s!*(J[$@@P@n%3%a%s%H!'$J$<$+$o$+$i$J(J$@$$$,(J] $@!K(J
  47.  
  48. ====================
  49. Dan Lanciani
  50. Return-Path: <pmcgw!uunet!burrhus.harvard.edu!ddl>
  51.  
  52. NEC CDR-72$@$O$=$N$^$^$G$O(J Sun3$@$H$O(J SCSI-2$@$G$b(J SCSI-3$@$G$b$&$^$/$D$J$,$j(J
  53. $@$^$;$s!#$H$/$K(JSCSI-2$@$G$O!"(J $@?<9o$J(JSCSI $@%P%9%(%i!<$rBgNL$K5/$3$7$F$D$J$,$C(J
  54. $@$F$$$F%G%#%9%/$N%j%U%)!<%^%C%H$,I,MW$K$J$C$F$7$^$$$^$7$?!#(J:-(
  55.  
  56. [$@@P@n%3%a%s%H!'(J512 bytes $@$H(J $@$=$&$G$J$$%V%m%C%/$N:9$G$7$g$&$+!)$^$?!"EE(J
  57. $@8;$r$$$l$?$j@Z$C$?$j$K$h$C$F$b%((J$@%i!<$,5/$-$k$h$&$G$9!#(JCD$@%I%i%$%V$NEE8;(J
  58. $@$OK\BN$,;_$^$C$?>uBV$G(Jon/off$@$7$^$7$g$&!#(J]
  59.  
  60. ==============================
  61. Derek Fawcus
  62. Replyto: df@eyrie.demon.co.uk
  63.  
  64. $@$b$7%I%i%$%P!<$r$D$/$k$D$b$j$G%=!<%9$r$$$8$k5$(J$@$,$"$l$P!"(Jlinux$@$N(J CDROM
  65. $@%U%!%$%k%5%]!<%H$N%=!<%9%U%!%$%k$,;29M$K$J$k$G$7$g$&!#(Jtsx-11.mit.edu$@$K(J
  66. $@$"$j!"(J$@;d$NCN$k8B$j$G$O(JISO$@%U%)!<%^%C%H$H(J Rock Ridge$@3HD%$r%5%]!<%H$7$F$$(J
  67. $@$^$9!#(J
  68.  
  69. ========================================
  70. Andrew Speedie
  71. Return-Path: <pmcgw!uunet!cs.bham.ac.uk!A.H.Speedie-SE0>
  72.  
  73. SUN$@$N%(%s%8%K%"(J$@$+$iJ9$$$?$H$3$m$K$h$k$H!"$?$$$F$$$N(JCD$@%I%i%$%V$O(JSUN3/80
  74. $@0J9_$N%^%7%s$J$i$P%+!<%M%k$NJQ99$J$7$K$D$J$,$k(J$@$H$$$&OC$7$G$9!#$?$@$7!"(J
  75. $@%V!<%H$O(JSUN$@$N%I%i%$%V$+$i$7$+$G$-$^$;$s!#(J(SUN$@$N$b$N$O(JSONY$@$N%I%i%$%V$N(J
  76. ROM$@$r=q(J$@$-JQ$($?$b$N$@$H$$$&$3$H$G$9!#(J) $@$G$9$+$i!"(JSUN3/80$@$K(JCD$@$r$D$J$$$G(J
  77. $@$b%V!<%H$O$G$-$^$;$s!#E,Ev$J(JCD$@%I%i%$%V(J$@$G$?$a$7$F$_$?$i$I$&$G$7$g$&$+!#(J
  78. Sun3/80$@$J$i$PF0$/$N$G$O$J$$$+$H;W$$$^$9!#(J
  79.  
  80. ============================
  81.  
  82. $@Gt@n(J
  83. From: kasukawa@gssm.otsuka.tsukuba.ac.jp (Masaatsu Kasukawa)
  84. $@$R$-$?(J
  85. From: hikita@trl.mei.co.jp (Hiroyuki Hikita)
  86.  
  87. $@0J>e$N$*Fs?M$+$i0JA0(Jcomp.sys.sun.hardware$@$K$J$,$l$?(JBob Hayes$@$N5-;v$r$$(J
  88. $@$?$@$-$^(J$@$7$?!#$3$NCf$N5-;v$K$"$k%W%m%0%i%`$r;H$C$F!"(JDENON DRD-253 $@$H$$$&(JCD 
  89. $@%I%i%$%V$r(JSparcstation$@$K$D$J$$$@$H(J$@$3$m%^%&%s%H$7$F%U%!%$%k$rFI$`$3$H$,(J
  90. $@$G$-$^$7$?!#(J
  91.  
  92. $@0J>e$NJ}!9$I$&$b5-;v$r$"$j$,$H$&$4$6$$$^$7$?!#(J
  93.  
  94. $@5-(J$@;v$NCf$N%W%m%0%i%`$r;H$C$FF0:n<B83$9$k$N$K;~4V$,$+$+$j!JL$CN$N%O!<%I(J
  95. $@%&%'%"$r$D$J$4$&$H$$$&$N$GB?>/$?(J$@$a$i$$$,$"$j$^$7$?!K!"%5%^%j!<$rEj9F$9(J
  96. $@$k$N$,Aw$l$^$7$?$,!"F0:n$9$k$H$$$&7k2L$r$*CN$i$;$G$-$F9,$$$G$9(J$@!#(J
  97.  
  98. $@$$$?$@$$$?(JBob Hayes$@$N5-;v$rE:IU$7$^$9!#(J
  99.  
  100.     From: bob@henson.cc.wwu.edu (Bob Hayes)
  101.     Newsgroups: comp.sys.sun.hardware
  102.     Subject: SUMMARY: CD-ROMS- not SUN/SONY
  103.     Summary: CDROM drives other than Sun/Sony
  104.     Keywords: cdrom drives
  105.     Message-ID: <1992Feb5.221925.24826@henson.cc.wwu.edu>
  106.     Date: 5 Feb 92 22:19:25 GMT
  107.     Organization: Western Washington University
  108.     Lines: 156
  109.  
  110.  
  111. My original query- can you use a CD-ROM drive other than
  112. a Sony for Suns...Specifically a Toshiba 3301B from a
  113. NeXT... generated several replies, from YES to NO-WAY...
  114.  
  115. The answer is YES for data, probably yes for audio.
  116. For other drives than Toshiba??? Lets hear your results
  117. when you try it!!
  118.  
  119. begin SOAPBOX
  120. Let me say *THANKS* to EVERYONE who wrote to express
  121. ANY thoughts !! We need all the discusion that we can handle,
  122. we need all the ideas that we can think of, and then we can
  123. sift for what ideas we need most, and save some for later.
  124.  
  125. This network stuff is the most far reaching, inclusive,
  126. responsive, and open communications forum to have existed
  127. on the planet! (add more adjectives as required)
  128. May we continue the free, open interchange of ideas and
  129. information!
  130. end SOAPBOX
  131.  
  132. So what about the CD-ROM stuff??
  133. The problem seems to be in the sector size read from the
  134. scsi interface--- Sun expects 512 bytes, the default format
  135. of the CD1 spec is (mode 1, with ECC) 2048 bytes per 'block'.
  136.  
  137. Is there an ftp site for the (red/blue/green?? rainbow) books
  138. which have the CD specs and mode descriptions???
  139.  
  140. This is on a Sun LPC, SunOS 4.1.1b--
  141. Patches which I tried in the kernel were not effective.
  142. I posted. I read the mail. I tried it. IT WORKED!!
  143.  
  144. And the  GOOD STUFF, Thanks and a tip 'o the hat to Ralph,
  145. who wrote:
  146.  
  147. ~From: rkling@austin.intel.com (Ralph Kling)
  148.     YES, it is possible! I have managed to connect one to a SS-2.
  149.     However, there are a few differences between the SUN (=SONY) drive
  150.     and the Toshiba drive. In particular, the SUN drive seems to use
  151.     a default transfer block size of 512 bytes versus 2048 for the
  152.     Toshiba. I wrote a little program that uses SUNs user-scsi-driver
  153.     to correct this. You have to run that before trying to mount the
  154.     drive! The "unrecognized vendor" message can be neglected.
  155.     If you want to use the CD-audio capabilities you'll have to write
  156.     your own driver (also via SUNs user-scsi-driver) since those commands
  157.     are totally different from the SUN drive. Call Toshiba of America
  158.     (sorry, I lost the number) and order the CD rom drive spec from them
  159.     (will cost you $15).
  160.     One more thing: The scsi-id for the CD rom needs to be 6.
  161.     Good luck!!!
  162.  
  163.     Ralph
  164.  
  165.  
  166.     Here is the program to set the transfer length to 512 bytes:
  167.  
  168.     -----------
  169.     # include <sys/types.h>
  170.     # include <sys/buf.h>
  171.     # include <sun/dkio.h>
  172.     # include <scsi/targets/srdef.h>
  173.     # include <scsi/impl/uscsi.h>
  174.     # include <strings.h>
  175.  
  176.     # include <stdio.h>
  177.  
  178.     char cdrom[] =    "/dev/rsr0";
  179.  
  180.     extern char *    cdrom_status();
  181.  
  182.     /* group 0 commands */
  183.  
  184.     #define TEST        0x00
  185.     #define REZERO        0x01
  186.     #define SENSEREQ    0x03
  187.     #define READ        0x08
  188.     #define SEEK        0x0b
  189.     #define NOP        0x0d
  190.     #define INQ        0x12
  191.     #define MODESEL        0x15
  192.     #define RESERVE        0x16
  193.     #define RELEASE        0x17
  194.     #define MODESENSE    0x1a
  195.     #define STARTSTOP    0x1b
  196.     #define DIAGRCV        0x1c
  197.     #define DIAGSND        0x1d
  198.     #define MEDIUMLOCK    0x1e
  199.  
  200.     /* group 1 commands */
  201.  
  202.     #define READCAP        0x25
  203.     #define READEXT        0x28
  204.     #define SEEKEXT        0x2b
  205.  
  206.     /* group 6 commands */
  207.  
  208.     #define AUDIOTRACK    0xc0
  209.     #define AUDIOPLAY    0xc1
  210.     #define AUDIOSTILL    0xc2
  211.     #define AUDIOSTOP    0xc3
  212.     #define EJECT        0xc4
  213.     #define CLOSE        0xc5
  214.     #define AUDIOSUB    0xc6
  215.     #define AUDIODISK    0xc7
  216.     #define ROMMODE        0xc8
  217.  
  218.     /***/
  219.  
  220.     #define CMDLEN(cmd) ((cmd >= 0x20) ? 10 :  6)
  221.  
  222.     /***/
  223.  
  224.     main() {
  225.         int            fd;
  226.         int            i;
  227.         struct uscsi_cmd    ucmd;
  228.         char *             s_command;
  229.         char *            s_buffer;
  230.  
  231.         if ((fd = open(cdrom, 0)) == -1) {
  232.             fprintf(stderr, "open: ");
  233.             perror(cdrom);
  234.             exit(1);
  235.         }
  236.         s_command = (char *) malloc(10);
  237.         if (s_command == NULL) {
  238.             printf("malloc error (command)\n");
  239.             exit(-1);
  240.         }
  241.         bzero(s_command, 10);
  242.         s_buffer = (char *) malloc(256);
  243.         if (s_buffer == NULL) {
  244.             printf("malloc error (buffer)\n");
  245.             exit(-1);
  246.         }
  247.         bzero(s_buffer, 256);
  248.         s_command[0] = MODESEL;
  249.         s_command[1] = 0x10;
  250.         s_command[4] = 12;
  251.         s_buffer[3] = 0x08;
  252.         s_buffer[10] = 0x02;
  253.         ucmd.uscsi_cdb = s_command;
  254.         ucmd.uscsi_cdblen = 6;
  255.         ucmd.uscsi_bufaddr = s_buffer;
  256.         ucmd.uscsi_buflen = 4096;
  257.         ucmd.uscsi_flags = USCSI_WRITE;
  258.         i = ioctl(fd, USCSICMD, ucmd);
  259.         close(fd);
  260.         exit(i);
  261.     }
  262.     **************** end of Ralph's goodie ****************
  263.     I can hear those odd-ball Cd-rom drives being hooked onto
  264.     scsi busses already! 
  265.     Bob Hayes <bob@cs.wwu.edu>
  266.