💾 Archived View for cugi.ie › aminet › 1694487859.gmi captured on 2024-05-12 at 15:50:20. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-28)
-=-=-=-=-=-=-
Author: Gilles Pelletier Uploader: gilles pelletier live fr (Gilles Pelletier) Type: driver/other Version: 0.01 (11-Sep-2023) Requires: ANAIIS / Sirion Architecture: m68k-amigaos Date: 2023-09-11 Readme: http://aminet.net/driver/other/anaiis_xmass.readme Downloads: 1
http://aminet.net/driver/other/anaiis_xmass.lha
Introduction
~~~~~~~~~~~~
Proof of concept, an educational way to approach a difficult subject:
Why my USB stick doesn't want to work ?
Sample program to access an USB mass storage device through libusb on Linux
based on the work of Hiroka Ihara
https://github.com/ihr486/libusb-msdbot
Compiler needed
~~~~~~~~~~~~~~~
gcc (ADE) and sasc 6.58
ADE can be found here https://aminet.net/package/dev/gcc/ADE
The files
~~~~~~~~~
main.c the main program
usb_device.h
usb_device.c how to access to usb device, adapted to the ANAIIS/Sirion stack
mass_storage.h
mass_storage.c some handy functions to manage the bulk only protocol
and other files
config.h
args.h
args.c Amiga specific, CLI Workbench icon parameters
Future
~~~~~~
- get sense on error.
- reset recovery and clear feature on error, before retrying.
- read RDB or MBR to detect the filesystem to use.
Steps
~~~~~
V0.01 03-Sep-2023 basic checks
02-Sep-2023 gcc version
01-Sep-2023 CLI/WB arguments
31-Jul-2023 Adapt libusb code to ANAIIS
Contact address
~~~~~~~~~~~~~~~
Any mail, comments, suggestions, documentations are welcome!
Please send a mail with the title "ANAIIS" at the following mail address
gilles dot pelletier at live dot fr
Many thanks.
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME ---------- ----------- ------- ------- ------ ---------- ------------ ---------- [unknown] 859 1572 54.6% -lh5- 3f68 Sep 11 21:35 Anaiis_functions/xmass/anaiis_xmass.readme [unknown] 480 1200 40.0% -lh5- 266d Sep 11 20:31 Anaiis_functions/xmass/args.c [unknown] 267 482 55.4% -lh5- 4982 Sep 11 20:31 Anaiis_functions/xmass/args.c.info [unknown] 45 45 100.0% -lh0- 363d Sep 11 20:31 Anaiis_functions/xmass/args.h [unknown] 221 482 45.9% -lh5- 83b8 Sep 11 20:31 Anaiis_functions/xmass/args.h.info [unknown] 267 482 55.4% -lh5- 4982 Sep 11 20:31 Anaiis_functions/xmass/args.info [unknown] 70 115 60.9% -lh5- fc64 Sep 11 20:31 Anaiis_functions/xmass/config.h [unknown] 221 482 45.9% -lh5- 83b8 Sep 11 20:31 Anaiis_functions/xmass/config.h.info [unknown] 269 628 42.8% -lh5- 5b8f Sep 11 20:31 Anaiis_functions/xmass/gcc.info [unknown] 256 628 40.8% -lh5- 958c Sep 11 20:31 Anaiis_functions/xmass/gcc/bin.info [unknown] 40 512 7.8% -lh5- aad1 Sep 11 21:01 Anaiis_functions/xmass/gcc/bin/dead-beef_mbr.bin [unknown] 9702 17808 54.5% -lh5- 833f Sep 11 21:00 Anaiis_functions/xmass/gcc/bin/xmass [unknown] 5 5 100.0% -lh0- be68 Sep 11 20:31 Anaiis_functions/xmass/gcc/build [unknown] 482 834 57.8% -lh5- c94b Sep 11 20:31 Anaiis_functions/xmass/gcc/Build.info [unknown] 250 819 30.5% -lh5- 057f Sep 11 20:50 Anaiis_functions/xmass/gcc/makefile [unknown] 197 834 23.6% -lh5- 9141 Sep 11 20:31 Anaiis_functions/xmass/gcc/makefile.info [unknown] 259 628 41.2% -lh5- 127b Sep 11 20:31 Anaiis_functions/xmass/gcc/obj.info [unknown] 415 657 63.2% -lh5- 86fd Sep 11 21:00 Anaiis_functions/xmass/gcc/obj/args.o [unknown] 1154 2506 46.0% -lh5- a8ef Sep 11 21:00 Anaiis_functions/xmass/gcc/obj/main.o [unknown] 1259 2923 43.1% -lh5- 8b4a Sep 11 21:00 Anaiis_functions/xmass/gcc/obj/mass_storage.o [unknown] 2820 5900 47.8% -lh5- 0646 Sep 11 21:00 Anaiis_functions/xmass/gcc/obj/usb_device.o [unknown] 252 628 40.1% -lh5- 6ff8 Sep 11 20:31 Anaiis_functions/xmass/gcc/res.info [unknown] 257 628 40.9% -lh5- 6afc Sep 11 20:31 Anaiis_functions/xmass/include.info [unknown] 153 266 57.5% -lh5- 8ef7 Sep 11 20:31 Anaiis_functions/xmass/include/clib/usbfd_protos.h [unknown] 270 869 31.1% -lh5- 968f Sep 11 20:31 Anaiis_functions/xmass/include/clib/usbhcd_protos.h [unknown] 348 732 47.5% -lh5- 9ca1 Sep 11 20:31 Anaiis_functions/xmass/include/clib/usbresource_protos.h [unknown] 996 5749 17.3% -lh5- 578e Sep 11 20:31 Anaiis_functions/xmass/include/clib/usbsys_protos.h [unknown] 1647 10034 16.4% -lh5- 2d6c Sep 11 20:31 Anaiis_functions/xmass/include/inline/usbsys.h [unknown] 307 784 39.2% -lh5- fa72 Sep 11 20:31 Anaiis_functions/xmass/include/pragmas/usbfd_pragmas.h [unknown] 455 1677 27.1% -lh5- 4e4e Sep 11 20:31 Anaiis_functions/xmass/include/pragmas/usbhcd_pragmas.h [unknown] 387 1381 28.0% -lh5- 13be Sep 11 20:31 Anaiis_functions/xmass/include/pragmas/usbresource_pragmas.h [unknown] 1199 6858 17.5% -lh5- 67a8 Sep 11 20:31 Anaiis_functions/xmass/include/pragmas/usbsys_pragmas.h [unknown] 487 1482 32.9% -lh5- 9caf Sep 11 20:31 Anaiis_functions/xmass/include/proto/usbfd.h [unknown] 517 1563 33.1% -lh5- 4907 Sep 11 20:31 Anaiis_functions/xmass/include/proto/usbhcd.h [unknown] 542 1710 31.7% -lh5- 6bf1 Sep 11 20:31 Anaiis_functions/xmass/include/proto/usbresource.h [unknown] 492 1501 32.8% -lh5- 965f Sep 11 20:31 Anaiis_functions/xmass/include/proto/usbsys.h [unknown] 187 404 46.3% -lh5- bb81 Sep 11 20:31 Anaiis_functions/xmass/include/readme [unknown] 473 1099 43.0% -lh5- 1697 Sep 11 20:31 Anaiis_functions/xmass/include/usb/devclasses.h [unknown] 2000 6157 32.5% -lh5- 90da Sep 11 20:31 Anaiis_functions/xmass/include/usb/hub.h [unknown] 5330 18860 28.3% -lh5- c9b5 Sep 11 20:31 Anaiis_functions/xmass/include/usb/system.h [unknown] 2603 8294 31.4% -lh5- 951d Sep 11 20:31 Anaiis_functions/xmass/include/usb/usb.h [unknown] 637 1714 37.2% -lh5- f031 Sep 11 20:31 Anaiis_functions/xmass/include/usb/usbtags.h [unknown] 1074 3927 27.3% -lh5- bd00 Sep 11 20:31 Anaiis_functions/xmass/main.c [unknown] 267 482 55.4% -lh5- 4982 Sep 11 20:31 Anaiis_functions/xmass/main.c.info [unknown] 1201 5044 23.8% -lh5- 8b0e Sep 11 20:31 Anaiis_functions/xmass/mass_storage.c [unknown] 265 482 55.0% -lh5- 0ea0 Sep 11 20:31 Anaiis_functions/xmass/mass_storage.c.info [unknown] 387 892 43.4% -lh5- 3c40 Sep 11 20:31 Anaiis_functions/xmass/mass_storage.h [unknown] 220 482 45.6% -lh5- fa41 Sep 11 20:31 Anaiis_functions/xmass/mass_storage.h.info [unknown] 269 628 42.8% -lh5- 5b8f Sep 11 20:31 Anaiis_functions/xmass/sas.info [unknown] 271 628 43.2% -lh5- 3296 Sep 11 20:31 Anaiis_functions/xmass/sas/bin.info [unknown] 9926 16092 61.7% -lh5- a3f0 Sep 11 20:41 Anaiis_functions/xmass/sas/bin/xmass [unknown] 386 831 46.5% -lh5- 0551 Sep 11 20:31 Anaiis_functions/xmass/sas/bin/xmass.info [unknown] 491 837 58.7% -lh5- 6e53 Sep 11 20:31 Anaiis_functions/xmass/sas/Build.info [unknown] 1711 2632 65.0% -lh5- a81a Sep 11 20:31 Anaiis_functions/xmass/sas/Debug [unknown] 363 822 44.2% -lh5- 24e5 Sep 11 20:31 Anaiis_functions/xmass/sas/Debug.info [unknown] 536 834 64.3% -lh5- 4a5c Sep 11 20:31 Anaiis_functions/xmass/sas/Edit.info [unknown] 439 838 52.4% -lh5- 1c20 Sep 11 20:31 Anaiis_functions/xmass/sas/Find.info [unknown] 364 977 37.3% -lh5- 2c90 Sep 11 20:31 Anaiis_functions/xmass/sas/makefile [unknown] 197 834 23.6% -lh5- 9141 Sep 11 20:31 Anaiis_functions/xmass/sas/makefile.info [unknown] 271 628 43.2% -lh5- 018e Sep 11 20:31 Anaiis_functions/xmass/sas/obj.info [unknown] 406 572 71.0% -lh5- 4d36 Sep 11 20:31 Anaiis_functions/xmass/sas/obj/args.o [unknown] 1097 1892 58.0% -lh5- 0369 Sep 11 20:31 Anaiis_functions/xmass/sas/obj/main.o [unknown] 1302 2484 52.4% -lh5- ea22 Sep 11 20:31 Anaiis_functions/xmass/sas/obj/mass_storage.o [unknown] 2148 3728 57.6% -lh5- f390 Sep 11 20:31 Anaiis_functions/xmass/sas/obj/usb_device.o [unknown] 445 2950 15.1% -lh5- 8fc0 Sep 11 20:31 Anaiis_functions/xmass/sas/SCoptions.info [unknown] 4669 18907 24.7% -lh5- 8558 Sep 11 20:31 Anaiis_functions/xmass/usb_device.c [unknown] 266 482 55.2% -lh5- ae3e Sep 11 20:31 Anaiis_functions/xmass/usb_device.c.info [unknown] 285 612 46.6% -lh5- 9bb4 Sep 11 20:31 Anaiis_functions/xmass/usb_device.h [unknown] 220 482 45.6% -lh5- 9b16 Sep 11 20:31 Anaiis_functions/xmass/usb_device.h.info ---------- ----------- ------- ------- ------ ---------- ------------ ---------- Total 69 files 68553 181931 37.7% Sep 12 03:04
Aminet © 1992-2023 Urban Müller and the Aminet team. Aminet contact address: <aminet aminet net>