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 jamie » Mon Nov 16, 2009 12:55 am

Hi,

I'm on fedora 12. the patch didn't work but i edited device.c by hand. then ran make then make install

neither mixxx nor the control panel recognises my mk2. "lsmod" doesn't show hdj_mod. and "modprobe hdj_mod" gives the message "FATAL: Module hdj_mod not found."

However, both make and make install seemed successful. make install gave the output:

install -d /lib/modules/2.6.31.5-127.fc12.x86_64/kernel/sound/usb
install -c hdj_mod.ko /lib/modules/2.6.31.5-127.fc12.x86_64/kernel/sound/usb

and sure enough the file /lib/modules/2.6.31.5-127.fc12.x86_64/kernel/sound/usb/hdj_mod.ko DOES exist.

I'm stumped, any ideas?
jamie
 
Posts: 3
Joined: Thu Jul 02, 2009 4:24 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby iltony » Sun Nov 22, 2009 9:41 pm

Msieur Piero wrote:Always the same issue :

Code: Select all
Building module:
cleaning build area....
su nobody -c "make KERNELRELEASE=2.6.31-15-generic -C /lib/modules/2.6.31-15-generic/build M=/var/lib/dkms/hdjmod/1.28/build".....(bad exit status :2)

Error! Bad return status for module build on kernel: 2.6.31-15-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/hdjmod/1.28/build/ for more information.
0
0
dpkg : erreur de traitement de hdjmod-dkms (--install) :
le sous-processus script post-installation installé a retourné une erreur de sortie d'état 10
Des erreurs ont été rencontrées pendant l'exécution:
hdjmod-dkms


Sorry, that was that the shell shows during my new try...
If it can help

EDIT : In spite of the apparently failing install, it works... Weird...
Moreover, each time i tried a sudo apt-get upgrade/update/install, the hdjmod-dkms package is shown as partially installed, and tries to finish installation each time i install or remove another package...


Strange. Could you please post the content of /var/lib/dkms/hdjmod/1.28/build/make.log?
iltony
 
Posts: 7
Joined: Mon Nov 09, 2009 1:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Msieur Piero » Mon Nov 23, 2009 12:26 pm

there's nothing under /var/lib/dkms/...
Perhaps the .deb install has failed 'cause of what i made before (make + make install,etc...)

Is there anybody else who've tried to install the .deb and succed in???
I think i'm not the only one using hdj drivers on karmic...
My soundcloud : http://soundcloud.com/just_friday
All my mixtapes on Samurai.fm : http://samurai.fm/just-friday
Blog about electro music :http://just1friday.wordpress.com/
Msieur Piero
 
Posts: 109
Joined: Sat Nov 14, 2009 4:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby iramhernandez » Thu Nov 26, 2009 12:45 pm

I am having problems with the deb file linked for karmic. Has anybody gotten it to work sucessfully? DKMS is failing with the following:

Code: Select all
Selecting previously deselected package hdjmod-dkms.
(Reading database ... 184627 files and directories currently installed.)
Unpacking hdjmod-dkms (from hdjmod-dkms_1.28_karmik_all.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-15-generic -C /lib/modules/2.6.31-15-generic/build M=/var/lib/dkms/hdjmod/1.28/build"....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.31-15-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/hdjmod/1.28/build/ for more information.
0
0
dpkg: error processing hdjmod-dkms (--install):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 hdjmod-dkms


the make.log contains

Code: Select all
DKMS make.log for hdjmod-1.28 for kernel 2.6.31-15-generic (x86_64)
Thu Nov 26 07:41:23 EST 2009
make: Entering directory `/usr/src/linux-headers-2.6.31-15-generic'
  LD      /var/lib/dkms/hdjmod/1.28/build/built-in.o
  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-15-generic/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-15-generic/arch/x86/include/asm/smp.h:13,
                 from /usr/src/linux-headers-2.6.31-15-generic/arch/x86/include/asm/mmzone_64.h:12,
                 from /usr/src/linux-headers-2.6.31-15-generic/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-15-generic/arch/x86/include/asm/apic.h: In function ‘__default_check_phys_apicid_present’:
/usr/src/linux-headers-2.6.31-15-generic/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-15-generic/arch/x86/include/asm/mpspec.h:53: 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: 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 ‘semaphore_init’
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘hdj_probe’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1892: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c:1892: error: (Each undeclared identifier is reported only once
/var/lib/dkms/hdjmod/1.28/build/device.c:1892: 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:1993: 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:2019: 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:2603: warning: cast from pointer to integer of different size
make[1]: *** [/var/lib/dkms/hdjmod/1.28/build/device.o] Error 1
make: *** [_module_/var/lib/dkms/hdjmod/1.28/build] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.31-15-generic'
iramhernandez
 
Posts: 1
Joined: Thu Nov 26, 2009 12:37 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Msieur Piero » Wed Dec 02, 2009 9:37 pm

Should we detach the .deb package from the top of the topic 'till it works properlly?

[editor's note by Albert]: done!
My soundcloud : http://soundcloud.com/just_friday
All my mixtapes on Samurai.fm : http://samurai.fm/just-friday
Blog about electro music :http://just1friday.wordpress.com/
Msieur Piero
 
Posts: 109
Joined: Sat Nov 14, 2009 4:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby econaut » Sat Dec 19, 2009 4:27 pm

Hello, I am using Debian sid(ux) and I have used the RMX already before with kernel 2.6.29 or something some time ago. Now with kernel 2.6.32.2 and installing the hdj_mod module was successful. I had to change the lines in the "device.c"-file as described above.

But unfortunately, the module doesn't work (anymore)! Any ideas?

Code: Select all
root@FUCKUP:/# modprobe hdj_mod
FATAL: Error inserting hdj_mod (/lib/modules/2.6.32-2.slh.1-sidux-686/kernel/sound/usb/hdj_mod.ko): Invalid module format


another hint:

Code: Select all
root@FUCKUP:/# depmod -ae
WARNING: -e needs -E or -FWARNING: Couldn't find symtab and strtab in module /lib/modules/2.6.32-2.slh.1-sidux-686/kernel/sound/usb/hdj_mod.ko
econaut
 
Posts: 1
Joined: Sat Dec 19, 2009 4:21 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby pizzapanther » Mon Dec 28, 2009 4:26 am

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?
pizzapanther
 
Posts: 2
Joined: Mon Dec 28, 2009 4:23 am

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby fozzy » Mon Dec 28, 2009 6:05 am

thomi wrote:Hey Gabo

Excellent.. :) i'm happy....

I think the steps with the patch must also be done.. cause i have tried your solution without the patch steps and it won't work.. then make also the patch steps and now it works... some error/warnings on "sudo make" but it works... :mrgreen:

By the way, until today i had no response from Hercules Support... waiting... for a new driver that fixex the problem with Kernel 2.6.31...

King Regards from CH
thomi - dj n0way


First off, I'm running Ubuntu 9.10 on an intel core 2 duo laptop. I am trying to get a Hercules DJ Console MK2 to work.

Like many others, I had trouble applying the patch. I'm not sure if there was an issue in the formatting/syntax or if it was something else. Anyway I made the single line change that Gabo suggested, and was then able to make && make install. Then modprobed hdj_mod without a problem.

I actually went through device.c, bulk.c, and midi.c and made the changes that the patch file was making by hand. I was not able to compile the files.

I also was unable to install the patched *.deb package (wrong architecture).

I downloaded the source for 1.7.1 and ran scons. Had to install a bunch of dependencies using Synaptic. But it all worked. I did not try the pre-made package. It might work, but I tend to avoid *.debs once they stop working right out of the box (call me stupid).

I now have mixxx working and the dj console can communite with mixxx. I was able to run the MIDI Learn Wizard and program some buttons, but not all seem to be working. Trying to load presets that come with Mixxx doesn't seem to be working, but I'm fairly certain that's an unrelated problem.

EDIT: I did not try pizzapanther's deb file for Karmic.
fozzy
 
Posts: 1
Joined: Mon Dec 28, 2009 4:05 am

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Roxxor » Tue Dec 29, 2009 12:56 am

Can confirm pizzapanther's .deb working for karmic with 2.6.32! :D
Thanks!
OT: Does anybody know what to do about crackles when playing with the equalizer on the MK2 and the low output volume of the the cinch outputs on the back, without setting the overall volume to maximum with getting a totally "cracky" song? :D I also have problems with playing music through the MK2 while letting timecode geeting into mix through the MK2, it's totally laggy ( I also can't use the MK2 on windows and traktor o.0, it's the same as in my timecode issue on linux). COuld this happen because of my AMD Athlon X2?
Roxxor
 
Posts: 4
Joined: Wed Apr 29, 2009 9:21 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby pizzapanther » Tue Dec 29, 2009 10:33 pm

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?
pizzapanther
 
Posts: 2
Joined: Mon Dec 28, 2009 4:23 am

PreviousNext

Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 3 guests