home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / readme.vmunix.tape < prev    next >
Text File  |  1993-06-25  |  3KB  |  80 lines

  1. The vmunix.tape kernel is for testing to see if your tape drive
  2.  --which is not supported-- is compatable with one of the supported types.
  3.  
  4. Why would you do this? If you don't have the manual on the tape drive it might
  5. be worth it to do this instead of recompiling the kernel each time.
  6. THIS is only temporary until we can patch the kernel to automagically
  7. recognize your particular tape drive type! 
  8.  
  9. This kernel is based on the vmunix #720 kernel with two view patches
  10. from chris hopps, a reboot patch, and some patches from mike hitch
  11. so that all supported controller cards and tape drives would use
  12. sd and st, rz and rt are no longer supported.
  13.  
  14. This kernel is built with INET and has been tested with X11R5 for the ECS
  15. chip set. However this kernel is only for boot strapping your tape
  16. drives.
  17. ------------------------------------------------------------------------
  18. A patchable char variable called st_pretend_tobe_mt is used into
  19. fooling you kernel into thinking you have one of the following
  20. supported tape drives.
  21.  
  22.  
  23. #define MT_ISEXABYTE    0x0c            /* Exabyte */
  24. #define MT_ISVIPER1     0x0e            /* Archive Viper-150 */
  25. #define MT_ISPYTHON     0x0f            /* Archive Python (DAT) */
  26. #define MT_ISHPDAT      0x10            /* HP 35450A DAT drive */
  27. #define MT_ISWANGTEK    0x11            /* WANGTEK 5150ES */
  28. #define MT_ISCALIPER    0x12            /* Caliper CP150 */
  29. #define MT_ISWTEK5099   0x13            /* WANGTEK 5099ES */
  30. #define MT_ISVIPER2525  0x14            /* Archive Viper 2525 */
  31.  
  32.  
  33. To pretend your tape drive is a MT_ISCALIPER do:
  34.  
  35. binpatch -b -s _st_pretend_tobe_mt -r 0x12 vmunix.tape
  36.  
  37. The default value for the _st_pretend_tobe_mt is 0, and the
  38. tape driver will behave normally.
  39.  
  40. Once you are running NetBSD in single user mode,
  41. copy the raw vender string printed by the kernel
  42. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  43. Raw vendor string ->This is the string<-
  44. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  45. on a sheet of paper. Try using your tape drive, 
  46. by doing a tape operation such as creating a archive
  47.                tar -cvf /dev/rst0 /etc
  48. If this works and ....
  49.                tar -tvf /dev/rst0
  50. works, your pretty much in business.
  51.  
  52. An error message of 'Bad file descriptor' tells you to try another patch
  53. value.
  54.  
  55. If this patch value doesn't work reboot.
  56. Patch the kernel to a new drive type and try again. 
  57.  
  58. Unfortunately this kernel won't reboot for me via /dev/reload so you'll
  59. have to binpatch the vmunix.tape kernel under amiga dos.
  60.  
  61. IF THE PATCH WORKED
  62.  
  63. Since my E-mail address will be changing shortly and I may even loose my
  64. internet access for a while, and I'll be moving... all in march
  65. the best way to contact me is by posting a message to the mailing list
  66. with the Subject: st_pretend is MT_.... for "Raw Vendor string"
  67.  
  68. So say you discovered that your Rander tape drive behaved like a MT_VIPER1
  69. send the message to the Netbsd-amiga or comp.unix.amiga mailing list
  70.  
  71. To:Netbsd-amiga@....
  72. Subject: st_pretend is MT_VIPER1 for "Rander Snake 5320-46"
  73.  
  74. With this information patches can easily be made to automagically
  75. recognize your tape drive.
  76.  
  77. This is the best I can do.
  78.  
  79. -Rob
  80.