English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 13 November 2019, 06:54   #1
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Greaseweazle - the cheap flux tool!

Hello all,

Whilst reading about ways to image disks, I came across this project by the renowned creator of Flash Floppy (free Gotek firmware and alternative to HxC). It's called "Greaseweazle" and appears to read/write in SuperCard Pro format (.SCP)

All the details can be found at Keir's github page: https://github.com/keirf/Greaseweazle

I will hopefully be getting the equipment through the post soon, but wondering how best to 'test' it to verify the read/write of the disks/images? Is there a hash check or something of that kind to verify the image is acceptable? I have plenty of original disks here that I'm happy to use as test subjects. I believe HxC disk tool can convert from IPF to SCP and so in essence could I write a disk of a game I already have and then read both to compare?

Enjoy!

Lesta_SMSC
lesta_smsc is offline  
Old 13 November 2019, 07:51   #2
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
There is also a Facebook group for it:

https://www.facebook.com/groups/greaseweazle

I have also used this solution to successfully restore my original game floppy disks.

This solution has a very low cost entry point - all you need are:

1. STM32 Blue Pill
2. USB TTL Programmer
3. Dupont ribbon cable
4. PC floppy drive

This diagram from the Greaseweazle Github wiki nicely summarises this:

https://github.com/keirf/Greaseweazl...re-Connections
solarmon is offline  
Old 13 November 2019, 16:12   #3
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
When you did restore. Did you convert IPF to SCP? I read somewhere that another similar tool called Fluxengine could make the image back up but you couldn't write that directly to disk without some modification. Is this the same for GW?
lesta_smsc is offline  
Old 13 November 2019, 17:12   #4
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
Quote:
Originally Posted by lesta_smsc View Post
When you did restore. Did you convert IPF to SCP? I read somewhere that another similar tool called Fluxengine could make the image back up but you couldn't write that directly to disk without some modification. Is this the same for GW?
Yes, I converted an IPF to SCP. However, the conversion did not work when using the HxC virtual disk software - the disk copy protection was still activating (on kickstart 1.3 and on certain floppy drives) so something was not quite right. However, an IPF->SCP conversion using disk-analyse did work (on all kickstarts and floppy drives).

disk-analyse is also from Keir Fraser - but you will need to setup a build environment to build it yourself:

https://github.com/keirf/Disk-Utilities
solarmon is offline  
Old 13 November 2019, 17:18   #5
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Thanks for letting me know. How did you know it failed was it trial and error? I mean, I will not be converting on Amiga but on PC?

I'm confused why protection would do anything since its flux being written rather than the actual tracks as with X-copy which can prevent copy protected disks from copying.
lesta_smsc is offline  
Old 13 November 2019, 17:42   #6
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
It failed because the game copy protection stopped the game from loading.

So I only knew only after I used GW to dump it to floppy and tried to load the game on my Amiga. The copy protection was such that it stopped loading and went to blank screen instead of a loading screen.

With the help of Keir, he was able to determine that the HxC IPF to SCP conversion was not quite right and the copy protection of the game was looking for something it was not finding when using kickstart 1.3; on kickstart 2.x it only worked on certain floppy drives - something to do with how the trackdisk.device works on those different Kickstarts.

He then used his disk-analyse software to convert from IPF to SCP and this proved to be successful - it was working for Kickstart 1.3 and for different floppy drives on kickstart 2.x.

I think it won't happen for every game - it seems to be just because of the specific copy protection used by the game (Panza Kick Boxing).

Another game (E-Motion), was similar - I couldn't get it working using the HxC conversion, but it was OK using disk-analyse.
solarmon is offline  
Old 13 November 2019, 17:44   #7
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
Quote:
Originally Posted by lesta_smsc View Post
I'm confused why protection would do anything since its flux being written rather than the actual tracks as with X-copy which can prevent copy protected disks from copying.
I think it is because there is still an IPF to SCP conversion taking place - so there is going to be room for differences/nuances on how it is converted.

Note that converting the IPF image to HFE v3 and loading the game from a Gotek device did not have any such issues.
solarmon is offline  
Old 13 November 2019, 20:20   #8
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Interesting, so in essence the copy protection breaks on KS 1.3 yet works on KS 2.0 - was there ever scope to modify the trackdisk.device to overcome copy protection?!

Since the interface works with USB, can you write normal disk images e.g. those for music samplers with it straight from file rather than having to use DOS for such operations.
lesta_smsc is offline  
Old 13 November 2019, 20:47   #9
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
Quote:
Originally Posted by lesta_smsc View Post
Interesting, so in essence the copy protection breaks on KS 1.3 yet works on KS 2.0 - was there ever scope to modify the trackdisk.device to overcome copy protection?!
I'm not entirely sure technically what the issue is, but this is what Keir said:

Quote:
The issue is: (a) That HxC starts the first sector way too close to the write splice; (b) The trackdisk.device in Kickstart 1.x is fragile, it does not use the hardware to find 4489 sync marks but loads a non-aligned track and then searches manually. I image that the search does not like having the sync mark(s) only a few bitcells after the write splice.
Quote:
Originally Posted by lesta_smsc View Post
Since the interface works with USB, can you write normal disk images e.g. those for music samplers with it straight from file rather than having to use DOS for such operations.
Not sure what you mean, but Greaseweazle is designed in two parts - the Blue Pill hardware and a Python script running on the PC/Mac/Linux machine. So it can't be connected to any old machine/device. As long as you feed it a supported disk image file (currently only SCP) it will write it to the floppy disk.
solarmon is offline  
Old 13 November 2019, 21:22   #10
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Yes that makes sense. Not sure what I was thinking lol... maybe scope to support more images so it can be a flux took but also USB FDD interface to use within Windows!?

Are you using DSDD or HD disks for writing? I have read some people recommend using HD disks.
lesta_smsc is offline  
Old 13 November 2019, 23:53   #11
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
For testing before I write to the originals I have used both DD and HD disks.
solarmon is offline  
Old 14 November 2019, 01:10   #12
Jeff_HxC2001
Registered User
 
Join Date: Sep 2008
Location: Paris / France
Posts: 656
Quote:
Originally Posted by solarmon View Post
It failed because the game copy protection stopped the game from loading.

So I only knew only after I used GW to dump it to floppy and tried to load the game on my Amiga. The copy protection was such that it stopped loading and went to blank screen instead of a loading screen.

With the help of Keir, he was able to determine that the HxC IPF to SCP conversion was not quite right and the copy protection of the game was looking for something it was not finding when using kickstart 1.3; on kickstart 2.x it only worked on certain floppy drives - something to do with how the trackdisk.device works on those different Kickstarts.

He then used his disk-analyse software to convert from IPF to SCP and this proved to be successful - it was working for Kickstart 1.3 and for different floppy drives on kickstart 2.x.

I think it won't happen for every game - it seems to be just because of the specific copy protection used by the game (Panza Kick Boxing).

Another game (E-Motion), was similar - I couldn't get it working using the HxC conversion, but it was OK using disk-analyse.

I think that another test with a true Supercard Pro or a Kryoflux may be interesting. FYI most of the HxC IPF to SCP conversion is based on the original SPS / Caps library, unlike the disk-analyse tool.

Can you send me these IPF files ?

EDIT : Got the images. Which version are you using exactly ?

Last edited by Jeff_HxC2001; 14 November 2019 at 08:02.
Jeff_HxC2001 is offline  
Old 14 November 2019, 09:23   #13
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
Quote:
Originally Posted by Jeff_HxC2001 View Post
I think that another test with a true Supercard Pro or a Kryoflux may be interesting.
I don't have a Supercard Pro or Kyroflux to compare against. Otherwise, I would have definitely done that.

Quote:
Originally Posted by Jeff_HxC2001 View Post
FYI most of the HxC IPF to SCP conversion is based on the original SPS / Caps library, unlike the disk-analyse tool.
This is not a true statement.

The build instructions for disk-analyse includes the CAPS library for IPF support, as detailed at:

https://github.com/keirf/Disk-Utilit...ster/README.md

EDIT: Oh, you mean for the conversion to SCP. I'm not sure about that then.

Quote:
Originally Posted by Jeff_HxC2001 View Post
Can you send me these IPF files ?

EDIT : Got the images. Which version are you using exactly ?
It would be great if you can test. Below are the IPF images I used - searched for in https://www.oldgamesfinder.com and linked to the IPF images on archive.org:

PANZA Kick Boxing (1990)(Futura)[2400]:
https://www.oldgamesfinder.com/?q=panza&m=-4
http://archive.org/download/Commodor...%5B2400%5D.zip

E-MOTION (1990)(U.S. Gold)[0475]:
https://www.oldgamesfinder.com/?q=e-motion&m=-4
http://archive.org/download/Commodor...%5B0475%5D.zip
solarmon is offline  
Old 14 November 2019, 10:10   #14
Jeff_HxC2001
Registered User
 
Join Date: Sep 2008
Location: Paris / France
Posts: 656
Quote:
Originally Posted by solarmon View Post
I don't have a Supercard Pro or Kyroflux to compare against. Otherwise, I would have definitely done that.



This is not a true statement.

The build instructions for disk-analyse includes the CAPS library for IPF support, as detailed at:

https://github.com/keirf/Disk-Utilit...ster/README.md

EDIT: Oh, you mean for the conversion to SCP. I'm not sure about that then.
i meant this :
https://github.com/keirf/Disk-Utilit...ontainer/ipf.c

But this appears to be for the write support only.
And this is not the cause of the problem finally :


Quote:
Originally Posted by solarmon View Post
It would be great if you can test. Below are the IPF images I used - searched for in https://www.oldgamesfinder.com and linked to the IPF images on archive.org:

PANZA Kick Boxing (1990)(Futura)[2400]:
https://www.oldgamesfinder.com/?q=panza&m=-4
http://archive.org/download/Commodor...%5B2400%5D.zip

E-MOTION (1990)(U.S. Gold)[0475]:
https://www.oldgamesfinder.com/?q=e-motion&m=-4
http://archive.org/download/Commodor...%5B0475%5D.zip
Thanks : Already have a look on the images i found : And yes the start of the scp tracks are aligned on the Index signal with the hxc software, and the index signal is close to the first sector. But this is not supposed to be the track write splice !
Here is what Jim (the supercard pro and scp format designer) said :

http://www.atari-forum.com/viewtopic...rt=475#p307888

Quote:
Writing with SPLICE is much different than INDEX. When you write with SPLICE mode, the first revolution is always written, and writing continues until the write splice is found, at which point the writing is terminated.
Unless i have missed something, i didn't found any write splice search function in the greaseweazle code, so i suppose that it just write the scp tracks "as-it-is". But this is definitively not the spirit of this format, you need to find where to start and stop the track write "yourself".
The HxC software currently write 2 revolutions in the scp files. I can increase it to 3 to help to analyze the stream. I can also "cheat" and align the scp track dump to the supposed write splice (this what disk-analyse do i suppose.), but i don't like this idea.
Jeff_HxC2001 is offline  
Old 14 November 2019, 10:42   #15
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
I understand Keir had added a specific 'format' for Panza to resolve the issue:

https://github.com/keirf/Disk-Utilit...nalyse/formats

Code:
# Long tracks on Disks A and B
"Panza Kick Boxing"
    158-159 amigados_long_105500
    * amigados
For E-Motion there seems to be a 'format' for it too:

Code:
# Astra Pack Game 3
"E-Motion"
    158 tiertex_longtrack
    159 gremlin_longtrack
    * amigados
However, I was not aware of this then, and did not specify that specific format, so it would have defaulted to 'amigados'.
solarmon is offline  
Old 14 November 2019, 10:53   #16
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
A command line option to specify the write method may be better than individual disk specific config?
lesta_smsc is offline  
Old 14 November 2019, 11:07   #17
Jeff_HxC2001
Registered User
 
Join Date: Sep 2008
Location: Paris / France
Posts: 656
To illustrate what i mean :



"bad write splice" : where to start/stop the write to generate the issue.
"real write splice" : Where the write splice should be !

You can try to rotate the image with hxc tool to move a little bit the sectors from the index signal/bad write splice. (Track analyzer -> Edit tools -> Shift Tracks with -10, then export to scp). If the write splice position is really the issue, this will get around the issue ...

Last edited by Jeff_HxC2001; 14 November 2019 at 11:18.
Jeff_HxC2001 is offline  
Old 14 November 2019, 11:09   #18
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
The image is not loading...

However, if this is all that's needed can you put an option on the next HxC tool for "GW_SCP" lol.
lesta_smsc is offline  
Old 14 November 2019, 11:12   #19
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,715
@Jeff_HxC2001

Thanks for that visual example - it really helps my understanding, very useful!

I will try your suggestion to see if it makes a difference.
solarmon is offline  
Old 14 November 2019, 11:18   #20
Jeff_HxC2001
Registered User
 
Join Date: Sep 2008
Location: Paris / France
Posts: 656
Quote:
Originally Posted by lesta_smsc View Post
The image is not loading...

However, if this is all that's needed can you put an option on the next HxC tool for "GW_SCP" lol.

Image fixed .


No i don't think so .
This the job of the floppy read/writer to deal with the write splices.
Jeff_HxC2001 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
soldering flux ItsTheSmell support.Hardware 7 01 October 2019 12:35
Dr. Plummet's House of Flux Graham Humphrey Games images which need to be WHDified 1 11 March 2013 04:04
Dr. Plummet`s House of flux stainy HOL data problems 2 07 July 2011 16:57
Coyote Flux: PPC680x0 to become freeware! Paul News 1 30 November 2004 20:20
Dr. Plummet's House Of Flux :( osama request.Old Rare Games 3 29 December 2001 03:22

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.17008 seconds with 14 queries