LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2007, 02:55 PM   #1
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Rep: Reputation: 15
joystick problem (db9)


Hello,

I need to edit db9.c in order to get my pad to work, problem is i can only find db9.ko in /lib/modules/2.6.17-1.2142_FC4/kernel/drivers/input/joystick/

I've searched all over google with no results, every site states that my distro should have it by default.
How do i obtain the .c files?
 
Old 01-26-2007, 07:27 PM   #2
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Errr... db9.ko is the already compiled kernel module (ko is kernel object).
In order to get this to work you need to install kernel sources for your kernel (it will probably be in /usr/src/linux-<version>), make your edit in ./drivers/input/joystick/db9.c and recompile.

good luck
 
Old 01-26-2007, 08:20 PM   #3
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
no db9.c file there either
 
Old 01-26-2007, 09:40 PM   #4
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Are you sure you have a complete kernel source package installed in your Fedora installation, not just the kernel headers?
Well, it is there in 2.6.16 and it is there in 2.6.19, which I use, so it ought to be there in your 2.6.17 also!

I'll give you the absolute path as it looks here, which you have to adjust accordingly to your kernel version
/usr/src/linux-2.6.19/drivers/input/joystick/db9.c
 
Old 01-26-2007, 11:52 PM   #5
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
Seems like i didn't have the src.
I downloaded it and build it, edited the file i needed.

But i've never recompiled my kernel, i'm afraid of things going wrong or something...
Isan't there a way to just get the modified script in there instead of recompileing the whole kernel?
 
Old 01-28-2007, 11:25 PM   #6
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Hm, why not tell what exactly you are intending to do! why do you have to modify the source of that module? What doesn't work out of the box?
I figure you need it for a gameport joystick?

Under certain circumstances, depending how Red Hat configures the kernel, you might get around compiling and installing the new kernel. You might just need to build this particular module and the modules it depends upon, and copy them to /lib/modules/2.6.17-1.2142_FC4/kernel/drivers/input/joystick/
and it might work...

Also, compiling and installing a new kernel isn't such a big thing! There are countless very good howtos about this on the 'net.

Last edited by FnordPerfect; 01-28-2007 at 11:27 PM.
 
Old 01-29-2007, 07:40 AM   #7
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
well, i changed the db9.c in the source and recompiled.
Now it can see the pad but there are some things wrong in the script i think.
I might have to change the script again and recompile.

The recompiling of the kernel is easier then i thought
Now i just have problems with my nvidia kernel module...it wont compile the same version i was running (7676) for my recompiled kernel.
And it does compile a new version of the nvidia drivers but then the kernel can't find it...
 
  


Reply



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
Xircom USB to serial DB9, what driver? dandev Linux - Hardware 1 04-18-2006 12:29 PM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
Rollover to db9 rkemp Linux - Networking 0 12-20-2004 12:43 AM
XP Hyperterminal to Sun Ultra 10 with DB9-DB9 liguorir Linux - Software 0 10-06-2004 08:26 AM
Linux on a 8M laptop w/DB9 for net connection rickenbacherus Linux - General 2 05-12-2003 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:53 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
Open Source Consulting | Domain Registration