Mixman DM2 driver compile

  • sonictwin
Posted: Tue, 06/09/2009 - 21:14
I recently snagged a Mixman DM2 for only $20 I'm trying to compile the driver I found here: http://sourceforge.net/projects/dm2linux/ I'm running 3.0 beta3 kernel 2.6.29-1-multimedia-686 I installed the dm2-source_0.9_all.deb file and I'm running sudo m-a a-i dm2-source to compile. I wish there was an easier way to get the output error from the console; using module-assistant I have to shift click the text to copy, and still even some is cut off on the edges... Anyone know a way I can output the compile error easily? Here's the error, the best I can:

/usr/bin/make module KERNEL_DIR=/lib/modules/2.6.29-1-multimedia-686/build │  
                        │ make[2]: Entering directory `/usr/src/modules/dm2'                         │  
                        │ /usr/bin/make -C /lib/modules/2.6.29-1-multimedia-686/build SUBDIRS=/usr/s │  
                        │ make[3]: Entering directory `/usr/src/linux-headers-2.6.29-1-multimedia-68 │  
                        │ /usr/src/linux-headers-2.6.29-1-common-multimedia/arch/x86/Makefile:41: /u │  
                        │ make[5]: *** No rule to make target `/usr/src/linux-headers-2.6.29-1-commo │  
                        │ make[4]: *** [sub-make] Error 2                                            │  
                        │ make[3]: *** [all] Error 2                                                 │  
                        │ make[3]: Leaving directory `/usr/src/linux-headers-2.6.29-1-multimedia-686 │  
                        │ make[2]: *** [default] Error 2                                             │  
                        │ make[2]: Leaving directory `/usr/src/modules/dm2'                          │  
                        │ make[1]: *** [binary-modules] Error 2                                      │  
                        │ make[1]: Leaving directory `/usr/src/modules/dm2'                          │  
                        │ make: *** [kdist_build] Error 2 
I think this driver is only for 2.6.24 ( according to http://www.youtube.com/watch?v=e7tonj6_Oik&feature=PlayList&p=387EB437EF3B8608&index=3) Hope someone can help me with this.

Trying to patch the kernel

  • sonictwin
  • 07/18/08
  • Tue, 06/09/2009 - 21:57
Trying to patch the kernel with $ sudo patch -p1 < /home/cupcake/Desktop/dm2/linux-lowspeedbulk.patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/drivers/usb/host/uhci-q.c |+++ b/drivers/usb/host/uhci-q.c -------------------------- File to patch: Which file should I patch? Am I even in the right direction?

Okay it seems I have to patch my Kernel

  • sonictwin
  • 07/18/08
  • Tue, 06/09/2009 - 21:38
From the README This driver required Linux 2.6.22 or newer. On Linux 2.6.22, you need to apply the included patch first to enable LED output and recompile your kernel. In order to get the LEDs on the dm2 device working, you need to apply the kernel patch by changing into the Linux source tree and issuing the following command: patch -p1 < /your/path/to/dm2/linux-lowspeedbulk.patch Then recompile your kernel in the easiest way your distribution allows. I use Debian/Ubuntu with make-kpkg. Read "man make-kpkg" for full instructions. ---- Sigh. I installed 64studio so i wouldn't have to tinker with kernels... I have a fairly fresh install of 64studio, do i just go to /usr/src/linux and patch it? /usr/src/linux points to /usr/src/linux-headers-2.6.29-1-multimedia-686 -- is this correct? Someone please tell me the best way to recompile to keep the kernel in its current state I'm thinking, make oldconfig make-kpkg (what parameters should I use?) then sudo dkpg -i *.deb ??? Please help, I want to get to work!!!

A better view of the error

  • sonictwin
  • 07/18/08
  • Tue, 06/09/2009 - 21:25
Sorry, that looked like sh!t. Here's the error in a better view /usr/bin/make module KERNEL_DIR=/lib/modules/2.6.29-1-multimedia-686/build KVERSION=2.6.29-1-multimedia-686 make[2]: Entering directory `/usr/src/modules/dm2' /usr/bin/make -C /lib/modules/2.6.29-1-multimedia-686/build SUBDIRS=/usr/src/modules/dm2 modules make[3]: Entering directory `/usr/src/linux-headers-2.6.29-1-multimedia-686' usr/src/linux-headers-2.6.29-1-common-multimedia/arch/x86/Makefile:41: /usr/src/linux-headers-2.6.29-1-common-multimedia/arch/x86/Makefile_32.cpu: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-headers-2.6.29-1-common-multimedia/arch/x86/Makefile_32.cpu'. Stop. make[4]: *** [sub-make] Error 2 make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/src/linux-headers-2.6.29-1-multimedia-686 make[2]: *** [default] Error 2 make[2]: Leaving directory `/usr/src/modules/dm2' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/modules/dm2' make: *** [kdist_build] Error 2