Koozali.org: home of the SME Server

Compiling kernel modules

rickjones

Compiling kernel modules
« on: November 02, 2004, 09:54:37 PM »
I want to recompile one kernel module (usb-storage) in order to experiment with some hardware-specific patches I've been given.

I've got the full kernel source rpm for 2.4.20-18.7, and I can do a full build using the supplied config, but the modules won't load as they complain about linkage symbols. Looks like these are version-keyed symbols, but they don't line up with the running kernel. (I've ensured the kernel version string in Makefile is identical, not the "custom" flavour as shipped.)

I've got plenty of development experience, just not in this area. Can anyone tell me a simple way of just compiling a selected loadable module so that it will load and link - without replacing the entire kernel?

TIA

Inq

Compiling kernel modules
« Reply #1 on: November 04, 2004, 12:02:43 PM »
Try that question at www.linuxquestions.org

Offline smeghead

  • *
  • 563
  • +0/-0
Compiling kernel modules
« Reply #2 on: November 04, 2004, 06:25:42 PM »
Hi Rick

Might pay to post this to the devinfo list where many of those with this sorta knowledge swap gory dev stories :-) - of course the automounting external usb hdd system your working on (with a manager panel for multiple device naming for backup purposes) is gonna be posted back here, right?  :-) :-)
..................