LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-30-2005, 10:49 PM   #1
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Question 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
 
Old 07-01-2005, 04:28 AM   #2
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
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!
 
Old 07-01-2005, 01:34 PM   #3
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Original Poster
Rep: Reputation: 30
'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?
 
Old 01-29-2006, 02:19 AM   #4
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

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

Does that help?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compile a single module? linjia Debian 1 12-26-2004 06:30 AM
Installing a single module sushant18 Linux - Software 1 04-03-2004 02:36 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Linux - Software 4 09-09-2003 10:32 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Red Hat 1 09-09-2003 10:20 PM
compile a single kernel module wr3ck3d Linux - General 10 03-01-2003 01:00 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration