Skip to content

Latest commit

 

History

History
102 lines (80 loc) · 2.71 KB

greaseweazle.md

File metadata and controls

102 lines (80 loc) · 2.71 KB

Software installation and usage examples of a greaseweazle (device for accessing a floppy drive at the raw flux level)

installation under Linux (Gentoo) in a separate python venv

python -m venv $HOME/greaseweazle/venv
. $HOME/greaseweazle/venv/bin/activate
pip install git+https://github.com/keirf/greaseweazle@latest

to use the now installed gw the venv has to be active. to activate it use:

. $HOME/greaseweazle/bin/activate

or use a little script, maybe $HOME/bin/weazle.sh

#!/bin/env bash

[ ! -d $HOME/greaseweazle/images ] && mkdir -p $HOME/greaseweazle/images
cd $HOME/greaseweazle/images

bash --init-file <(echo "source $HOME/greaseweazle/venv/bin/activate ; gw reset ; gw info")

this enters a new shell with the venv active and already in a directory to store images

testing if the greaseweazle is recognized

attach the device via USB. for me it shows up as /dev/ttyACM0

$ gw info    
Host Tools: 1.16
Device:
  Port:     /dev/ttyACM0
  Model:    Greaseweazle V4
  MCU:      AT32F403, 144MHz, 96kB SRAM
  Firmware: 1.4
  Serial:   GW135194F042054000026C9705
  USB:      Full Speed (12 Mbit/s)

using the greaseweazle

reading a disk

to get more information about possible reading formats and outputs use gw read --help reading an msdos 1.44MB HD 3.5" Disk

$ gw read --format ibm.1440 a.scp
Reading c=0-79:h=0-1 revs=2
Format ibm.1440
T0.0: IBM MFM (18/18 sectors) from Raw Flux (172457 flux in 399.82ms)
T0.1: IBM MFM (18/18 sectors) from Raw Flux (181444 flux in 399.78ms)
T1.0: IBM MFM (18/18 sectors) from Raw Flux (154986 flux in 399.83ms)
T1.1: IBM MFM (18/18 sectors) from Raw Flux (154716 flux in 399.76ms)
T2.0: IBM MFM (18/18 sectors) from Raw Flux (151418 flux in 399.75ms)
...

writing a disk

scp file

img file

additional

converting images

It is possible by using pfi from PCE IBM PC 5150 emulator.

http://www.hampa.ch/pub/pce/pre/

pce-20230920-4d84dc43.tar.gz

Download and compile

./configure
make

after that the pfi utility can be found under src/utils/pfi

  1. TC (Transcopy) --> SCP
# (.pri image can be converted to scp)
./pfi -p encode pri disk1.tc disk1.scp
  1. RAW (Kryoflux) --> SCP
./pfi track00.0.raw disk1.scp

You can change RPM from 360 to 300 or 300 to 360 by using option (set-rpm)

./pfi disk1-360rpm.scp -p set-rpm 300 disk1-300rpm.scp
./pfi disk1-300rpm.scp -p set-rpm 360 disk1-360rpm.scp

If dumped 2D (360KB) image is from 5.25" 2HD drive (360RPM. 96DPI), you can change 5.25" 2D (300RPM, 48DPI) format by psing PFI.EXE

./pfi disk1-360kb-96dpi-360rpm.scp -p double-step -p set-rpm 300 disk1-360kb-48dpi-300rpm.scp