home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8186 < prev    next >
Encoding:
Text File  |  1992-11-12  |  3.0 KB  |  87 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!rhbnc!csqx.cs.rhbnc.ac.uk!markd
  3. From: markd@csqx.cs.rhbnc.ac.uk (Mark Damerell)
  4. Subject: HP DAT tape on SUN-3 ???
  5. Message-ID: <1992Nov12.104339.10238@csqx.cs.rhbnc.ac.uk>
  6. Lines: 74
  7. Sender: news@csqx.cs.rhbnc.ac.uk (USENET News System)
  8. Nntp-Posting-Host: csqx.cs.rhbnc.ac.uk
  9. Reply-To: markd@csqx.cs.rhbnc.ac.uk (Mark Damerell)
  10. Organization: RHBNC
  11. Date: Thu, 12 Nov 1992 10:43:39 GMT
  12.  
  13.  
  14. We have: sun 3/60; sun-OS 3.5; no satisfactory backup device and an 
  15. under-employed DAT tape drive made by H-P (model C1520A). Please 
  16. could anybody give advice on how we might use this drive on our 
  17. suns? (or warn me if it is impossible) We need a special cable, 
  18. but that is no problem, I have found a supplier. He kindly found 
  19. for us a document which unfortunately refers to sun-os 4 and a 
  20. different model of tape (HP 35470/80). This suggests 
  21.  
  22. (1) changing switch settings to " Sun mode with Performance bit on"
  23.  = 12345 ON,  678 OFF.  Please does anybody have a doc describing 
  24. the switches on the C1520?
  25.  
  26. (2) Set SCSI addreses to  4  for rst0/nrst0  and  5  for rst1/nrst1.
  27.  
  28. (3) Tweak the kernel by editing certain files that we dont have. The
  29. nearest lookalike in OS 3.5 seems to be /usr/sys/sundev/streg.h
  30. Assuming that the kernel sends a "who do you think you are?" to the 
  31. drive and the drive replies "HP", it would seem reasonable to alter
  32. the HP item below to resemble an Exabyte. But should the parameters 
  33. be different?
  34.  
  35. Thanks, MArk
  36.  
  37. Below is a fragment from    streg.h  (several lines omitted)
  38.  
  39. /*
  40.  * Supported tape device types plus default type for opening.
  41.  */
  42. #define ST_TYPE_INVALID         0
  43. #define ST_TYPE_DEFAULT         1
  44. ..
  45. #define ST_TYPE_HP         6
  46. ..
  47. #define ST_TYPE_EXABYTE        11
  48.  
  49. /* Defines for supported drive options */
  50. #define ST_VARIABLE        0x01    /* supports variable length I/O */
  51. #define ST_QIC            0x02    /* QIC tape drive */
  52. #define ST_REEL            0x04    /* 1/2-inch reel tape drive */
  53. #define ST_BSF            0x08    /* supports backspace file */
  54. #define ST_BSR            0x10    /* supports backspace record */
  55. #define ST_NODISCON        0x20    /* no disconnect/reconnect support */
  56.  
  57. /* 
  58.  * Misc defines for unknown SCSI tape drives/controllers 
  59.  */
  60. #define ST_DEFAULT_BSIZE    512
  61. #define ST_DEFAULT_DEN1600    0x00
  62. #define ST_DEFAULT_DEN6250    0x00
  63. #define ST_DEFAULT_SPEED    0x00
  64. #define ST_DEFAULT_OPTIONS    (ST_QIC)
  65. #define IS_DEFAULT(dsi)        (dsi->un_ctype == ST_TYPE_DEFAULT)
  66.  
  67. /* 
  68.  * Misc defines specific to HP 88780A 1/2-inch reel SCSI-2 tape drive
  69.  */
  70. #define ST_HP_BSIZE        10240
  71. #define ST_HP_DEN1600        0x02
  72. #define ST_HP_DEN6250        0x03
  73. #define ST_HP_SPEED        0x00
  74. #define ST_HP_OPTIONS        (ST_REEL | ST_VARIABLE | ST_BSF | ST_BSR)
  75. #define IS_HP(dsi)        (dsi->un_ctype == ST_TYPE_HP)
  76.  
  77. /* 
  78.  * Misc defines specific to Exabyte tape controller
  79.  */
  80. #define ST_EXABYTE_BSIZE    1024
  81. #define ST_EXABYTE_DEN1600    0x00
  82. #define ST_EXABYTE_DEN6250    0x00
  83. #define ST_EXABYTE_SPEED    0x00
  84. #define ST_EXABYTE_OPTIONS    (ST_QIC)
  85. #define IS_EXABYTE(dsi)        (dsi->un_ctype == ST_TYPE_EXABYTE)
  86.  
  87.