LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2009, 12:34 PM   #1
Zup
LQ Newbie
 
Registered: Apr 2006
Posts: 18

Rep: Reputation: 0
Compiling only ONE module in Debian


How can I compile only one module in Debian?

I have a Thrustmaster Dual Trigger 3-in-1 gamepad (USB ID 0x044f:0xb323) that is not covered in hid_tmff module. I've tested with xboxdrv and it seems to accept the same force feedback commands used with Thrustmaster Dual Power (but axis/buttons are reported differently, so modifying xboxdrv is more complex).

I've "patched" hid_tmff (found in kernel sources, under drivers/hid path) including my USB ID and same data as the other gamepad, but don't know how to compile only that module and make it work with my stock kernel (when I do insmod, it complains about bad module format... different kernel versions?).

Another question... how can I report my "ultra-complex patch" so it could become official in later kernel releases?

Last edited by Zup; 06-18-2009 at 01:08 PM.
 
Old 06-18-2009, 01:00 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
If you have the source code for the driver, then you can use module-assistant to build and install the module for you. You'll need the header files for your kernel and (maybe) the kernel source code but m-a can go and get them for you. It will also load the module for you.
cheers,
jdk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Module isn't compiling sulacco Programming 3 01-18-2009 04:12 PM
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 02:45 AM
Invalid module error after compiling Acronis module cryogenica Linux - General 2 03-17-2008 05:23 PM
Use of MODULE macro while compiling a module fssengg Linux - Newbie 0 03-31-2006 08:13 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 10:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration