zoomfloppy on linux system

538 views
Skip to first unread message

Brian Smith

unread,
Nov 21, 2015, 9:36:23 PM11/21/15
to ZoomFloppy Users
I just purchased a zoomfloppy board and I am tryng to get it running on my Linux system
Looking at the instructions posted
https://gareth.halfacree.co.uk/2014/12/installing-the-zoomfloppy-on-linux
I managed to get everything compiled
I plug the board in, blue LED comes on, and then turns off
getting this in a tail running on syslog

Nov 21 20:50:41 quaddy kernel: [1662823.648454] usb 1-4.5.5: new full-speed USB device number 24 using ehci_hcd
Nov 21 20:50:41 quaddy kernel: [1662823.742063] usb 1-4.5.5: New USB device found, idVendor=16d0, idProduct=0504
Nov 21 20:50:41 quaddy kernel: [1662823.742066] usb 1-4.5.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 21 20:50:41 quaddy kernel: [1662823.742069] usb 1-4.5.5: Product: xum1541 floppy adapter (ZOOMFLOPPY)
Nov 21 20:50:41 quaddy kernel: [1662823.742071] usb 1-4.5.5: Manufacturer: Nate Lawson and OpenCBM team
Nov 21 20:50:41 quaddy kernel: [1662823.742073] usb 1-4.5.5: SerialNumber: 000
Nov 21 20:50:41 quaddy mtp-probe: checking bus 1, device 24: "/sys/devices/pci0000:00/0000:00:02.1/usb1/1-4/1-4.5/1-4.5.5"
Nov 21 20:50:41 quaddy mtp-probe: bus: 1, device: 24 was not an MTP device

seems to be an issue with mtp-probe

a bit of googling and there does seem to be an issue here, buts lots of information nosie,

has anyone seen this before?

here is the 45-opencbm-parallel.rules
I am not too familiar with mtp-probe, but I suspect issue is here

ACTION!="add", GOTO="opencbm_plugin_xa1541_rules_end"

# xa1541/xm1541 parallel port driver
KERNEL=="cbm", GROUP="users", MODE="0664"

LABEL="opencbm_plugin_xa1541_rules_end"

SUBSYSTEM!="usb_device", ACTION!="add", MODE="0666", GOTO="opencbm_rules_end"
# zoom floppy
ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0504", GROUP="users", MODE="0666"
LABEL="opencbm_rules_end"


thanks
Brian

zoomf...@web.de

unread,
Nov 22, 2015, 7:20:36 AM11/22/15
to ZoomFloppy Users
Hi brian,

have running zoomfloppy on linux with opencbm and
partly (see my other tread) with nibtools.

attached here you will see what i have done to get it running
at opensuse 11.4 and opensuse 13.1:
mybe this will help you

====================================================
for the opensuse linux versions i used:

svn co https://github.com/cc65/cc65 cc65-git
git clone git://git.code.sf.net/p/opencbm/code opencbm-code
svn co https://c64preservation.com/svn/nibtools/trunk nibtools
at 28.10.2015
====================================================


installing (mybe not all is really used): svn git-core make cmake build kernel-symy kernel-devel xorgsgml-doctools sgmltool (da haengt der ganze textlive mist dran) libusb-compat-devel ncurses-devel autoconf automake checkinstal (eventuell interessant weil verfogt was installiert wurde mit makeinstall) gcc gcc-c++ gcc-fortran gcc-gji gcc-info gcc-java gcc-locale gcc-obj-c++ gcc-objc gccmakedep sgmltoolslite (da haengt makeinfo dran) makeinfo ==========================

