Patch for Hercules kernel mod broken by Linux 2.6.31

General Mixxx discussion.... discuss

Moderator: garth

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby thomi » Tue Oct 25, 2011 8:51 pm

hey all

i upgraded from ubuntu 11.04 to 11.10 and also updated the hdj kernel modul from:
https://launchpad.net/~rojtberg/+archive/hdjmod

but same output as in above post:
Setting up hdjmod-dkms (1.28+patched+bzr13~oneiric1) ...
Loading new hdjmod-1.28 DKMS files...
Error! No valid dkms.conf in dkms_source_tree or dkms_binaries_only.
/usr/src/hdjmod-1.28.dkms.tar.gz is not a valid DKMS tarball.
dpkg: error processing hdjmod-dkms (--configure):
subprocess installed post-installation script returned error exit status 7
Errors were encountered while processing:
hdjmod-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

have informed Pavel Rojtberg, who created the above ppa with the hdjmod.. hope he can solve it soon.. cause i need my dj console mk2 working asap ;)...

nice day
thomi
thomi
 
Posts: 9
Joined: Fri Oct 30, 2009 10:06 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby thomi » Wed Oct 26, 2011 5:29 am

Good morning

btw.. i'm on v3 kernel..

Linux poseidon 3.0.0-13-generic #21-Ubuntu SMP Mon Oct 17 20:18:51 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

maybe can be a problem with v3 kernel?


regards
thomi
thomi
 
Posts: 9
Joined: Fri Oct 30, 2009 10:06 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby thomi » Wed Oct 26, 2011 12:10 pm

hey hey hey... GOT IT

i investigated some hours to find out, whats the problem...

i grabbed the source code from the ppa with bzr:
bzr branch lp:~rojtberg/+junk/hdjmod

so i get the newest code...

then i copied the sourcode to /usr/src:
/home/thomi/temp/pavel/hdjmod/hdjmod-1.28.dkms/dkms_source_tree
to
/usr/src/hdjmod-1.28

So a listing of /usr/src/hdjmod-1.28 shows this:
http://i.imgur.com/8xgrn.png

Then i run following commands:
1. sudo dkms add -m hdjmod -v 1.28
2. sudo dkms build -m hdjmod -v 1.28
3. sudo dkms install -m hdjmod -v 1.28

Following is the output of above three commands:

********** SNIP ********************
thomi@poseidon:/usr/src$ sudo dkms add -m hdjmod -v 1.28

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

DKMS: add Completed.
thomi@poseidon:/usr/src$ sudo dkms build -m hdjmod -v 1.28

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.0.0-13-generic -C /lib/modules/3.0.0-13-generic/build M=/var/lib/dkms/hdjmod/1.28/build.......
cleaning build area....

DKMS: build Completed.
thomi@poseidon:/usr/src$ sudo dkms install -m hdjmod -v 1.28

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

Running the post_install script:

depmod..........

DKMS: install Completed.
********** SNIP ********************

Now i connected my DJ Console MK2, with some errors, don't know exactly why...:
http://paste.ubuntu.com/719605/

But... my DJ Console works now.. :)

:D

Hope this helps others...

regards
thomi
thomi
 
Posts: 9
Joined: Fri Oct 30, 2009 10:06 pm

Re: hdjmod-dkms broken by Linux 2.6.31 and 3.x

Postby thomi » Fri Nov 04, 2011 5:34 am

Hey Mixxx DJ's

Good news.. I got feedback from the hdjmod-dkms developer and the ppa package for oneiric with kernel 3.x is repaired..

Right now i updated to kernel 3.0.0.13, added Pavel Rojtberg's PPA, installed hdjmod-dkms and my Hercules DJ Console MK2 works perfect ;)..

See my steps:

1. add Pavel Rojtberg's PPA
sudo add-apt-repository ppa:rojtberg/hdjmod

2. update package list/cache
sudo apt-get update

3. install hdjmod-dkms package
sudo apt-get install hdjmod-dkms

here is the output of the last command:
--------- SNIP -----------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hdjmod-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 106 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/rojtberg/hdjmod/ubuntu/ oneiric/main hdjmod-dkms all 1.28+patched+bzr14~oneiric1 [106 kB]
Fetched 106 kB in 0s (336 kB/s)
Selecting previously deselected package hdjmod-dkms.
(Reading database ... 247239 files and directories currently installed.)
Unpacking hdjmod-dkms (from .../hdjmod-dkms_1.28+patched+bzr14~oneiric1_all.deb) ...
Setting up hdjmod-dkms (1.28+patched+bzr14~oneiric1) ...
Removing old hdjmod-1.28 DKMS files...

-------- Uninstall Beginning --------
Module: hdjmod
Version: 1.28
Kernel: 3.0.0-13-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

hdj_mod.ko:
- Uninstallation
- Deleting from: /lib/modules/3.0.0-13-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


Running the post_remove script:
depmod.............

DKMS: uninstall Completed.

------------------------------
Deleting module version: 1.28
completely from the DKMS tree.
------------------------------
Done.
Loading new hdjmod-1.28 DKMS files...

Loading tarball for hdjmod-1.28

DKMS: ldtarball Completed.

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

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

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.0.0-13-generic -C /lib/modules/3.0.0-13-generic/build M=/var/lib/dkms/hdjmod/1.28/build.......
cleaning build area....

DKMS: build Completed.
Installing module...

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

Running the post_install script:

depmod....

DKMS: install Completed.
--------- SNIP -----------------

Now i plugged in my Hercules DJ Console MK2 and e voilà.. :) it's working like a charm...

Hope others are also happy about this... AND thanks again to Pavel Rojtberg..

nice dayyyyy
thomi - dj n0way
thomi
 
