keirf / greaseweazle

Tools for accessing a floppy drive at the raw flux level
The Unlicense
984 stars 98 forks source link

C64 Dump with GW 0.18 broken #38

Closed ILAHWWINC closed 4 years ago

ILAHWWINC commented 4 years ago

I do a dump of a C64 disk with the default settings and GW 0.18. Then i try to convert the .scp to .flux with fluxengine. I get an „scp file corrupt“ error message.

Doing the same dump with GW 0.17 does not make any problems.

ourIThome commented 4 years ago

I believe fluxengine software has issues with SCP files. https://github.com/davidgiven/fluxengine/blob/master/doc/using.md

ILAHWWINC commented 4 years ago

But when i use GW 0.17 firmware to dump, i can convert the scp with fluxengine. There must be a difference between GW0.18 and before.

ourIThome commented 4 years ago

Oops sorry missed the last line about 0.17.

keirf commented 4 years ago

Generation of single sided images has changed in v0.18 to match the supercard Pro author's intentions, and what he has explicitly stated in the latest spec. It also matches the behaviour of the latest beta hxc software (which has been similarly amended).

In short, fluxengine too probably needs to be fixed. Should be straightforward. I recommend to raise a ticket there. If you link it here I'll be happy to pipe up with the technical detail required.

keirf commented 4 years ago

Another good thing especially if fluxengine author doesn't mind would be for me to add import and export of his flux files directly to Greaseweazle.

ILAHWWINC commented 4 years ago

I opened a ticket at fluxengine github. I will report back.

ILAHWWINC commented 4 years ago

I got no response from the fluxengine side so far.

When i try to use the gw.exe v0.17 together with the latest firmware 0.18 result is an error requesting firmware 0.17. Will it be possible to „override“ / patch this?

keirf commented 4 years ago

You can downgrade to v0.17 no problem. Just 'gw update' from the 0.17 tools.

keirf commented 4 years ago

This is not yet fixed (v0.19). Should get it done for v0.20.

keirf commented 4 years ago

Here is a version for you to try. On the command line you must explicitly ask for an "old-style" single-sided SCP image, for example like this:

gw read --single-sided --ecyl 40 a.scp::old_ss

(Note the ::_old_ss tagged on the end of the image file name: That's the magic!)

gw_38_1.zip

ILAHWWINC commented 4 years ago

Thanks alot. How should i use this, is this a different firmware, or v0.19. There is a file gw, no extension, 3xx bytes.

keirf commented 4 years ago

You can use the included firmware or v0.19 release. It's not a Windows exe so run it as "python gw..." on Windows.

ILAHWWINC commented 4 years ago

Yupp, working as expected. Now i can do a one click dump to d64 with gw, fluxengine and a script. Thanks

rmueller83 commented 4 years ago

Would it be possible to set the disk type correctly for C64 disks? Currently it is fixed to 0x80 (other), but C64 would be 0x00. This is required for opening the .scp with the SuperCard Pro Software from https://www.cbmstuff.com/downloads.htm for further processing, e.g. converting to a .g64 file.

ILAHWWINC commented 4 years ago

rmueller83 I have problems with SCP software because of virus alert, cant try. But what happens when you patch to right id / commodore with hex editor?

keirf I got response from hxc forum (https://torlus.com/floppy/forum/viewtopic.php?f=2&t=3865). May be a problem on gw side?

keirf commented 4 years ago

Yeah I fixed it in the tools I attached here in an earlier post. The track signature error thing will be fixed in v0.20.

I will provide a cheesy way to set the platform type code in the scp header. Hexediting it will also work.

ILAHWWINC commented 4 years ago

Here a discussion about the scp format and single sided disks. Maybe helpful for gw software too.