Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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?
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.