FluxEngine - usb controller for floppy drives

FluxEngine

Project: davidgiven/fluxengine

Fluxengine under Debian, FreeBSD, Xubuntu,

back to Cypress CY8CKIT-059, FPGA, main page.

Links

local links

greaseweazle,

History

2025-11-09: I created this page, and recovered old content from WaybackMachine.

2019-11-03: I stumbled over the Greaseweazle - similar project, but uses a stm32 Blue Pill as hardware. Interesting.

2019-03-28: psu - soldered up a MP2307DN module (from Trygve) and connectors for 3.5 and 5.25 inch floppy power to the adpater plug that cam with the other VT-23019. So now I have two pus's.

2019-03-25: A while back, I ordered 20 x 34-pins IDC connectors (aka "straight pin boxed headers") on eBay. The packages arrived today.

2019-03-20: psu - soldered up a MP2307DN module (the one from Jon stopped at 8.6 V, it couldn't go lower. Luckily Trygve had some, and the one I got from him worked) and connected up connector for 3.5 and 5.25 inch floppy power to the adapter plug that came with the VT-23019. And then I adjusted the MP2307DN module for 5V output.

2019-03-19: psu - received the package from LEDLyskilder.no. The VT-23019 psu's looks ok, the adapter plug (to screw terminals) that is included is a tight fit for the plug on the PSU, but works.

2019-03-13: power for a two-floppy (3.5 and 5.25 inch) floppy drive enclosure - MP2307DN module (from Jon) like this Aliexpress MP2307DN (here and here) module gives 5V 1.8A (3A peak) - a 12V 2A power supply of some type - ordered av VT-23019 from LEDLyskilder.no (two actually, at NOK 45.- each + NOK 49.- in shipping, total NOK 139.-)

2019-03-13: Teac FD-55GFR power specifications

12 V +- 5% @ 0.22A - 0.54A (peak 1.0A at spindle start)
 5 V +- 5% @ 0.3A - 0.46A (peak)
so 12V 1A and 5V 1A should work.

2019-03-11: floppy drives that can be tested: 8 inch a Tandon TM848-2E in htpc (used for reading 8 inch floppies) - working - requires 5 V and 24 V power supply (it has a separate 24V already)

5.25 inch - requires both 12V and 5V power supply Toshiba FDD 5862 (5862A0K) in my ND-110 Satellite - working, requires a floppy cable with card edge connector on floppy end Teac FD-55GFR-7193-U - (possibly not working), requires a floppy cable with card edge connector on floppy end Teac FD-55GFR-570-U in my IMC Traveller 286 - (working?), it has the required cable with card edge connectors on the floppy end. Y-E Data YD-380 (YD-380B) in my floppy machine - working, requires a floppy cable with card edge connector on floppy end (and the floppy machine must be disassembled)

3.5 inch - requires 5V power supply Panasonic JU-256A (256A276PC) - (mostly working) Samsung SFD-321B (321B/LFBL1) - working (I have two of these)

2019-03-07: bb - test a HD, mystery floppy (labeled "5") try IBM format

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output 2_ibm.img
[..]
Good sectors: 2879/2880 (99%)
Missing sectors: 0/2880 (0%)
Bad sectors: 1/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

file says

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file 2_ibm.img
2_ibm.img: Macintosh HFS data block size: 512, number of blocks: 2874, volume name: Mac-3

ok, so that one is Mac HFS formatted.

2019-03-07: bb - test a HD, MAC-formatted floppy

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readmac -s :d=1 --output 2_mac.img
[..]
H.SS Tracks --->
No sectors in output; skipping analysis
0 tracks, 0 heads, 0 sectors, 0 bytes per sector, 0 kB total

hmm, no scratch that, MAC HD floppies are just normal IBM formatted. Try that instead:

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output 3_mac.img
[..]
Good sectors: 2879/2880 (99%)
Missing sectors: 1/2880 (0%)
Bad sectors: 0/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

much better. file says

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file 3_mac.img
3_mac.img: PC formatted floppy with no filesystem

ok

2019-03-07: bb - test a HD, IBM-formatted floppy

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ibm-test.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ............................................................................BB..
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ............................................................................B...
1. 0 ..........................................................................BBBB..
1. 1 ...................................................................BB.......BBBB
1. 2 ..........................................................................B..XXX
1. 3 ...........................................................................XBBBB
1. 4 .............................................................................XXX
1. 5 ................................................................................
1. 6 .....................................................BBB........................
1. 7 .............................................XXX.....XXXX.......................
1. 8 ..................................................................BB............
1. 9 ................................................................................
1.10 ............................................................................BBB.
1.11 ..........................................................................BBBXXX
1.12 .............................................................................BB.
1.13 .............................................................................BBB
1.14 .....................................................................X......BBBB
1.15 ......................................................................BB..BBBBXB
1.16 ................................................................................
1.17 ..............................................................BB............XXXX
Good sectors: 2810/2880 (97%)
Missing sectors: 23/2880 (0%)
Bad sectors: 47/2880 (1%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

MS-DOS 6.20 1 of 3

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output 2_ms-dos-620_1of3.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ................................................................................
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 .........................................................................BB.....
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
1.11 ................................................................................
1.12 ................................................................................
1.13 ................................................................................
1.14 ................................................................................
1.15 ................................................................................
1.16 ................................................................................
1.17 ................................................................................
Good sectors: 2878/2880 (99%)
Missing sectors: 0/2880 (0%)
Bad sectors: 2/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

MS-DOS 6.20 2 of 3

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output 2_ms-dos-620_2of3.img
[..]
Good sectors: 2880/2880 (100%)
Missing sectors: 0/2880 (0%)
Bad sectors: 0/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

MS-DOS 6.20 3 of 3

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output 2_ms-dos-620_3of3.img
[..]
Good sectors: 2880/2880 (100%)
Missing sectors: 0/2880 (0%)
Bad sectors: 0/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

compare images with file

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ms-dos-620_1of3.img
ms-dos-620_1of3.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x113b0511, unlabeled, FAT (12 bit), followed by FAT
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file 2_ms-dos-620_1of3.img
2_ms-dos-620_1of3.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x113b0511, unlabeled, FAT (12 bit), followed by FAT

yes, no surprises there.

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ll *620*
-rw-r--r-- 1 tingo tingo 1474560 Mar  7 09:27 2_ms-dos-620_1of3.img
-rw-r--r-- 1 tingo tingo 1474560 Mar  7 09:31 2_ms-dos-620_2of3.img
-rw-r--r-- 1 tingo tingo 1474560 Mar  7 09:34 2_ms-dos-620_3of3.img
-rw-r--r-- 1 tingo tingo 1474048 Mar  5 12:41 ms-dos-620_1of3.img
-rw-r--r-- 1 tingo tingo 1474048 Mar  5 12:45 ms-dos-620_2of3.img
-rw-r--r-- 1 tingo tingo 1474048 Mar  5 12:50 ms-dos-620_3of3.img

different sizes.

2019-03-07: bb - test with a Samsung SFD-321B floppy drive. fe-rpm

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-rpm -s :d=1
Rotational period is 200 ms (300 rpm)

fe-testbulktransport

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-testbulktransport
Transferred 1048576 bytes in 1170 (874 kB/s)

ok.

2019-03-05: bb - testing - with a DD, Amiga-formatted disk

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readamiga -s :d=1 --output Tingo.adf
[..]
Good sectors: 1760/1760 (100%)
Missing sectors: 0/1760 (0%)
Bad sectors: 0/1760 (0%)
80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo.adf
Tingo.adf: Amiga DOS disk

a few more - DD, Amiga-formatted, all reads 100% good sectors

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo3.adf
Tingo3.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo5.adf
Tingo5.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo6.adf
Tingo6.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo6-2.adf
Tingo6-2.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo7.adf
Tingo7.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo11.adf
Tingo11.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo12.adf
Tingo12.adf: Amiga DOS disk
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo14.adf
Tingo14.adf: Amiga DOS disk

DD, Amiga-formatted, less than 100% good sectors

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readamiga -s :d=1 --output Tingo13.adf
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
1. 0 ...........................................................................B....
1. 1 ................................................................................
1. 2 ............................................................................B...
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ........................................................................B.......
1. 6 ................................................................................
1. 7 ...............................................................................B
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
Good sectors: 1756/1760 (99%)
Missing sectors: 0/1760 (0%)
Bad sectors: 4/1760 (0%)
80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file Tingo13.adf
Tingo13.adf: Amiga DOS disk
ok.

2019-03-05: bb - testing - with a HD, IBM-formatted disk

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output win95_boot.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ..........................................B.....................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ........XXX.X...X..X...X.............XXXX.XX...........................XXXXXXXXX
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ........................................B.......................................
1. 3 ................................................................................
1. 4 ................................BB.....BBBB.....................................
1. 5 ................................................................................
1. 6 .....................................................BBBB.......................
1. 7 .........................................B...XXXX....XXXX.......................
1. 8 ................................................................................
1. 9 ........................................B.......................................
1.10 ..........................................B.....................................
1.11 ...........................................B....................................
1.12 ................................................................................
1.13 .........................................BB.....................................
1.14 ...........................................B....................................
1.15 .........................................B......................................
1.16 .......................................B...B....................................
1.17 ....XXXXXXXX....X.X...XX.........X...XXXXXXX.........XXXXXXXX.XX.......XXXXXXXXX
Good sectors: 2789/2880 (96%)
Missing sectors: 69/2880 (2%)
Bad sectors: 22/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file win95_boot.img
win95_boot.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSWIN4.1", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x3135bb81, label: "           ", FAT (12 bit), followed by FAT

next, HD, IBM-formatted

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ms-dos-620_1of3.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ........................X.XXXXXXXXXXXXXXXX..................................XXXX
1. 0 ................................................................................
1. 1 .......................................B.B......................................
1. 2 .....................................B.BBB......................................
1. 3 ......................................B..B......................................
1. 4 .........................................B..............................BXXXX...
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
1.11 .........................................B......................................
1.12 ....................................B....B......................................
1.13 ........................................BB......................................
1.14 ................................................................................
1.15 ................................................................................
1.16 ................................................................................
1.17 ...................XXX.X.XXXXXXXXXXXXXXXXX.................................XXXXX
Good sectors: 2814/2880 (97%)
Missing sectors: 51/2880 (1%)
Bad sectors: 15/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ms-dos-620_1of3.img
ms-dos-620_1of3.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x113b0511, unlabeled, FAT (12 bit), followed by FAT

next, HD, IBM-formatted

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ms-dos-620_2of3.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 .......X........................................................................
0.10 ..............X.................................................................
0.11 ................................................................................
0.12 ...............X................................................................
0.13 ..............X.................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 .XXXXXXXXXX.X.XXXXXXXXXXX.XXXXXX.XXXXXXXXXXX..............................XXXXXX
1. 0 ........................................B.......................................
1. 1 ................................................................................
1. 2 .........................................B.B....................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ...........................................B....................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 .......X........................................................................
1. 9 ..............X..........................B......................................
1.10 .......X........................................................................
1.11 ...........................................B....................................
1.12 ................................................................................
1.13 ...........................................B....................................
1.14 ................................................................................
1.15 ...........................................B....................................
1.16 ......................................BB.BBB....................................
1.17 ..XXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...............XX............XXXXXXX
Good sectors: 2765/2880 (96%)
Missing sectors: 102/2880 (3%)
Bad sectors: 13/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ms-dos-620_2of3.imgms-dos-620_2of3.img: DOS/MBR boot sector, code offset 0x53+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x2e290611, unlabeled, FAT (12 bit), followed by FAT

next, HD, IBM-formatted

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ms-dos-620_3of3.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ....X..X......X.................................................................
0.10 .....X..........................................................................
0.11 ...X...........X................X...............................................
0.12 .........X..................XX............B.....................................
0.13 ......X.X..XX..X.......X........................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..........................XXXXXXXXXX
1. 0 ........................................BB.B....................................
1. 1 ................................................................................
1. 2 ...................................B.....BBB....................................
1. 3 ..........................................BB....................................
1. 4 ..............X..........................B.B................................BBBB
1. 5 .........................................BBB....................................
1. 6 .........................................B.B....................................
1. 7 ........................................B.BB....................................
1. 8 .......................................B...B....................................
1. 9 ................................................................................
1.10 .............XX.................................................................
1.11 .......................................BBBBB....................................
1.12 ........X...X..X.......................B.BBB....................................
1.13 .......................................B..B.....................................
1.14 .......................................B.BBB....................................
1.15 ......................................B..B.B....................................
1.16 ...................................BBBBBBB.B................X...................
1.17 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...........X.XXXX......XXXXXXXXXXXXX
Good sectors: 2691/2880 (93%)
Missing sectors: 137/2880 (4%)
Bad sectors: 52/2880 (1%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ms-dos-620_3of3.imgms-dos-620_3of3.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, sectors/track 18, serial number 0x3d150711, unlabeled, FAT (12 bit), followed by FAT

ok

2019-03-05: bb - testing - with a DD, Amiga-formatted floppy in the drive

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readamiga -s :d=1
Reading from: :d=1:s=0-1:t=0-79
[..]
Good sectors: 1760/1760 (100%)
Missing sectors: 0/1760 (0%)
Bad sectors: 0/1760 (0%)
80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file amiga.adf
amiga.adf: Amiga DOS disk

next Amiga-formatted DD disk

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readamiga -s :d=1 --output bootdisk_msh.adf
[..]
Good sectors: 1760/1760 (100%)
Missing sectors: 0/1760 (0%)
Bad sectors: 0/1760 (0%)
80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

next, Amiga-formatted DD disk

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readamiga -s :d=1 --output CrossAsm1.adf
[..]
Good sectors: 1760/1760 (100%)
Missing sectors: 0/1760 (0%)
Bad sectors: 0/1760 (0%)
80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

ok

2019-03-04: bb - testing - with a HD floppy in the drive

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-rpm -s :d=1
Rotational period is 167 ms (359.281 rpm)

fe-inspect

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-inspect -s :d=1
Reading from: :d=1:s=0-1:t=0-79
Error: the source dataspec must contain exactly one track (two sides count as two tracks)
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-inspect -s :d=1:s=0:t=0
Reading from: :d=1:s=0:t=0
  0.0: 166 ms in 92096 bytes
       1.67 us clock detected; 0.83 us bit clock; 25009 bytes encoded.
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-inspect -s :d=1:s=0:t=0 --dump-records
Reading from: :d=1:s=0:t=0
  0.0: 166 ms in 92096 bytes
       1.67 us clock detected; 0.83 us bit clock; 25011 bytes encoded.

try to read IBM format

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test.img
[..]
H.SS Tracks --->
0. 0 .........................................BB.....................................
0. 1 .........................B.....B........BBB.....................................
0. 2 ......................B.B.....BB........BBB.....................................
0. 3 ......................B.................B.B.....................................
0. 4 ................X...............................................................
0. 5 ................................................................................
0. 6 ........................................BB......................................
0. 7 .........................................BBB....................................
0. 8 ................X.......................BB......................................
0. 9 ........................................BB......................................
0.10 .....................................B..BB......................................
0.11 ..................................BB......BB................B...................
0.12 ..................................BB............................................
0.13 ..........................................X.....................................
0.14 ................X...............................................................
0.15 ...........................B......................................B.............
0.16 ..................................B.....B..B....................................
0.17 ...X....XXXXXXXXXXXXXXXXXX.X..XXXXXXXX..XXXX..................................XX
1. 0 ...............................B..B.....BBBB....................................
1. 1 ...B.................BB.BB...BBB..BB....BB.B....................................
1. 2 ...B.....B..B......BBBBBBB...BBB.......BBB.B....................................
1. 3 ...B................BBBB.B....BB.......BBB.B....................................
1. 4 ..................................B....B.B.B....................................
1. 5 ....................................B...B..B.................BB.................
1. 6 ...................B..............B....BBB.B....................................
1. 7 .................B.B.BB.BB...BBB.BB....BBBBB....................................
1. 8 .................B....B.......BB.......BBB......................................
1. 9 .......................................BBB......................................
1.10 ...................B..........BB.BBB...BBBBB....................................
1.11 .................................B.....B.BBB.................BB.................
1.12 .................................B..B.....BB.................XB.................
1.13 .......................................BB..B....................................
1.14 .........................X.............B...B....................................
1.15 .......................................B.BBB......................B.............
1.16 .............................B...BBBB..BBBBB....................................
1.17 ...X...XXXXXXXXXXXXXXXXXXXX..XXXXXXXX..XXXXX...X...X..X....XXXX...............XX
Good sectors: 2624/2880 (91%)
Missing sectors: 83/2880 (2%)
Bad sectors: 173/2880 (6%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test.img
test.img: PC formatted floppy with no filesystem

ok. Try another

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output tes2.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ...........X...X.XXXX.XXX..XXX..XX.XX...XX.X...........XXXXXXXXX...XXXXXXXXXXXXX
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ...........................................B....................................
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
1.11 ................................................................................
1.12 ................................................................................
1.13 ................................................................................
1.14 ................................................................................
1.15 ...........................................B....................................
1.16 ................................................................................
1.17 ..X..X..X.X.XX..XXXXX.XXX.XXX..XXX.X....X..X...........XXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 2789/2880 (96%)
Missing sectors: 89/2880 (3%)
Bad sectors: 2/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file tes2.img
tes2.img: PC formatted floppy with no filesystem

ok. Next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test3.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ..............XXX..XX..XXXX................X..........XXXXXXXXXX.....XXXXXXXXXXX
1. 0 ..........................................BB....................................
1. 1 ..........................................BB....................................
1. 2 ..........................................B.....................................
1. 3 ..........................................BB....................................
1. 4 ..........................................BB....................................
1. 5 ..........................................BB....................................
1. 6 ..........................................B.....................................
1. 7 ..........................................BB....................................
1. 8 ..........................................BB....................................
1. 9 ..........................................BB....................................
1.10 ..........................................BB....................................
1.11 ..........................................BB....................................
1.12 ..........................................BB.................................B..
1.13 ..........................................BB....................................
1.14 ..........................................BB....................................
1.15 ..........................................BB....................................
1.16 ..........................................BB....................................
1.17 ...XXXXX.XXX.XXX..XXX..XXX................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 2761/2880 (95%)
Missing sectors: 86/2880 (2%)
Bad sectors: 33/2880 (1%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test3.img
test3.img: PC formatted floppy with no filesystem

next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test4.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 .............................................................................B..
0.17 ........XXX.........................XXX........................X....XXXXXXXXXXXX
1. 0 ................................................................................
1. 1 .........X......................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
1.11 ................................................................................
1.12 ..............................................................X.................
1.13 ................................................................................
1.14 ................................................................................
1.15 ................................................................................
1.16 ................................................................................
1.17 ....XX.XXX........................X.XXX.......................XXXXXXXXXXXXXXXXXX
Good sectors: 2831/2880 (98%)
Missing sectors: 48/2880 (1%)
Bad sectors: 1/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test4.img
test4.img: PC formatted floppy with no filesystem

next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test5.img
[..]
H.SS Tracks --->
0. 0 .................BB.......BB.BB..........BB.....................................
0. 1 .............................BB..........BB.....................................
0. 2 ..........................................B.....................................
0. 3 ................................................................................
0. 4 ..........................................B.....................................
0. 5 ..............................B..........BB.....................................
0. 6 .........................................BB.....................................
0. 7 .................B........BB..B..........BB.....................................
0. 8 ..........................BB.BB..........BB.....................................
0. 9 .................BB.......BB.BB..........BB.....................................
0.10 ..................B........B.BB..........BB.....................................
0.11 .........................................BB.....................................
0.12 .........................................BB.....................................
0.13 .........................................BB.....................................
0.14 .........................................BB.....................................
0.15 .................B........BB.BB..........BB.....................................
0.16 ..........................BB.BB..........BB.....................................
0.17 .................XX..X..XXXX.XX.....XX...XX..................................XXX
1. 0 ...............B.B........BB.B........B..BBB....................................
1. 1 ..........................BB.B........B..BBB....................................
1. 2 ..........................BB..........B..BBB....................................
1. 3 ......................................B.........................................
1. 4 ......................................B..BBB....................................
1. 5 ...........................B.B.......BB..BBB....................................
1. 6 ..........................BB.B........B..BBB....................................
1. 7 .................B........BB.B.......BB..BBB....................................
1. 8 .................B........BB.B........B..BBB....................................
1. 9 ...............B.B........BB.B........B..BBB....................................
1.10 .................B........BB.B........B..BBB...................................B
1.11 ..........................BB..........B..BBB....................................
1.12 ..........................BB.B........B..BBB....................................
1.13 ..........................BB.B........B..BBB....................................
1.14 ..........................BB.B........B..BBB....................................
1.15 ...............B.B........BB.B........B..BBB....................................
1.16 ...............B.B........BB.B........B..BBB....................................
1.17 .............X.X.X....X.X.XX.X......XXX..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 2627/2880 (91%)
Missing sectors: 66/2880 (2%)
Bad sectors: 187/2880 (6%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test5.img
test5.img: PC formatted floppy with no filesystem

next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test6.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ...................................X............................................
0. 7 .................BB.............................................................
0. 8 .................BB.............................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ............X.X..XX..XXXXXXXXXXXXXXXXXXXXXXX....................................
1. 0 .................B..............................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 .........................................B......................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................BB..............................................................
1. 8 ................BB........................B.....................................
1. 9 ................BB..............................................................
1.10 ......................................B.........................................
1.11 ...........................................B....................................
1.12 ................................................................................
1.13 ..........................................BB....................................
1.14 ................................................................................
1.15 ................BB..............................................................
1.16 ................................................................................
1.17 .....X.X.X.XXXX.XX..XXXXXXXXXXXXXXXXXXXXXXXX....................................
Good sectors: 2800/2880 (97%)
Missing sectors: 61/2880 (2%)
Bad sectors: 19/2880 (0%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test6.img
test6.img: PC formatted floppy with no filesystem

next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test7.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ...........B....................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ................................................................................
0.15 ................................................................................
0.16 .........................................B......................................
0.17 ........XXXX..XX..XXXX.XXXXXXXXXXXXXXXXXXXXX.......XXXXXXXXXXXXX.....XXXXXXXXXXX
1. 0 .......................................B.BBB....................................
1. 1 ................................................................................
1. 2 ........................................BB.B....................................
1. 3 ................................................................................
1. 4 .........................................BB.....................................
1. 5 ................................................................................
1. 6 ...........................................B....................................
1. 7 ..........B...............................B.....................................
1. 8 ........BBB..........................B...BBB....................................
1. 9 .......BB.B.........................B.B.BBBB....................................
1.10 ................................B..BB..BB.BB....................................
1.11 ...................................BB.BBBBBB....................................
1.12 .............................B.......BBB.BBB....................................
1.13 .............................BB.B..BBBBBBBBB....................................
1.14 ............................B...B...BB.BBBBB....................................
1.15 ..........B.................B....BBBBBBBBBBB....................................
1.16 ..........B...................B....BBBBBBBBB....................................
1.17 ..X.X..XXXX.XXXX.XXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 2656/2880 (92%)
Missing sectors: 127/2880 (4%)
Bad sectors: 97/2880 (3%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test7.img
test7.img: PC formatted floppy with no filesystem

next

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output test8.img
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 .....X..........................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ...X............................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
0. 9 ................................................................................
0.10 ................................................................................
0.11 ................................................................................
0.12 ................................................................................
0.13 ................................................................................
0.14 ....B...........................................................................
0.15 ................................................................................
0.16 ................................................................................
0.17 ..XX..X.XX.XX.XX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1. 0 ...........................................X....................................
1. 1 ..........B..............................B.X....................................
1. 2 ........................................BBBX....................................
1. 3 ..B........................................X....................................
1. 4 .........................................BBX....................................
1. 5 ...........................................X....................................
1. 6 ........................................B.BX....................................
1. 7 ...........................................X....................................
1. 8 ...........................B.............BBX....................................
1. 9 ..B...B....................................X....................................
1.10 ...B..B...........B......BB........BB.BBBBBX....................................
1.11 ..................B..B.BBBBB.....BBBBBBBBBBX....................................
1.12 ...................BBBBBBBBBBB..BBBBBBBBBBBX....................................
1.13 ..........B......BBB..BBBBBBB.BBBBBBBBBBBBBX....................................
1.14 .................BBBB...B.BBBBB..BBBBBBBBBBX............................B.......
1.15 ...X......BB.....B....B.BBBBB...B.BBBBBBBBBX....................................
1.16 .........X...........B.....BB.....BB..BBBBBX....................................
1.17 ..XX.XX.XXXX..X..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 2574/2880 (89%)
Missing sectors: 165/2880 (5%)
Bad sectors: 141/2880 (4%)
80 tracks, 2 heads, 18 sectors, 512 bytes per sector, 1440 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file test8.img
test8.img: PC formatted floppy with no filesystem

ok

2019-03-04: bb - testing - try with a DD floppy in the drive

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-rpm -s :d=1
Rotational period is 200 ms (300 rpm)

good. is it MAC format?

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readmac -s :d=1
Reading from: :d=1:s=0-1:t=0-79
[..]
H.SS Tracks --->
No sectors in output; skipping analysis
0 tracks, 0 heads, 0 sectors, 0 bytes per sector, 0 kB total

nope. IBM format?

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1
Reading from: :d=1:s=0-1:t=0-79
  0.0: 200 ms in 44800 bytes
       2.00 us clock; 12516 bytes encoded; 18 records
       9 sectors;
       logical track 0.0; 4608 bytes decoded.
  0.1: 200 ms in 44608 bytes
       2.00 us clock; 12521 bytes encoded; 18 records
       9 sectors;
       logical track 0.1; 4608 bytes decoded.
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................................
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
Good sectors: 1440/1440 (100%)
Missing sectors: 0/1440 (0%)
Bad sectors: 0/1440 (0%)
80 tracks, 2 heads, 9 sectors, 512 bytes per sector, 720 kB total

looks promising

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ibm.img
ibm.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "IBM  5.0", sectors/cluster 2, root entries 112, sectors 1440 (volumes <=32 MB) , Media descriptor 0xf9, sectors/FAT 3, sectors/track 9, serial number 0x2b5613db, unlabeled, FAT (12 bit), followed by FAT

yes, working Try the next floppy

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ibm2.img
[..]
Good sectors: 1440/1440 (100%)
Missing sectors: 0/1440 (0%)
Bad sectors: 0/1440 (0%)
80 tracks, 2 heads, 9 sectors, 512 bytes per sector, 720 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ibm2.img
ibm2.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "IBM  5.0", sectors/cluster 2, root entries 112, sectors 1440 (volumes <=32 MB) , Media descriptor 0xf9, sectors/FAT 3, sectors/track 9, serial number 0x236910f0, unlabeled, FAT (12 bit)

ok, try floppy number three

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ ../.obj/fe-readibm -s :d=1 --output ibm3.img
[..]
 79.0: 200 ms in 37952 bytes
       2.04 us clock; 12264 bytes encoded; 18 records
       8 sectors;
       logical track 79.0; 4096 bytes decoded.
[..]
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ...............................................................................X
0. 7 ................................................................................
0. 8 ................................................................................
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
Good sectors: 1439/1440 (99%)
Missing sectors: 1/1440 (0%)
Bad sectors: 0/1440 (0%)
80 tracks, 2 heads, 9 sectors, 512 bytes per sector, 720 kB total

check

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine/tmp$ file ibm3.img
ibm3.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "IBM  5.0", sectors/cluster 2, root entries 112, sectors 1440 (volumes <=32 MB) , Media descriptor 0xf9, sectors/FAT 3, sectors/track 9, serial number 0xd3913e4, unlabeled, FAT (12 bit), followed by FAT

ok.

2019-03-04: bb - testing - ah, the floppy drive cable I use only has one connector and it is after the twist. So, drive 1 it is

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine$ .obj/fe-rpm -s :d=1
Rotational period is 166 ms (361.446 rpm)

ok, it works.

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine$ .obj/fe-testbulktransport
Transferred 1048576 bytes in 1170 (874 kB/s)

better than 600 kB/s - good.

2019-03-04: bb - permissions for the FluxEngine

tingo@kg-bsbox:~$ cat /etc/udev/rules.d/98-fluxengine.rules
# FluxEngine - rules to let users in 'dialout' group access the device
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="6e00", GROUP="dialout"

use udevadm to reload rules

tingo@kg-bsbox:~$ sudo udevadm control --reload

ok

2019-03-04: bb - testing -

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine$ .obj/fe-rpm
Error: cannot find the FluxEngine (is it plugged in?)

permissions problem, needs to be fixed

tingo@kg-bsbox:~/personal/projects/psoc/fluxengine$ sudo .obj/fe-rpm
Error: failed to receive command reply: Input/Output Error
tingo@kg-bsbox:~/personal/projects/psoc/fluxengine$ sudo .obj/fe-rpm
Error: failed to receive command reply: Input/Output Error

hmm, bad drive? Powered the drive from a 5V PSU - no change. No light in the drive LED.