Hello,
after a few years doing nothing with my c64 emulator, i upgraded my hardware (xu1541 to xum1541).
My xu1541 did not work very fine with the opencbm-0.4.99.94 version i previous had installed. So i deinstall my old debian packages 'dpkg --purge libopencbm0 libopencbm0-dev opencbm opencbm-dkms opencbm-modules-source opencbm-xa1541 opencbm-xu1541' and installed the new 'opencbm-0.4.99.99' version (following the pdf install document) on my debian 9 (kernel 4.9.0-5-amd64).
The compiling and installation works fine i used the commands:
$ make -f LINUX/Makefile opencbm plugin-xum1541 plugin-xu1541 plugin-xa1541
# make -f LINUX/Makefile install install-plugin-xum1541 install-plugin-xu1541 install-plugin-xa1541
Every thing seems ok (no error occurs), but i cannot load the cbm modul ..
The cbm module is found and both devices i tried a identified correct:
The module:
# modinfo cbm
filename: /lib/modules/4.9.0-5-amd64/misc/cbm.ko
alias: char-major-10-177
alias: opencbm
license: GPL
description: Serial CBM bus driver module
author: Michael Klein
depends: parport
vermagic: 4.9.0-5-amd64 SMP mod_unload modversions
parm: lp:parallel port number. (default 0) (int)
parm: cable:cable type: <0=autodetect, 0=non-inverted (XM1541), >0=inverted (XA1541). (default -1) (int)
parm: reset:reset at module load: <0=smart reset, 0=no reset, >0 force reset (default: 1) (int)
parm: hold_clk:0=release CLK when idle, >0=strict C64 behaviour. (default 1) (int)
But the modprobe
# modprobe -v cbm
insmod /lib/modules/4.9.0-5-amd64/misc/cbm.ko
modprobe: ERROR: could not insert 'cbm': No such device
# ls -l /dev/cbm
ls: Zugriff auf '/dev/cbm' nicht möglich: Datei oder Verzeichnis nicht gefunden
# /var/log/messsages # modinfo -v cbm
Jan 23 13:44:39 g2 kernel: [ 4770.221752] cbm_init: non-existent port: 0
The devices are shown at messages:
# cat /var/log/messsages # for xu1541
Jan 23 13:37:28 g2 kernel: [ 4339.202497] usb 13-2: new low-speed USB device number 3 using ohci-pci
Jan 23 13:37:29 g2 kernel: [ 4339.870573] usb 13-2: new low-speed USB device number 4 using ohci-pci
Jan 23 13:37:29 g2 kernel: [ 4340.538647] usb 13-2: new low-speed USB device number 5 using ohci-pci
Jan 23 13:37:30 g2 kernel: [ 4341.338736] usb 13-2: new low-speed USB device number 6 using ohci-pci
Jan 23 13:37:30 g2 kernel: [ 4341.389841] usb 13-2: New USB device found, idVendor=0403, idProduct=c632
Jan 23 13:37:30 g2 kernel: [ 4341.389849] usb 13-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 23 13:37:30 g2 kernel: [ 4341.389853] usb 13-2: Product: xu1541
Jan 23 13:37:30 g2 kernel: [ 4341.389857] usb 13-2: Manufacturer: opencbm team
Jan 23 13:37:30 g2 mtp-probe: checking bus 13, device 6: "/sys/devices/pci0000:00/0000:00:16.0/usb13/13-2"
Jan 23 13:37:30 g2 mtp-probe: bus: 13, device: 6 was not an MTP device
and lsusb output
# lsusb -v # for xu1541
Bus 013 Device 006: ID 0403:c632 Future Technology Devices International, Ltd xu1541 c64 floppy drive interface
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0xc632 xu1541 c64 floppy drive interface
bcdDevice 1.00
iManufacturer 1 opencbm team
iProduct 2 xu1541
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 18
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 30mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Device Status: 0x0000
(Bus Powered)
Same for the new xum1541
# cat /var/log/messsages # for xum1541
Jan 23 13:37:50 g2 kernel: [ 4361.352948] usb 7-1: new full-speed USB device number 6 using xhci_hcd
Jan 23 13:37:51 g2 kernel: [ 4361.582904] usb 7-1: New USB device found, idVendor=16d0, idProduct=0504
Jan 23 13:37:51 g2 kernel: [ 4361.582907] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 23 13:37:51 g2 kernel: [ 4361.582909] usb 7-1: Product: xum1541 floppy adapter (ZOOMFLOPPY)
Jan 23 13:37:51 g2 kernel: [ 4361.582910] usb 7-1: Manufacturer: Nate Lawson and OpenCBM team
Jan 23 13:37:51 g2 kernel: [ 4361.582911] usb 7-1: SerialNumber: 000
Jan 23 13:37:51 g2 mtp-probe: checking bus 7, device 6: "/sys/devices/pci0000:00/0000:00:15.3/0000:0c:00.0/usb7/7-1"
Jan 23 13:37:51 g2 mtp-probe: bus: 7, device: 6 was not an MTP device
also the lsusb output
# lsusb -v # for xum1541
Bus 007 Device 006: ID 16d0:0504 MCS RETRO Innovations ZoomFloppy
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x16d0 MCS
idProduct 0x0504 RETRO Innovations ZoomFloppy
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)
Any hint what is going wrong?
Or do i miss some addidtional packages to install?
Many thanks
Gabriel
Anonymous
Are you actually using an XA1541 cable? Does your PC actually have a parallel port?
You say you followed the instructions. However, I see some important deviations from it. Or didn't you use the official instructions, but other ones?
Anyway, the instructions clearly tell you to build only the plugins that are needed. You are speaking about xu1541 and xum1541, thus, I assume you have these two, but not the xa1541 one. Thus, you also need only the corresponding plugins.
The cbm.ko kernel module handles the xa1541. For the USB based cables, it is not used at all.
It is also clearly stated at http://opencbm.trikaliotis.net/opencbm-8.html that the insmod command is only needed with the XA1541 (and XM1541) cable.
You have two options to fix your things:
HTH
Spiro
Hello Spiro, sorry. It's my fault. After uninstall and 'install install-plugin-xum1541' everything works as expected.
My be my old installation leave some old parts ..
Please close the ticket.
Thank you for the fine work ;-). Now i can take a look on my old c64 floppy disks (about 100 old games and more ;-)).
Closing as requested.