Menu

#41 cbmforng disturbs 1571 native mode long format (70 tracks)

uncategorized
closed
Womo
1
2020-06-26
2011-04-01
Womo
No

When using a 1571 disk drive at device ID 9 which is currently switched to 1541 mode (default reset state), the following command execution series leads to a "29, disk id mismatch,00,00" error:

cbmforng -s -x 9 disk,id
cbmctrl command 9 "UJ"
cbmctrl command 9 "U0>H0"
cbmctrl command 9 "U0>M1"
cbmctrl command 9 "N:LONG1571REFORMAT,LR"
cbmctrl status 9

The 1571's native mode formatting process stops after the first side instead of formatting the second side. This misbehavior seems to be induced by the cbmforng command.

If the cbmforng command is replaced by cbmformat, the 1571 mode long format behaves normally. Also, when the device is reset with "cbmctrl reset" after cbmforng has been executed, the 1571 long format behaves normally. Somehow cbmforng seems to not shut down properly so that a memory location which is not used in a 1541 remains at a value that causes the misbehavior, when the floppy acts as native 1571. Even more the cold start command "UJ" seems not to be able to properly initialise that memory cell. Another possibility is that cbmforng uses some hardware properties that aren't reset with "UJ", but only with a hardware reset.

Womo

Discussion

  • Womo

    Womo - 2011-04-01

    A workaround to fix this problem is to execute cbmforng in 1571 native mode before the 1571 long format command, e.g.:

    cbmforng -s -x 9 disk,id
    cbmctrl command 9 "UJ"
    cbmctrl command 9 "U0>H0"
    cbmctrl command 9 "U0>M1"
    cbmforng -b 18 -e 18 -s 9 unformat,uf
    cbmctrl command 9 "N:LONG1571REFORMAT,LR"
    cbmctrl status 9

    Womo

     
  • Womo

    Womo - 2011-04-02

    The workaround is not fully working yet, especially when a D71 image should be transferred to the freshly formatted disk with d64copy. After the dummy call to cbmforng, the floppy needs to be initialised:

    cbmforng -s -x 9 disk,id
    cbmctrl command 9 "UJ"
    cbmctrl command 9 "U0>H0"
    cbmctrl command 9 "U0>M1"
    cbmforng -b 18 -e 18 -s 9 unformat,uf
    cbmctrl command 9 I
    cbmctrl command 9 "N:LONG1571REFORMAT,LR"
    d64copy -2 image-file_1571.d71 9
    cbmctrl status 9

    Womo

     
  • Spiro Trikaliotis

    • Group: --> uncategorized
     
  • Spiro Trikaliotis

     
  • Spiro Trikaliotis

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel