Patch for Hercules kernel mod broken by Linux 2.6.31

XML preset files and script files (.js) for MIDI and other controllers.

Moderators: garth, User Customization Moderators

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby ulkantony » Wed Dec 30, 2009 12:00 am

Hi,

I have followed instructions posted by Gabo, but when I try to insert hdj_mod module by modprobe command, it fails and dmesg return only this info:

[32608.264413] hdj_mod: disagrees about version of symbol snd_iprintf
[32608.264420] hdj_mod: Unknown symbol snd_iprintf

I have Ubuntu 9.10 and kernel 2.6.31-17-generic.

Could you help me?
Thanks
ulkantony
 
Posts: 1
Joined: Tue Dec 29, 2009 11:54 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Roxxor » Fri Jan 01, 2010 11:29 pm

try pizzapanthers package... it worked for me...
Roxxor
 
Posts: 4
Joined: Wed Apr 29, 2009 9:21 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby iltony » Wed Jan 20, 2010 10:08 pm

pizzapanther wrote:Ok i used Gabo instructions and made a deb that works.
http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb

Let me know if others have success with it.

Actually for me it doesn't seem to work because I have a Hercules DJ Control MP3 e2. Does anyone know how to get that working on Ubuntu 9.10?


tried out:
antonio@antonio-laptop:/var/lib/dkms/hdjmod/1.28/build$ sudo make
make -C /lib/modules/2.6.31-9-rt/build M=/var/lib/dkms/hdjmod/1.28/build LDDINC=/var/lib/dkms/hdjmod/1.28/build modules
make[1]: ingresso nella directory «/usr/src/linux-headers-2.6.31-9-rt»
CC [M] /var/lib/dkms/hdjmod/1.28/build/device.o
In file included from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from /var/lib/dkms/hdjmod/1.28/build/device.c:28:
/usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/bitops.h:395: warning: declaration of ‘ffs’ shadows a built-in function
In file included from /usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/smp.h:13,
from /usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/mmzone_64.h:12,
from /usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/mmzone.h:4,
from include/linux/mmzone.h:773,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from /var/lib/dkms/hdjmod/1.28/build/device.c:32:
/usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/apic.h: In function ‘__default_check_phys_apicid_present’:
/usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/apic.h:546: warning: declaration of ‘boot_cpu_physical_apicid’ shadows a global declaration
/usr/src/linux-headers-2.6.31-9-rt/arch/x86/include/asm/mpspec.h:53: warning: shadowed declaration is here
In file included from include/linux/fs.h:374,
from include/linux/proc_fs.h:5,
from include/linux/netfilter.h:319,
from include/net/netns/x_tables.h:5,
from include/net/net_namespace.h:18,
from include/linux/netdevice.h:47,
from include/net/sock.h:50,
from /var/lib/dkms/hdjmod/1.28/build/device.c:37:
include/linux/semaphore.h: In function ‘down_timeout’:
include/linux/semaphore.h:89: warning: declaration of ‘jiffies’ shadows a global declaration
include/linux/jiffies.h:82: warning: shadowed declaration is here
In file included from include/net/rtnetlink.h:5,
from include/net/neighbour.h:27,
from include/net/dst.h:15,
from include/net/sock.h:60,
from /var/lib/dkms/hdjmod/1.28/build/device.c:37:
include/net/netlink.h: In function ‘nla_put_msecs’:
include/net/netlink.h:824: warning: declaration of ‘jiffies’ shadows a global declaration
include/linux/jiffies.h:82: warning: shadowed declaration is here
/var/lib/dkms/hdjmod/1.28/build/device.c: At top level:
/var/lib/dkms/hdjmod/1.28/build/device.c:57: warning: declaration of ‘index’ shadows a built-in function
/var/lib/dkms/hdjmod/1.28/build/device.c:69: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
/var/lib/dkms/hdjmod/1.28/build/device.c:69: warning: parameter names (without types) in function declaration
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘snd_hdj_chip_create’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1685: error: implicit declaration of function ‘init_MUTEX’
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘hdj_probe’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1895: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c:1895: error: (Each undeclared identifier is reported only once
/var/lib/dkms/hdjmod/1.28/build/device.c:1895: error: for each function it appears in.)
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘inc_chip_ref_count’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1996: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘dec_chip_ref_count’:
/var/lib/dkms/hdjmod/1.28/build/device.c:2022: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘netlink_send_raw_msg’:
/var/lib/dkms/hdjmod/1.28/build/device.c:2606: warning: cast from pointer to integer of different size
make[2]: *** [/var/lib/dkms/hdjmod/1.28/build/device.o] Errore 1
make[1]: *** [_module_/var/lib/dkms/hdjmod/1.28/build] Errore 2
make[1]: uscita dalla directory «/usr/src/linux-headers-2.6.31-9-rt»
make: *** [modules] Errore 2