Posts: 9
Joined: Fri Oct 30, 2009 10:06 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby dottornik » Wed Jan 11, 2012 9:19 pm

Ubuntu 10.04 update

For convenience of Mixxx users, I builded an automated, kernel-update-proof version of hdjmod-dkms_1.28_all.deb, named hdjmod-dkms_dottornik_1.28_all.deb
Extract the attached tarball, try the package and report any problem!
Works for me on Ubuntu Lucid 10.04
I think also works on others Linux debian OSes and with others hercules controllers like steel and mk4

enjoy your console !!!!
Excuse me for my bad english.....
Attachments
hdjmod-dkms_dottornik_1.28_all.tar
Extract the tarball and install the deb package inside
(220 KiB) Downloaded 436 times
dottornik
 
Posts: 3
Joined: Sat Dec 17, 2011 1:23 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby lightrush » Mon Jan 23, 2012 4:35 pm

Has anybody tried running your Hercules on Linux 3.2.0?
lightrush
 
Posts: 7
Joined: Tue Sep 14, 2010 5:19 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby dreamer » Tue Feb 14, 2012 7:47 pm

dottornik wrote:I think also works on others Linux debian OSes

I am always highly doubtful of this. I'd rather see a proper debian build. If anyone has one (or has success on debian sid), please let me know :)

Extract the tarball and install the deb package inside

The tarball does not even contain a deb package. Contents of the tarball that I downloaded:

debian-binary (text file with version number?)
data.tar.gz
control.tar.gz
dreamer
 
Posts: 3
Joined: Tue Feb 14, 2012 7:39 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby dirkgently » Tue Mar 13, 2012 2:09 pm

I just compiled and inserted the hdjmod module, running debian wheezy/sid and kernel 3.2.8. I had to make some very minor changes to the source and have no idea if it works with the hardware - I built the driver to check before buying.

Edit/update: got the hardware today and it works after some more messing around. I used the source from Pavel Rojtbergs PPA at https://code.launchpad.net/~rojtberg/+junk/hdjmod
dirkgently
 
Posts: 1
Joined: Tue Mar 13, 2012 2:06 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby philnice » Mon Apr 02, 2012 8:15 pm

Well, on avl5.03, i'm stucked over there:
Code: Select all
make -C /lib/modules/3.0.16-avl-7/build M=/var/lib/dkms/hdjmod/1.28/build LDDINC=/var/lib/dkms/hdjmod/1.28/build modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.16-avl-7'
  CC [M]  /var/lib/dkms/hdjmod/1.28/build/device.o
In file included from include/net/rtnetlink.h:5:0,
                 from include/net/neighbour.h:28,
                 from include/net/dst.h:16,
                 from include/net/sock.h:62,
                 from /var/lib/dkms/hdjmod/1.28/build/device.c:37:
include/net/netlink.h: In function ‘nla_put_msecs’:
include/net/netlink.h:829:19: warning: declaration of ‘jiffies’ shadows a global declaration [-Wshadow]
include/linux/jiffies.h:82:44: warning: shadowed declaration is here [-Wshadow]
/var/lib/dkms/hdjmod/1.28/build/device.c: At top level:
/var/lib/dkms/hdjmod/1.28/build/device.c:69:8: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’ [-Wimplicit-int]
/var/lib/dkms/hdjmod/1.28/build/device.c:69:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘snd_hdj_chip_free’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1562:3: error: implicit declaration of function ‘usb_buffer_free’ [-Werror=implicit-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:2: error: implicit declaration of function ‘init_MUTEX’ [-Werror=implicit-function-declaration]
/var/lib/dkms/hdjmod/1.28/build/device.c:1731:2: error: implicit declaration of function ‘usb_buffer_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/hdjmod/1.28/build/device.c:1731:16: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/hdjmod/1.28/build/device.c:1746:24: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/hdjmod/1.28/build/device.c: In function ‘hdj_probe’:
/var/lib/dkms/hdjmod/1.28/build/device.c:1895:8: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c:1895:8: note: each undeclared identifier is reported only once 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:8: 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:8: error: ‘register_mutex’ undeclared (first use in this function)
/var/lib/dkms/hdjmod/1.28/build/device.c: At top level:
/var/lib/dkms/hdjmod/1.28/build/device.c:69:8: warning: ‘DECLARE_MUTEX’ declared ‘static’ but never defined [-Wunused-function]
cc1: some warnings being treated as errors

make[2]: *** [/var/lib/dkms/hdjmod/1.28/build/device.o] Error 1
make[1]: *** [_module_/var/lib/dkms/hdjmod/1.28/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.16-avl-7'
make: *** [modules] Error 2
philip@dj:/var/lib/dkms/hdjmod/1.28/build$

By the way, mixxx 1.10 + avl5.0.3 = the ultimate combination. Works great on my old pc. :D
"Mixxx - Where the X(tra) rules...."
philnice
 
Posts: 43
Joined: Fri Aug 20, 2010 4:43 pm

Ubuntu 10.04 (lucid) - Linux 3.0.0-13-generic

Postby Dakavon » Tue Apr 03, 2012 1:15 pm

Hey,

i have read and tried a lot - doesnt work:

    Ubuntu 10.04 (lucid)
    Linux 3.0.0-14-generic
    Hercules Dj Control mp3 e2

This is my snipped debug log of mixxx after i started mixxx and tried to set up this midi device configuration:
http://paste.ubuntu.com/912984/


Without debug mode, mixxx crashes.. :?


Also, i have tried the following kernel:
    3.0.0-13
    2.6.38-10
    2.6.38-13
    2.6.35-32
Dakavon
 
Posts: 3
Joined: Tue Apr 03, 2012 1:01 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests

cron