Package Details: hdjmod 1.28-13

Git Clone URL: https://aur.archlinux.org/hdjmod.git (read-only)
Package Base: hdjmod
Description: Hercules DJ kernel module
Upstream URL: http://ts.hercules.com/eng/
Keywords: module
Licenses: GPL2
Submitter: None
Maintainer: Gimmeapill
Last Packager: Gimmeapill
Votes: 10
Popularity: 0.000000
First Submitted: 2009-04-03 16:33
Last Updated: 2015-06-24 20:21

Latest Comments

Gimmeapill commented on 2017-10-25 07:14

Hi dcosta, I have to confess that I didn't test this in ages.

It looks like the openSUSE folks have a working patch for 4.11:
https://download.opensuse.org/repositories/hardware/openSUSE_Tumbleweed/src/hdjmod-1.28-46.26.src.rpm

I don't have much time right now, but I'll see if can maybe work for us.

Otherwise, recommendation is to use preferably the HID method, this kernel module shouldn't be needed anymore:
https://mixxx.org/wiki/doku.php/hercules_pc_dj_console

& if you have one of the newer models, you may have better luck with: https://github.com/nealey/hdjd

dcosta commented on 2017-10-24 22:13

Hi, couldn't compile with 4.11+ kernel. Patch below.

kernel_4.11_fix.patch:

*** configuration_manager.c.orig 2009-01-27 14:25:50.000000000 +0000
--- configuration_manager.c 2017-10-24 22:59:29.120937360 +0100
***************
*** 43,48 ****
--- 43,51 ----
#include "configuration_manager.h"
#include "callback.h"
#include "hdjmp3.h"
+ #if ( LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) )
+ #include <linux/sched/signal.h>
+ #endif

/* The firmware is used for verification purposes
* set midi_channel to MIDI_INVALID_CHANNEL if you want it to be
*** bulk.c.orig 2017-10-24 22:52:58.181085342 +0100
--- bulk.c 2017-10-24 22:56:50.659692440 +0100
***************
*** 47,52 ****
--- 47,55 ----
#include "bulk.h"
#include "configuration_manager.h"
#include "callback.h"
+ #if ( LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) )
+ #include <linux/sched/signal.h>
+ #endif

u8 TUSB_full[] = "FTUS";
u8 TUSB_partial[] = "TUSB";

---

PKGBUILD:

*** PKGBUILD.orig 2017-10-24 23:10:22.196288103 +0100
--- PKGBUILD 2017-10-24 23:03:57.623135593 +0100
***************
*** 25,31 ****
'kernel_2.6.39_fix.patch'
'kernel_3.6_fix.patch'
'kernel_3.7_fix.patch'
! 'kernel_3.16_fix.patch')

md5sums=('498cf0ff144f20106718932ab22571ce'
'464f8a8eda9d4c2ec83cf1c43e5dbee3'
--- 25,32 ----
'kernel_2.6.39_fix.patch'
'kernel_3.6_fix.patch'
'kernel_3.7_fix.patch'
! 'kernel_3.16_fix.patch'
! 'kernel_4.11_fix.patch')

md5sums=('498cf0ff144f20106718932ab22571ce'
'464f8a8eda9d4c2ec83cf1c43e5dbee3'
***************
*** 36,42 ****
'9cc3e1cb4c7877ebf09e389e67b19182'
'8bf580fcfe06f48ce8247272b55633ce'
'f40801f32abc47088a54c8893aa27e75'
! '03b1ec1382d9d79a78cc79525cae06e4')

build() {
# Obtain source files
--- 37,44 ----
'9cc3e1cb4c7877ebf09e389e67b19182'
'8bf580fcfe06f48ce8247272b55633ce'
'f40801f32abc47088a54c8893aa27e75'
! '03b1ec1382d9d79a78cc79525cae06e4'
! 'd8993b84b5c7a6414c1da994d0bfcdda')

build() {
# Obtain source files
***************
*** 80,85 ****
--- 82,90 ----
# Ninth patch fixes build errors with kernel 3.16.x (by Fabian Zimmermann / fabian-zimmermann.net)
patch -p0 < $srcdir/kernel_3.16_fix.patch

+ # Tenth patch fixes build errors with kernel 4.11.x (by Diogo Costa)
+ patch -p0 < $srcdir/kernel_4.11_fix.patch
+
# Fix again the path to slab.h in bulk.h
sed -i s@/usr/src/linux-$(uname -r)/include/linux/slab.h@/usr/lib/modules/$(uname -r)/build/include/linux/slab.h@ bulk.h

Gimmeapill commented on 2016-11-29 09:11

@Scimmia: yes, possibly. I never really looked into that part when I took over, there was already enough work to just get it working. Please do not hesitate to amend the pgkbuild and I'll update it.

Scimmia commented on 2016-11-22 02:39

This should be using bsdtar directly to extract the rpm instead of the useless rpmextract.sh script.

Gimmeapill commented on 2016-06-29 20:34

@salorium: not sure at all, but that could maybe be caused by a conflict with the HID udev rule, or maybe this is not an RMX first generation.
In any case, better use the official method for HID devices:
https://mixxx.org/wiki/doku.php/hercules_pc_dj_console

salorium commented on 2016-06-26 12:09

Hello,
I have this error when i connect dj rmx :
[ 23.526583] usbcore: registered new interface driver hdj_mod
[ 55.923419] usb 3-1: new full-speed USB device number 9 using xhci_hcd
[ 56.083467] usb 3-1: device descriptor read/64, error -71
[ 56.361058] usb 3-1: device descriptor read/all, error -71
[ 56.520066] usb 3-1: new full-speed USB device number 10 using xhci_hcd
[ 56.680087] usb 3-1: device descriptor read/64, error -71
[ 56.943391] usb 3-1: device descriptor read/64, error -71
[ 57.206701] usb 3-1: new full-speed USB device number 11 using xhci_hcd
[ 57.221907] usb 3-1: device descriptor read/all, error -71
[ 57.380009] usb 3-1: new full-speed USB device number 12 using xhci_hcd
[ 57.380332] usb 3-1: Device not responding to setup address.
[ 57.597398] usb 3-1: device descriptor read/8, error -71
[ 57.713964] usb 3-1: device descriptor read/8, error -71
[ 57.816699] usb usb3-port1: unable to enumerate USB device

sentriz commented on 2016-06-07 15:06

@Gimmeapill
wow, yes. it works quite beautifully as a HID. thank you very much.

Gimmeapill commented on 2016-06-07 08:49

@sentriz: Linux 4.6 not tested.
But yes, this looks more like a version mismatch between your running kernel (4.6.0) and your modules (4.6.1), so I'd recommend to start with a full system update.
Also, please check the comments below, as this module is hardly needed anymore.

sentriz commented on 2016-06-07 00:48

Hello,
is 4.6.0-1 supported? Can't seem to get it to build.

make -C /lib/modules/4.6.0-1-MANJARO/build M=/tmp/packerbuild-1000/hdjmod/hdjmod/src/hdjmod-1.28
make[1]: *** /lib/modules/4.6.0-1-MANJARO/build: No such file or directory. Stop.
Makefile:52: recipe for target 'modules' failed

I don't think it's my AUR helper either - `makepkg PKGBUILD` gives the same error.

..actually, is this strange?

senan@manjaro /lib/modules $ l
drwxr-xr-x 2 root root 4.0K May 17 21:38 3.10.101-2-MANJARO/
drwxr-xr-x 4 root root 4.0K Jun 6 12:05 4.6.1-1-MANJARO/
drwxr-xr-x 2 root root 4.0K Jun 6 12:05 extramodules-4.6-MANJARO/

senan@manjaro ~ $ uname -r
4.6.0-1-MANJARO

they don't seem to match.

Gimmeapill commented on 2016-05-10 19:39

@Turbo: Upstream used to release it in DKMS format, but I don't remember it ever working, and I don't have much time to spend on it.

Better try the HID method - there's 99% chances that you don't need the kernel module at all: https://mixxx.org/wiki/doku.php/hercules_pc_dj_console

Once HID works, you will not have to worry about DKMS or kernel upgrades, which is far better ;-)

All comments