AminetAminet
Search:
85911 packages online
• About
• Recent
• Browse
• Search
• Upload
• Setup
• Services

disk/misc/WBFFcontrol.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Control a FlashFloppy Gotek from AmigaOS
Author:Alvaro M & Claude (Anthropic)
Uploader:almoma153 gmail com
Type:disk/misc
Version:1.5
Architecture:m68k-amigaos >= 2.0.4
Date:2026-11-21
Requires:Gotek with FlashFloppy firmware, AmigaOS 2.04+
Distribution:Aminet
Download:disk/misc/WBFFcontrol.lha - View contents
Readme:disk/misc/WBFFcontrol.readme
Downloads:2

==========================================================================
 WBFFcontrol 1.5 / FFcontrol 1.5
==========================================================================

  ESPAÑOL (English below)

WBFFcontrol (ventana de Workbench) y FFcontrol (orden de Shell) controlan
un Gotek con FlashFloppy desde el propio Amiga, sin tocar sus botones:

  * ver el contenido del pendrive del Gotek, con sus carpetas
  * montar imágenes (modo nativo) o asignarlas a slots (modo HxC),
    una o una lista entera en slots seguidos
  * ver los slots de FlashFloppy, con el montado en negrita
  * copiar archivos del USB al Amiga y del Amiga al USB
  * borrar archivos y carpetas (con todo su contenido) y crear carpetas
  * diagnóstico del Gotek
  * español e inglés (automático según el idioma del sistema)

Las dos versiones hacen lo mismo: comparten todo el código de trabajo.
La guía WBFFcontrol.guide explica el uso con detalle.

¡AVISO! Copiar al USB, borrar y crear carpetas ESCRIBEN en el pendrive.
Son operaciones experimentales: si se interrumpen o algo falla, el pendrive
puede quedar dañado. Haz antes una copia de seguridad del pendrive en un
PC, y antes de que el Amiga escriba en el disco montado en el Gotek,
desconecta y vuelve a conectar su USB.

Requisitos
  * AmigaOS 2.04 o superior, de 68000 a PiStorm/Emu68.
  * ReAction (AmigaOS 3.2, 3.5, 3.9 o ClassAct) para la ventana de dos
    paneles; sin él se usa una ventana GadTools más sencilla.
  * Gotek con FlashFloppy, interfaz Shugart (lo normal en un Amiga), con
    "max-cyl = 255" en FF.CFG (es el valor por defecto).
  * Pendrive FAT12, FAT16 o FAT32 (FlashFloppy no admite exFAT).

Instalación
  Copia el cajón donde quieras. FFcontrol puede ir a C: si quieres
  usarlo desde cualquier sitio. La configuración (unidad e idioma) se
  guarda sola en ENVARC:FFcontrol.prefs; FFcontrol usa la misma unidad
  pero habla en inglés salvo que se le diga LANG=ES.

Tooltypes de WBFFcontrol (también como argumentos desde el Shell)
  DRIVE=DF1:   unidad del Gotek
  LANG=ES      idioma: ES, EN o AUTO
  DEBUG        escribe un registro de todo en RAM:WBFFcontrol.log
               (sin DEBUG no se escribe ningún registro)
  El icono los trae desactivados entre paréntesis como ejemplo.

Hecho por una IA
  Este programa lo ha escrito Claude, una inteligencia artificial de
  Anthropic, mediante "vibe coding": Alvaro M propuso la idea, decidió qué
  debía hacer, lo probó en su Amiga real y describió los fallos; Claude
  escribió todo el código, las pruebas y esta documentación.

  ENGLISH

WBFFcontrol (Workbench window) and FFcontrol (Shell command) control a
FlashFloppy Gotek from the Amiga itself, without touching its buttons:

  * browse the Gotek's USB stick, folders included
  * mount images (native mode) or assign them to slots (HxC mode),
    one or a whole list into consecutive slots
  * see FlashFloppy's slots, the mounted one in bold
  * copy files from USB to the Amiga and from the Amiga to USB
  * delete files and folders (with everything in them), create folders
  * Gotek diagnostics
  * Spanish and English (automatic, from the system language)

