img.cfg 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ## IMG.CFG: Example FlashFloppy Geometry Configuration File for Raw IMG Images
  2. # Supports tagged IMG/IMA raw image files with self-identifying geometry.
  3. # If you wish to use this feature, your IMG.CFG must be placed in the
  4. # root folder or FF/ subfolder of your USB drive.
  5. # NOTE: If FF/ exists, IMG.CFG must reside there, not the root folder.
  6. # Matching Rules:
  7. # 1. If tag 'tagname' is defined, this describes the geometry of
  8. # all IMG/IMA files of the form *.tagname.img and *.tagname.ima
  9. # 2. If tag 'default' is defined, this describes the geometry of
  10. # all IMG/IMA files that do not match any other defined tag.
  11. # This includes untagged files (ie. *.img and *.ima).
  12. # 3. If a file does not match any tag, and no default tag is defined,
  13. # FlashFloppy uses normal geometry auto-detection based on the
  14. # host= setting in FF.CFG.
  15. # A badly-defined tag (eg. undefined mandatory parameters) will result in
  16. # error 31 (Bad Image).
  17. # Tag name in square brackets.
  18. # 'default' matches any *.img or *.ima which are untagged, or do not
  19. # match any other defined tag.
  20. [default]
  21. # Mandatory: Number of cylinders (1-254).
  22. cyls = 80
  23. # Mandatory: Number of heads (1-2).
  24. heads = 2
  25. # Mandatory: Number of sectors per track (1-256).
  26. secs = 9
  27. # Mandatory: Bytes per sector (128, 256, 512, 1024, 2048, 4096, 8192).
  28. bps = 512
  29. # Optional: ID of first sector on each track (0-255[:0-255])
  30. # Default is 1.
  31. # Numbers may be expressed in hexadecimal with 0x prefix (eg. 0xab).
  32. # Format x:y allows specifying different ID (x, y) for each head/disk-side.
  33. # Format x specifies same ID (x) for both heads/sides of a double-sided disk.
  34. # id = 1
  35. # Optional: Recording mode (fm | mfm). Default is mfm.
  36. # mode = mfm
  37. # Optional: Sector interleave. Default is 1:1 (no interleave).
  38. # interleave = 1
  39. # Optional: Sector skew per cylinders. Default is 0 (no skew).
  40. # cskew = 0
  41. # Optional: Sector skew per head. Default is 0 (no skew).
  42. # hskew = 0
  43. # Optional: Rotational RPM. Default is 300.
  44. # rpm = 300
  45. # Optional: Post-Data Gap (0-255). Default is 0.
  46. # 0 = based on recording mode and sector size.
  47. # gap3 = 0
  48. # Optional: Index Address Mark (yes | no). Default is yes.
  49. # iam = yes
  50. # Optional: Data rate in kHz (kbit/s) (eg. MFM DD = 250). Default is 0.
  51. # 0 = based on recording mode and size of track.
  52. # rate = 0
  53. # Optional: Image file track layout. Default is "interleaved".
  54. # Comma-separated values:
  55. # sequential: Sequential cylinder ordering: all side 0, then side 1.
  56. # interleaved: Interleaved cylinder ordering: c0s0, c0s1, c1s0, c1s1, ...
  57. # reverse-sideN: Side-N cylinders are ordered from high to low (N=0,1).
  58. # sides-swapped: Sides 0 and 1 ordering is swapped in the image file.
  59. # eg. "sequential,reverse-side1"
  60. # file-layout = interleaved
  61. [640k]
  62. cyls = 80
  63. heads = 2
  64. secs = 16
  65. bps = 256
  66. mode = mfm
  67. iam = no
  68. file-layout = sequential
  69. [1001k]
  70. cyls = 77
  71. heads = 2
  72. secs = 26
  73. bps = 256
  74. mode = mfm
  75. iam = no
  76. rpm = 360
  77. file-layout = sequential
  78. [160k]
  79. cyls = 40
  80. heads = 1
  81. secs = 16
  82. bps = 256
  83. mode = mfm
  84. iam = no
  85. [320k]
  86. cyls = 40
  87. heads = 2
  88. secs = 16
  89. bps = 256
  90. mode = mfm
  91. iam = no
  92. [80k]
  93. cyls = 40
  94. heads = 1
  95. secs = 8
  96. bps = 256
  97. mode = fm
  98. iam = no