Menu

Home

Spiro Trikaliotis

Win NT/2K/XP, and Linux/i386 kernel driver and development library to control serial CBM devices, such as the Commodore 1541 disk drive, connected to the PC's parallel port via a XM1541 or XA1541 cable. Fast disk copier included. Successor of cbm4li


Project Admins:


Discussion

  • Spiro Trikaliotis

    Thank you for pointing out the omission. I just added v0.4.99.103 to the files section.

     
    • N.A. Hoijtink

      N.A. Hoijtink - 2020-12-04

      Hi Spiro,

      I understand keeping 2 repositories, sourceforge and github, can be a bit confusing. Maybe it would be a good idea to add a reference to both sites to a downloadpage on your own homepage where you keep all binary versions and sources? That way at least people can find what they need more easily. For example, the 103 sources are not present on Sourceforge, and the 103 binaries i could not find on Github. For people less handy that can become an issue.

      Keep up he great work, and thank you very much for all you are doing and have done. It is greatly appreciated, at least by me.

      Kind regards,

      Hoijtink


      Van: Spiro Trikaliotis strik@users.sourceforge.net
      Verzonden: donderdag 3 december 2020 20:59
      Aan: [opencbm:wiki] Home@wiki.opencbm.p.re.sourceforge.net
      Onderwerp: [opencbm:wiki] Discussion for Home page

      Thank you for pointing out the omission. I just added v0.4.99.103 to the files section.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/opencbm/wiki/Home/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Tomas Kral

    Tomas Kral - 2020-12-10

    Hi,
    New to CBM scene, just getting started with C64 & 1541.

    make -f LINUX/Makefile opencbm plugin-xa1541
    builds but says nothing to be done for plugin-xa1541

    make -f LINUX/Makefile install install-plugin-xa1541
    ...
    install -m 755 ..//LINUX/plugin_helper_tools /usr/local/bin/opencbm_plugin_helper_tools
    mark that there is no default plugin yet.
    ..//LINUX/plugin_helper_tools setdefaultplugin "/etc" 00opencbm.conf ""
    ------ setting new default to: ''.
    ...

    /sbin/modprobe cbm
    /sbin/insmod cbm
    no such file or directory

    find -name cbm.o
    ./opencbm/compat/cbm.o
    ./opencbm/lib/cbm.o

    Seems I ma missing xa1541 plugin?
    Many thanks
    Tomas

     
    • Spiro Trikaliotis

      @Tomas, are you really using an XA1541 or XM1541 cable? That is, you have a parallel port on your machine that is connected via ISA bus? PCI might work, USB will definitely not work!

      If this is right, then the following applies:
      First, it would be good to have a complete build log. In your case, I assume that you might be missing the linux kernel headers for your machine. Without them, xa1541 cannot be build.

      What Linux system are you using?

       
  • Tomas Kral

    Tomas Kral - 2020-12-10

    @Spiro, I plan to build XM1541 one, is just four diodes.

    It is VIA chipset.
    [ 19.935433] parport_pc: VIA 686A/8231 detected
    [ 19.935441] parport_pc: probing current configuration
    [ 19.935463] parport_pc: Current parallel port base: 0x378
    [ 19.935616] parport0: PC-style at 0x378, irq 7 [PCSPP,EPP]
    [ 20.032711] parport_pc: VIA parallel port: io=0x378, irq=7
    [ 23.336040] ppdev: user-space parallel port driver

    uname -a
    Linux lynx 4.19.0-8-686-pae #1 SMP Debian 4.19.98-1 (2020-01-26) i686 GNU/Linux

    make -f LINUX/Makefile plugin-xa1541a
    make: Nothing to be done for 'plugin-xa1541

    opencbm-0.4.99.103$ ls
    cbm4wingui gui4cbm4win.vb6.old opencbm README-OSX.txt xu1541 xum1541cfg
    dirs LINUX README.md windrv xum1541

    no xa1541 directory in the source

     
  • Tomas Kral

    Tomas Kral - 2020-12-10

    ii linux-headers-4.19.0-13-686-pae 4.19.160-2
    ii linux-headers-4.19.0-8-686-pae 4.19.98-1+deb10u1

    there was header mismatch
    Apologies for the confusion

    make -f LINUX/Makefile install install-plugin-xa1541
    ...
    install -m 644 [ -f cbm.ko ] && echo cbm.ko || echo cbm.o /lib/modules/4.19.0-8-686-pae/kernel/drivers/char
    install -d -m 755 /etc/udev/rules.d/
    install -m 644 45-opencbm-xa1541.rules /etc/udev/rules.d/
    ...
    depmod -a
    make[1]: depmod: Command not found
    make[1]: [LINUX/Makefile:36: install] Error 127 (ignored)
    ...

    /sbin/modprobe cbm
    cbm.ko not found in directory /lib/modules/4.19.0-8-686-pae

    /sbin/insmod cbm
    insmod: ERROR: could not load module cbm: No such file or directory

    ...
    $ find -name cbm.ko
    ./opencbm/sys/linux/cbm.ko

    /sbin/insmod ./opencbm/sys/linux/cbm.ko

    actually no physical connection yet, just testing to load module, taking a long time to load

    [ 2971.564018] cbm: loading out-of-tree module taints kernel.
    [ 2971.564285] cbm: module verification failed: signature and/or required key missing - tainting kernel
    [ 2971.581242] cbm_init: using passive (XM1541) cable (auto), irq 7
    [ 2971.581249] cbm: resetting devices
    [ 2971.684562] cbm: waiting for free bus...
    [ 2983.668541] cbm: quitting because of timeout

    $ lsmod | grep cbm
    cbm 20480 0
    parport 40960 3 cbm,parport_pc,ppdev

    Apologies for the confusion

     

    Last edit: Tomas Kral 2020-12-10
  • Spiro Trikaliotis

    --> actually no physical connection yet, just testing to load module, taking a long time to load

    This is normal without a cable. The driver tries to reset a floppy. It resets it and waits for the reaction of the floppy. If there is none connected, it will stay there until a timeout occurs ("cbm: quitting because of timeout")

    But why is cbm.ko missing at the right location? What does find /lib/ -iname cbm.ko show?

    depmod should be in the Debian package named 'kmod'.

    Please by careful with the diodes for the XM1541 cable, use only recommended ones as written on http://sta.c64.org/xm1541.html and http://sta.c64.org/xm1541c.html.

     
  • Tomas Kral

    Tomas Kral - 2020-12-11

    $ find /lib/ -iname cbm.ko
    /lib/modules/4.19.0-8-686-pae/kernel/drivers/char/cbm.ko

    /sbin/depmod on the system, so are incmod, modrobe

    depmod was not run during install as it needs be given /sbin path explicitly as system binary
    probably
    ...
    see above

    modprobe looks inside /lib/modules/4.19.0-8-686-pae/ by default

     

    Last edit: Tomas Kral 2020-12-11
  • Tomas Kral

    Tomas Kral - 2020-12-11

    by running /sbin/depmod manually we got entries in

    4.19.0-8-686-pae$ grep cbm modules.alias
    alias char-major-10-177 cbm
    alias opencbm cbm

    and
    4.19.0-8-686-pae$ grep cbm modules.dep
    kernel/drivers/char/cbm.ko: kernel/drivers/parport/parport.ko

     
  • Tomas Kral

    Tomas Kral - 2020-12-15

    @Spiro
    Many thanks so far, will use 4x1N5819
    -->Please by careful with the diodes for the XM1541 cable, use only recommended ones

    could be something wrong with my deb setup, as /sbin is not searched
    $ /sbin/modprobe cbm
    modprobe: ERROR: could not insert 'cbm': Operation not permitted

    $ id
    ....100(users),...

    $ cat /etc/udev/rules.d/45-opencbm-xa1541.rules
    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"

    /sbin/modprobe cbm still requires root privileges

    perhaps need to rebuild initrd.img ?

     

Log in to post a comment.