Both programs do the same: they share all the working code. The guide
WBFFcontrol.guide explains everything in detail.

WARNING! Copying to USB, deleting and creating folders WRITE to the stick.
They are experimental: if interrupted, or if something fails, the stick
may be damaged. Back it up on a PC first, and before the Amiga writes to
the disk mounted in the Gotek, unplug and re-plug its USB stick.

Requirements
  * AmigaOS 2.04 or later, 68000 up to PiStorm/Emu68.
  * ReAction (AmigaOS 3.2, 3.5, 3.9 or ClassAct) for the two-pane window;
    without it a simpler GadTools window is used.
  * Gotek with FlashFloppy, Shugart interface (the usual on an Amiga),
    "max-cyl = 255" in FF.CFG (the default).
  * FAT12, FAT16 or FAT32 USB stick (FlashFloppy does not support exFAT).

Installation
  Copy the drawer anywhere. FFcontrol may go to C: to use it from
  anywhere. Settings (drive and language) are saved automatically in
  ENVARC:FFcontrol.prefs; FFcontrol uses the same drive but speaks
  English unless told LANG=ES.

WBFFcontrol tooltypes (also as Shell arguments)
  DRIVE=DF1:   the Gotek's drive
  LANG=EN      language: ES, EN or AUTO
  DEBUG        log everything to RAM:WBFFcontrol.log
               (without DEBUG no log is written)
  The icon has them disabled in brackets as examples.

Made by an AI
  This program was written by Claude, an artificial intelligence by
  Anthropic, by "vibe coding": Alvaro M had the idea, decided what it
  should do, tested it on his real Amiga and reported the problems;
  Claude wrote all the code, the tests and this documentation.

==========================================================================
 History / Historia
==========================================================================

1.5 (10.10.2026)
  * Project menu: About, Snapshot window (size and position saved in
    ENVARC:FFcontrol.prefs) and Quit. The version is in the window
    title. / Menú Proyecto: Acerca de, Guardar tamaño y posición de la
    ventana y Salir. La versión aparece en el título.

1.4 (10.10.2026)
  * Empty several selected slots at once; if the mounted one is among
    them it is unmounted (the Gotek goes to slot 0: "(Empty)", or the
    HxC selector if AUTOBOOT.HFE exists), with a clear warning.
    FFcontrol: CLEARSLOT=3,5,8-10. / Vaciar varios slots seleccionados a
    la vez; si incluye el montado, se desmonta (el Gotek pasa al slot 0),
    con un aviso claro.

1.3 (09.10.2026)
  * Delete: the mounted image is asked to the Gotek itself right before
    deleting; neither it nor a folder containing it can be deleted. /
    Borrar: lo montado se pregunta al Gotek en el momento; no se borra la
    imagen montada ni una carpeta que la contenga.
  * HxC: several images selected in the file list are assigned to
    consecutive slots from the active one, with a warning listing the
    slots in use that get replaced (and the mounted one). FFcontrol:
    SLOT=n ASSIGN p1 p2 ... / HxC: varias imágenes seleccionadas se
    asignan a slots seguidos desde el activo, avisando de los slots
    ocupados que se reemplazan (y del montado).

1.2 (09.10.2026)
  * Removed the "Assign to slot >" button: "Mount / Enter" already does
    it. / Quitado el botón "Asignar al slot >": "Montar / Entrar" ya lo
    hace.
  * New DEBUG tooltype/argument: RAM:WBFFcontrol.log is only written with
    it. / Nuevo tooltype DEBUG: el registro solo se escribe con él.
  * FFcontrol speaks English by default (LANG=ES for Spanish). / FFcontrol
    habla en inglés por defecto (LANG=ES para español).

