View Full Version : Recompiling hid.o
TheSmJ
10 Jun 2005, 7:00am
So I want to get USB working on my Linux box, and I need a hid.o module compiled for Redhat kernel version 2.4.30. Currently I have one for 2.4.22, but it refuses to load on any newer kernel version.
How can I go about fixing this? I can't find a pre-compiled file anywhere.
shwaip
10 Jun 2005, 7:37am
get the source from yum or www.kernel.org
somewhere in there you should find hid.c
gcc -c hid.c
will give you hid.o. Although, I'm not sure if actually recompiling everything would give you a different result. Some config options may be set when you recompile all the modules using the kernel building tools.
Any reason you want to stick with the 2.4 kernel?
TheSmJ
10 Jun 2005, 8:59am
Thanks. No idea where to start looking for the file on the site though... :P
I'll look around.
EDIT: Found a copy, but it doesn't look like the gcc function is installed. I hate to sound like an idiot, but how is it installed?
EDIT AGAIN: Nevermind. :P I managed to find a copy and install it without a problem. Now I just need to figure out why I get a whole bunch of errors when I try to compile the hid.c file... good old Linux.
shwaip
10 Jun 2005, 5:08pm
You may want to completely recompile the kernel. It'll give you the hid.o, as well as a smaller, more customized kernel for your system.
a couple guides:
http://www.keyspan.com/support/linux/docs/recompile/
http://www.linuxhelp.ca/guides/kernel/
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.