Recompiling hid.o
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.
How can I go about fixing this? I can't find a pre-compiled file anywhere.
0
Comments
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?
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.
a couple guides:
http://www.keyspan.com/support/linux/docs/recompile/
http://www.linuxhelp.ca/guides/kernel/