home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / tools / Disks / rx50-FreeBSD.README next >
Encoding:
Text File  |  2000-06-13  |  2.9 KB  |  58 lines

  1. This tarball contains a dumb hack to read and write DEC RX50 diskettes
  2. under FreeBSD. It consists of two pieces, a kernel patch and a set of
  3. filters. The kernel patch, which should be applied to SYS/isa/fd.c, adds
  4. the RX50 physical format to the FreeBSD floppy driver. The patch is based
  5. on FreeBSD 4.0-STABLE, your mileage may vary. However, it is conceptually
  6. simple and should be easy enough to apply by hand. Note that this format
  7. is identical to the 5.25" 800K format, but with only one side.
  8.  
  9. Also in the kernel/ directory is a patch for MAKEDEV which adds device
  10. nodes for the new format, with the name fd[n].rx50. Note that using this
  11. node with a drive that is not a high-density 5.25" floppy results in a
  12. "device not configured" error.
  13.  
  14. The filters/ directory contains two filters, rx50in and rx50out, which
  15. deal with the logical sector interleave performed by the RQDX controllers
  16. on the PDP-11 and VAX; ideally, this would be handled in the driver; like
  17. I said, this is a dumb hack. Note that the filters read or write the
  18. _entire_ disk; short input results in null-padding. This shouldn't be a
  19. big deal, but it does result in a bit of extra disk I/O. C'est la vie.
  20. They use standard input and standard output, and no output (except for an
  21. error message on standard error) is created if the input exceeds the
  22. capacity of an RX50. Also keep in mind that non-PDP, non-VAX
  23. implementations of the RX50 used different layouts, so the filters are not
  24. appropriate, for example, for DECmate or DEC Rainbow disks. The kernel
  25. patch is, however, and this is the sole advantage of doing the interleave
  26. in userland.
  27.  
  28. EXAMPLES:
  29.  
  30. Create a tar archive of 'directory' on an RX50:
  31.   tar cf- directory/ | rx50out >/dev/fd1.rx50
  32.  
  33. Extract a tar archive from an RX50:
  34.   rx50in </dev/fd1.rx50 | tar xf-
  35.  
  36. Finally, you can try to format a disk as an RX50 with
  37.   fdformat /dev/fd1.rx50
  38.  
  39. I say 'try to format' because the diskettes I format in this fashion are
  40. prone to read/write errors on a real RX50. This is probably due to head
  41. alignment issues, but it could, of course, be something else. I've had no
  42. problems reading and writing disks formatted in other ways (by DEC or
  43. using custom hardware, in my case a Shaffstall 6000 media conversion unit)
  44. Bear in mind that RX50s, though they are written at 96tpi and thus require
  45. a high-density drive to read and write on a PC, are _not_ a high-density
  46. format, and using HD media will likely result in _lots_ of errors. I use
  47. 96tpi double-density media myself, but good luck finding it. The best
  48. substitute that is commonly available seems to be standard 360K
  49. double-density media without hub rings. Once again, your mileage may vary.
  50.  
  51. Please send any questions or comments, bugfixes or patches to
  52. jasomill@shaffstall.com; once again, this is a dumb hack, written in an
  53. evening, full of sound and fury, signifying nothing. The code is ugly, but
  54. the results, I'm happy to report, are not.
  55.  
  56. -Jason T. Miller
  57.  June 9, 2000
  58.