Looks like there are problems which I can't understand, in the mystic art of packaging, btw on my machine mine works... Sorry :(
iltony
 
Posts: 7
Joined: Mon Nov 09, 2009 1:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby edriv » Mon Jan 25, 2010 11:56 pm

Hi, i've just bought my Hercules DJ Control MP3 e2 and was trying to get it running...

I'm on Ubuntu 9.10, kernel 2.6.31.6-rt19.
I downloaded Hercules' drivers, tried to install them with dpkg (failing). Then i manually edited the source files following the patch in the first post, did "sudo make && sudo make install", "sudo depmod -a", "sudo modprobe hdj_mod" and all seemed to work without errors.

but.

If I start mixxx, in Preferences -> MIDI Controllers he says "no midi devices available".
dmesg says something like this, when i load/unload the module hdj_mod:
Code: Select all
Jan 26 00:53:03 girolamo kernel: [ 1775.490621] usbcore: deregistering interface driver hdj_mod
Jan 26 00:53:14 girolamo kernel: [ 1786.287815] usbcore: registered new interface driver hdj_mod

and nothing more.

When I connect the dj controller, the log just says:
Code: Select all
Jan 26 00:54:45 girolamo kernel: [ 1877.456128] usb 6-2: new full speed USB device using uhci_hcd and address 5
Jan 26 00:54:45 girolamo kernel: [ 1877.597905] usb 6-2: configuration #1 chosen from 1 choice


It seems that i have installed the driver with "make install", but dpkg doesn't manage to configure the deb package even after i patched the sources. The error it claims is:
Code: Select all
Loading new hdjmod-1.28 DKMS files...

Error! Cannot locate /usr/src/hdjmod-1.28.dkms.tar.gz.
File does not exist.


can anybody help me?
edriv
 
Posts: 3
Joined: Mon Jan 25, 2010 11:44 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby fliegvogelflieg » Thu Feb 04, 2010 1:20 pm

@pizzapanther
thx for your work. your .deb file works for me.
fliegvogelflieg
 
Posts: 3
Joined: Fri Sep 18, 2009 2:38 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby kbanta11 » Thu Feb 11, 2010 1:29 am

So i understand none of this, but I need the driver and when i run the patch it says the DKMS is not in the tree

can someone give me a step by step of exactly everything i need to do cuz right now im clueless and angry that i cant once in my life get something that actually works when i try it
kbanta11
 
Posts: 1
Joined: Thu Feb 11, 2010 12:52 am

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby wsonar » Sat Mar 13, 2010 8:37 pm

I have the same tree issue
wsonar
 
Posts: 4
Joined: Fri Mar 05, 2010 10:24 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby wsonar » Sat Mar 13, 2010 8:47 pm

iltony wrote:
pizzapanther wrote:Ok i used Gabo instructions and made a deb that works.
http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb

Let me know if others have success with it.



I installed the deb unpluged the hercules rmx then pluged back in and I was able to select it under preference and seems to be working

not happy with the controling but could be this cheap pc will try on better lappy later
wsonar
 
Posts: 4
Joined: Fri Mar 05, 2010 10:24 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby freedomcaller » Thu Apr 08, 2010 8:39 am

pizzapanther wrote:I've updated with E2 patch I found in the forums:
http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb

Seems to work and my E2 shows up under MIDI devices but I still can't seem to use the DJ Control MP3 E2 to control mix. Any suggestions?



woah thanks for the e2 package, i cloudnt get the e2 patch to work on my pc but your .deb worked, i can conroll mixx 100% using ur .deb your probbaly missing the xml config files...
freedomcaller
 
Posts: 1
Joined: Thu Apr 08, 2010 7:43 am

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby cadeirn » Mon Apr 19, 2010 11:27 am

OK, now I've tried nearly everything, with no success.

I've installed pizzapanther's version (http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb), the installation went smoothly. Here's the log:
Code: Select all
Selecting previously deselected package hdjmod-dkms.
(Reading database ... 153299 files and directories currently installed.)
Unpacking hdjmod-dkms (from .../hdjmod-dkms_1.28_karmic.deb) ...
Setting up hdjmod-dkms (1.28) ...
Loading new hdjmod-1.28 DKMS files...

Loading tarball for module: hdjmod / version: 1.28

Loading /usr/src/hdjmod-1.28...
Creating /var/lib/dkms/hdjmod/1.28/source symlink...

DKMS: ldtarball Completed.
Installing prebuilt kernel module binaries (if any)
Building module...

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
su nobody -c "make KERNELRELEASE=2.6.31-20-generic -C /lib/modules/2.6.31-20-generic/build M=/var/lib/dkms/hdjmod/1.28/build".....
cleaning build area....

DKMS: build Completed.
Installing module...

hdj_mod.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.31-20-generic/updates/dkms/

Running post_install:

depmod....

DKMS: install Completed.



Now I'm trying to load it, modprobe hdj_mod, and the result is the following:

Code: Select all
# modprobe hdj_mod
FATAL: Error inserting hdj_mod (/lib/modules/2.6.31-20-generic/updates/dkms/hdj_mod.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Code: Select all
#dmesg | tail -n 24
[ 2520.566132] hdj_mod: disagrees about version of symbol snd_rawmidi_receive
[ 2520.566141] hdj_mod: Unknown symbol snd_rawmidi_receive
[ 2520.566498] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit_empty
[ 2520.566504] hdj_mod: Unknown symbol snd_rawmidi_transmit_empty
[ 2520.566808] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit
[ 2520.566813] hdj_mod: Unknown symbol snd_rawmidi_transmit
[ 2520.569395] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit_ack
[ 2520.569400] hdj_mod: Unknown symbol snd_rawmidi_transmit_ack
[ 2520.570065] hdj_mod: disagrees about version of symbol snd_iprintf
[ 2520.570070] hdj_mod: Unknown symbol snd_iprintf
[ 2520.572778] hdj_mod: disagrees about version of symbol snd_rawmidi_set_ops
[ 2520.572784] hdj_mod: Unknown symbol snd_rawmidi_set_ops
[ 2543.936173] hdj_mod: disagrees about version of symbol snd_rawmidi_receive
[ 2543.936184] hdj_mod: Unknown symbol snd_rawmidi_receive
[ 2543.936542] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit_empty
[ 2543.936547] hdj_mod: Unknown symbol snd_rawmidi_transmit_empty
[ 2543.936851] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit
[ 2543.936856] hdj_mod: Unknown symbol snd_rawmidi_transmit
[ 2543.939441] hdj_mod: disagrees about version of symbol snd_rawmidi_transmit_ack
[ 2543.939446] hdj_mod: Unknown symbol snd_rawmidi_transmit_ack
[ 2543.940132] hdj_mod: disagrees about version of symbol snd_iprintf
[ 2543.940137] hdj_mod: Unknown symbol snd_iprintf
[ 2543.942702] hdj_mod: disagrees about version of symbol snd_rawmidi_set_ops
[ 2543.942707] hdj_mod: Unknown symbol snd_rawmidi_set_ops


And this is the point, where I'm really stuck. Does anyone have any suggestions?
cadeirn
 
Posts: 17
Joined: Mon Apr 19, 2010 11:22 am

PreviousNext

Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 2 guests

cron