OpenCBM / nibtools

git mirror of nibtools (https://c64preservation.com/dp.php?pg=nibtools)
18 stars 10 forks source link

libusb_error_io #1

Open pc-bastler opened 3 years ago

pc-bastler commented 3 years ago

Hi,

I am experiencing problems using the nibtools. On every operation (reading or writing) I get this error:

USB error in xum1541_wait_status: LIBUSB_ERROR_IO USB error in xum1541_ioctl cmd: LIBUSB_ERROR_OTHER

I am running the tools with macOS (Big Sur 11.4) on an intel Mac. I am Using a Teensy-based XUM1541 interface with a 1570 floppy. I have the latest openCBM-Package installed, which works fine.

I installed nibtools with this guide:

brew install cc65 svn co git@github.com:OpenCBM/nibtools.git cd nibtools.git/trunk make -f GNU/Makefile linux cp nibread /usr/local/bin cp nibwrite /usr/local/bin cp nibconv /usr/local/bin cp nibscan /usr/local/bin cp nibrepair /usr/local/bin cp nibsrqtest /usr/local/bin

Before I get the error following infos show up:

nibread - Commodore 1541/1571 disk image nibbler (C) Peter Rittwage http://c64preservation.com Built Jun 8 2021 22:15:35

Drive Version: 73,CBM DOS V3.0 1570,00,00 Drive type: 1571 Bumping... Initializing Sending 1571 SRQ support code... Uploading floppy-side code ($0454 bytes, $300-$754)...done. Starting custom drive code...Started! Testing communication...done. Passed basic communication test.

The drive starts spinning and stays spinning until I do a cbmctrl reset.

spiro-trikaliotis commented 3 years ago

Answers on https://www.forum64.de/index.php?thread/115490-nibtools-unter-macos/

classilla commented 1 year ago

I'm getting something similar on Fedora Linux 37, though it doesn't even get that far. This is a ZoomFloppy that works fine for regular d64copy.

Using device #9
Drive Version: 73,CBM DOS V3.0 1571,00,00
Drive type: 1571
Bumping...
Initializing
Sending 1571 SRQ support code...
Uploading floppy-side code ($0454 bytes, $300-$754)...done.
USB error in xum1541_wait_status: LIBUSB_ERROR_PIPE
USB error in xum1541_ioctl cmd: LIBUSB_ERROR_IO
spiro-trikaliotis commented 1 year ago

nibtools has a tool called nibsrqtest. Did you try that? What is its output?

classilla commented 1 year ago

Not too helpful, I'm afraid (I modified nibsrqtest to use device 9, since that's where my 1571 is):

% cbmctrl dir 9
previous command was interrupted, resetting
0 ."kimplement      " cp 2a
46   "kim"              prg   
[...]
558 blocks free.             
00, ok,00,00
% ./nibsrqtest

nibsrqtest - tests SRQ communication code (with 1571 drive)
(C) Peter Rittwage
http://c64preservation.com
Built Apr 28 2023 22:56:38

previous command was interrupted, resetting
Initializing
Sending 1571 SRQ test code...
Uploading floppy-side code ($01e7 bytes, $300-$4e7)...done.
USB error in xum1541_wait_status: LIBUSB_ERROR_PIPE
Starting custom drive code...%