1.1 (09.10.2026)
  * The "Reading the USB stick... KB" counter restarts with every
    operation (it kept growing). / El contador de KB empieza de cero en
    cada operación (antes solo crecía).
  * A harmless "priming" write at the start of every session: on some
    Amigas the first disk write DMA does not start (seen in Alvaro M's
    logs); now that one is a dummy. Shorter waits before a DMA retry. /
    Escritura de cebado inofensiva al empezar cada sesión y esperas más
    cortas antes de reintentar una DMA.
  * Clearer re-plug advice, shown once per session. / Aviso de reconectar
    el USB más preciso, una vez por sesión.

1.0 (09.10.2026)  First release / primera versión.
  * WBFFcontrol: ReAction window with two panes (USB stick / slots), the
    mounted slot in bold; GadTools fallback. Spanish/English.
  * FFcontrol: the same operations from the Shell.
  * New: delete files and folders (recursive), create folders.
  * New: safety checks (never deletes FlashFloppy's own files, the mounted
    image or FlashFloppy's current folder; empties HxC slots that pointed
    to deleted files). FSInfo free count kept exact.
  * Faster USB access: 21-sector (10.5 KB) windows, one track read per
    window, right-sized reads, 1 ms steps, fast software resync.

Development builds before 1.0 (FFSel 1.0-1.8, FFSelect 1.0-1.9), tested
by Alvaro M on real hardware:
  * Direct Access protocol, Shell tool; raw reads with software sync
    (fixed reads on Alvaro M's Amiga); DIAG; detection of "no image
    mounted"; DSKLEN double write separated by a chipset read (fixed
    occasional DMA stalls); HxC slot support (V1/V2); FAT reader and
    writer; copying both ways; ReAction GUI; speed from ~3.5 to ~20 KB/s
    (calculated).

==========================================================================
 Sources and credits / Fuentes y agradecimientos
==========================================================================

  * FlashFloppy by Keir Fraser - https://github.com/keirf/flashfloppy
    (public domain / Unlicense). Everything about talking to the Gotek
    comes from reading its source: the Direct Access protocol
    (src/image/da.c, inc/da.h), the HxC compatibility mode and the
    HXCSDFE.CFG slot format (inc/hxc.h, src/main.c), native navigation
    rules, IMAGE_A.CFG, valid image types, the D-A track layout. The MFM
    and CRC tables in the test simulator (test/ff_tables.h) are copied
    verbatim from src/image/mfm.c and src/crc.c, and the simulator ports
    FlashFloppy's track generation and write parsing.
  * HxC Floppy Emulator by Jean-François Del Nero - https://hxc2001.com
    - creator of the Direct Access idea and the HXCSDFE.CFG format that
    FlashFloppy implements.
  * FatFs by ChaN - http://elm-chan.org/fsw/ff/ - FlashFloppy's file
    system library; its file-name rules (long names in CP437, 8.3 names
    with NT case flags) are reproduced so names match exactly. No FatFs
    code is copied.
  * Microsoft's FAT specification (FAT12/16/32, long names, FSInfo) and
    IBM code page 437, for the FAT reader/writer.
  * Commodore's Amiga Hardware Reference Manual and AmigaOS autodocs
    (Paula disk DMA, CIA drive lines, disk.resource, trackdisk.device,
    GadTools, ReAction classes).
  * Toolchain: m68k-amigaos-gcc by Stefan "Bebbo" Franke, prebuilt by
    AmigaPorts - https://github.com/AmigaPorts/m68k-amigaos-gcc - (GCC
    16.2, libnix, AmigaOS 3.2 NDK headers by Hyperion Entertainment).
  * Testing on Linux: dosfstools (mkfs.vfat, fsck.fat), mtools, and
    amitools/vamos by Christian Vogelgsang -
    https://github.com/cnvogelg/amitools
  * Idea, decisions and real-hardware testing: Alvaro M.
  * Code, tests and documentation: Claude (Anthropic).

