Do you use a 0 or 1 in the raw_cmd structure (raw_cmd.cmd[4]) to read or write the first sector of a track when the floppy is formatted in mode-0 (zerobased)? I realize I need the zerobase kernel patch for this.
Thanks and regards Mark _______________________________________________ fdutils mailing list fdutils@tux.org http://www.tux.org/mailman/listinfo/fdutils
On Wednesday 13 October 2004 10:56, Mark Hounschell wrote:
Do you use a 0 or 1 in the raw_cmd structure (raw_cmd.cmd[4]) to read or write the first sector of a track when the floppy is formatted in mode-0 (zerobased)? I realize I need the zerobase kernel patch for this.
Thanks and regards Mark _______________________________________________ fdutils mailing list fdutils@tux.org http://www.tux.org/mailman/listinfo/fdutils
Read/write have following syntax:
op-code drvsel cyl head sect szcod spt rw-gap szcod2
Byte 4 turns out to be sector id. You enter in it whatever sector id you want to read, i.e. 0 to read sector 0 in a zero-based format.
There is some impact on byte 6 (sectors per track) though. This is used for using both side in one go. This is not possible under zero-based format, as the FDC would start with sector 1 on the second side, rather than 0. Workaround: read both sides using two separate commands.
Alain
Alain Knaff wrote:
On Wednesday 13 October 2004 10:56, Mark Hounschell wrote:
Do you use a 0 or 1 in the raw_cmd structure (raw_cmd.cmd[4]) to read or write the first sector of a track when the floppy is formatted in mode-0 (zerobased)? I realize I need the zerobase kernel patch for this.
Thanks and regards Mark
Read/write have following syntax:
op-code drvsel cyl head sect szcod spt rw-gap szcod2
Byte 4 turns out to be sector id. You enter in it whatever sector id you want to read, i.e. 0 to read sector 0 in a zero-based format.
Thanks for that.
There is some impact on byte 6 (sectors per track) though. This is used for using both side in one go. This is not possible under zero-based format, as the FDC would start with sector 1 on the second side, rather than 0. Workaround: read both sides using two separate commands.
As it is now I'm read/write only one sector at a time anyway.
Regards Mark _______________________________________________ fdutils mailing list fdutils@tux.org http://www.tux.org/mailman/listinfo/fdutils