Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

can't compile kmod-roccat

Help
2011-01-31
2012-08-26
  • It's not possible to compile kmod-roccat 0.4.0 for 2.6.35-2.6.37. The files
    hid-roccat.h (and hid-roccat.c) are required but missing.

     
  • Stefan Achatz
    Stefan Achatz
    2011-01-31

    Please edit the Makefile and set the option CONFIG_HID_ROCCAT to m:

    CONFIG_HID_ROCCAT := m

     
  • No changes:

    torsten@ubuntu:~/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37$ make
    make -C "/lib/modules/2.6.35-25-generic/build" M="/home/torsten/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37" modules
    make[1]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.35-25-generic'
      CC [M]  /home/torsten/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37/hid-roccat-arvo.o
    /home/torsten/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37/hid-roccat-arvo.c:25: fatal error: hid-roccat.h: Datei oder Verzeichnis nicht gefunden
    compilation terminated.
    make[2]: *** [/home/torsten/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37/hid-roccat-arvo.o] Fehler 1
    make[1]: *** [_module_/home/torsten/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37] Fehler 2
    make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.35-25-generic'
    make: *** [modules] Fehler 2
    
     
  • Stefan Achatz
    Stefan Achatz
    2011-02-01

    Sorry, can't reproduce here.

    kmod-roccat-0.4.0.tar.bz2 contains the files kmod-
    roccat-0.4.0/2.6.35_to_2.6.37/hid-roccat. and compiles flawlessly for me.

    Maybe downloading and extracting the archive again might help?

     
  • You're right... it seems that ark did not extract some files... with bzip2 and
    tar i get all files... now it works. Thanks for help.

     
  • Update: i reload, unpacked, recompiled and installed all required modules and
    software successfully. Also i created the group "roccat" and add my account to
    the group. After updating the udev rules and replug the Kone i try to start
    the software. I get a "No Kone found" message...

    I use Kubuntu 10.10 (Linux ubuntu 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21
    17:40:44 UTC 2011 x86_64 GNU/Linux

    )

    ROCCAT Kone[+]
    
    Hersteller: ROCCAT
    
    Klasse
    0
    ((Defined at Interface level))
    Unterklasse
    0
    
    Protokoll
    0
    
    USB-Version
    2.00
    
    Anbieter-Kennung
    0x1e7d
    
    Produkt-Kennung
    0x2d51
    
    Revision
    0.00
    
    Geschwindigkeit
    12 Mbit/s
    
    Kanäle
    0
    
    Max. Paketgröße
    64
    
     
  • Stefan Achatz
    Stefan Achatz
    2011-02-01

    Please execute

    sudo tail -f /var/log/messages

    Replug the mouse and show me the relevant messages.

     
  • Jan 26 09:05:52 ubuntu kernel: [ 3.372502] usbcore: registered new
    interface driver hiddev

    Jan 26 09:05:52 ubuntu kernel: [    3.373635] input: ROCCAT ROCCAT Kone[+] as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input5
    Jan 26 09:05:52 ubuntu kernel: [    3.373793] generic-usb 0003:1E7D:2D51.0001: input,hiddev96,hidraw0: USB HID v1.00 Mouse [ROCCAT ROCCAT Kone[+]] on usb-0000:00:1d.0-1.3/input0
    Jan 26 09:05:52 ubuntu kernel: [    3.374932] input: ROCCAT ROCCAT Kone[+] as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input6
    Jan 26 09:05:52 ubuntu kernel: [    3.375101] generic-usb 0003:1E7D:2D51.0002: input,hidraw1: USB HID v1.11 Keyboard [ROCCAT ROCCAT Kone[+]] on usb-0000:00:1d.0-1.3/input1
    Jan 26 09:05:52 ubuntu kernel: [    3.375113] usbcore: registered new interface driver usbhid
    Jan 26 09:05:52 ubuntu kernel: [    3.375114] usbhid: USB HID core driver
    
     
  • Stefan Achatz
    Stefan Achatz
    2011-02-01

    This shows me that the udev rules are not applied. Are you sure you reloaded
    the udev rules with this command?

    $ sudo udevadm control --reload-rules

    This should do the trick.

    But you can additionally load the module manually and see if that works with

    $ sudo modprobe koneplus

    to eliminate errors from this side.

     
  • I did reload nothing happens...

    so i modprobe for koneplus:

    torsten@ubuntu:~/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37$ sudo modprobe koneplus
    FATAL: Module koneplus not found.
    

    so i tried to load via insmod

    torsten@ubuntu:~/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37$ sudo insmod koneplus.ko
    insmod: error inserting 'koneplus.ko': -1 Unknown symbol in module
    torsten@ubuntu:~/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37$
    

    so i checked via dmesg

    torsten@ubuntu:~/Downloads/kmod-roccat-0.4.0/2.6.35_to_2.6.37$ sudo dmesg -c
    [ 1158.003594] koneplus: Unknown symbol roccat_report_event (err 0)
    [ 1158.003732] koneplus: Unknown symbol roccat_common_send (err 0)
    [ 1158.004082] koneplus: Unknown symbol roccat_disconnect (err 0)
    [ 1158.004169] koneplus: Unknown symbol roccat_connect (err 0)
    [ 1158.004265] koneplus: Unknown symbol roccat_common_receive (err 0)
    
     
  • Stefan Achatz
    Stefan Achatz
    2011-02-02

    Have you edited the Makefile to make sure that CONFIG_HID_ROCCAT and
    CONFIG_HID_ROCCAT_COMMON are both set to 'm' so they get compiled?

    modprobe says 'not found' - Did you forget to 'sudo make modules_install'?

    If so, please post the complete output of said command. I had a case on
    Mandriva once where the config of the kernelsources did not match the running
    system. The modules landed in the wrong folder then.

    About insmod:

    With insmod you are trying to load only one module at a time and only from the
    actual path. Use

    $ sudo insmod koneplus.ko roccat.ko roccat_common.ko

    to resolve 'unknown symbol' errors.

     
  • Hi erazor,

    Thanks for your reply on this other subject : http://sourceforge.net/projects
    /roccat/forums/forum/989581/topic/4362884

    Honnestly I had forgot to install the kmod_roccat package, I missed that in
    intrusctions.

    I go on on this subject because I obtain the same errors than torstenburschka
    ... (almost exactly the same errors, except that's for a Kova)

    I installed kmod_roccat following install instructions, CONFIG_HID_ROCCAT and
    the other were set to 'm', I execute 'sudo make modules_install' successully (
    no error message)

    but, same result : No Kone found

    here are the 'debug' command I tried :

    reconnecting the mouse :

    sudo tail -f /var/log/messages
    Feb 18 09:33:06 i7 kernel: [  297.177344] usb 8-2: USB disconnect, address 3
    Feb 18 09:33:11 i7 kernel: [  302.702875] usb 8-2: new full speed USB device using uhci_hcd and address 4
    Feb 18 09:33:11 i7 kernel: [  302.892654] input: ROCCAT ROCCAT Kova[+] as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.0/input/input7
    Feb 18 09:33:11 i7 kernel: [  302.892843] generic-usb 0003:1E7D:2D50.0005: input,hiddev97,hidraw2: USB HID v1.10 Mouse [ROCCAT ROCCAT Kova[+]] on usb-0000:00:1d.2-2/input0
    Feb 18 09:33:11 i7 kernel: [  302.898293] input: ROCCAT ROCCAT Kova[+] as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.1/input/input8
    Feb 18 09:33:11 i7 kernel: [  302.898378] generic-usb 0003:1E7D:2D50.0006: input,hidraw3: USB HID v1.11 Keyboard [ROCCAT ROCCAT Kova[+]] on usb-0000:00:1d.2-2/input1
    
    sudo udevadm control --reload-rules
    

    (no errors)

    sudo modprobe kovaplus
    FATAL: Module kovaplus not found.
    

    (I tried with "kovaplus", "kone", "koneplus", kova_plus" with the same
    output...)

    sudo insmod kovaplus.ko roccat.ko roccat_common.ko
    insmod: can't read 'kovaplus.ko': No such file or directory
    
    sudo insmod roccat.ko roccat_common.ko
    insmod: can't read 'roccat.ko': No such file or directory
    
    sudo insmod roccat_common.ko
    insmod: can't read 'roccat_common.ko': No such file or directory
    

    But I suspect the problem is her :

    I'm using a 2.6.35 kernel, so I followed latest intructions in the INSTALL
    file, so my /etc/rc.local file now look like this :

    !/bin/sh -e

    rc.local

    This script is executed at the end of each multiuser runlevel.

    Make sure that the script will "exit 0" on success or any other

    value on error.

    In order to enable or disable this script just change the execution

    bits.

    By default this script does nothing.

    modprobe kone

    for x in ls -1 /sys/bus/usb/drivers/usbhid/*/modalias ; do

    grep -i v1e7dp2ced "$x" >/dev/null &&

    echo -n $x >/sys/bus/usb/drivers/usbhid/unbind &&

    echo -n $x >/sys/bus/usb/drivers/kone/bind

    done

    exit 0

    (before I paste the mod probe code, only "exit 0" was here. But I don't know
    if "exit 0" must be placed before or after.)

    First, I'm not sure it's modprobe kone I have to put in, and second

    ls /sys/bus/usb/drivers/
    hiddev  hub  usb  usbfs  usbhid  wacom
    

    do not output any "kone" directory...

    I suppose there is some mess here...

    Please tell me how to go on in investigation.

    Thanks,

    yagraph

     
  • Stefan Achatz
    Stefan Achatz
    2011-02-20

    So,

    first I have to say sorry for the long intervals, but I'm on holiday without a
    real computer.

    The extension of the rc_local file is meant for older kernels. On your machine
    everything should be handled by the udev rule file.

    If modprobe claims it could not find the the module, two things are possible:

    One thing now would be to check the installation:

    In the output of "sudo make modules_install" you should find the installation
    directory of the modules. Make sure that this directory fits to the actual
    running kernel (check with uname -a).

    The next thing is to check the errors when loading the module:

    After "sudo modprobe kovaplus" do a "tail /var/log/messages" and look if there
    are "unknown symbol" messages.

    On your kernel the roccat module might be already compiled into the kernel.
    You can do a "grep ROCCAT /boot/YOUR_KERNELS_CONFIG_FILE" to see. "Y" means if
    something is fix inside the kernel, "M" means its a module.

    Yes, Linux is a pain in the ass when it comes to adding drivers that are not
    in the kernel already.

     
  • T-Loo
    T-Loo
    2011-03-04

    Hey,

    I encountered the same problem :/

    sudo make modules_install seems to be running correct

    make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.35-27-generic'
    

    At least this is the kernel I am using.

    I checked the other part too and get this output:

    $ sudo modprobe koneplus 
    FATAL: Module koneplus not found.
    

    :/

    $ tail /var/log/messages
    Mar  4 21:03:25 t-lo kernel: [   38.021783] Skipping EDID probe due to cached edid
    Mar  4 21:03:26 t-lo kernel: [   38.454140] UDF-fs: Partition marked readonly; forcing readonly mount
    Mar  4 21:03:26 t-lo kernel: [   38.528207] UDF-fs INFO UDF: Mounting volume 'EU_106128', timestamp 2003/09/22 18:36 (103c)
    Mar  4 21:03:30 t-lo kernel: [   42.715994] Skipping EDID probe due to cached edid
    Mar  4 21:23:48 t-lo kernel: [ 1261.040218] usb 6-1: USB disconnect, address 2
    Mar  4 21:23:54 t-lo kernel: [ 1266.860282] usb 6-1: new full speed USB device using uhci_hcd and address 3
    Mar  4 21:23:54 t-lo kernel: [ 1267.036371] input: ROCCAT ROCCAT Kone[+] as /devices/pci0000:00/0000:00:1d.1/usb6/6-1/6-1:1.0/input/input10
    Mar  4 21:23:54 t-lo kernel: [ 1267.037581] generic-usb 0003:1E7D:2D51.0005: input,hiddev96,hidraw2: USB HID v1.00 Mouse [ROCCAT ROCCAT Kone[+]] on usb-0000:00:1d.1-1/input0
    Mar  4 21:23:54 t-lo kernel: [ 1267.043649] input: ROCCAT ROCCAT Kone[+] as /devices/pci0000:00/0000:00:1d.1/usb6/6-1/6-1:1.1/input/input11
    Mar  4 21:23:54 t-lo kernel: [ 1267.043859] generic-usb 0003:1E7D:2D51.0006: input,hidraw3: USB HID v1.11 Keyboard [ROCCAT ROCCAT Kone[+]] on usb-0000:00:1d.1-1/input1
    
    $ grep ROCCAT /boot/config-2.6.35-27-generic 
    CONFIG_HID_ROCCAT=m
    CONFIG_HID_ROCCAT_KONE=m
    

    Thanks T-Loo

     
  • Hi,

    Sorry for the late answer too, for some reason I wasn't warned of your answer.

    I've just tested what you sugested, and obtain the same result than T-loo.

    Furthermore, doing any

    $ sudo modprobe kovaplus
    

    command isn't mentionend in INSTALL files, so I'm not sur how and when to use
    it.

    Mar  5 11:13:27 i7 kernel: [    3.571642] usbcore: registered new interface driver usbhid
    Mar  5 11:13:27 i7 kernel: [    3.571644] usbhid: USB HID core driver
    Mar  5 11:13:27 i7 kernel: [    3.578475] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    Mar  5 11:13:27 i7 kernel: [    3.580000] ata4.00: ATAPI: ASUS    DRW-22B1ST, 1.00, max UDMA/100
    Mar  5 11:13:27 i7 kernel: [    3.581058] ata4.00: configured for UDMA/100
    Mar  5 11:13:27 i7 kernel: [    3.608703] scsi 3:0:0:0: CD-ROM            ASUS     DRW-22B1ST       1.00 PQ: 0 ANSI: 5
    Mar  5 11:13:27 i7 kernel: [    3.616798] sr0: scsi3-mmc drive: 48x/12x writer dvd-ram cd/rw xa/form2 cdda tray
    Mar  5 11:13:27 i7 kernel: [    3.616802] Uniform CD-ROM driver Revision: 3.20
    Mar  5 11:13:27 i7 kernel: [    3.616987] sr 3:0:0:0: Attached scsi generic sg1 type 5
    Mar  5 11:13:27 i7 kernel: [    3.657435] usb 8-2: new full speed USB device using uhci_hcd and address 3
    Mar  5 11:13:27 i7 kernel: [    3.848472] input: ROCCAT ROCCAT Kova[+] as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.0/input/input4
    Mar  5 11:13:27 i7 kernel: [    3.848570] generic-usb 0003:1E7D:2D50.0003: input,hiddev97,hidraw2: USB HID v1.10 Mouse [ROCCAT ROCCAT Kova[+]] on usb-0000:00:1d.2-2/input0
    Mar  5 11:13:27 i7 kernel: [    3.854254] input: ROCCAT ROCCAT Kova[+] as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.1/input/input5
    Mar  5 11:13:27 i7 kernel: [    3.854342] generic-usb 0003:1E7D:2D50.0004: input,hidraw3: USB HID v1.11 Keyboard [ROCCAT ROCCAT Kova[+]] on usb-0000:00:1d.2-2/input1
    Mar  5 11:13:27 i7 kernel: [    3.968171] ata5: SATA link down (SStatus 0 SControl 300)
    Mar  5 11:13:27 i7 kernel: [    4.335643] ata6: SATA link down (SStatus 0 SControl 300)
    Mar  5 11:13:27 i7 kernel: [    4.707278] ata7: SATA link down (SStatus 0 SControl 300)
    

    I agree, it's a pain in the ass !

    Hope it will be packaged some day !

     
  • Stefan Achatz
    Stefan Achatz
    2011-03-05

    So, I installed a Xubuntu 10.10 in a virtual machine and found out that ubuntu
    and its derivatives are not searching the modules extra folder. Don't know who
    had the idea, but the solution is easy:

    After installing the kernel modules do a

    $ sudo depmod -a

    and the modules should be inserted in the dependency list so that modprobe can
    find them.

    check with

    $ sudo modprobe kovaplus

    that no new error occurs. Replug your device so that udev can do its work and
    the software should finally recognize the device.

    Problem finally solved?

     
  • T-Loo
    T-Loo
    2011-03-06

    As already said in the ubuntuusers.de forums, it works fine for me now as
    well.

    Thank you very much!

     


Anonymous


Cancel   Add attachments