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 verde » Sat Nov 07, 2009 1:18 am

reetp wrote:
thomi wrote:hi all
so, i have same problem.. have upgraded a test system to kubuntu karmic 9.10 with Kernel 2.6.31-14.
Have done all steps which garth has explained and after the command: sudo sh -c "cat ~/Desktop/kernel_2.6.31_rc6_rt6.patch | patch" i get this:
sudo sh -c "cat ~/Desktop/kernel_2.6.31_rc6_rt6.patch | patch"
(Patch is indented 4 spaces.)
patching file bulk.c
Hunk #1 FAILED at 3062.
Hunk #2 FAILED at 3601.
Hunk #3 FAILED at 3855.
Hunk #4 FAILED at 4133.
4 out of 4 hunks FAILED -- saving rejects to file bulk.c.rej
(Patch is indented 4 spaces.)
patching file device.c
patch: **** malformed patch at line 44: module_param_array(id, charp, NULL, 0444);
thomi


Me too. Identical problem.

Any help please people ?

B. Rgds
John


ohhh ! u need to do something like dos2unix on the files! and test it with
Code: Select all
patch --dry-run
verde
 
Posts: 5
Joined: Sat Oct 10, 2009 2:02 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby verde » Sat Nov 07, 2009 1:20 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


well, patch just replaces the lines, which u can do it manually, as long as u make it correctly! :D

edit:
example:
u need to delete these lines:
Code: Select all
   card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0);
   if (card == NULL) {
      snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx);
      return -ENOMEM;
   }


and replace them with:

Code: Select all
   err = snd_card_create(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0, &card);
        if (err < 0) {
          snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx);
          return err;
        }
verde
 
Posts: 5
Joined: Sat Oct 10, 2009 2:02 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby iltony » Mon Nov 09, 2009 1:52 pm

Good news, karmik users! I've applied the patch to the sources contained in the hercules .deb files, and built a new deb, based on the original one, which is now compatible with karmik. Simply download and install this one and you'll be all right.
Here it is:
http://drop.io/olx0f64/asset/hdjmod-dkm ... ik-all-deb

EDIT:
Could you please add this link to the top of the discussion? I think it would be useful.
iltony
 
Posts: 7
Joined: Mon Nov 09, 2009 1:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby albert » Tue Nov 10, 2009 11:41 pm

Thanks iltony.

Can someone please confirm that the .deb works for them?
Start DJing with Mixxx | Fill your Sampler Decks with BeatCleaver | Oscillicious VST Plugins and Audio Tools
User avatar
albert
Mixxx Developer
 
Posts: 554
Joined: Wed Feb 13, 2008 5:45 am
Location: Victoria, BC, Canada

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby thomi » Fri Nov 13, 2009 8:06 am

Hi and Good Morning

Now i get a response from Hercules Support (german):

Wir möchten Sie Informieren dass Hercules nur für die Softwares und
Treiber die wir auch mit den Konsolen anbieten Sopport leisten kann.

That means in english:
Hercules does only support Drivers from Hecules.

????????

I answered, that the Hardware and the Linux Driver are offered from Hercules, so, why they don't support???

I will try to get out more Information, or even the Sourcecode..

bye and have a good 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 Msieur Piero » Sat Nov 14, 2009 4:59 pm

For me the .deb doesn't work...
It's a bit sad, because when i run mixxx.
The MK2 audio device seems to be recognise but... that's all! I can't use anything but the joystick o_O

Hope it helps
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 iltony » Sun Nov 15, 2009 12:39 pm

If the deb installs correctly, then it should work. Please type in a terminal
Code: Select all
lsmod | grep hdj_mod
and tell me your output.
Another suggestion I'd mention is, when you run mixxx, have you tried going into menu Options > Preferences > MIDI Controllers > Hercules DJ Control MK2 MIDI 1 > Activate?
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 » Sun Nov 15, 2009 2:19 pm

Sorry, the deb didnt install correctly, in fact...
It said something like : hdjmod dkms is missing

But i succed in making the hercules dj mk2 work with the previous solution (edit device.c, sudo make, sudo make install...)
So, the result of an
Code: Select all
lsmod | gred hdj_mod
might be obsolete :(
Sorry...

Concerning the options/preferences... manip... It's nor the first time i'm using mixxx nor the first time i'm using this device with mixxx.
That was, furtermore, the way i succed in making the joystick work :$
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 iltony » Sun Nov 15, 2009 5:56 pm

Dear Piero, about your package issue, please give a "sudo rm -R /var/lib/dkms/hdjmod/" and then try to install the deb again. Mixed manual and automatic installation might be problematic. Warning: if you apported manual changes in that directory, please back it up, just in case.
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 » Sun Nov 15, 2009 9:53 pm

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...
Last edited by Msieur Piero on Mon Nov 16, 2009 9:47 am, edited 2 times in total.
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

PreviousNext

Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 2 guests