Ok, that's interesting. This seems at least to be related to a problem
a handful of other people have reported (for example, "frank128", in
the "Trying to debug.." thread earlier on this list). Except for the
part that there's a period where it actually *does* work. Either the
others haven't noticed or yours is different.
> I figured a little bit out. If I hook the ZF up to my 1541 (which is turned on and has a floppy disk inserted), then plug it into my laptop,
It probably doesn't make a difference, but can you try first plugging
the ZF into your laptop and then connecting the 1541?
> [...] the LED flashes a couple times and the 1541 drive spins momentarily.
Are you talking about the LED of the ZF or the 1541? The LED on the ZF
shouldn't flash. It should be on for a short period after plugging it
in, then go and stay off until you issue a command. This is why this
isn't ok, either:
> Then there's a few seconds that the LED goes dark on the ZF before it lights up again.
Is this a new problem? If so, what changed? Or did you just acquire
the ZF? Or is it just the first time you try to use it on linux?
Could you check if dmesg reports anything unusual like the ZF getting
connected and disconnected in quick succession (without you actually
unplugging it)?
> I have both 0.1 and 1.0 installed. 0.1 was installed with libusb-dev, which I'm guessing is what cbmctrl was linked against when I built it from source. Don't know if that could be a contributing factor.
Is this on debian? I don't use it so I'm not sure what the -dev
package installs, but I doubt it's 0.1, more likely the 0.1
compatibility layer for 1.0. I'd normally think it should work, as the
Makefile should prefer 1.0 over 0.1 if both are installed.
*But*, what makes me suspicious: Did you create the logs the way I
told you, that is with *both* XUM1541_DEBUG *and* LIBUSB_DEBUG set?
Because if you did, that would indicate that it's indeed using 0.1, as
the logs you posted are missing the libusb debug output. You can check
which library is used with "strace cbmctrl status 8 |& grep
"openat.*libusb"". (I don't think your problem is related to the
libusb version, but who knows).
As you're apparently feeling comfortable compiling opencbm yourself:
Could you try the version from
https://github.com/thierer/OpenCBM/tree/set_configuration_fix and see
if it helps? (You don't need to *install* this version, but to test if
it has an effect, you have to make the "location" entry for xum1541 in
/etc/opencbm.conf point to the
"opencbm/lib/plugin/xum1541/libopencbm-xum1541.so" subdirectory of
where you compiled it).