Recompiling hid.o

edited June 2005 in Science & Tech
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.

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited June 2005
    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?
  • edited June 2005
    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.
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited June 2005
    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/
Sign In or Register to comment.