Source code is included in src/ (Makefile, sources, test suite).

This is free and unencumbered software released into the public domain
(see the Unlicense, https://unlicense.org). The files copied from
FlashFloppy are public domain too.


Contents of disk/misc/WBFFcontrol.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Oct 10 16:52 WBFFcontrol/
-rwxr-xr-x     0/0       50690   89760  56.5% -lh5- 1bcb Oct 10 16:52 WBFFcontrol/FFcontrol
-rw-r--r--     0/0        4891   10990  44.5% -lh5- c293 Nov 20 10:31 WBFFcontrol/ReadMe
-rw-r--r--     0/0         690    1211  57.0% -lh5- f814 Oct 10 16:52 WBFFcontrol/Unlicense.txt
-rwxr-xr-x     0/0       63114  114640  55.1% -lh5- d30c Oct 10 16:52 WBFFcontrol/WBFFcontrol
-rw-r--r--     0/0       14417   36379  39.6% -lh5- 2ab7 Oct 10 16:52 WBFFcontrol/WBFFcontrol.guide
-rw-r--r--     0/0         138     254  54.3% -lh5- d72f Oct 10 16:52 WBFFcontrol/WBFFcontrol.guide.info
-rw-r--r--     0/0         154     361  42.7% -lh5- 3b15 Oct 10 16:52 WBFFcontrol/WBFFcontrol.info
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Oct 10 16:52 WBFFcontrol/src/
-rw-r--r--     0/0         583    1368  42.6% -lh5- 14bd Oct 10 16:52 WBFFcontrol/src/Makefile
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Oct 10 16:52 WBFFcontrol/src/src/
-rw-r--r--     0/0        2254    7149  31.5% -lh5- c9ea Oct 10 16:52 WBFFcontrol/src/src/da_proto.c
-rw-r--r--     0/0        1496    3328  45.0% -lh5- da8b Oct 10 16:52 WBFFcontrol/src/src/da_proto.h
-rw-r--r--     0/0       10902   37683  28.9% -lh5- e3a8 Oct 10 16:52 WBFFcontrol/src/src/fatdir.c
-rw-r--r--     0/0        1951    5137  38.0% -lh5- 9a86 Oct 10 16:52 WBFFcontrol/src/src/fatdir.h
-rw-r--r--     0/0        2495    7048  35.4% -lh5- 0885 Oct 10 16:52 WBFFcontrol/src/src/ffbrowse.c
-rw-r--r--     0/0         855    1766  48.4% -lh5- 4f49 Oct 10 16:52 WBFFcontrol/src/src/ffbrowse.h
-rw-r--r--     0/0        4940   15505  31.9% -lh5- ac87 Oct 10 16:52 WBFFcontrol/src/src/ffcontrol.c
-rw-r--r--     0/0        9931   30869  32.2% -lh5- e016 Oct 10 16:52 WBFFcontrol/src/src/ffhw.c
-rw-r--r--     0/0         989    2012  49.2% -lh5- 3523 Oct 10 16:52 WBFFcontrol/src/src/ffhw.h
-rw-r--r--     0/0        7551   30683  24.6% -lh5- 69d1 Oct 10 16:52 WBFFcontrol/src/src/ffops.c
-rw-r--r--     0/0        1516    3939  38.5% -lh5- f932 Oct 10 16:52 WBFFcontrol/src/src/ffops.h
-rw-r--r--     0/0        1800    6003  30.0% -lh5- 9998 Oct 10 16:52 WBFFcontrol/src/src/hxcslots.c
-rw-r--r--     0/0         963    2293  42.0% -lh5- 2d9e Oct 10 16:52 WBFFcontrol/src/src/hxcslots.h
-rw-r--r--     0/0         690    1511  45.7% -lh5- ab85 Oct 10 16:52 WBFFcontrol/src/src/msg.c
-rw-r--r--     0/0        3623    9549  37.9% -lh5- 0ea7 Oct 10 16:52 WBFFcontrol/src/src/msgs.h
-rw-r--r--     0/0        5178   13815  37.5% -lh5- e8b6 Oct 10 16:52 WBFFcontrol/src/src/msgs_ui.h
-rw-r--r--     0/0         947    2050  46.2% -lh5- 3e7b Oct 10 16:52 WBFFcontrol/src/src/ui.h
-rw-r--r--     0/0        3855   11818  32.6% -lh5- 6b69 Oct 10 16:52 WBFFcontrol/src/src/ui_gt.c
-rw-r--r--     0/0         645    1592  40.5% -lh5- 8bea Oct 10 16:52 WBFFcontrol/src/src/ui_menu.c
-rw-r--r--     0/0        4428   17102  25.9% -lh5- ef8b Oct 10 16:52 WBFFcontrol/src/src/ui_ra.c
-rw-r--r--     0/0         152     228  66.7% -lh5- 16d1 Oct 10 16:52 WBFFcontrol/src/src/version.h
-rw-r--r--     0/0        8680   28860  30.1% -lh5- 7acd Oct 10 16:52 WBFFcontrol/src/src/wbffcontrol.c
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Oct 10 16:52 WBFFcontrol/src/test/
-rwxr-xr-x     0/0         600    1042  57.6% -lh5- ba1d Oct 10 16:52 WBFFcontrol/src/test/crash_check.sh
-rw-r--r--     0/0        1122    2925  38.4% -lh5- 6f0d Oct 10 16:52 WBFFcontrol/src/test/fat_ops_test.c
-rw-r--r--     0/0        1702    3852  44.2% -lh5- a764 Oct 10 16:52 WBFFcontrol/src/test/fat_test.c
-rw-r--r--     0/0        2508    6599  38.0% -lh5- 73d8 Oct 10 16:52 WBFFcontrol/src/test/fat_write_test.c
-rw-r--r--     0/0        1589    4540  35.0% -lh5- 4f2e Oct 10 16:52 WBFFcontrol/src/test/ff_tables.h
-rwxr-xr-x     0/0         526    1302  40.4% -lh5- 097f Oct 10 16:52 WBFFcontrol/src/test/hxc_check.sh
-rw-r--r--     0/0        2702    8294  32.6% -lh5- 969e Oct 10 16:52 WBFFcontrol/src/test/hxc_test.c
-rw-r--r--     0/0         561    1048  53.5% -lh5- 2b6c Oct 10 16:52 WBFFcontrol/src/test/mkhxc.py
-rwxr-xr-x     0/0        1031    2211  46.6% -lh5- 8c6d Oct 10 16:52 WBFFcontrol/src/test/mkimages.sh
-rw-r--r--     0/0         432     698  61.9% -lh5- 28b7 Oct 10 16:52 WBFFcontrol/src/test/mode_probe.c
-rwxr-xr-x     0/0         744    1857  40.1% -lh5- 1678 Oct 10 16:52 WBFFcontrol/src/test/mode_test.sh
-rwxr-xr-x     0/0         967    1934  50.0% -lh5- d38f Oct 10 16:52 WBFFcontrol/src/test/ops_check.sh
-rw-r--r--     0/0        6546   19808  33.0% -lh5- c659 Oct 10 16:52 WBFFcontrol/src/test/sim_test.c
-rwxr-xr-x     0/0         790    1593  49.6% -lh5- 7656 Oct 10 16:52 WBFFcontrol/src/test/write_check.sh
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Oct 10 16:52 WBFFcontrol/src/tools/
-rw-r--r--     0/0        1293    3799  34.0% -lh5- fbd6 Oct 10 16:52 WBFFcontrol/src/tools/mkicon.py
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        50 files  233631  556405  42.0%            Nov 21 01:17
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>