LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do you rebuild a single kernel module? (https://www.linuxquestions.org/questions/linux-general-1/how-do-you-rebuild-a-single-kernel-module-338921/)

rollo 06-30-2005 09:49 PM

How do you rebuild a single kernel module?
 
I'm having problems with USB and I've been advised to rebuild my 'usbcore' module.

How is this usually done? The module is listed under /lib/modules as 'usbcore.ko'. So I guess I need to download the UBS library and do a './configure ; make' in order to produce a new 'usbcore.ko'.

But I run into the inevitable error message on 'make' -

Quote:

linux:/home/rollo/install/libusb-0.1.10 # make
make all-recursive
make[1]: Entering directory `/home/rollo/install/libusb-0.1.10'
Making all in .
make[2]: Entering directory `/home/rollo/install/libusb-0.1.10'
if /bin/sh ./libtool --mode=compile /home/rollo/install/libusb-0.1.10/compile gcc -DHAVE_CONFIG_H -g -O2 -g
-Wall -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo usb.c; \
then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f ".deps/usb.Tpo"; exit 1; fi
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [usb.lo] Error 1
make[2]: Leaving directory `/home/rollo/install/libusb-0.1.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rollo/install/libusb-0.1.10'
make: *** [all] Error 2
1. Any ideas about how to resolve this one? I'm a bit out of my depth here.

2. Is there an easier way of rebuilding a single kernel module? Usually there is with Suse, but I can't find it...

Cheers in advance.

Rollo

dinolinux 07-01-2005 03:28 AM

Hi!

Rebuilding a single module by doing a usual install, does usually not work. But you can use the insmod command. You need to know the exact location of your module, go there, and type:
Code:

insmod <module>
Try it and come back if it fails! ;)

rollo 07-01-2005 12:34 PM

'Rebuild' the same as 'reload'?
 
Thanks Dino.

insmod (and modprobe) are just to load the module, right? I believe usbcore.ko is loaded automatically at boot, so it's already there - in my case, in /lib/modules/2.6.5-7.155.29-default/kernel/drivers/usb/core.

Maybe I'm not sure of terminology here but to rebuild the module means to compile it again, is that not correct?

djuhl30 01-29-2006 01:19 AM

http://forums1.itrc.hp.com/service/f...hreadId=982761

Does that help?


All times are GMT -5. The time now is 07:27 PM.