copy to /home/simon/compiliert/c65-git go inside ./trunk make su make avail make some links to /usr/local/bin: ln -s /home/simon/compiliert/cc65-git/trunk/bin/ar65 /usr/local/bin/ar65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/ca65 /usr/local/bin/ca65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/cc65 /usr/local/bin/cc65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/cl65 /usr/local/bin/cl65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/co65 /usr/local/bin/co65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/da65 /usr/local/bin/da65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/grc65 /usr/local/bin/grc65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/ld65 /usr/local/bin/ld65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/od65 /usr/local/bin/od65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/sim65 /usr/local/bin/sim65 ln -s /home/simon/compiliert/cc65-git/trunk/bin/sp65 /usr/local/bin/sp65 this i have seen inside: .../braches/gh-pages/getting-started.html exit ============================================ copy to /home/simon/opencbm-git go inside ./opencbm make -f LINUX/Makefile su make -f LINUX/Makefile install make -f LINUX/Makefile install-all make install install-plugin-xum1541 <- did not work, so i did: make -f LINUX/Makefile install-plugin-xum1541 inside /etc theres now a file opencbm.conf
but still nothing is working. make the file /etc/udev/rules.d/45-opencbm-parallel.rules completley empty and write in: SUBSYSTEM!="usb_device", ACTION!="add", MODE="0666", GOTO="opencbm_rules_end" # zoom floppy ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0504", GROUP="users", MODE="0666" LABEL="opencbm_rules_end"
===================
now trying: there's the error:

cbmctrl detect cbmctrl: error while loading shared libraries: libopencbm.so.0: cannot open shared object file: No such file or directory su
solved with flush the libary cache with: ldconfig exit ================== no doc files are there:

make -f LINUX/Makefile doc su make -f LINUX/Makefile install-doc jetzt ist auch mit dem befehl info opencbm
now ok. ========================================================================================================== cbmctrl dir 8 cbmctrl detect d64copy --warp --retry-count=20 --error-map=on_errors --transfer=auto 8 "foo.d64" d64copy -w -r 20 -E on_errors -t auto 8 "foo5.d64" ========================================================================================================== for nibtools:
make -f GNU/Makefile linux make symlinks: /usr/local symlinks angelegt: nibconv nibread nibrepair nibscan nibsrqtest nibwrite

=================================
simon

Brian Smith

unread,
Nov 22, 2015, 10:31:09 AM11/22/15
to ZoomFloppy Users
Thanks Simon for the detailed response

I am stuck a bit before this I think, although not sure

I see the zoomfloppy board being recognized with
tail -f syslog
however the blue LED goes out right after this...what does this indicate?
-lack of power to the device (USB hub could not handle the current>)
-device not talking with computer
-some other error

now lsusb does not show the device
root@quaddy:/home/bnsmith/opencbm/opencbm# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0835:8500 Action Star Enterprise Co., Ltd
Bus 002 Device 002: ID 0557:8021 ATEN International Co., Ltd
Bus 001 Device 004: ID 0835:8501 Action Star Enterprise Co., Ltd
Bus 001 Device 005: ID 058f:9254 Alcor Micro Corp. Hub
Bus 001 Device 006: ID 0458:0101 KYE Systems Corp. (Mouse Systems) CueCat
Bus 001 Device 007: ID 0835:8500 Action Star Enterprise Co., Ltd
Bus 002 Device 003: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 001 Device 017: ID 2001:1a02 D-Link Corp.
Bus 001 Device 009: ID 0835:8502 Action Star Enterprise Co., Ltd
Bus 001 Device 010: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 027: ID 16d0:0504 GrauTec
root@quaddy:/home/bnsmith/opencbm/opencbm#

does mtp need to work for lsusb to show the device?

there is the mtp probe message which indicated a problem...still have not resolved that yet

-would this be a issue with the driver software?  Seems to be an issue before this though, note I did compile and follow pretty much what you indicated and I think it successfully managed this part

thanks
Brian

Brian Smith

unread,
Nov 22, 2015, 11:01:20 AM11/22/15
to ZoomFloppy Users
Slight correction
lsusb is finding the zoomfloppy under device GrauTec

lsusb -v

Bus 001 Device 029: ID 16d0:0504 GrauTec
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x16d0 GrauTec
  idProduct          0x0504
  bcdDevice            2.07
  iManufacturer           1 Nate Lawson and OpenCBM team
  iProduct                2 xum1541 floppy adapter (ZOOMFLOPPY)
  iSerial                 3 000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

Could that be causing an issue?

zoomf...@web.de

unread,
Nov 22, 2015, 2:53:09 PM11/22/15
to ZoomFloppy Users
Hi brian,

for me the grautec device looks ok, similar at my systems.
(not checkt your complete output.)

the led at zoomfloppy shows the datatransfer,. its normal
that this will switched off after initial going on.

taka a look to the file:
/etc/opencbm.conf and what is inside: ; ; This is a GENERATED FILE! - DO NOT EDIT! ; Modify the files in /etc/opencbm.conf.d/ instead, ; and execute 'opencbm_plugin_helper_tools rebuild'... ; [plugins] default=xum1541 [xa1541] location=/usr/local/lib/opencbm/plugin/libopencbm-xa1541.so [xu1541] location=/usr/local/lib/opencbm/plugin/libopencbm-xu1541.so [xum1541] location=/usr/local/lib/opencbm/plugin/libopencbm-xum1541.so
fix it if not like this.

take a look if the libaries are where they should. if they are there, and the system will not find,
do at promt > ldconfig

------------------- make shure that your "etc/udev/rules.d/45-opencbm-parallel.rules" looks as i described in my first answer, yours look completely
different!!!

at my systems i have to edit this file always by hand.
what output the command: cbmctrl dir 8
will show you?
simon

Alexander Oberhuber

unread,
Nov 22, 2015, 4:13:38 PM11/22/15
to zoomflop...@googlegroups.com
I see you have many devices plugged into your USB system.
Pro-tip: Remove as many other USB-devices as possible, but leave the
Zoomfloppy.

I know from experience that my USB-mouse dies as soon as I plug in my
USB-phone, a HTC Desire with Android 2.2.2.

Hope that tip helps....

Yours,
Alex


Brian Smith

unread,
Nov 22, 2015, 4:31:05 PM11/22/15
to ZoomFloppy Users
OK...well changed the 
"etc/udev/rules.d/45-opencbm-
parallel.rules"
to match, still seeing not an mtp device error

files look ok



bnsmith@quaddy:/etc$ more opencbm.conf

;
; This is a GENERATED FILE! - DO NOT EDIT!
; Modify the files in /etc/opencbm.conf.d/ instead,
; and execute 'opencbm_plugin_helper_tools rebuild'...
;

[plugins]
default=xum1541

[xa1541]
location=/usr/local/lib/opencbm/plugin/libopencbm-xa1541.so

[xu1541]
location=/usr/local/lib/opencbm/plugin/libopencbm-xu1541.so

[xum1541]
location=/usr/local/lib/opencbm/plugin/libopencbm-xum1541.so

bnsmith@quaddy:/etc$ cd /usr/local/lib/opencbm/plugin/
bnsmith@quaddy:/usr/local/lib/opencbm/plugin$ ls
libopencbm-xa1541.a libopencbm-xa1541.so.0.4.99.97 libopencbm-xu1541.so.0 libopencbm-xum1541.so
libopencbm-xa1541.so libopencbm-xu1541.a libopencbm-xu1541.so.0.4.99.97 libopencbm-xum1541.so.0
libopencbm-xa1541.so.0 libopencbm-xu1541.so libopencbm-xum1541.a libopencbm-xum1541.so.0.4.99.97


bnsmith@quaddy:/usr/local/lib/opencbm/plugin$ cbmctrl dir 8
error: cannot query product name:
error: no xum1541 device found
error: cannot query product name:
error: no xum1541 device found
cbmctrl: libusb/xum1541:: Operation not permitted

last one is interesting, I wonder if I have a permission issue somwwhere


Brian Smith

unread,
Nov 22, 2015, 4:32:17 PM11/22/15
to ZoomFloppy Users
Hi Alex

thanks for the idea.

I don't seem to have an issue with devices dying yet, but it is a line of inquiry I can check when I have exhausted some other ideas

thanks
Brian

Brian Smith

unread,
Nov 22, 2015, 5:18:43 PM11/22/15
to ZoomFloppy Users
bit of update
as root
root@quaddy:/home/bnsmith/opencbm/opencbm# cbmctrl dir 8
cbmctrl: dir: Resource temporarily unavailable
Reply all
Reply to author
Forward
0 new messages